/* =============================================================================
   styles.css — What You Keep · Quiet Ledger brand (brand/BRAND-GUIDE.md)
   Warm paper, hairline rules, three type registers: system sans for UI,
   Instrument Serif for display moments, IBM Plex Mono for tabular money.
   Teal = the credit column (kept) · coral ONLY where money leaves.
   All fonts bundled locally (vendor/fonts) — no CDN, privacy promise intact.
============================================================================= */

/* Brand fonts (OFL) — display + numeric registers, self-hosted */
@font-face { font-family: "Instrument Serif"; src: url("vendor/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("vendor/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("vendor/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("vendor/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* surfaces — warm paper (never pure white pages) */
  --bg:        #faf7f2;   /* --paper */
  --bg-2:      #f3eee6;   /* --paper-deep: zebra bands, wells */
  --surface:   #ffffff;   /* --paper-raised: cards, inputs */
  --line:      #e3ded4;   /* --hairline */
  --line-2:    #d6cfc3;   /* deeper hairline for controls */

  /* ink */
  --ink:       #22302c;   /* headings, body emphasis */
  --ink-2:     #51625c;   /* --ink-soft: body, captions */
  --ink-3:     #8a9893;   /* --ink-faint: annotations, axis labels */

  /* brand: teal = the credit column (what you keep) */
  --primary:        #0c7468;  /* teal-700 — buttons, links, keep figures */
  --primary-strong: #084c44;  /* teal-900 — hover / deep panels */
  --primary-bright: #1d9485;  /* teal-500 — chart line, sweet spot */
  --primary-tint:   #edf6f3;  /* teal-050 — washes */
  --primary-tint-2: #d6ebe6;  /* teal-100 — tints, selected pills */
  --teal-950:       #062b26;  /* reverse-logo grounds, deep bands */

  /* coral = the debit column — ONLY where money leaves, never decoration */
  --cliff:        #cf5340;   /* coral-600 — flags, lose figures */
  --cliff-strong: #b03f2e;   /* coral-700 — small coral text (AA) */
  --cliff-tint:   rgba(207, 83, 64, .10);
  --cliff-tint-2: #fbeae5;   /* coral-050 — squeeze wash */

  /* radii — 8 controls · 12 cards · 20 panels (brand) */
  --r-xs: 8px; --r-sm: 8px; --r: 12px; --r-lg: 20px; --pill: 999px;

  /* elevation — ONE brand shadow; hairlines do the rest */
  --shadow-sm: 0 1px 2px rgba(34,48,44,.06);
  --shadow:    0 1px 2px rgba(34,48,44,.06), 0 8px 24px rgba(34,48,44,.08);
  --shadow-lg: 0 1px 2px rgba(34,48,44,.08), 0 12px 32px rgba(34,48,44,.12);

  /* type — three registers, never more */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fig:  "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-numeric: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* z-index scale */
  --z-header: 50; --z-backdrop: 100; --z-modal: 110;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);     /* ease-out-quart-ish */
  --ease-soft: cubic-bezier(.33,1,.68,1);
}

/* --------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background:
    radial-gradient(1200px 620px at 50% -260px, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f5f8f6 0%, var(--bg) 220px);
  background-attachment: fixed, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--primary-strong); }
strong { color: var(--ink); font-weight: 650; }
em { font-style: normal; }
button { font: inherit; cursor: pointer; }
canvas { display: block; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-modal);
  background: var(--surface); color: var(--primary); border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247,250,248,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--primary-tint); }
.bm-curve { stroke: var(--primary-bright); }
.bm-dot { fill: var(--primary); }
.brand-text { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-text-2 { color: var(--primary); }
.brand-img { height: 30px; display: block; }
.header-cta {
  font-size: .9rem; font-weight: 600; color: var(--primary);
  padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--primary-tint-2);
  background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s;
}
.header-cta:hover { background: var(--primary-tint); border-color: var(--primary-tint); }
@media (max-width: 460px) { .brand-text-2 { display: none; } }

/* ---------------------------------- hero --------------------------------- */
.hero { padding-top: clamp(34px, 7vw, 72px); padding-bottom: clamp(20px, 4vw, 34px); text-align: center; max-width: 880px; }
.eyebrow { color: var(--primary-strong); font-weight: 650; font-size: .82rem; letter-spacing: .02em;
  background: var(--primary-tint); display: inline-block; padding: 5px 12px; border-radius: var(--pill); }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 8vw, 4.25rem); letter-spacing: -0.01em; line-height: 1.08; margin-top: 18px; }
.hero-title em { color: var(--primary); white-space: nowrap; }
.hero-sub { font-size: clamp(1.02rem, 2.3vw, 1.22rem); color: var(--ink-2); max-width: 60ch; margin: 18px auto 0; text-wrap: pretty; }
.hero-trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: var(--ink-3); }
.i-lock { stroke: var(--primary); fill: none; }
.i-lock rect { fill: var(--primary-tint); }

/* ----------------------------- app two-column ---------------------------- */
.app { display: grid; gap: 18px; padding-top: 8px; padding-bottom: 40px; align-items: start; }
@media (min-width: 940px) {
  .app { grid-template-columns: 384px minmax(0, 1fr); gap: 26px; padding-top: 18px; }
  .inputs { position: sticky; top: 84px; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow-sm); }
.panel-title { font-size: 1.16rem; font-weight: 660; letter-spacing: -0.02em; }
.panel-sub { color: var(--ink-3); font-size: .92rem; margin-top: 4px; }

/* --------------------------------- inputs -------------------------------- */
.inputs { display: flex; flex-direction: column; gap: 18px; }
.inputs .panel-title { margin-bottom: 2px; }
.field { display: flex; flex-direction: column; gap: 9px; border: 0; padding: 0; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label, .field legend { font-weight: 560; color: var(--ink); font-size: .95rem; padding: 0; }
.field .muted { color: var(--ink-3); font-weight: 400; }
.field-val { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--primary); font-size: .98rem; }
.field-hint { font-size: .82rem; color: var(--ink-3); line-height: 1.4; }

/* segmented control */
.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg-2); border-radius: var(--pill); padding: 4px; gap: 2px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { text-align: center; padding: 9px 10px; border-radius: var(--pill); font-weight: 600;
  font-size: .92rem; color: var(--ink-3); cursor: pointer; transition: color .18s var(--ease); }
.segmented input:checked + label { color: var(--primary-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--primary-bright); outline-offset: 2px; }

/* money input */
.money-row { display: flex; align-items: center; background: var(--bg-2); border: 1.5px solid transparent;
  border-radius: var(--r-sm); padding: 0 14px; transition: border-color .18s, background .18s; }
.money-row:focus-within { background: var(--surface); border-color: var(--primary); }
.money-row.tight { padding: 0 12px; }
.money-prefix { color: var(--ink-3); font-weight: 600; }
.money-num { flex: 1; border: 0; background: transparent; padding: 12px 6px; font-size: 1.06rem; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; outline: none; width: 100%; }

/* range slider */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: var(--pill);
  background: linear-gradient(90deg, var(--primary) var(--fill,40%), var(--line-2) var(--fill,40%)); }
.slider::-moz-range-track { height: 6px; border-radius: var(--pill); background: var(--line-2); }
.slider::-moz-range-progress { height: 6px; border-radius: var(--pill); background: var(--primary); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--shadow-sm); transition: transform .12s var(--ease); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--shadow-sm); }
.slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--primary-bright); outline-offset: 2px; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: var(--pill); padding: 4px; }
.step-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--surface); color: var(--primary);
  font-size: 1.1rem; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .1s var(--ease); }
.step-btn:hover { transform: translateY(-1px); }
.step-btn:disabled { color: var(--ink-3); opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.step-val { min-width: 26px; text-align: center; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* age chips */
.ages { display: flex; flex-wrap: wrap; gap: 8px; }
.age-chip { display: flex; flex-direction: column; gap: 2px; }
.age-chip label { font-size: .72rem; color: var(--ink-3); font-weight: 500; padding-left: 2px; }
.age-chip input { width: 64px; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-xs);
  padding: 7px 8px; font-size: .95rem; font-weight: 600; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; outline: none; transition: border-color .15s; }
.age-chip input:focus { border-color: var(--primary); }

/* switch / toggle */
.toggle-field { gap: 12px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 46px; height: 28px; border-radius: var(--pill); background: var(--line-2);
  flex: 0 0 auto; transition: background .2s var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease); }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--primary-bright); outline-offset: 2px; }
.switch-label { font-weight: 560; color: var(--ink); font-size: .95rem; }

.care-detail { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg-2); border-radius: var(--r-sm); }
.care-detail[hidden] { display: none; }
.care-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.mini-field { display: flex; flex-direction: column; gap: 6px; }
.mini-field label { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.mini-field input[type=number] { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-xs);
  padding: 10px 12px; font-size: 1rem; font-weight: 600; color: var(--ink); outline: none; }
.mini-field input[type=number]:focus { border-color: var(--primary); }

.reset-row { margin-top: 2px; }
.link-btn { background: none; border: 0; color: var(--ink-3); font-size: .85rem; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--primary); }

/* --------------------------------- results ------------------------------- */
.results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* headline */
.headline { position: relative; overflow: hidden; padding-top: clamp(22px, 3vw, 30px); }
.headline::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-bright), var(--primary)); }
.headline-kicker { color: var(--ink-2); font-size: 1rem; }
.headline-kicker strong { color: var(--ink); }
.headline-figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hf-keep { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--ink-2); }
.hf-amount { font-family: var(--font-display); font-size: clamp(3.4rem, 11vw, 5.2rem); font-weight: 400; letter-spacing: -0.02em;
  line-height: .95; color: var(--primary); font-variant-numeric: tabular-nums; }
.headline-foot { margin-top: 12px; color: var(--ink-2); font-size: 1.02rem; }
.headline-foot strong { color: var(--cliff-strong); }
.cliff-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 14px;
  background: var(--cliff-tint-2); color: var(--cliff-strong); border-radius: var(--pill); font-weight: 650; font-size: .88rem; }
.cliff-pill[hidden] { display: none; }
.cliff-pill svg { stroke: var(--cliff-strong); fill: var(--cliff-strong); }
.hf-amount.flash { animation: flash .5s var(--ease); }
@keyframes flash { 0% { color: var(--primary-bright); } 100% { color: var(--primary); } }

/* chart */
.chart-card .chart-head { margin-bottom: 14px; }
.chart-holder { position: relative; height: 320px; }
@media (max-width: 520px) { .chart-holder { height: 280px; } }
.chart-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); text-align: center; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 2px 0; margin: 0; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); }
.lg span { width: 18px; height: 4px; border-radius: 2px; }
.lg-keep span { background: var(--primary-bright); }
.lg-net span { background: var(--ink-3); height: 0; border-top: 2px dashed var(--ink-3); }
.lg-cliff span { background: var(--cliff-tint); height: 14px; width: 14px; border-radius: 4px; border: 1px solid rgba(207,83,64,.35); }

/* readout */
.readout-text { color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; text-wrap: pretty; }
.readout-text b { color: var(--ink); }
.readout-text .hi { color: var(--cliff-strong); font-weight: 650; }
.breakdown { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.breakdown summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .92rem; padding: 8px 0; list-style: none; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s var(--ease); }
.breakdown[open] summary::before { transform: rotate(90deg); }
.bd-grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin: 8px 0 4px; }
.bd-row { display: contents; }
.bd-row dt { color: var(--ink-2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.bd-row dd { color: var(--ink); font-family: var(--font-numeric); font-size: .95rem; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bd-row.is-total dt, .bd-row.is-total dd { border-bottom: 0; padding-top: 11px; font-size: 1.05rem; }
.bd-row.is-total dd { color: var(--primary); font-weight: 700; }
.bd-row.is-neg dd { color: var(--cliff-strong); }
.bd-note { font-size: .78rem; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }

/* report / fake door */
.report { background:
    radial-gradient(120% 140% at 0% 0%, var(--primary-tint) 0%, rgba(228,243,240,0) 60%),
    var(--surface);
  border-color: var(--primary-tint-2); }
.report-title { font-size: 1.3rem; font-weight: 680; }
.report-sub { color: var(--ink-2); margin-top: 8px; max-width: 52ch; }
.report-sub em { color: var(--primary-strong); font-weight: 600; font-style: normal; }
.cta-big { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; border: 0; border-radius: var(--pill);
  background: var(--primary); color: #fff; font-weight: 680; font-size: 1.05rem; padding: 15px 16px 15px 24px;
  box-shadow: 0 12px 24px -10px rgba(12,116,104,.6); transition: transform .14s var(--ease), background .18s, box-shadow .18s; }
.cta-big:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(12,116,104,.66); }
.cta-big:active { transform: translateY(0); }
.cta-price { background: rgba(255,255,255,.2); border-radius: var(--pill); padding: 5px 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.report-foot { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.report-foot strong { color: var(--primary-strong); }

/* ------------------------------- explain --------------------------------- */
.explain { padding-bottom: 30px; }
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.how summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.how summary::-webkit-details-marker { display: none; }
.i-info { color: var(--primary); font-weight: 700; }
.how-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.how-body p { max-width: 78ch; }
.how-sources { font-size: .88rem; color: var(--ink-3); }
.how-sources a { font-weight: 600; }

/* -------------------------------- footer --------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding: 26px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.footer-disc { font-size: .82rem; color: var(--ink-3); max-width: 90ch; line-height: 1.55; }
.footer-meta { font-size: .85rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.footer-meta span { font-weight: 600; color: var(--ink-2); }

/* --------------------------------- modal --------------------------------- */
.capture { width: min(460px, 92vw); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0;
  box-shadow: var(--shadow-lg); color: var(--ink-2); background: var(--surface); }
.capture::backdrop { background: rgba(14,32,26,.5); backdrop-filter: blur(3px); }
.capture[open] { animation: modal-in .32s var(--ease); }
.capture[open]::backdrop { animation: fade-in .32s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.capture-form { position: relative; padding: clamp(24px, 5vw, 36px); }
.capture-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-2); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.capture-close:hover { background: var(--line-2); }
.capture-eyebrow { color: var(--primary-strong); background: var(--primary-tint); display: inline-block; font-weight: 650;
  font-size: .78rem; padding: 4px 11px; border-radius: var(--pill); letter-spacing: .02em; }
.capture-title { font-size: clamp(1.4rem, 4vw, 1.7rem); font-weight: 700; margin-top: 14px; }
.capture-sub { margin-top: 10px; color: var(--ink-2); }
.capture-sub strong { color: var(--primary-strong); }
.capture-label { display: block; margin-top: 20px; font-weight: 600; color: var(--ink); font-size: .9rem; }
.capture-input { width: 100%; margin-top: 8px; border: 1.5px solid var(--line-2); background: var(--bg-2); border-radius: var(--r-sm);
  padding: 14px 16px; font-size: 1.05rem; color: var(--ink); outline: none; transition: border-color .18s, background .18s; }
.capture-input:focus { border-color: var(--primary); background: var(--surface); }
.capture-input.invalid { border-color: var(--cliff); background: var(--cliff-tint-2); }
.capture-error { color: var(--cliff-strong); font-size: .85rem; margin-top: 8px; }
.capture-submit { width: 100%; justify-content: center; margin-top: 16px; }
.capture-fine { margin-top: 14px; font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.capture-done { text-align: center; padding: 8px 4px 4px; }
.done-tick { display: grid; place-items: center; margin-bottom: 8px; }
.done-tick svg circle { stroke: var(--primary-tint-2); }
.done-tick svg path { stroke: var(--primary); }
.done-tick svg { animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.cta-secondary { display: inline-block; margin-top: 18px; padding: 13px 22px; border-radius: var(--pill);
  border: 1.5px solid var(--primary); color: var(--primary); font-weight: 650; text-decoration: none; transition: background .18s; }
.cta-secondary:hover { background: var(--primary-tint); }

/* result reveal motion (content is visible by default; this only enhances) */
.results .panel { animation: rise .5s var(--ease) backwards; }
.results .panel:nth-child(1) { animation-delay: .02s; }
.results .panel:nth-child(2) { animation-delay: .08s; }
.results .panel:nth-child(3) { animation-delay: .14s; }
.results .panel:nth-child(4) { animation-delay: .20s; }
.results .panel:nth-child(5) { animation-delay: .26s; }
.results .panel:nth-child(6) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================================
   v2 ADDITIONS — one brand applied to the landing sections + the new panels,
   the coral "squeeze" headline, share card and print one-pager.
   Reuses the SAME tokens (teal --primary, coral --cliff, radii, shadows).
============================================================================= */

/* header right + rates badge */
.header-right { display: inline-flex; align-items: center; gap: 12px; }
.rates-badge { font-size: .76rem; font-weight: 600; color: var(--primary-strong);
  background: var(--primary-tint); border: 1px solid var(--primary-tint-2); padding: 5px 11px; border-radius: var(--pill); white-space: nowrap; }
@media (max-width: 640px) { .rates-badge { display: none; } }

/* hero CTA row + ghost button + byline */
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.cta-ghost { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: var(--pill);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .18s, color .18s; }
.cta-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }
.cta-arrow { margin-left: 8px; }
.hero-byline { margin-top: 20px; font-size: .92rem; color: var(--ink-3); font-style: italic; max-width: 52ch; margin-inline: auto; }

/* generic prose / section headings shared across the landing blocks */
.prose-section, .how-section, .faq-section { padding-block: clamp(30px, 6vw, 56px); max-width: 880px; }
.eyebrow-plain { background: none; padding: 0; color: var(--primary-strong); }
.section-title { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin-top: 10px; max-width: 24ch; }
.lead { font-size: clamp(1.02rem, 2.1vw, 1.16rem); color: var(--ink-2); margin-top: 16px; max-width: 70ch; text-wrap: pretty; }
.lead em { color: var(--primary-strong); font-style: normal; font-weight: 600; }

/* second earner — days slider */
.days-ticks { display: flex; justify-content: space-between; padding: 2px 6px 0; font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.inline-num { width: 38px; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent; color: var(--ink);
  font: inherit; font-weight: 650; text-align: center; padding: 0 2px; }
.inline-num:focus { outline: none; border-bottom-color: var(--primary); }
#second-dollar-hint b { color: var(--primary-strong); }
.tight-head { margin-bottom: 8px; }
.dot-sep { color: var(--line-2); margin: 0 6px; }

/* supplements toggle — quieter */
.supp-field { border-top: 1px solid var(--line); padding-top: 16px; }

/* ---- HEADLINE: calm teal by default, visceral coral in the squeeze ---- */
.headline { background:
    radial-gradient(120% 130% at 0% 0%, var(--primary-tint) 0%, rgba(228,243,240,0) 55%), var(--surface);
  transition: background .35s var(--ease), border-color .35s var(--ease); }
.headline.is-squeeze { background:
    radial-gradient(120% 130% at 0% 0%, var(--cliff-tint-2) 0%, rgba(252,235,231,0) 60%), var(--surface);
  border-color: #f0cfc7; }
.headline.is-squeeze::before { background: linear-gradient(90deg, var(--cliff), var(--cliff-strong)); }
.headline.is-squeeze .hf-amount { color: var(--cliff-strong); }
.headline.is-squeeze .hf-amount.flash { animation: flash-coral .5s var(--ease); }
@keyframes flash-coral { 0% { color: #e0735e; } 100% { color: var(--cliff-strong); } }
.headline-lose { margin-top: 8px; color: var(--ink-2); font-size: 1.02rem; }
.hl-amount { font-weight: 750; color: var(--cliff-strong); font-variant-numeric: tabular-nums; }
.headline-foot { margin-top: 12px; font-weight: 600; color: var(--ink); font-size: 1.04rem; line-height: 1.45; }
.headline.is-squeeze .headline-foot { color: var(--cliff-strong); }

/* ---- BEST DAYS TO WORK ---- */
.bestdays-head { margin-bottom: 14px; }
.who-earns-2 { font-weight: 600; }
.bestdays-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .bestdays-grid { grid-template-columns: 1fr; } }
.bd-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--bg);
  display: flex; flex-direction: column; gap: 3px; }
.bd-card.is-squeeze { background: var(--cliff-tint-2); border-color: #f0cfc7; }
.bd-day-label { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.bd-keep { font-family: var(--font-display); font-size: 1.85rem; font-weight: 400; letter-spacing: -0.01em; color: var(--primary); font-variant-numeric: tabular-nums; }
.bd-card.is-squeeze .bd-keep { color: var(--cliff-strong); }
.bd-rate { font-size: .82rem; color: var(--ink-3); }
.bd-rate b { color: var(--ink-2); }

/* ---- COMPARE SCENARIOS ---- */
.compare-head { margin-bottom: 14px; }
.compare-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600;
  font-size: .88rem; padding: 8px 15px; border-radius: var(--pill); cursor: pointer; transition: all .15s var(--ease); }
.pill:hover { border-color: var(--primary); color: var(--primary-strong); }
.pill.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.compare-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; overflow-x: auto; }
.cmp-col { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px; text-align: center; min-width: 92px; }
.cmp-col.is-squeeze { border-color: #f0cfc7; background: var(--cliff-tint-2); }
.cmp-days { font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.cmp-net { font-family: var(--font-numeric); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.cmp-week { font-size: .78rem; color: var(--ink-3); }
.cmp-keep { margin-top: 8px; font-size: .8rem; font-weight: 650; color: var(--primary-strong); }
.cmp-col.is-squeeze .cmp-keep { color: var(--cliff-strong); }

/* ---- ZONE CHIPS (sweet spot / dead zone / you) — the lead view ---- */
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.zchip { display: inline-flex; align-items: baseline; gap: 6px; font-size: .8rem; line-height: 1.25;
  padding: 6px 12px; border-radius: var(--pill); border: 1px solid; font-variant-numeric: tabular-nums; }
.zchip b { font-weight: 700; }
.z-sweet { color: var(--primary-strong); background: var(--primary-tint); border-color: var(--primary-tint-2); }
.z-dead { color: var(--cliff-strong); background: var(--cliff-tint-2); border-color: #f0cfc7; }
.z-you { font-weight: 650; }
.lg-sweet span { background: rgba(12,116,104,.16); height: 14px; width: 14px; border-radius: 4px; border: 1px solid rgba(12,116,104,.35); }

/* ---- INCOME SPLIT (same total, split differently) ---- */
.split-head { margin-bottom: 12px; }
.split-head .panel-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.split-head .panel-sub em { color: var(--primary-strong); font-style: normal; font-weight: 600; }
.split-chart-holder { position: relative; height: 235px; }
@media (max-width: 520px) { .split-chart-holder { height: 205px; } }
.split-try { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.split-readout { margin-top: 10px; color: var(--ink-2); font-size: .98rem; font-variant-numeric: tabular-nums; }
.split-readout b { color: var(--primary-strong); }
.split-readout .neg { color: var(--cliff-strong); font-weight: 650; }
.split-note { margin-top: 12px; font-size: .9rem; color: var(--ink-3); line-height: 1.55; font-variant-numeric: tabular-nums; }
.split-note b { color: var(--ink-2); }

/* ---- RESULT ACTIONS (share / print) ---- */
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--pill);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; transition: all .15s var(--ease); }
.action-btn:hover { border-color: var(--primary); color: var(--primary-strong); }
.action-btn svg { stroke: currentColor; fill: none; }
.action-btn svg circle { fill: currentColor; stroke: none; }

/* ---- INLINE OFFER CARD ($39) ---- */
.offer { background:
    radial-gradient(130% 150% at 100% 0%, var(--primary-tint) 0%, rgba(228,243,240,0) 55%), var(--surface);
  border-color: var(--primary-tint-2); }
.offer[hidden] { display: none; }
.offer-eyebrow { color: var(--primary-strong); font-weight: 650; font-size: .8rem; letter-spacing: .02em; }
.offer-title { font-size: 1.32rem; font-weight: 700; margin-top: 6px; }
.offer-sub { color: var(--ink-2); margin-top: 8px; max-width: 56ch; }
.offer-sub em { color: var(--primary-strong); font-style: normal; font-weight: 600; }
.offer-cta { margin-top: 18px; }
.offer-foot { margin-top: 12px; font-size: .85rem; color: var(--ink-3); max-width: 50ch; }
.optin { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.optin-label { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.optin-row { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.optin-input { flex: 1; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 11px 14px; font-size: .98rem; color: var(--ink); outline: none; }
.optin-input:focus { border-color: var(--primary); }
.optin-btn { border: 0; background: var(--bg-2); color: var(--ink); font-weight: 650; padding: 0 18px; border-radius: var(--r-sm); white-space: nowrap; transition: background .15s; }
.optin-btn:hover { background: var(--line-2); }
.optin-done { margin-top: 10px; color: var(--primary-strong); font-weight: 600; font-size: .9rem; }

/* ---- HOW IT WORKS steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-tint);
  color: var(--primary); font-family: var(--fig); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; font-weight: 660; }
.step p { color: var(--ink-2); font-size: .96rem; margin-top: 6px; }

/* ---- CREDIBILITY strip (deep teal) ---- */
.cred { background: linear-gradient(160deg, #084c44, #062b26); color: #d7e7e2; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); margin-block: clamp(20px, 4vw, 34px); }
.cred-eyebrow { color: var(--primary-bright); background: none; padding: 0; }
.cred-title { color: #fff; max-width: 26ch; }
.cred-title em { color: var(--primary-bright); font-style: normal; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 22px; }
@media (max-width: 760px) { .cred-grid { grid-template-columns: 1fr; } }
.cred-item { display: flex; gap: 12px; align-items: flex-start; }
.cred-mk { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); margin-top: .5rem; }
.cred-item p { color: #b9ccc6; font-size: .95rem; margin: 0; }
.cred-src { display: block; color: #fff; font-weight: 650; margin-bottom: 2px; }
.cred-item strong { color: #fff; }
.cred-foot { margin-top: 20px; font-size: .82rem; color: #7fa39a; }

/* ---- FAQ ---- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.faq-a em { font-style: italic; color: var(--ink); }

/* ---- shareable result card canvas: kept off-screen, not display:none (so it can render) ---- */
.share-canvas { position: fixed; left: -20000px; top: 0; width: 1200px; height: 630px; pointer-events: none; }

/* ---- print-only elements hidden on screen ---- */
.print-only { display: none; }

/* =============================================================================
   v4 BRAND ADDITIONS — hero art + 38c callout + founder byline, cred lead band,
   offer "what's inside" list (Quiet Ledger: paper, hairlines, serif moments).
============================================================================= */
.hero-art { margin: 32px auto 0; max-width: 880px; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-callout { margin: 28px auto 0; max-width: 580px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--r); padding: 16px 20px; text-align: left; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow-sm); }
.hc-big { font-family: var(--font-display); font-size: 2.7rem; line-height: 1; color: var(--primary); flex: 0 0 auto; }
.hc-text { font-size: .94rem; color: var(--ink-2); margin: 0; }
.hc-text b { color: var(--ink); }
.by-sig { font-style: normal; color: var(--ink-3); display: block; margin-top: 4px; }
.cred-lead { margin-top: 18px; font-size: 1.06rem; color: #d7e7e2; max-width: 62ch; line-height: 1.55; }
.cred-lead b { color: #fff; }
.inside { margin: 16px 0 2px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; max-width: 60ch; }
@media (max-width: 560px) { .inside { grid-template-columns: 1fr; } }
.inside li { font-size: .92rem; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.45; }
.inside li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.inside li b { color: var(--ink); }
.offer-value { margin-top: 14px; font-size: .92rem; color: var(--ink-2); max-width: 56ch; }
.offer-value b { color: var(--primary-strong); }

/* =============================== PRINT ===================================
   A clean one-page summary — the free taster of the paid report.
   Keep: headline, best-days, chart, read-out, disclaimer, URL.
========================================================================= */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; font-size: 11pt; }
  .site-header, .hero, .prose-section, .how-section, .faq-section, .explain,
  .site-footer, .inputs, .compare, .result-actions, .offer, .breakdown summary,
  .skip, .cred, .header-cta, .rates-badge, .split { display: none !important; }
  .zchip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main, .app, .results { display: block !important; }
  .app { grid-template-columns: 1fr !important; padding: 0 !important; }
  .panel { box-shadow: none !important; border: 1px solid #d4ded9 !important; break-inside: avoid; margin-bottom: 10px; page-break-inside: avoid; }
  .results .panel { animation: none !important; }
  .headline.is-squeeze, .bd-card.is-squeeze, .cmp-col.is-squeeze { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chart-holder { height: 280px !important; }
  .breakdown { border-top: 1px solid #e3eae7; }
  .breakdown[open] .bd-grid { display: grid !important; }
  .bd-grid { display: grid !important; }
  .print-only { display: block !important; }
  .print-head { font-size: 13pt; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--primary); color: var(--ink); }
  .print-foot { margin-top: 12px; padding-top: 8px; border-top: 1px solid #d4ded9; font-size: 8.5pt; color: #5a6760; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
