:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #586273;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --navy: #102a43;
  --sky: #dce8f8;
  --amber: #f4b942;
  --line: #cbd5e1;
  --danger: #a83a2a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }

.site-header, footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header { min-height: 88px; border-bottom: 1px solid rgba(18, 33, 30, .15); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.source-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero { max-width: 1160px; padding: clamp(48px, 7vw, 78px) 0 clamp(38px, 5vw, 54px); }
.eyebrow, .step-label, .result-kicker { margin: 0 0 10px; color: #3e5f8a; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 24px; }
h2 { overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.08; }
.lede { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.calculator-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; padding: clamp(24px, 5vw, 58px); border-radius: 28px; background: var(--navy); color: white; box-shadow: 0 28px 70px rgba(16, 42, 67, .18); }
.calculator-copy, form, .result { min-width: 0; }
.calculator-copy p { color: #d6e2f0; }
form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
fieldset { padding: 0; margin: 0 0 24px; border: 0; }
legend, .field-row > label { display: block; margin-bottom: 10px; font-weight: 800; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.choice input { margin-top: 5px; accent-color: var(--navy); }
.choice span, .choice small { display: block; }
.choice small, label small { color: var(--muted); font-weight: 500; }
.field-row { margin: 20px 0; }
.field-row input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.field-row input:focus, button:focus-visible, a:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
button { width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 10px; color: var(--navy); background: var(--amber); font-weight: 850; cursor: pointer; }
button:hover { filter: brightness(.96); }
.form-error { padding: 12px; border-left: 4px solid var(--danger); background: #ffebe7; color: #701c10; }
.result { grid-column: 2; padding: 28px; border-radius: 20px; background: var(--sky); color: var(--navy); }
.result.due-this-year { background: #fbe5b7; }
.result.overdue { background: #f8ddd8; }
.result.neutral { background: #e8edf5; }
.result .deadline { margin: 8px 0 18px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; }
.result ol { padding-left: 1.4rem; }
.text-link { display: inline-block; margin-top: 8px; font-weight: 800; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px 0 90px; }
.trust-grid article { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.4); }
.number { display: block; margin-bottom: 38px; color: #4c5f77; font-size: .8rem; font-weight: 800; }
.next-tools { padding: 72px 0; border-top: 1px solid var(--line); }
.tool-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-list div { padding: 22px; border-radius: 16px; background: var(--paper); }
.tool-list strong, .tool-list span { display: block; }
.tool-list span { margin-top: 8px; color: var(--muted); }
.source-box { max-width: 800px; margin: 18px 0 90px; padding: 30px; border-left: 6px solid var(--navy); background: var(--paper); }
.legal-main { max-width: 860px; padding: 64px 0 90px; }
.legal-main h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.legal-card { padding: clamp(22px, 5vw, 48px); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 55px rgba(16, 47, 42, .1); }
.legal-card h2 { margin-top: 2.2rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card address { font-style: normal; }
footer { padding: 26px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
[hidden] { display: none !important; }

@media (max-width: 960px) {
  .calculator-shell { grid-template-columns: 1fr; gap: 28px; padding: clamp(24px, 5vw, 36px); }
  .result { grid-column: 1; }
  .trust-grid article { min-height: 0; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .trust-grid { gap: 12px; padding-bottom: 64px; }
  .trust-grid article { padding: 22px; }
  .number { margin-bottom: 24px; }
  .next-tools { padding: 56px 0; }
  .tool-list { gap: 10px; }
  .tool-list div { padding: 18px; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 24px, 1160px); }
  .site-header { min-height: 72px; }
  .source-chip { display: none; }
  .hero { padding: 40px 0 36px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .calculator-shell { gap: 22px; padding: 16px; border-radius: 22px; }
  form { padding: 18px; }
  .result { padding: 22px; }
  .trust-grid, .tool-list { grid-template-columns: 1fr; }
  .trust-grid { gap: 12px; padding: 20px 0 56px; }
  .trust-grid article { padding: 22px; }
  .number { margin-bottom: 16px; }
  .next-tools { padding: 52px 0; }
  .source-box { margin-bottom: 64px; padding: 22px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
