/* =============================================================================
 * styles.css — Are You OK / 嗨好嗎 landing page
 * Mobile-first, system-font stack, safety-green palette, AA contrast.
 * ===========================================================================*/

/* ----------------------------------------------------------------------------
 * #1 HOUSE RULE (must be the FIRST rule): the UA stylesheet ships
 * [hidden]{display:none} at user-agent specificity, which ANY later
 * `display:flex/grid/block` rule overrides — so toggled elements would stay
 * visible. Forcing it with !important at the top fixes the FAQ accordion +
 * any future toggles. Do not move this below other rules.
 * --------------------------------------------------------------------------*/
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ tokens */
:root {
  /* Brand greens (built around the app's #22c55e safety green) */
  --green:        #22c55e;   /* primary brand */
  --green-600:    #16a34a;   /* hover / deeper */
  --green-700:    #15803d;
  --green-deep:   #064e3b;   /* near-black green for dark panels */
  --green-ink:    #052e22;   /* deepest, for cta panel base */
  --mint:         #dcfce7;   /* soft mint surface */
  --mint-50:      #f0fdf4;   /* faintest mint wash */

  /* Warm neutrals — never pure black/white */
  --ink:          #1b2420;   /* warm near-black text */
  --ink-soft:     #44524b;   /* secondary text (AA on white & mint) */
  --ink-faint:    #6b7a72;   /* tertiary / hints */
  --paper:        #fbfaf7;   /* warm off-white page bg */
  --paper-card:   #ffffff;   /* card surface */
  --line:         #e7e8e2;   /* hairline borders */
  --line-soft:    #eef0ea;

  /* One warm accent for urgency / SOS notes (amber, not red — calm, not panic) */
  --warm:         #d97706;   /* amber-600 */
  --warm-soft:    #fef3c7;   /* amber wash */
  --warm-ink:     #92400e;   /* amber text on wash (AA) */

  /* Effects */
  --radius:       18px;
  --radius-lg:    26px;
  --radius-pill:  999px;
  --shadow-sm:    0 1px 2px rgba(16,40,28,.05), 0 2px 8px rgba(16,40,28,.04);
  --shadow:       0 8px 24px rgba(16,40,28,.07), 0 2px 6px rgba(16,40,28,.05);
  --shadow-lg:    0 28px 60px rgba(16,40,28,.16), 0 8px 22px rgba(16,40,28,.08);
  --shadow-green: 0 16px 36px rgba(34,197,94,.30);

  /* Type — strong system stack; CJK glyphs fall through to native faces.
     SF Pro Rounded leads to echo the iOS app's friendly, rounded feel. */
  --font-sans: 'SF Pro Rounded', ui-rounded, -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC',
               'Hiragino Sans', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

/* ----------------------------------------------------------------- base */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;          /* sticky-header offset for anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  /* Body text 17px+ — the audience includes seniors. */
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(zh-Hant) body, html[lang="zh-Hant"] body { line-height: 1.78; }

h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Visible, on-brand focus ring everywhere (keyboard a11y) */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 22px;
}
.container-narrow { max-width: 760px; }

/* Skip link (hidden until focused) */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn-sm  { padding: 9px 16px;  font-size: 15px; }
.btn-lg  { padding: 16px 28px; font-size: 17.5px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: var(--green-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); color: var(--green-600); }
.btn-ghost .btn-icon { transition: transform .2s ease; }
.btn-ghost:hover .btn-icon { transform: translateX(3px); }

.btn-on-dark {
  background: #fff;
  color: var(--green-700);
}
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.22); }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16,40,28,.02), 0 6px 18px rgba(16,40,28,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(34,197,94,.28)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-weight: 750; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.brand-zh { font-size: 12.5px; font-weight: 600; color: var(--green-700); letter-spacing: .02em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav-list a:hover { color: var(--green-700); background: var(--mint-50); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Language toggle — segmented pill */
.lang-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 14px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  transition: background-color .18s ease, color .18s ease;
  min-width: 40px;
}
.lang-btn[aria-pressed="true"] { background: var(--green); color: #fff; }

/* -------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-top: 56px; padding-bottom: 40px; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(620px 420px at 78% 12%, rgba(34,197,94,.16), transparent 70%),
    radial-gradient(540px 460px at 12% 4%, rgba(52,215,127,.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  padding-block: 24px 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--green-700);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34,197,94,.18);
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.35rem, 6.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: pre-line;        /* honour the \n in the headline copy */
  color: var(--ink);
}
.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1.06rem, 2.4vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-reassure {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 15px;
  font-weight: 500;
}
.hero-reassure .inline-check { color: var(--green); flex: 0 0 auto; }

/* ---- phone mockup ---- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 310 / 640;
  background: linear-gradient(160deg, #20322a, #0c1a14);
  border-radius: 46px;
  padding: 13px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: floaty 7s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 13px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 24px;
  background: #0c1a14;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, var(--mint-50) 0%, #ffffff 38%);
  border-radius: 34px;
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.app-statusbar {
  position: absolute;
  top: 12px; left: 22px; right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
}
.app-statusbar-icons { color: var(--ink-soft); }
.app-greeting { margin-top: 22px; font-weight: 750; font-size: 19px; color: var(--ink); text-align: center; }
.app-prompt { margin-top: 3px; font-size: 14px; color: var(--ink-faint); text-align: center; }

.app-okbtn {
  margin-top: 22px;
  width: 152px; height: 152px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 38% 32%, #4ade80, var(--green) 55%, var(--green-600));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: .01em;
  box-shadow: 0 18px 34px rgba(34,197,94,.42), inset 0 -5px 12px rgba(0,0,0,.10),
              inset 0 3px 8px rgba(255,255,255,.35);
  position: relative;
}
.app-okbtn::after {              /* gentle pulse halo */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,.35);
  animation: pulse 2.6s ease-out infinite;
}
.app-taphint { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }

.app-status-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--mint);
  color: var(--green-700);
  font-weight: 650;
  font-size: 13.5px;
  padding: 11px 15px;
  border-radius: 14px;
  width: 100%;
  justify-content: center;
}
.app-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
.app-next {
  margin-top: 10px;
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-faint);
  font-size: 12px;
}
.app-sos {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border: 1.5px solid var(--warm-soft);
  background: #fff;
  color: var(--warm);
  font-weight: 650;
  font-size: 14px;
  padding: 13px;
  border-radius: 14px;
}

.float-chip {
  position: absolute;
  left: -6px; bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--green-700);
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite reverse;
}
.float-chip-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.16);
}

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 58px); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
.kicker {
  display: inline-block;
  color: var(--green-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.55rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin-top: 16px; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--ink-soft); }
.section-head:not(.section-head-left) .section-sub { margin-inline: auto; max-width: 52ch; }

/* ----- how it works (timeline) ----- */
.how { background:
  linear-gradient(180deg, var(--paper) 0%, var(--mint-50) 100%); }
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline::before {                 /* vertical connecting line */
  content: "";
  position: absolute;
  left: 27px; top: 22px; bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--green) 0%, rgba(34,197,94,.25) 100%);
  border-radius: 2px;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 14px 0;
}
.timeline-node {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.timeline-node-done { background: var(--green); border-color: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.timeline-body {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  flex: 1;
}
.timeline-body h3 { font-size: 1.28rem; margin: 6px 0 8px; }
.timeline-body p { color: var(--ink-soft); font-size: 17px; }
.timeline-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--green-700);
  background: var(--mint);
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.timeline-tag-warm { color: var(--warm-ink); background: var(--warm-soft); }
.timeline-tag-done { color: #fff; background: var(--green); }

/* ----- features grid ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(34,197,94,.3); }
.feature-card-accent {
  background:
    linear-gradient(180deg, #fffdf7, #fffaf0);
  border-color: var(--warm-soft);
}
.feature-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green-700);
  margin-bottom: 18px;
}
.feature-icon-warm { background: var(--warm-soft); color: var(--warm); }
.feature-card h3 { font-size: 1.24rem; margin-bottom: 9px; }
.feature-card p { color: var(--ink-soft); font-size: 17px; }

/* ----- trust ----- */
.trust { background: var(--mint-50); }
.trust-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background:
    radial-gradient(900px 300px at 90% -20%, rgba(34,197,94,.10), transparent 60%),
    var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.trust-list { display: flex; flex-direction: column; gap: 26px; }
.trust-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: flex-start; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green-700);
}
.trust-list h3 { font-size: 1.18rem; margin-bottom: 6px; }
.trust-list p { color: var(--ink-soft); font-size: 17px; }

/* ----- FAQ accordion ----- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: rgba(34,197,94,.35); box-shadow: var(--shadow-sm); }
.faq-q-wrap { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 22px;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}
.faq-chevron { flex: 0 0 auto; color: var(--green-700); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; }
.faq-a p { color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; }

/* ----- final CTA ----- */
.final-cta { padding-bottom: clamp(72px, 9vw, 120px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -30%, rgba(52,215,127,.45), transparent 65%),
    linear-gradient(160deg, var(--green-deep), var(--green-ink));
  border-radius: var(--radius-lg);
  padding: clamp(46px, 7vw, 78px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.cta-mark { display: inline-flex; margin-bottom: 18px; }
.cta-title {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 auto;
  color: #fff;
}
.cta-sub { margin: 18px auto 0; font-size: clamp(1.02rem, 2vw, 1.18rem); color: rgba(255,255,255,.86); max-width: 44ch; }
.cta-panel .btn { margin-top: 30px; }
.cta-note { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-brand .brand-mark { filter: drop-shadow(0 4px 10px rgba(34,197,94,.22)); }
.footer-name { display: inline-flex; align-items: baseline; gap: 9px; }
.footer-name strong { font-size: 18px; font-weight: 750; }
.footer-name-zh { font-size: 13px; color: var(--green-700); font-weight: 600; }
.footer-tagline { color: var(--ink-faint); font-size: 15px; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-nav a { color: var(--ink-soft); font-weight: 550; font-size: 15.5px; padding: 4px 0; transition: color .18s ease; }
.footer-nav a:hover { color: var(--green-700); }
.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-block: 22px 30px;
  color: var(--ink-faint);
  font-size: 13.5px;
}

/* ====================================================== motion / reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Respect reduced-motion: kill all transitions, animations, smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ responsive */

/* Tablet+ : two-column hero, two-column trust panel */
@media (min-width: 760px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-nav { justify-content: flex-end; }
}
@media (min-width: 920px) {
  .trust-panel { grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
  .hero { padding-top: 64px; }
}

/* -------- Mobile (<= 720px): nav becomes a horizontal-scroll strip --------
   House rule: never display:none a nav on mobile. The brand + actions stay on
   row 1; the nav wraps to a full-width scroll strip on row 2. */
@media (max-width: 720px) {
  html { scroll-padding-top: 128px; }
  .header-inner { flex-wrap: wrap; height: auto; padding-block: 11px; gap: 10px 14px; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .main-nav {
    order: 3;
    width: 100%;
    margin: 2px -22px 0;          /* bleed to viewport edges */
  }
  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding: 2px 22px 6px;
    gap: 6px;
  }
  .nav-list::-webkit-scrollbar { display: none; }   /* WebKit */
  .nav-list a { flex: 0 0 auto; }

  .header-cta { display: none; }    /* CTA repeats in hero + final; keep header tidy on mobile */
}

/* Phone CTA row: full-width stacked buttons for big tap targets */
@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .container { padding-inline: 18px; }
  /* Keep body type >=17px on phones — the audience includes seniors, and small
     screens are exactly where larger, high-contrast text matters most. */
  body { font-size: 17px; }
  .timeline-step { grid-template-columns: 46px 1fr; gap: 14px; }
  .timeline::before { left: 22px; }
  .timeline-node { width: 46px; height: 46px; }
}
