:root {
  color-scheme: light;
  --ink: #1b2533;
  --muted: #627086;
  --line: #d8dee8;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --blue: #2f6fbd;
  --green: #2f8a65;
  --amber: #b66a13;
  --red: #b42318;
  --red-bg: #fff1f0;
  --shadow: 0 16px 40px rgba(38, 57, 77, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #edf3f8 0%, var(--bg) 38%, #eef5f1 100%); color: var(--ink); }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 44px; }
.narrow { width: min(860px, calc(100% - 32px)); }
.topbar, .intro, .grid, .explain-grid, .metrics-strip, .result-card, .section-grid, .card-grid, .article-list { display: grid; gap: 16px; }
.topbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 18px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: 0; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: 0; }
h3 { font-size: 16px; line-height: 1.25; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.7; }
.lede { max-width: 780px; font-size: 18px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; margin-bottom: 6px; }
.status-pill { border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 999px; padding: 8px 12px; color: var(--green); font-size: 14px; font-weight: 700; white-space: nowrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 24px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244, 247, 251, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); font-size: 18px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 750; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: #eaf1f8; }
.hero { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: center; gap: 28px; padding: 28px 0 18px; }
.hero h1 { max-width: 820px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { min-height: 42px; border-radius: 8px; border: 1px solid var(--line); padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-weight: 800; line-height: 1.2; }
.button.primary { color: #ffffff; background: var(--blue); border-color: var(--blue); }
.button.secondary { color: var(--ink); background: #ffffff; }
.hero-panel { display: grid; gap: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 22px; }
.hero-panel div { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.hero-panel div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel span { display: block; font-size: 28px; font-weight: 850; }
.hero-panel small { display: block; margin-top: 4px; color: var(--muted); }
.page-title { padding: 38px 0 22px; }
.page-title h1 { margin-bottom: 12px; }
.compact-title { padding-top: 24px; }
.section-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; margin-bottom: 18px; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fbfdff; }
.card-grid p { margin-top: 8px; }
.intro { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; margin-bottom: 18px; }
.metrics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7fafc; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.metrics-strip div, .result-card div { min-width: 0; }
.metrics-strip span, .result-card strong { display: block; color: var(--ink); font-size: 22px; font-weight: 850; overflow-wrap: anywhere; }
.metrics-strip small, .result-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: start; margin-bottom: 18px; }
.section-head { margin-bottom: 16px; }
.question-list { display: grid; gap: 14px; }
.question { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 0; }
.question:first-child { border-top: 0; padding-top: 0; }
.question legend { font-weight: 750; margin-bottom: 10px; }
.options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.option-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.options label { cursor: pointer; min-height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #fbfdff; }
.options input { width: 16px; height: 16px; accent-color: var(--blue); }
.options label:has(input:checked) { border-color: var(--blue); color: var(--ink); background: #eef5ff; }
.form-actions { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-note, .fine-print { font-size: 13px; }
.budget-form { display: grid; gap: 12px; }
.budget-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.input-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fbfdff; }
.input-wrap input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.input-wrap span { color: var(--muted); }
.result-card { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 18px; background: #f7fafc; }
.report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; }
.report-metrics p { font-size: 13px; margin-top: 4px; }
.explain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explain-grid article { border-left: 3px solid var(--blue); padding-left: 14px; }
.explain-grid article:nth-child(2) { border-color: var(--green); }
.explain-grid article:nth-child(3) { border-color: var(--amber); }
.explain-grid article:nth-child(4) { border-color: var(--green); }
.explain-grid article:nth-child(5) { border-color: var(--amber); }
.explain-grid article:nth-child(6) { border-color: var(--blue); }
.explain-grid p { margin-top: 8px; }
.disclaimer-banner { margin-top: 22px; border: 1px solid #f2b8b5; background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 14px 16px; line-height: 1.7; font-weight: 700; }
.feedback-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #ffffff; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.feedback-panel p { margin-top: 8px; }
.feedback-template { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.alert-panel { border-color: #f2b8b5; margin-bottom: 18px; }
.alert-panel .eyebrow, .alert-list li::before { color: var(--red); }
.score-panel { margin-bottom: 18px; }
.score-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.score-list li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--muted); line-height: 1.5; background: #fbfdff; }
.check-list, .ordered-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.check-list li::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--green); position: absolute; left: 0; top: .7em; }
.muted-list li::before { background: var(--amber); }
.ordered-list { counter-reset: item; }
.ordered-list li { counter-increment: item; color: var(--muted); line-height: 1.8; padding-left: 34px; position: relative; }
.ordered-list li::before { content: counter(item); position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 999px; background: #eaf1f8; color: var(--blue); display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.article-list { margin-bottom: 18px; }
.article p, .prose p { margin-top: 12px; }
.prose { font-size: 16px; }
.empty-state { margin-top: 22px; }
.empty-state .button { margin-top: 18px; }
.bottom-actions { margin: 18px 0 6px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 18px; color: var(--muted); }
.site-footer p { font-size: 14px; }
.site-footer a { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
@media (max-width: 880px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero, .topbar, .intro, .grid, .section-grid, .card-grid, .explain-grid, .report-metrics { grid-template-columns: 1fr; }
  .score-list { grid-template-columns: 1fr; }
  .options, .metrics-strip, .result-card { grid-template-columns: 1fr; }
  .status-pill { justify-self: start; }
  .panel { padding: 18px; }
  .hero { min-height: auto; padding-top: 34px; }
  .feedback-panel { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
