:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #526071;
  --paper: #fffdf8;
  --panel: #ffffff;
  --brand: #9b2c4a;
  --brand-dark: #732039;
  --accent: #f2c14e;
  --line: #d9dde3;
  --success: #176b45;
  --error: #a0212f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1.25rem, calc((100% - 72rem) / 2)); background: var(--ink); color: white; }
.brand { color: white; font-weight: 800; text-decoration: none; font-size: 1.2rem; }
.experiment { padding: .25rem .6rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .82rem; font-weight: 700; }
main { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 4rem; }
.landing { min-height: 75vh; display: grid; align-content: center; max-width: 52rem; }
.hero { padding: 4rem 0 2.5rem; max-width: 52rem; }
.hero.compact { padding-bottom: 1.5rem; }
h1 { font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; margin: .25rem 0 1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; margin-top: 0; }
h3 { line-height: 1.25; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .09em; font-weight: 800; font-size: .8rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.choice { display: grid; gap: .5rem; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 1rem; color: var(--ink); text-decoration: none; background: white; }
.choice:hover { border-color: var(--brand); transform: translateY(-2px); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); margin: 1rem 0 2rem; box-shadow: 0 10px 30px rgba(20, 33, 61, .06); }
.narrow { max-width: 44rem; }
form { display: grid; gap: .75rem; }
label, legend { font-weight: 700; }
input, select { width: 100%; min-height: 3rem; padding: .65rem .75rem; border: 1px solid #8993a1; border-radius: .45rem; background: white; color: var(--ink); font: inherit; }
fieldset { border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; display: grid; gap: .6rem; }
.radio { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.radio input { width: 1.2rem; min-height: 1.2rem; }
button, .button { width: fit-content; border: 0; border-radius: .45rem; padding: .72rem 1rem; background: var(--brand); color: white; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--brand-dark); }
button.secondary { background: white; color: var(--brand-dark); border: 2px solid var(--brand); }
button.quiet { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand); }
.button-row, .door-grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.door-grid button { flex: 1 1 16rem; }
.status, .result { min-height: 1.6rem; font-weight: 700; }
[data-kind="error"] { color: var(--error); }
[data-kind="success"], [data-kind="may-be-eligible"] { color: var(--success); }
.hint, .fine-print, .source-note { color: var(--muted); font-size: .92rem; }
.source-note { border-top: 1px solid var(--line); padding-top: 1rem; }
.notice, .contact-box, .saved-box, .code-box { margin-top: 1rem; padding: 1rem; background: #f7f2e7; border-left: 5px solid var(--accent); }
.facts { padding-left: 1.25rem; }
.facts li + li { margin-top: .55rem; }
.award-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.award-list > li { border-top: 1px solid var(--line); padding-top: 1.25rem; break-inside: avoid; }
.award-list h2, .award-list h3 { margin-bottom: .4rem; }
.finish { text-align: center; padding: 0 0 2rem; }
footer { padding: 2rem max(1rem, calc((100% - 72rem) / 2)); border-top: 1px solid var(--line); }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .panel { border-radius: .65rem; }
  button, .button { width: 100%; text-align: center; }
}

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .hero .eyebrow, .filters, .no-print, footer { display: none !important; }
  main { width: 100%; padding: 0; }
  .hero { padding: 0 0 1rem; }
  h1 { font-size: 22pt; }
  .panel { border: 0; box-shadow: none; padding: 0; }
  a { color: black; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
