:root {
  color-scheme: light;
  /* Kitchen-table chrome — same navy / warm paper / brass as the storefront */
  --page: #E8DCC8; --surface: #F7F0E4; --surface-2: #EDE3D0;
  --ink: #1A140C; --ink-2: #3D3428; --muted: #6E6254;
  --grid: #D4C4A8; --axis: #0A1C30; --border: #C4B498;
  --series: #0A1C30; --aqua: #1E7B34;
  --good: #1E7B34; --warning: #B54708; --serious: #9B1C1C; --critical: #9B1C1C;
  --gold: #C4A35A; --gold-soft: #F3E6C4; --cream: #FBF4E6; --navy-dark: #0A1C30;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse at 10% -6%, rgba(196,163,90,.14), transparent 42%),
    radial-gradient(ellipse at 94% 108%, rgba(10,28,48,.06), transparent 46%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(90,70,40,.016) 3px, rgba(90,70,40,.016) 4px);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  padding-bottom: 80px;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 660px; margin: 0 auto; padding: 0 20px; }
.check-chrome {
  background: var(--navy-dark);
  color: var(--cream);
  border-bottom: 1px solid rgba(196,163,90,.32);
  margin: 0 -20px 8px;
  padding: 0 20px;
}
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 12px; }
.topbar a.home {
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.topbar a.home .mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--gold); color: var(--navy-dark);
  display: grid; place-items: center; font-size: 11px;
}
.acct-link {
  font-size: 14px; font-weight: 700; color: var(--navy-dark); text-decoration: none;
  background: var(--gold); padding: 9px 14px; border-radius: 10px; min-height: 40px;
  display: inline-flex; align-items: center;
}
[hidden] { display: none !important; }
.acct-link:hover { background: #D4B56A; color: var(--navy-dark); }
header.page { padding: 22px 0 8px; text-align: center; }
.logo { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8A7028; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; }
h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(28px, 7vw, 40px); font-weight: 600; line-height: 1.12; margin: 8px 0 12px; letter-spacing: -0.02em; color: var(--navy-dark); }
h2.sect { font-family: "Fraunces", Georgia, serif; font-size: clamp(22px, 5.5vw, 28px); font-weight: 600; line-height: 1.2; margin: 8px 0 6px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 540px; margin: 0 auto; }
.trust { font-size: 14px; color: var(--muted); margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 20px 0; box-shadow: 0 1px 2px rgba(26,20,12,.06), 0 10px 28px rgba(26,20,12,.08); }
#magi-card {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, #FBF4E6, #F7F0E4);
  box-shadow: 0 2px 6px rgba(10,28,48,.08), 0 18px 40px rgba(10,28,48,.12);
}
h3.ct { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--navy-dark); }
.cs { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
label { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.line { font-weight: 400; color: var(--muted); }
input[type=number], input[type=email], input[type=text], select {
  width: 100%; background: #FFFaf3; border: 1.5px solid var(--border); border-radius: 10px;
  color: var(--ink); font-size: 18px; padding: 13px 15px; font-family: inherit; appearance: none; min-height: 48px;
}
input:focus, select:focus { outline: 3px solid rgba(10,28,48,.22); border-color: var(--series); }
.prefix { position: relative; }
.prefix span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.prefix input { padding-left: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.btn { display: block; width: 100%; background: var(--series); color: #F7F0E4; border: none; border-radius: 12px; font-size: 18px; font-weight: 700; font-family: inherit; padding: 16px; margin-top: 18px; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: #071422; }
.btn:active { transform: scale(0.99); }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--ink-2); font-weight: 600; }
.btn.ghost:hover { background: transparent; border-color: var(--series); color: var(--series); }
.btn.gold { background: var(--gold); color: var(--navy-dark); }
.btn.gold:hover { background: #D4B56A; }
.btn.small { width: auto; display: inline-block; padding: 9px 16px; font-size: 14px; margin-top: 0; }
.btn.oauth { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1.5px solid var(--border); margin-top: 12px; }
.btn.oauth.apple { background: #000; color: #fff; border-color: #000; }
.btn.oauth svg { flex: 0 0 auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--grid); }
.steps { display: flex; gap: 6px; margin: 18px 0 4px; }
.steps div { flex: 1; height: 4px; border-radius: 99px; background: var(--grid); }
.steps div.on { background: var(--gold); }
.steplabel { font-size: 13px; color: var(--muted); text-align: right; margin-bottom: 4px; }
.step { display: none; }
.step.active { display: block; }
.view { display: none; }
.view.active { display: block; }
.goal-btn { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; color: var(--ink); font-size: 17px; font-weight: 600; font-family: inherit; padding: 15px 16px; margin-top: 10px; cursor: pointer; }
.goal-btn:active { transform: scale(0.99); }
.goal-btn:hover { border-color: var(--series); }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); }
.plan-badge.pro { color: var(--good); border-color: rgba(30,123,52,0.4); }
.plan-badge.free { color: var(--muted); }
.sc-row, .client-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--grid); gap: 10px; }
.sc-row:last-child, .client-row:last-child { border-bottom: 0; }
.sc-row .cn, .client-row .cn { font-weight: 700; font-size: 16px; }
.sc-row .cd, .client-row .cd { font-size: 12px; color: var(--muted); }
.banner { border: 1.5px solid var(--series); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.banner b { color: var(--ink); }
.who { font-size: 13px; color: var(--muted); text-align: right; }
.who a { color: var(--ink-2); }
#results { display: none; }
.hero { text-align: center; padding: 26px 22px; }
.hero .k { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero .v { font-family: "Fraunces", Georgia, serif; font-size: clamp(52px, 15vw, 78px); font-weight: 600; line-height: 1; margin: 8px 0 4px; letter-spacing: -0.03em; }
.hero .d { color: var(--ink-2); font-size: 15px; max-width: 440px; margin: 0 auto; }
.flag { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); }
.tk { border: 1.5px solid var(--series); }
.tk .tk-row { padding: 12px 0; border-bottom: 1px solid var(--grid); }
.tk .tk-row:last-child { border-bottom: 0; }
.tk .tk-k { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--series); margin-bottom: 3px; }
.tk .tk-v { font-size: 16px; color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(28,42,58,.04); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 800; margin-top: 2px; }
.stat .d { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.radar { margin-top: 12px; }
.radar-track { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; }
.radar-seg { flex: 1; background: var(--surface-2); }
.radar-seg.hot { background: rgba(180,35,24,0.16); }
.radar-seg.you { background: rgba(22,57,94,0.22); outline: 2px solid var(--series); outline-offset: -2px; }
.radar-labels { display: flex; gap: 2px; margin-top: 6px; }
.radar-labels div { flex: 1; font-size: 11px; color: var(--muted); text-align: center; }
.cliff-warn { margin-top: 12px; font-size: 15px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
th { text-align: right; color: var(--muted); font-weight: 700; padding: 7px 4px; border-bottom: 1.5px solid var(--axis); }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--grid); color: var(--ink-2); font-variant-numeric: tabular-nums; }
tr.hl td { color: var(--ink); font-weight: 700; background: #FBF4E3; }
details.expl { margin-top: 10px; }
details.expl summary { font-size: 14px; color: var(--series); cursor: pointer; font-weight: 600; }
details.expl p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.lock { position: relative; }
.lock .lock-veil { position: absolute; inset: 0; backdrop-filter: blur(5px); background: rgba(247,240,228,0.72); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 2; text-align: center; padding: 20px; }
.lock .lock-veil .l1 { font-size: 16px; font-weight: 800; }
.lock .lock-veil .l2 { font-size: 14px; color: var(--ink-2); }
.lock .lock-veil button, .lock .lock-veil a.btn { width: auto; padding: 10px 22px; margin-top: 4px; }
.lever { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--grid); font-size: 15px; }
.lever:last-child { border-bottom: 0; }
.lever .lv { font-weight: 800; font-size: 17px; white-space: nowrap; }
.check { font-size: 15px; color: var(--ink-2); padding: 7px 0 7px 28px; position: relative; }
.check::before { content: "☐"; position: absolute; left: 2px; color: var(--series); font-weight: 800; }
.premium { border: 1.5px solid var(--gold); background: linear-gradient(180deg,#FBF4E6,#F3E6C4); }
.badge { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.vrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--grid); }
.vrow:last-of-type { border-bottom: 0; }
.vrow .n { font-size: 15px; font-weight: 700; }
.vrow .dsc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vrow .val { font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.vtotal { display: flex; justify-content: space-between; padding: 14px 0 4px; font-size: 16px; font-weight: 700; }
.vtotal .strike { text-decoration: line-through; color: var(--muted); }
.vprice { text-align: center; margin-top: 8px; }
.vprice .t { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.vprice .b { font-family: "Fraunces", Georgia, serif; font-size: 44px; font-weight: 600; }
.vprice .b small { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.vprice .p { font-size: 14px; color: var(--good); font-weight: 700; }
.billing { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.guarantee { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); }
.plan-sheet { background: #ffffff; color: #111; border-radius: 12px; padding: 34px 34px 24px; margin: 18px 0; border: 1px solid var(--border); }
.plan-sheet .ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #111; padding-bottom: 10px; margin-bottom: 20px; }
.plan-sheet .ph .pt { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.plan-sheet .ph .pd { font-size: 12px; color: #666; text-align: right; }
.psec { margin-bottom: 22px; page-break-inside: avoid; }
.psec .sk { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--series); margin-bottom: 2px; }
.psec .sv { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.psec .sv.bad { color: var(--critical); }
.psec .sv.good { color: var(--good); }
.psec .sw { font-size: 13.5px; color: #333; margin-top: 5px; max-width: 560px; }
.psec table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.psec th { text-align: right; color: #666; font-weight: 700; padding: 5px 4px; border-bottom: 1.5px solid #111; }
.psec th:first-child, .psec td:first-child { text-align: left; }
.psec td { text-align: right; padding: 5px 4px; border-bottom: 1px solid #ddd; color: #222; font-variant-numeric: tabular-nums; }
.pfoot { font-size: 10px; color: #888; border-top: 1px solid #ccc; padding-top: 8px; margin-top: 8px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .btn { margin-top: 0; }
footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--grid); font-size: 13px; color: var(--muted); }
footer p { margin-bottom: 10px; }
footer a { color: var(--muted); }
footer .links a { color: var(--muted); text-decoration: underline; }
.unc-flag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--warning); background: #FBEEE3; border: 1px solid #E4D3A6;
  border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.unc-note { font-size: 13px; color: var(--warning); margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); border: 0; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 15px; display: none; z-index: 10; }
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 100;
  padding: 12px 18px; background: var(--gold); color: var(--navy-dark); font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; overflow: visible; }
.check-optional {
  margin: 20px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 4px 16px 8px;
  background: rgba(247,240,228,.5);
}
.check-optional > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  padding: 14px 0;
  list-style: none;
}
.check-optional > summary::-webkit-details-marker { display: none; }
.check-optional > summary::after { content: " ▾"; font-weight: 400; }
.check-optional[open] > summary::after { content: " ▴"; }
body.after-card-open { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .card { border-color: #ccc; box-shadow: none; }
  .btn, .premium, .lock-veil, .steps, .topbar, .sample, #save-card, .no-print, header.top, .toast, footer.pp, #acct-card { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .plan-sheet { border-radius: 0; padding: 10px 6px; margin: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }


/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .card { padding: 20px; }
  h1 { font-size: clamp(26px, 8vw, 34px); }
  .row2, .row3 { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 20px; }
  .hero { padding: 20px 14px; }
  .hero .v { font-size: clamp(44px, 16vw, 64px); }
  table { font-size: 13px; }
  th, td { padding: 6px 3px; }
  .radar-labels div { font-size: 9.5px; }
  .lever { font-size: 14px; }
  .lever .lv { font-size: 15px; }
  .vrow .n { font-size: 14px; }
  .vrow .val { font-size: 14px; }
  .vprice .b { font-size: 38px; }
  .actions { grid-template-columns: 1fr; }
  input[type=number], input[type=email], input[type=text], select { font-size: 16px; padding: 12px 13px; }
}
