* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 "DM Sans", Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
.sitebar, footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(22px, calc((100vw - 1040px) / 2)); background: var(--dark); color: var(--paper); font: 500 12px/1.2 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.sitebar a, footer a { text-decoration: none; }
.sitebar span { color: var(--cyan); }
main { max-width: 1040px; margin: auto; padding: 64px 22px 88px; }
.hero { max-width: 850px; }
.eyebrow { margin: 0 0 12px; color: var(--red); font: 500 12px/1.4 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.06; }
h1 { max-width: 800px; font-size: clamp(42px, 8vw, 82px); font-weight: 600; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 600; letter-spacing: -.03em; }
h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.lead { max-width: 760px; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.45; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.facts span { border: 1px solid var(--ink); padding: 7px 10px; font: 500 12px "IBM Plex Mono", monospace; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--ink); border-radius: 2px; padding: 12px 18px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:focus-visible, input:focus-visible, summary:focus-visible, .text-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary { background: transparent; color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.scan-shell, .result { margin-top: 20px; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font: 500 12px "IBM Plex Mono", monospace; }
.progress { height: 5px; background: var(--paper-aging); }
.progress span { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .25s ease-out; }
.key-panel, .result { background: var(--paper); border-top: 5px solid var(--cyan); padding: clamp(24px, 5vw, 56px); }
.key-explanation { max-width: 680px; color: var(--ink); font-size: 18px; }
.question { border: 0; border-top: 1px solid var(--line); margin: 28px 0 0; padding: 24px 0 0; }
.question legend { max-width: 760px; padding: 0; font-weight: 600; font-size: 18px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: block; height: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; background: var(--paper); cursor: pointer; }
.option strong, .option small { display: block; }
.option small { margin-top: 3px; color: var(--muted); font: 400 12px/1.5 "IBM Plex Mono", monospace; }
.option input:checked + span { border-color: var(--ink); border-bottom: 4px solid var(--cyan); }
.option input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.actions, .result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.form-error { color: var(--red); font-weight: 600; }
.privacy-note { color: var(--muted); font: 400 13px/1.6 "IBM Plex Mono", monospace; }
.result { border-color: var(--red); }
.result-heading { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.score { width: 160px; border-left: 3px solid var(--red); padding-left: 18px; }
.score strong, .score span { display: block; }
.score strong { font-size: 44px; font-weight: 600; }
.score span { font: 500 11px "IBM Plex Mono", monospace; text-transform: uppercase; }
.key-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; }
.key-score { border: 1px solid var(--line); padding: 18px; }
.key-score header { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.bar { height: 6px; margin-top: 14px; background: var(--paper-aging); }
.bar span { display: block; height: 100%; background: var(--cyan); }
.weakest { margin: 34px 0; padding: 28px; background: var(--dark); color: var(--paper); }
.weakest .eyebrow, .weakest a { color: var(--cyan); }
.weakest a { font-weight: 600; }
.email-panel, .measure-panel { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.email-panel summary { font-weight: 600; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.form-grid label { font-weight: 600; }
.form-grid input { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 0; padding: 12px; background: var(--paper); }
.honey { position: absolute; left: -10000px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.consent input { margin-top: 5px; }
.status { min-height: 1.5em; font-weight: 600; }
.text-button { margin-top: 24px; border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
footer { justify-content: flex-start; }
footer span { margin-right: auto; }
@media (max-width: 680px) {
  main { padding-top: 42px; }
  .sitebar span { display: none; }
  .options, .key-scores, .form-grid, .result-heading { grid-template-columns: 1fr; }
  .result-heading { gap: 18px; }
  .option small { display: none; }
  .score { width: auto; }
  .actions, .result-actions { align-items: stretch; flex-direction: column-reverse; }
  .actions .button, .result-actions .button { width: 100%; }
}
@media print {
  .sitebar, .hero, .scan-shell, .result-actions, .email-panel, .measure-panel, .text-button, footer { display: none !important; }
  body, main { background: var(--paper); }
  main { padding: 0; }
  .result { display: block !important; margin: 0; border: 0; padding: 0; }
  .weakest { color: var(--ink); background: var(--paper-aging); }
  .weakest .eyebrow, .weakest a { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress span { transition: none; }
}
