/* One Hour — shared styles. Palette and type mirror the iOS app. */
:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-muted: #ece9e3;
  --ink: #111111;
  --graphite: #2b2b2b;
  --secondary: #8a857d;
  --tertiary: #b5b0a8;
  --hairline: #e4e0d9;
  --accent: #f5a623;
  --accent-deep: #e8872b;
  --accent-soft: #f8d9b0;
  --radius: 20px;
  --gutter: 24px;
  --max: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Language switching: both versions ship in the HTML, one is hidden. */
html[data-lang="zh"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="zh"] { display: none; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 243, 239, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; white-space: nowrap; }
.brand img { width: 26px; height: 26px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--secondary); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.lang-toggle {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--graphite);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--tertiary); }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.eyebrow {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--secondary); margin: 0 auto 34px; max-width: 620px; }

/* 60 min → 24 sec */
.conversion {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 26px;
  padding: 18px 26px;
  margin-bottom: 30px;
}
.conversion .value { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.conversion .unit { font-size: 13px; color: rgba(245, 243, 239, 0.6); display: block; margin-top: 4px; }
.conversion .arrow { color: var(--accent); font-size: 22px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.button.primary { background: var(--ink); color: var(--bg); }
.button.primary:hover { background: #000; color: var(--bg); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.button.secondary:hover { border-color: var(--tertiary); color: var(--ink); }
.button[aria-disabled="true"] { background: var(--surface-muted); color: var(--tertiary); pointer-events: none; }

/* Sections */
section { padding: 56px 0; }
h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 700;
}
.section-lede { color: var(--secondary); margin: 0 0 34px; max-width: 620px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--secondary); font-size: 15px; }
.card .glyph {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-weight: 700;
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}
.step h3 { margin: 2px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--secondary); font-size: 15px; }

.note {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 20px 22px;
  color: var(--graphite);
  font-size: 15px;
}

/* Legal pages */
.doc { padding: 56px 0 24px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 40px); text-align: left; }
.doc .updated { color: var(--tertiary); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--graphite); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc .toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 8px;
}
.doc .toc ol { margin: 0; padding-left: 20px; color: var(--secondary); }
.doc .toc a { color: var(--graphite); }
.placeholder {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--graphite);
}

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 18px; }
.contact-card p { margin: 0 0 14px; color: var(--secondary); font-size: 15px; }
.mono { font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding: 36px 0 48px;
  color: var(--secondary);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--secondary); }
.site-footer a:hover { color: var(--ink); }
.site-footer .copyright { margin-left: auto; }

@media (max-width: 760px) {
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .brand { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .nav-link { display: none; }
  .site-footer .copyright { margin-left: 0; width: 100%; }
}

/* On phones the header keeps the brand and the language switch; the page links live in the footer. */
@media (max-width: 560px) {
  .site-header .wrap { height: 58px; }
  .site-nav a { display: none; }
  .cta-row .button { width: 100%; justify-content: center; }
  .conversion { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
