/* ============================================================================
   Sure Home Hub — editorial design system (senior-first, anti-AI-slop)
   Spec: lp-tracking-build-spec.md §2.5. Zero webfont dependency (system stacks).
   Design tokens: warm paper-white bg, near-black ink, ONE trust accent (teal),
   ONE warm CTA color (amber). No gradients, no shadows-as-decoration, no emoji
   bullets, no icon grids. WCAG AA min (AAA target for body text).
   ========================================================================== */

:root {
  /* palette — evidence-tuned from bath-LP style-mining (recon-capture-log):
     warm off-white paper, soft-charcoal ink (NOT pure black), calm editorial
     blue for trust/links, teal-green ("safe/health") for the quiz module, warm
     amber for the single action color. */
  --paper: #f8f5ef;          /* warm off-white page bg */
  --card:  #fffefb;          /* raised article surface */
  --ink:   #2a2723;          /* soft-charcoal body ink (≈13:1 on paper) */
  --ink-soft: #565049;       /* secondary text (≈7:1) */
  --rule:  #e4ded1;          /* hairline dividers */
  --trust: #106197;          /* calm editorial blue — trust accent / links */
  --trust-ink: #0d5183;      /* darker blue for text-on-paper links (AA+) */
  --quiz:  #16825f;          /* teal-green — quiz progress + selection (safe/health) */
  --cta:   #c1571f;          /* warm amber — the ONE action color */
  --cta-hover: #a8481626;
  --cta-press: #9c4415;
  --band:  #efe8d9;          /* soft section band */

  /* type */
  --serif: Georgia, 'Times New Roman', 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --measure: 62ch;
  --pad: clamp(18px, 5vw, 32px);
}

/* ---- reset-ish (the harness already ships a minimal reset for artifacts; this
   file is also loaded by real static pages, so keep a small local reset) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 40em) { body { font-size: 19px; } }

img { max-width: 100%; height: auto; display: block; }

/* ---- layout shell ---- */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.article { background: var(--card); }
main { display: block; }

/* ---- editorial typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 {
  font-size: clamp(28px, 6.5vw, 40px);
  letter-spacing: -0.01em;
  margin: 0.4em 0 0.5em;
}
h2 { font-size: clamp(22px, 4.5vw, 28px); margin: 1.6em 0 0.4em; }
h3 { font-size: clamp(19px, 3.6vw, 22px); margin: 1.4em 0 0.3em; }
p { margin: 0 0 1.05em; max-width: var(--measure); }
.lead { font-size: 1.12em; color: var(--ink); }
strong { font-weight: 700; }

a { color: var(--trust-ink); text-underline-offset: 2px; }
a:hover { color: var(--cta-press); }

/* ---- site masthead (makes the article read as a real site's post) ---- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--card); }
.masthead .wrap { display: flex; align-items: baseline; gap: 12px 16px;
  flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--trust-ink); }
.masthead-tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); }

/* ---- labels / disclosure furniture ---- */
.adlabel {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.adlabel .sponsored { font-weight: 700; color: var(--ink); }
.gov-hedge { font-weight: 600; color: var(--trust-ink); }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--trust-ink); font-weight: 700;
  margin: 1.1em 0 0; }

.byline { font-size: 14px; color: var(--ink-soft); margin: 0 0 1.4em; }
.updated { font-size: 13px; color: var(--ink-soft); margin: 0.2em 0 0; }

/* ▸-marker qualifier list (document feel, not filled-dot template bullets) */
.qualifiers { list-style: none; margin: 1.1em 0; padding: 0; max-width: var(--measure); }
.qualifiers li { position: relative; padding-left: 1.5em; margin: 0.55em 0; }
.qualifiers li::before { content: "\25B8"; position: absolute; left: 0.1em;
  color: var(--trust); font-size: 0.95em; top: 0.05em; }
.subhead-lead { color: var(--trust-ink); font-weight: 700; font-size: 1.06em;
  margin: 1.2em 0 0.4em; }

/* ---- hero image ---- */
.hero {
  margin: 0 calc(-1 * var(--pad)) 1.2em;
}
.hero img { width: 100%; }
.hero figcaption {
  font-size: 13px; color: var(--ink-soft); font-style: italic;
  padding: 8px var(--pad) 0;
}

/* ---- pull / proof quote (restrained, editorial) ---- */
.proof {
  border-left: 3px solid var(--trust);
  margin: 1.5em 0; padding: 0.2em 0 0.2em 18px;
  font-family: var(--serif); font-size: 1.15em; color: var(--ink);
}
.proof cite { display: block; font-family: var(--sans); font-size: 0.72em;
  font-style: normal; color: var(--ink-soft); margin-top: 0.5em; }

/* ---- soft info band (e.g. "what an assessment covers") ---- */
.band { background: var(--band); margin: 1.6em calc(-1 * var(--pad));
  padding: 1.2em var(--pad); }
.band ul { margin: 0.4em 0 0; padding-left: 1.1em; }
.band li { margin: 0.35em 0; max-width: var(--measure); }

/* ---- CTA block + buttons (buttons look like buttons; tap ≥48px) ---- */
.cta-block { margin: 1.8em 0; }
.btn {
  display: block; width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  text-align: center; text-decoration: none;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--cta); color: #fff;
  line-height: 1.25;
}
.btn:hover, .btn:focus-visible { background: var(--cta-press); color: #fff; outline: 3px solid var(--trust); outline-offset: 2px; }
.btn.secondary { background: transparent; color: var(--trust-ink);
  border: 2px solid var(--trust); min-height: 52px; font-size: 17px; }
.btn small { display: block; font-weight: 400; font-size: 14px; opacity: 0.92; margin-top: 3px; }
.callnum { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- sticky bottom tap-to-call bar (appears after scroll) ---- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--cta); color: #fff;
  padding: 10px var(--pad); display: none;
  box-shadow: 0 -2px 0 rgba(0,0,0,0.08);
}
.sticky-call.show { display: block; }
.sticky-call a { display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 48px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 18px; }
body.has-sticky { padding-bottom: 76px; }

/* ---- FAQ ---- */
.faq { margin: 1.8em 0; }
.faq h3 { margin-bottom: 0.15em; }
.faq p { color: var(--ink-soft); }

/* ---- footer / policy furniture ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2em; padding: 1.6em 0 3em;
  font-size: 14px; color: var(--ink-soft);
}
.site-footer p { max-width: none; margin: 0 0 0.7em; }
.site-footer a { color: var(--trust-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 0.8em; }

/* ---- quiz (Cell A) ---- */
.quiz { margin: 1.5em 0; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 0.5em; }
.quiz-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; margin-bottom: 1.2em; }
.quiz-bar > span { display: block; height: 100%; background: var(--quiz); transition: width 0.25s ease; }
.quiz h2 { margin-top: 0.2em; }
.quiz-opt {
  display: block; width: 100%; text-align: left;
  min-height: 60px; padding: 16px 18px; margin: 0 0 12px;
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--rule); border-radius: 8px; cursor: pointer;
}
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--quiz); outline: none; }
.quiz-opt::before { content: ""; }
.quiz-zip { display: flex; flex-direction: column; gap: 12px; }
.quiz-zip input {
  font-size: 22px; padding: 14px 16px; letter-spacing: 0.1em;
  border: 2px solid var(--rule); border-radius: 8px; font-family: var(--sans);
  min-height: 56px; text-align: center;
}
.quiz-back { background: none; border: 0; color: var(--trust-ink);
  font-size: 15px; cursor: pointer; padding: 8px 4px; margin-top: 4px; }
.quiz-note { font-size: 14px; color: var(--ink-soft); }

/* ---- reveal + consent ---- */
.reveal { display: none; }
.reveal.show { display: block; }
.consent { font-size: 13px; color: var(--ink-soft); margin: 1em 0; display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 3px; width: 22px; height: 22px; flex: 0 0 auto; }
.offramp { display: none; background: var(--band); padding: 1.2em var(--pad);
  margin: 1.2em calc(-1 * var(--pad)); }
.offramp.show { display: block; }

/* ---- homepage ---- */
.home-hero { padding: 1.6em 0 1.5em; }
.guide-card { border-top: 1px solid var(--rule); padding: 1.1em 0; }
.guide-card h3 { margin: 0.1em 0 0.35em; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--trust-ink); text-decoration: underline; }
.guide-card p { color: var(--ink-soft); margin-bottom: 0; }

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