/*
  PostQuantum IQ website stylesheet. One file, no build step, no imports.

  1. Tokens          colors, type, spacing
  2. Base            reset, text, links
  3. Layout          container, sections, header, footer
  4. Components      buttons, cards, steps, tags, callouts, tables, FAQ
  5. Home            hero, terminal, scorecard, fix columns
  6. Library         article pages, library index, timeline, glossary
  7. Form            early-access form
  8. Small screens and reduced motion
*/

/* 1. Tokens */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060b1c;
  --bg-alt: #0a1228;
  --panel: #0d1731;
  --panel-2: #111e3f;
  --line: #1e2c55;
  --line-strong: #2c3f78;
  --text: #dbe6ff;
  --text-soft: #a3b3d9;
  --text-dim: #7385b3;
  --white: #ffffff;
  --cyan: #00d9f5;
  --cyan-soft: #7fecfb;
  --blue: #008fff;
  --blue-deep: #004ec0;
  --ice: #c8faff;
  --amber: #ffb547;
  --green: #4be3a4;
  --rose: #ff7d92;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --max: 1160px;
  --header-h: 68px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--white); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ice); }
strong { color: var(--white); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.08em 0.35em; color: var(--ice); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--cyan); color: var(--ice); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-deep); color: var(--white); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #00131c; padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* 3. Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-intro { font-size: 1.12rem; color: var(--text-soft); max-width: 46em; margin-bottom: 2.2em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1.1em;
}
.eyebrow::before { content: "> "; color: var(--text-dim); }
.lead { font-size: 1.2rem; color: var(--text); }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 11, 28, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; white-space: nowrap; padding: 8px 12px; color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: 6px; }
.site-nav a:hover { color: var(--white); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"]::before { content: "> "; font-family: var(--mono); color: var(--cyan); }
.site-nav .nav-cta a { color: #00131c; background: var(--cyan); font-weight: 600; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--ice); color: #00131c; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-footer { border-top: 1px solid var(--line); background: #040817; padding: 56px 0 32px; font-size: 0.93rem; color: var(--text-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 26em; }
.footer-col h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: 1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-dim); font-size: 0.85rem; }
.footer-base p { margin: 0; }
.status-line { font-family: var(--mono); font-size: 0.8rem; color: var(--text-soft); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 4px rgba(75, 227, 164, 0.18); animation: status-pulse 2s ease-out infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 227, 164, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(75, 227, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 227, 164, 0); }
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* Page head (all inner pages) */
.page-head { padding: 72px 0 48px; background: radial-gradient(900px 380px at 80% -10%, rgba(0, 143, 255, 0.16), transparent 70%), var(--bg); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20em; }
.page-head .lead { color: var(--text-soft); max-width: 44em; }
.crumbs { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.4em; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }

/* 4. Components */
.button {
  display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--cyan); color: #00131c; border: 1px solid var(--cyan); cursor: pointer; font-family: var(--sans);
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--ice); color: #00131c; transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button-ghost:hover { background: var(--panel); color: var(--white); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }

.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards + h3 { margin-top: 44px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.card p:last-child { margin-bottom: 0; }
.card > p { color: var(--text-soft); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-kicker { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan) !important; margin-bottom: 0.9em; }
.card-link { font-family: var(--mono); font-size: 0.82rem; color: var(--cyan) !important; margin-top: 1em; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps > li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.steps > li::before { content: "0" counter(step); display: block; font-family: var(--mono); color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1em; }
.steps > li p { color: var(--text-soft); margin-bottom: 0; }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.7em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.15em; top: 0.5em; width: 0.7em; height: 0.38em; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.tag { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-soft); white-space: nowrap; vertical-align: middle; }
.tag-now { border-color: rgba(75, 227, 164, 0.5); color: var(--green); }
.tag-wait { border-color: rgba(255, 181, 71, 0.5); color: var(--amber); }
.tag-open { border-color: rgba(255, 125, 146, 0.5); color: var(--rose); }

.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan); background: var(--panel); border-radius: 8px; padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--amber); }

.sample-label { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); border: 1px dashed rgba(255, 181, 71, 0.55); border-radius: 6px; padding: 3px 10px; margin-bottom: 14px; }

table.data { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.table-wrap { overflow-x: auto; }

details.faq { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--white); list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--cyan); font-size: 1.2rem; }
details.faq[open] summary::after { content: "\2212"; }
details.faq > :not(summary) { padding: 0 20px; color: var(--text-soft); }
details.faq > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* 5. Home */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: center; padding: 72px 0 88px; background: radial-gradient(1000px 520px at 78% 30%, rgba(0, 78, 192, 0.28), transparent 70%), var(--bg); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 11, 28, 0.94) 0%, rgba(6, 11, 28, 0.72) 42%, rgba(6, 11, 28, 0) 72%); }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 0.15em; }
.hero-ask { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.9em; background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--text-soft); max-width: 34em; }
.hero-status { margin-top: 2em; }
.hero-pause { position: absolute; z-index: 3; right: 20px; bottom: 18px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); background: rgba(6, 11, 28, 0.6); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.hero-pause:hover { color: var(--white); border-color: var(--line-strong); }

.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.question { padding: 30px 28px; border-right: 1px solid var(--line); }
.question:last-child { border-right: 0; }
.question .q-num { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.1em; }
.question h3 { font-size: 1.4rem; margin: 0.5em 0 0.4em; }
.question p { color: var(--text-soft); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { border-top: 2px solid var(--cyan); padding-top: 18px; }
.fact-date { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.fact h3 { margin: 0.5em 0; }
.fact p { color: var(--text-soft); font-size: 0.97rem; }
.fact .source { font-family: var(--mono); font-size: 0.76rem; }

.fix-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fix-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top-width: 3px; }
.fix-now { border-top-color: var(--green); }
.fix-wait { border-top-color: var(--amber); }
.fix-open { border-top-color: var(--rose); }
.fix-col ul { padding-left: 1.1em; color: var(--text-soft); margin-bottom: 0; font-size: 0.97rem; }
.fix-col h3 { margin-top: 0.8em; }

.terminal { background: #030713; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); font-family: var(--mono); font-size: 0.86rem; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--text-dim); font-size: 0.74rem; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.terminal-bar span { margin-left: 8px; }
.terminal-body { padding: 22px 22px 24px; color: var(--text-soft); line-height: 1.75; }
.terminal-body p { margin: 0; }
.t-prompt { color: var(--cyan); }
.t-dim { color: var(--text-dim); }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.t-bad { color: var(--rose); }
.t-white { color: var(--white); }

.scorecard { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px; }
.score-top { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.score-number { font-size: 4.6rem; font-weight: 700; line-height: 0.9; color: var(--white); letter-spacing: -0.04em; }
.score-number small { font-size: 1.1rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0; }
.score-band { font-family: var(--mono); font-size: 0.85rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.1em; }
.score-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); margin: 0; }
.bars { display: grid; gap: 14px; margin: 0 0 22px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 52px; gap: 12px; align-items: center; font-size: 0.9rem; }
.bar-row span:last-child { font-family: var(--mono); color: var(--white); text-align: right; }
.bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; display: block; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.w-45 { width: 45.5%; } .w-91 { width: 90.9%; } .w-67 { width: 66.7%; }
.task-list { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.task-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; color: var(--text-soft); }
.task-list b { font-family: var(--mono); color: var(--green); font-weight: 500; white-space: nowrap; }


.cta-band { background: radial-gradient(700px 300px at 50% 0%, rgba(0, 217, 245, 0.14), transparent 70%), var(--bg-alt); text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { color: var(--text-soft); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* 6. Library */
.prose { max-width: 760px; }
.container.prose { max-width: var(--max); }
.container.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.article-wrap { padding-top: 8px; padding-bottom: 88px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-soft); margin-top: 1.6em; }
.article-meta b { color: var(--cyan); font-weight: 500; }
.asof { font-family: var(--mono); font-size: 0.8rem; color: var(--text-soft); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px 18px; margin: 0 0 2.2em; line-height: 1.6; }
.asof b { color: var(--amber); font-weight: 500; }
ol.sources { font-size: 0.93rem; color: var(--text-soft); padding-left: 1.4em; }
ol.sources li { margin-bottom: 0.7em; word-break: break-word; }
.article-foot { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--mono); font-size: 0.84rem; }
.article-foot a { text-decoration: none; }

.year-block { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.year-label { font-family: var(--mono); font-size: 1.5rem; color: var(--white); letter-spacing: -0.02em; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.entry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.entry { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.entry a.entry-title { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.12rem; display: block; margin: 0.35em 0; }
.entry a.entry-title:hover { color: var(--cyan); }
.entry p { color: var(--text-soft); margin: 0; font-size: 0.97rem; }
.entry-date { font-family: var(--mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.entry-pub { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); margin-top: 0.8em !important; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--line-strong); }
.tl-item { position: relative; padding: 0 0 30px 22px; margin: 0; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.tl-upcoming::before { border-color: var(--amber); border-style: dashed; }
.tl-date { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.tl-upcoming .tl-date { color: var(--amber); }
.tl-item h3 { margin: 0.35em 0; font-size: 1.1rem; }
.tl-item p { color: var(--text-soft); margin: 0 0 0.5em; font-size: 0.97rem; }
.tl-links { font-family: var(--mono); font-size: 0.76rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tl-year { font-family: var(--mono); color: var(--white); font-size: 1.4rem; margin: 10px 0 22px -26px; padding-left: 26px; position: relative; }

.glossary { margin: 0; }
.glossary dt { color: var(--white); font-weight: 600; font-size: 1.05rem; margin-top: 1.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.glossary dd { margin: 0.3em 0 0; color: var(--text-soft); }
.az { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 0.85rem; margin-bottom: 1.5em; }
.az a { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }

/* 7. Form */
.form-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: #050a19; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; font: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.field .req, .form-required-note .req { color: var(--cyan); text-decoration: none; cursor: help; font-weight: 700; }
.form-required-note { margin: 0 0 16px; }
.field-trap { position: absolute; left: -9999px; }
.field-check { min-height: 65px; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.85rem; color: var(--text-dim); margin: 14px 0 0; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-error { color: var(--rose); }
.form-status.is-success { color: var(--green); }
.form-status.is-info { color: var(--amber); }

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .code { font-family: var(--mono); color: var(--cyan); font-size: 0.9rem; }

/* 8. Small screens and reduced motion */
/* The menu has six links and a button: below this width it folds into the menu button, so that it never wraps. */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 12px 16px 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .site-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 980px) {
  .cards-3, .steps, .facts, .fix-cols, .questions { grid-template-columns: 1fr; }
  .question { border-right: 0; border-bottom: 1px solid var(--line); }
  .question:last-child { border-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 11, 28, 0.9) 0%, rgba(6, 11, 28, 0.78) 60%, rgba(6, 11, 28, 0.5) 100%); }
}
@media (max-width: 640px) {
  /* The bot check cannot be narrower than 300px, so the form card gives it room on a phone. */
  .form-card { margin: 0 -10px; padding: 22px 14px; }
  .field-check { overflow-x: clip; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .year-block { grid-template-columns: 1fr; gap: 10px; }
  .year-label { position: static; }
  .brand img { height: 28px; }
  .bar-row { grid-template-columns: 92px 1fr 44px; }
  .score-number { font-size: 3.6rem; }
  .hero { min-height: 0; padding: 56px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
