:root {
  --ink: #0f1c2b;
  --muted: #4a5968;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #d9ddd8;
  --blue: #235e7d;
  --blue-dark: #174661;
  --mint: #dff0e7;
  --rust: #a24628;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
button { font: inherit; }

.site-header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.brand span { color: var(--blue); }
.text-link { border: 0; background: transparent; color: var(--blue-dark); cursor: pointer; font-weight: 700; }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.45fr .75fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1.05; }
h1 { max-width: 710px; font-size: clamp(3.2rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.7rem; }
.lede { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: 1.2rem; }
.primary-button { padding: 14px 20px; border: 1px solid var(--blue-dark); border-radius: 999px; background: var(--blue); color: var(--white); cursor: pointer; font-weight: 750; box-shadow: 0 6px 0 var(--blue-dark); transition: transform .15s ease, box-shadow .15s ease; }
.primary-button:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--blue-dark); }
.fine-print { color: var(--muted); font-size: .85rem; }
.hero-panel { padding: 30px; border: 1px solid #b9d2c2; border-radius: 20px; background: var(--mint); transform: rotate(2deg); }
.hero-panel ul { padding: 0; margin: 0; list-style: none; }
.hero-panel li { padding: 11px 0; border-top: 1px solid #b9d2c2; font-weight: 700; }
.hero-panel li::before { content: '✓'; margin-right: 10px; color: var(--blue-dark); }

.scorecard-section { margin: 72px -20px; padding: 90px 20px; background: var(--white); }
.section-heading, #scorecard-form, .result-card { width: min(820px, 100%); margin-inline: auto; }
.section-heading > p:last-child { max-width: 600px; color: var(--muted); }
.question-card { margin: 24px 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; }
.question-card legend { width: 100%; padding: 0; font-size: 1.1rem; font-weight: 760; }
.question-card legend span { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-right: 12px; border-radius: 50%; background: var(--mint); color: var(--blue-dark); font-size: .75rem; }
.answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.answer-option { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; }
.answer-option:has(input:checked) { border-color: var(--blue); background: #edf5f8; color: var(--ink); }
.answer-option input { accent-color: var(--blue); margin-top: 4px; }
.form-error { padding: 12px 16px; border-left: 4px solid var(--rust); background: #fff0eb; color: #72250e; }
.result-card { margin-top: 34px; padding: 32px; border-radius: 18px; background: var(--ink); color: var(--white); }
.result-card[data-band="critical"] { background: #6a2617; }
.result-card[data-band="needs-attention"] { background: #805717; }
.result-card[data-band="foundation"] { background: #174e3a; }
.result-card .eyebrow { color: #bde7d0; }
.result-score { margin: 8px 0; font-size: 4.5rem; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.result-score small { margin-left: 8px; font-size: 1rem; letter-spacing: normal; }
.result-note { margin-top: 20px; color: #d8e2e5; font-size: .85rem; }

.next-steps { padding: 90px 0 110px; }
.next-steps > p:last-child { max-width: 630px; color: var(--muted); font-size: 1.1rem; }
footer { display: flex; gap: 24px; justify-content: space-between; padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .hero { min-height: auto; padding: 70px 0; grid-template-columns: 1fr; gap: 38px; }
  .hero-panel { transform: none; }
  .scorecard-section { margin-inline: -14px; padding-block: 64px; }
  .answer-grid { grid-template-columns: 1fr; }
  .question-card { padding: 20px; }
  footer { flex-direction: column; gap: 8px; }
}
