/* Milestone Money — design system
   Warm, calm and trustworthy for expecting parents. All text/background pairs meet WCAG AA
   (checked: ink on cream 13.9:1, muted on cream 6.0:1, white on terracotta 5.1:1). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --cream: #fbf6ef;
  --cream-2: #f5ece0;
  --white: #ffffff;
  --ink: #2a2438;
  --muted: #625b70;
  --line: #e9dfd2;
  --terracotta: #b5502f;
  --terracotta-dark: #96401f;
  --peach: #f6e3d3;
  --sage: #5e8c76;
  --sage-dark: #3f6b57;
  --sage-soft: #e6efe9;
  --plum: #4a3b5c;
  --gold: #e3a33b;
  --unpaid: #c2410c;
  --shadow-sm: 0 1px 2px rgba(42, 36, 56, 0.06), 0 2px 8px rgba(42, 36, 56, 0.05);
  --shadow: 0 2px 4px rgba(42, 36, 56, 0.04), 0 12px 32px rgba(42, 36, 56, 0.08);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 600; margin: 0 0 18px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 0.82rem/1 var(--sans); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sage-dark); background: var(--sage-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.serif-num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 246, 239, 0.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 600 1.22rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--terracotta); }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--cream-2); }
.site-nav a[aria-current="page"] { background: var(--white); box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
  .site-nav a.nav-secondary { display: none; }
  .site-nav a { padding: 10px 12px; font-size: 0.95rem; }
}
.site-footer { margin-top: 96px; background: var(--plum); color: #e9e4f0; padding: 56px 0 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 600 0.95rem/1.2 var(--sans); color: #fff; margin: 0 0 12px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name em { color: var(--peach); }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 20px; font-size: 0.88rem; color: #d6cfe0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 26px;
  border: 0; border-radius: 999px; background: var(--terracotta); color: #fff; font: 600 1.05rem/1 var(--sans);
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(181, 80, 47, 0.25); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(181, 80, 47, 0.3); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.light { background: #fff; color: var(--terracotta-dark); box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 36px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--peach), transparent 65%); z-index: -1; opacity: 0.9;
}
.hero::after {
  content: ""; position: absolute; left: -180px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--sage-soft), transparent 70%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 28px; } }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }
.trust strong { display: block; }
.trust span { color: var(--muted); font-size: 0.95rem; }

/* ---------- form card ---------- */
.card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.form-card { padding: 30px; border: 1px solid rgba(233, 223, 210, 0.7); }
@media (max-width: 560px) { .card, .form-card { padding: 22px 18px; border-radius: 22px; } }
.form-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .help { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }
input[type="date"], input[type="number"], input[type="text"], select {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 500 1.05rem/1.2 var(--sans); color: var(--ink);
  background: var(--cream); border: 2px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232a2438' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
input:hover, select:hover { border-color: #d9cbb9; }
input:focus, select:focus { outline: none; border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 4px rgba(181, 80, 47, 0.15); }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); }
.money input { padding-left: 34px; }
.pct { position: relative; }
.pct::after { content: "%"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; text-align: center; padding: 11px 8px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--gold); }

.extras { border-top: 1px dashed var(--line); margin-top: 6px; }
.extras details { border-bottom: 1px dashed var(--line); }
.extras summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 2px; font-weight: 600;
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary .tag { font-weight: 500; font-size: 0.82rem; color: var(--sage-dark); background: var(--sage-soft); border-radius: 999px; padding: 4px 10px; margin-left: 8px; }
.extras summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--terracotta); transition: transform .2s; }
.extras details[open] summary::after { transform: rotate(45deg); }
.extras .inner { padding: 0 2px 18px; }
.stage { background: var(--cream); border-radius: 14px; padding: 14px; margin-top: 10px; }
.stage-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--plum); }
.stage .row-3 { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 10px; }
@media (max-width: 520px) { .stage .row-3 { grid-template-columns: 1fr 1fr; } .stage .row-3 > :last-child { grid-column: 1 / -1; } }
.stage input, .stage select { min-height: 48px; background: #fff; font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--terracotta); }
.form-foot { margin-top: 22px; }
.form-foot .small { text-align: center; margin: 12px 0 0; }
.error { display: flex; gap: 10px; align-items: flex-start; background: #fdeee8; color: var(--terracotta-dark); border-radius: 14px; padding: 14px 16px; margin-top: 16px; font-weight: 500; }

/* ---------- results ---------- */
.results { padding: 24px 0 0; scroll-margin-top: 84px; }
.results > * + * { margin-top: 22px; }
.answer {
  position: relative; overflow: hidden; background: var(--plum); color: #fff; border-radius: var(--r-lg); padding: 36px 34px; box-shadow: var(--shadow);
}
.answer::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 227, 211, 0.22), transparent 70%); }
.answer h2 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 500; margin: 14px 0 6px; }
.answer .big { font: 600 clamp(2.8rem, 8vw, 4.4rem)/1 var(--serif); letter-spacing: -0.02em; margin: 6px 0 10px; color: #fff; }
.answer p { color: #e9e4f0; margin: 0; max-width: 640px; }
.answer .phases { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.answer .phase { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 10px 14px; }
.answer .phase b { display: block; font: 600 1.25rem/1.2 var(--serif); }
.answer .phase span { font-size: 0.85rem; color: #d9d2e4; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; border-radius: 999px; padding: 7px 14px; }
.pill.ok { background: #d8eadf; color: #24513d; }
.pill.no { background: #fde2d6; color: var(--terracotta-dark); }
.notice { background: #fff4ea; border-left: 5px solid var(--terracotta); border-radius: 14px; padding: 16px 18px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tile .k { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.tile .v { font: 600 2rem/1.15 var(--serif); margin-top: 6px; letter-spacing: -0.01em; }
.tile .d { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.tile.warm { background: var(--peach); box-shadow: none; }
.tile.warm .v { color: var(--terracotta-dark); }

.panel { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .panel { padding: 20px 16px; border-radius: 22px; } }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 1.5rem; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.86rem; color: var(--muted); margin: 6px 0 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--sans); fill: var(--muted); font-size: 12px; }
.chart .lbl { fill: var(--ink); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 50px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sage);
}
.timeline li.key::before { border-color: var(--terracotta); background: var(--peach); }
.timeline li.past::before { border-color: #cfc6bb; }
.timeline .when { font-weight: 700; }
.timeline .what { font-weight: 600; }
.timeline .why { color: var(--muted); font-size: 0.93rem; display: block; }
.timeline .badge { font-size: 0.75rem; font-weight: 700; color: var(--terracotta-dark); background: var(--peach); border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: 1px; }

.data-toggle { margin-top: 14px; }
.data-toggle summary { cursor: pointer; font-weight: 600; color: var(--terracotta-dark); padding: 6px 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; max-height: 520px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--cream-2); color: var(--ink); font-weight: 600; }
tbody tr:nth-child(even) { background: #fdfaf6; }
tr.unpaid td { color: var(--unpaid); }

.cta-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: var(--peach); border-radius: var(--r-lg); padding: 34px; }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; padding: 26px 22px; } }
.cta-card h2 { margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 20px; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.sheet-preview { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px; transform: rotate(1.5deg); }
.sheet-preview .bar-row { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 10px; }
.sheet-preview .bar-row span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--sage); }
.sheet-preview .bar-row span.low { background: var(--terracotta); }
.sheet-preview .mini { height: 10px; border-radius: 5px; background: var(--cream-2); margin: 8px 0; }
.sheet-preview .mini.w60 { width: 60%; } .sheet-preview .mini.w80 { width: 80%; } .sheet-preview .mini.w40 { width: 40%; }
.soon-tag { display: inline-block; background: #fff; color: var(--plum); font-weight: 600; border-radius: 999px; padding: 10px 18px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- content sections ---------- */
.section { padding: 72px 0 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.rate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .rate-cards { grid-template-columns: 1fr; } }
.rate-card { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); border-top: 6px solid var(--terracotta); }
.rate-card.sage { border-top-color: var(--sage); }
.rate-card.grey { border-top-color: #cfc6bb; }
.rate-card .weeks { font-weight: 700; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rate-card .amount { font: 600 1.7rem/1.2 var(--serif); margin: 8px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font: 700 1.1rem/1 var(--serif); margin-bottom: 14px; }
.faq details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 600 1.08rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--terracotta); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: #3b3449; }

/* tool cards on home */
.tools { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }
.tool { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.tool.featured { background: var(--plum); color: #fff; }
.tool.featured h3, .tool.featured p { color: #fff; }
.tool .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--peach); }
.tool.featured .icon { background: rgba(255, 255, 255, 0.14); }
.tool .go { margin-top: auto; font-weight: 700; color: var(--terracotta-dark); }
.tool.featured .go { color: var(--peach); }
.tool .later { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
a.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
a.tool { transition: transform .15s, box-shadow .15s; }
.band { background: var(--sage-soft); border-radius: var(--r-lg); padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.band h3 { font-size: 1.1rem; }
.band p { color: #3b3449; margin: 0; font-size: 0.97rem; }

/* article (guide) */
.article { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 92px; font-size: 0.93rem; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--terracotta); }
.prose h2 { margin-top: 48px; scroll-margin-top: 90px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout { background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); border-left: 6px solid var(--sage); margin: 18px 0; }
.callout.warm { border-left-color: var(--terracotta); }
.callout strong:first-child { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 4px; }
.sources { font-size: 0.88rem; color: var(--muted); }

@media print {
  .site-header, .site-footer, .hero-copy, .form-card, .cta-card, .no-print, .section { display: none !important; }
  body { background: #fff; }
  .answer { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
  .answer *, .answer .big { color: var(--ink) !important; }
}

/* Complete the shared design across entry, articles and result states. */
[hidden] { display: none !important; }
main { min-height: 55vh; }
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 12px; }
.home-intro h1 { font-size: clamp(2.8rem, 5.2vw, 4.5rem); line-height: 1.08; margin-bottom: 24px; }
.home-intro h1 em { color: var(--terracotta); font-weight: inherit; }
.home-description { max-width: 450px; color: var(--muted); margin: 0 0 26px; }
.home-proof { font-size: .85rem; margin-top: 16px; color: var(--muted); }
.home-pay { background: #fff; padding: 32px 34px 24px; border-radius: 80px 24px 24px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.home-pay-label { color: var(--sage-dark); font-size: .86rem; font-weight: 600; margin-bottom: 16px; }
.home-pay h2 { font-size: 2rem; }
.pay-stages { list-style: none; padding: 0; margin: 26px 0; }
.pay-stages li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.pay-stages li:last-child { padding-bottom: 0; }
.pay-stages li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 1px; background: var(--line); }
.stage-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 4px; }
.stage-dot.terra { background: var(--terracotta); } .stage-dot.sage { background: var(--sage); } .stage-dot.plum { background: var(--plum); }
.pay-stages li div > span { font-size: .8rem; color: var(--muted); }
.pay-stages strong { display: block; font: 600 1.22rem/1.4 var(--serif); }
.pay-stages p { margin: 3px 0 0; font-size: .9rem; color: var(--muted); }
.home-tools .tool { min-height: 260px; }
.tool h3 { font-size: 1.55rem; } .tool p { color: var(--muted); }
.document-page { padding-top: 48px; }
.document-page > h1 { max-width: 820px; }
.document-page > .lead { max-width: 740px; }
.document-page > .actions { margin: 24px 0 40px; }
.document-page .article { margin-top: 40px; }
.article .prose > h2:first-child { margin-top: 0; }
.guide-table { max-height: none; margin-bottom: 20px; }
.guide-table th, .guide-table td { white-space: normal; text-align: left; vertical-align: top; }
.guide-table td:first-child { width: 105px; }
.note { font-size: .9rem; color: var(--muted); }
.bar { min-height: 10px; border-radius: 4px; background: var(--sage); } .bar.low { background: var(--terracotta); }
.summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.result-chart { display: flex; align-items: end; gap: 8px; height: 220px; margin: 28px 0 8px; padding-top: 26px; border-bottom: 1px solid var(--line); }
.result-chart .month-bar { display: flex; flex: 1; height: 100%; min-width: 0; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.result-chart .column { background: var(--sage); width: 100%; max-width: 46px; border-radius: 5px 5px 0 0; min-height: 2px; }
.result-chart .column.low { background: var(--terracotta); }
.result-chart .month-caption { font-size: .67rem; color: var(--muted); writing-mode: vertical-rl; min-height: 55px; }
.result-actions { margin-top: 18px; }
input:invalid:not(:placeholder-shown) { box-shadow: none; }
@media(max-width: 900px) { .home-hero { gap: 32px; grid-template-columns: 1fr 1fr; } }
@media(max-width: 700px) { .home-hero { grid-template-columns: 1fr; padding-top: 32px; } .home-intro h1 { font-size: clamp(2.8rem, 9vw, 4rem); } .home-pay { padding: 28px; } .summary-grid { grid-template-columns: 1fr 1fr; } .section { padding-top: 48px; } }
@media(max-width: 560px) { .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 8px; } .site-nav { width: 100%; justify-content: space-between; } .site-nav a.nav-secondary { display: block; } .site-nav a { padding: 8px 10px; font-size: .88rem; } .site-footer { margin-top: 60px; } .answer { padding: 28px 22px; } .summary-grid { grid-template-columns: 1fr; } .extras summary { font-size: .94rem; } .extras summary .tag { display: none; } .document-page { padding-top: 28px; } .result-chart { gap: 4px; } }
@media print { .results[hidden] { display: none !important; } .result-actions { display: none; } .results { padding: 0; } .panel, .tile { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; } .table-wrap { max-height: none; overflow: visible; } }

.cta-card > div:only-child { grid-column: 1 / -1; max-width: 740px; }
.form-card { scroll-margin-top: 130px; }
@media(max-width:560px) { .results { scroll-margin-top: 130px; } }

.section.wrap, .results.wrap { padding-left: 22px; padding-right: 22px; }

@media(max-width:560px) { .site-nav a { white-space: nowrap; font-size: .82rem; padding: 8px 6px; } .hero-copy .trust { gap: 10px; margin-top: 18px; } .hero-copy .trust span { display: none; } .hero-copy .trust strong { font-size: .88rem; } .hero-copy .trust svg { width: 22px; height: 22px; } }
