/* ==========================================================================
   onn — design system v12 · 17 Aug 2026 (session 2)

   The register pass (journey §11.18 / ad register A12 — implemented as a
   build decision, PRESENTED FOR RATIFICATION, not silently ruled):
   two independent cold reads returned "consumer app / Swiggy" — first on the
   corridor affordances, then on the relocated manifesto. The scoped levers
   are applied: INK PRIMARIES with signal as the accent (the arrow, the
   parens, the current waypoint — never the surface), and SQUARED GEOMETRY
   (pills retired; radii stepped down one register). Signal now behaves on
   screens exactly as ruled for ads: the colour never varies; the surface it
   claims is small.
   The manifesto section is removed by founder ruling (17 Aug, session 2):
   the lines leave the business vocabulary. Its CSS goes with it — a ruled
   exception with no instance is drift waiting to happen.

   Three findings drove this rebuild:
   1. Type was oversized (cold read). The scale now runs on a ~1.25 ratio
      topping out well below the old 74px, so headings lead without shouting.
   2. The page lacked structural competence — a single narrow ribbon with wide
      empty flanks reads as unfinished, and "unfinished" is the wrong answer to
      the pre-cognitive "is this real?" scan. Structure (grids, surfaces,
      asymmetry) is category-agnostic craft. Borrowed authority (badges,
      ratings, testimonials, security theatre) stays banned — that is the
      incumbent's vocabulary, not ours.
   3. Primary actions had no affordance. Orange text on a bare screen worked
      in the corridor and failed everywhere else. Actions are now real
      surfaces; "Go on" is retained as the corridor's continue and the closing
      signature, never as a cold-start CTA.

   Palette stays warm: paper, ink, signal. Elevation is warm-white on paper —
   never the cool grey-blue of the category.
   ========================================================================== */

:root {
  --signal: #FF5A1F;
  --signal-deep: #E8410A;
  --signal-soft: #FFEDE5;
  --ink: #16130F;
  --page: #FFFFFF;        /* the page itself — white, so warmth reads as material */
  --paper: #FAF6EF;       /* the warm tone, now a SURFACE not a background */
  --surface: #FFFFFF;
  --sunk: #F4EFE6;
  --grey: #8C8579;
  --grey-deep: #55504A;
  --line: #E8E2D8;
  --line-soft: #F0EBE2;
  --shadow-sm: 0 1px 2px rgba(22,19,15,.04), 0 2px 8px rgba(22,19,15,.04);
  --shadow-md: 0 2px 4px rgba(22,19,15,.04), 0 8px 24px rgba(22,19,15,.06);
  --r: 12px;
  --r-sm: 8px;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* The hidden attribute must always win. Author-level `display` rules (.btn is
   inline-flex, .resume-strip is flex) silently override the UA default, which
   left the resume strip visible on first visits with an em-dash where the
   number should be. Systemic fix, not a per-element one. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ---------- TYPE SCALE (~1.25 ratio, reduced per cold read) ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: 34px; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 700; }
.resolve { font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; color: var(--signal); margin: 12px 0 0; }
.lede { font-size: 16.5px; color: var(--grey-deep); margin: 14px 0 0; max-width: 34em; }
.fact { font-size: 15px; color: var(--grey); margin: 14px 0 0; max-width: 36em; }
.stretch { font-size: 13.5px; color: var(--signal); font-weight: 600; margin-top: 12px; }
.note { font-size: 12.5px; color: var(--grey); margin-top: 16px; max-width: 36em; line-height: 1.5; }
.micro { font-size: 12.5px; color: var(--grey); margin-top: 18px; }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin: 0 0 12px; }

/* ---------- THE MARK: ( onn ) ---------- */
.paren { color: var(--signal); font-weight: 800; }
.lockup { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.sig { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 16px; }

/* ---------- CHROME ---------- */
.topbar { padding: 16px 0; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navlinks { display: none; gap: 26px; font-size: 14.5px; color: var(--grey-deep); align-items: center; }
.navlinks a:hover { color: var(--ink); }

/* ---------- ACTIONS: real affordances ----------
   .btn      primary, signal-filled
   .btn-alt  secondary, ink outline on surface
   .link-a   inline text action with a chevron (never a bare orange word) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  background: var(--ink); color: #fff; border: none; border-radius: 10px;
  padding: 14px 26px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn::after { color: var(--signal); }
.btn:hover { background: #2A251E; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn::after { content: '\2192'; font-size: 17px; line-height: 1; color: var(--signal); }
.btn:disabled { background: #E7E1D6; color: #A79F92; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: #E2DCD1; }
.btn-block { display: flex; width: 100%; }
.btn-lg { font-size: 17.5px; padding: 16px 30px; }

.btn-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 13px 24px; cursor: pointer; transition: border-color .16s ease;
}
.btn-alt:hover { border-color: var(--ink); }
.btn-alt::after { content: '\2192'; font-size: 16px; line-height: 1; }

.link-a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px;
  color: var(--signal); background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1.5px; }
.link-a:hover { color: var(--signal-deep); }
.link-a::after { content: '\2192'; text-decoration: none; }
.quiet { font-size: 14.5px; color: var(--grey-deep); background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--font-body); }
.quiet:hover { color: var(--ink); }

/* ---------- SURFACES ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm); }
.band { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-sunk { background: var(--sunk); }
/* Cards sitting ON a warm band go white; cards on white pick up the warm edge */
.band .card, .band-sunk .card { background: var(--surface); }
.card { background: var(--paper); border: 1px solid var(--line); }

/* ---------- SECTIONS + GRIDS ----------
   One section owns the screen. Rows were short enough that two sections shared
   a viewport, so neither dominated and both competed — the visual equivalent of
   an ad trying to say two things. Each section now claims most of the fold and
   centres its content; the next section's top edge stays just visible, so the
   pull forward is curiosity rather than clutter. */
.sect { padding: 64px 0; }
.sect-head { max-width: 34em; margin-bottom: 28px; }
.g2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.g4 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cell h3 { margin-bottom: 6px; }
.cell p { margin: 0; font-size: 14.5px; color: var(--grey-deep); }
.cell-n { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--signal);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

/* "Nothing here stops you" */
.not { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.not:last-child { border-bottom: none; }
.not-x { font-family: var(--font-display); font-weight: 800; color: var(--signal); font-size: 14px; flex: none; }
.not-t { font-size: 15.5px; }

/* FAQ */
details { padding: 15px 0; border-bottom: 1px solid var(--line); }
details summary { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; color: var(--signal); font-weight: 800; }
details[open] summary::before { content: '\2013\00a0'; }
details p { margin: 9px 0 0; font-size: 15px; color: var(--grey-deep); }

/* ---------- THE RAIL: way-finding + accumulation ---------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 4px; }
.wp { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #B8B1A4; padding-top: 9px; border-top: 2px solid var(--line); min-width: 0; }
.wp .wp-lab { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp .wp-val { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: -0.015em; text-transform: none; color: var(--ink); margin-top: 3px;
  overflow-wrap: anywhere; line-height: 1.28; hyphens: none; }
/* The options waypoint carries two names — allow it more lines than the
   single-figure waypoints without stretching the row. */
.wp:last-child .wp-val { font-size: 12px; }
.wp.done { color: var(--grey-deep); border-top-color: var(--grey); }
.wp.cur { color: var(--ink); border-top-color: var(--signal); }
.wp.cur .wp-lab::before { content: '('; color: var(--signal); font-weight: 800; margin-right: 3px; }
.wp.cur .wp-lab::after { content: ')'; color: var(--signal); font-weight: 800; margin-left: 3px; }
.ctx { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 8px; }

/* ---------- CORRIDOR ---------- */
.screen { padding: 26px 0 56px; min-height: 0; display: block; }
.screen[hidden] { display: none; }
.corridor-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.corridor-panel { max-width: 680px; margin: 0 auto; }
/* Elements inside the panel are white at every width (the three-tone model) */
/* The corridor's figure/ground: warm ground, white elements. Identical at every
   width — only the panel's edge treatment changes. */
.corridor-panel .card, .corridor-panel .example, .corridor-panel .option-card,
.corridor-panel .opt-row, .corridor-panel .ins, .corridor-panel .opt,
.corridor-panel .field-row input, .corridor-panel .send input { background: var(--surface); }
.corridor-panel .opt.on { background: var(--ink); }

@media (min-width: 780px) {
  .corridor-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
    padding: 34px 40px 40px; box-shadow: var(--shadow-md); margin-top: 22px; margin-bottom: 34px; }
}

.tabs { display: flex; gap: 8px; margin: 22px 0 6px; }
.tab { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  color: var(--grey-deep); padding: 12px 16px; transition: all .15s ease; }
.tab:hover { border-color: var(--grey); color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.example-who { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--grey); margin: 0; }
.example-num { font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.03em; margin: 7px 0 0; }
.example-mo { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--grey-deep); letter-spacing: 0; }
.example-below { font-size: 13.5px; color: var(--signal); font-weight: 600; margin: 8px 0 0; }

.qs { margin-top: 26px; }
.q { margin-bottom: 24px; }
.q-label { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 10px; }
.q-label.held::before { content: '( '; color: var(--signal); font-weight: 800; }
.q-label.held::after { content: ' )'; color: var(--signal); font-weight: 800; }
.hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--grey); font-size: 12px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; background: var(--surface);
  color: var(--grey-deep); border: 1.5px solid var(--line); border-radius: 9px;
  padding: 10px 18px; cursor: pointer; transition: all .15s ease; }
.opt:hover { border-color: var(--grey); color: var(--ink); }
.opt.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.gloss { font-size: 13px; color: var(--grey); margin: 9px 0 0; max-width: 36em; line-height: 1.5; }

.field-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.field-row .unit { font-size: 14.5px; color: var(--grey-deep); font-weight: 600; }
.field-row input { width: 130px; font-family: var(--font-body); font-size: 15.5px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; color: var(--ink); }
.field-row input:focus { outline: none; border-color: var(--signal); }
.field-row.on input { border-color: var(--ink); }

/* Reveals */
.amount { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1.02;
  letter-spacing: -0.04em; margin: 6px 0 10px; }
.amount-sub { font-size: 17px; color: var(--grey-deep); margin: 0; }
.reveal-line { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 20px;
  letter-spacing: -0.02em; }

/* Insurer grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.ins { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 15px 16px; cursor: pointer;
  background: var(--surface); text-align: left; font-family: var(--font-body); transition: all .15s ease; }
.ins:hover { border-color: var(--grey); }
.ins.on { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.ins .ins-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; display: block; }
.ins .ins-sub { font-size: 12px; color: var(--grey); margin-top: 4px; display: block; }
.ins.peek { opacity: .45; pointer-events: none; }
.grid-expand { margin-top: 12px; }

/* Options list */
.opt-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; cursor: pointer; font-family: var(--font-body); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-top: 10px;
  box-shadow: var(--shadow-sm); transition: all .15s ease; }
.opt-row:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.or-main { display: flex; flex-direction: column; min-width: 0; }
.or-ins { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.or-prod { font-size: 13px; color: var(--grey-deep); margin-top: 3px; }
.or-right { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.or-prem { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.or-prem small { font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--grey); }
.or-claim { font-size: 11.5px; color: var(--grey); margin-top: 3px; white-space: nowrap; }

/* Option detail */
.option-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; margin-top: 20px; box-shadow: var(--shadow-md); }
.option-ins { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin: 0; }
.option-cover { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.035em; margin-top: 6px; }
.option-prem { font-size: 16.5px; color: var(--grey-deep); margin-top: 4px; }
.option-claim { font-size: 13px; color: var(--grey); margin-top: 12px; }
.opt-note { font-size: 13px; color: var(--grey-deep); margin: 10px 0 0; }

/* Reservation */
.send { display: flex; gap: 10px; margin-top: 10px; align-items: stretch; flex-wrap: wrap; }
.send input { flex: 1; min-width: 180px; font-family: var(--font-body); font-size: 15.5px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 14px; color: var(--ink); }
.send input:focus { outline: none; border-color: var(--signal); }
.send input::placeholder { color: #B8B1A4; }
.resv-id { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: 0.02em; margin: 12px 0 6px; }

.resume-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--signal);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 22px; font-size: 14.5px; }

/* ---------- FOOTER ---------- */
footer { padding: 32px 0 44px; border-top: 1px solid var(--line-soft); margin-top: 20px; }
.fine { font-size: 12px; color: var(--grey); margin-top: 12px; line-height: 1.6; }

/* ---------- HOMEPAGE HERO ---------- */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-md); }
.panel-label { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 12px; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 600px) {
  .g2 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .sect { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
  .hero { min-height: 84vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 860px) {
  body { font-size: 17px; }
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
  .resolve { font-size: 25px; }
  .amount { font-size: 64px; }
  .navlinks { display: flex; }
  .g3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
  .hero-panel { padding: 30px; }
  .sect { padding: 104px 0; min-height: 82vh; }
  .sect-head { margin-bottom: 36px; }
}
@media (min-width: 1040px) {
  h1 { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .opt, .ins, .opt-row { transition: none; }
  .opt-row:hover { transform: none; }
}


/* ==========================================================================
   MOBILE (<600px) — the desktop rebuild moved the layout on; this brings the
   small screen with it. Everything below is small-screen-only.
   ========================================================================== */
@media (max-width: 599px) {
  /* Outer gutter > card inner padding, so every card sits ON a page rather
     than spanning it. Equal values made borders invisible (O3). */
  .wrap, .corridor-wrap { padding: 0 20px; }

  /* Type: one step down, tighter leading — 34px h1 over 3 lines was heavy */
  h1 { font-size: 30px; line-height: 1.1; }
  h2 { font-size: 23px; }
  .resolve { font-size: 18px; }
  .lede { font-size: 15.5px; }
  body { font-size: 16px; }

  /* Sections: real separation without the desktop viewport rule */
  .sect { padding: 44px 0; }
  .sect-head { margin-bottom: 20px; }
  .hero { padding: 28px 0 36px; }
  .hero-grid { gap: 22px; }
  .hero-panel { padding: 20px; border-radius: 16px; }

  /* Cards: inner padding sits below the outer gutter, deliberately */
  .card { padding: 16px; }
  .g2, .g3, .g4 { gap: 12px; }

  /* The rail: 4 across is too tight for a label at 18px gutters — 2×2 */
  .rail { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .wp { font-size: 10px; }
  .wp .wp-val { font-size: 13.5px; }

  /* Corridor: white page, a warm panel that is visibly a panel, white
     elements on it — the desktop model at phone scale (O4). */
  .corridor-panel { background: var(--paper); border: 1px solid var(--line);
    border-radius: 16px; max-width: none; margin: 14px 0 24px; padding: 18px 16px 10px;
    box-shadow: var(--shadow-sm); }
  .screen { padding: 14px 0 34px; }

  /* Controls: thumb-sized, full width where they are the next act */
  .btn { padding: 15px 24px; font-size: 16px; }
  .btn-lg { font-size: 16.5px; padding: 16px 26px; }
  .btn-alt { padding: 13px 20px; }
  .opt { padding: 11px 16px; font-size: 14.5px; }
  .tab { padding: 12px 10px; font-size: 14.5px; }

  /* The email row stacks rather than squeezing to a 40px button */
  .send { flex-direction: column; }
  .send input { min-width: 0; width: 100%; }
  .send .btn { width: 100%; }

  /* Insurer grid + option rows */
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .opt-row { padding: 14px 16px; gap: 12px; }
  .or-ins { font-size: 14.5px; }
  .or-prod { font-size: 12.5px; }
  .or-prem { font-size: 16px; }

  /* Reveals: the number still dominates, without overflowing */
  .amount { font-size: 42px; letter-spacing: -0.035em; }
  .option-cover { font-size: 28px; }
  .resv-id { font-size: 24px; }

  /* Nav actions are hidden below 860; keep the bar clean */
  .topbar { padding: 13px 0; }
  .lockup { font-size: 19px; }
  footer { padding: 26px 0 36px; }
}

/* Tablet: 4-up rail stays, grids go two-up (600–859px) */
@media (min-width: 600px) and (max-width: 779px) {
  .rail { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .wp { font-size: 9.5px; letter-spacing: 0.04em; }
  .corridor-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-sm); margin: 18px auto 28px; padding: 26px 24px 12px; }
}
@media (min-width: 780px) and (max-width: 859px) {
  .rail { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .wp { font-size: 9.5px; letter-spacing: 0.04em; }
}


/* ---- Health household: nested selection ---- */
.sub-q { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--line); }
.sub-q .q-label { margin-bottom: 8px; }
.opt.locked { opacity: 1; cursor: default; background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.steppers { display: flex; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.st-lab { font-size: 13.5px; color: var(--grey-deep); font-weight: 600; margin-right: 2px; }
.st-btn { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer;
  font-family: var(--font-body); display: inline-flex; align-items: center; justify-content: center; }
.st-btn:hover { border-color: var(--ink); }
.st-n { font-family: var(--font-display); font-weight: 700; font-size: 15px; min-width: 14px; text-align: center; }


/* ==========================================================================
   NAV — persistent primary action + drawer for reading links.
   A hamburger hides everything equally, including the one item that should
   never be a tap further away. So the corridor entry stays in the bar at all
   widths; only the informational links go behind the menu.
   The corridor has no nav at all — ruled: no off-ramp mid-flow.
   ========================================================================== */
.btn-sm { padding: 9px 16px; font-size: 14px; }
.bar-mobile { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0 9px; background: transparent; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-btn:hover { border-color: var(--ink); }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(22,19,15,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 50;
  background: var(--page); border-left: 1px solid var(--line); padding: 18px 22px 26px;
  display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(22,19,15,.10); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.menu-close { background: none; border: none; font-size: 30px; line-height: 1; color: var(--grey-deep);
  cursor: pointer; padding: 0 4px; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: auto; }
.drawer-links a { font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 860px) { .bar-mobile { display: none; } }
@media (max-width: 859px) { .navlinks { display: none; } }


/* ==========================================================================
   HOMEPAGE PANELS — the corridor's surface model, applied to the page.
   White page → warm panel → white elements on it. Rhythm now comes from the
   gaps between panels rather than from full-bleed colour bands, which is what
   made the app view read cleanly and the page view read flat.
   ========================================================================== */
.panel-wrap { padding: 0 20px; }
.panel {
  max-width: 1080px; margin: 0 auto 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 52px 40px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
}
.panel-narrow { max-width: 800px; }
/* Elements on a warm panel are white — the third tone that gives depth */
.panel .card, .panel .opt, .panel details, .panel .hero-panel { background: var(--surface); }
.panel .cell.card { background: var(--surface); }
.open-sect { padding: 64px 0 56px; }

/* The hero's answer-path panel takes the same warm treatment, with white chips */
.hero-panel { background: var(--paper); border: 1px solid var(--line); }
.hero-panel .opt { background: var(--surface); }
.hero-panel .opt.on { background: var(--ink); }

@media (min-width: 860px) {
  .panel { min-height: 66vh; padding: 68px 56px; margin-bottom: 26px; }
  .open-sect { padding: 88px 0 72px; }
}
@media (max-width: 599px) {
  .panel-wrap { padding: 0 16px; }
  .panel { padding: 28px 18px; border-radius: 16px; margin-bottom: 16px; min-height: 0; }
  .open-sect { padding: 40px 0 36px; }
}


