/* Acer Outsyde
   Dark instrument panel. Amber is reserved for one meaning — "found it" —
   so it only ever appears on located bytes, prices and the call to action.
   The violet-to-cyan gradient is the scan itself: the rail, the step spine,
   the glow behind the hero. */

:root {
  --bg:        #05070e;
  --bg-2:      #080b16;
  --surface:   rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.085);
  --line-2:    rgba(255, 255, 255, 0.16);

  --text:      #eaeef7;
  --muted:     #98a2bd;
  --faint:     #6b7695;

  --amber:     #ffb224;
  --violet:    #6d6bff;
  --cyan:      #37d7ff;
  --good:      #3ddc97;
  --bad:       #ff7a6d;

  --scan: linear-gradient(180deg, var(--violet), var(--cyan));

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r:    14px;
  --r-sm: 10px;
  --gap:  clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.0938rem)/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.032em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.016em; line-height: 1.3; }
p  { margin: 0 0 1.1em; }
a  { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
sup { font-size: 0.65em; }
strong { font-weight: 600; }

code {
  font: 400 0.88em/1 var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.18em 0.4em;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 5.5rem; }

.skip {
  position: fixed; left: -9999px; z-index: 50;
  background: var(--amber); color: #100b00;
  padding: 0.7rem 1.1rem; font-weight: 600; border-radius: var(--r-sm);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .steps li:nth-child(2), .tier:nth-child(2) { transition-delay: 90ms; }
  .steps li:nth-child(3) { transition-delay: 180ms; }
  .steps li:nth-child(4) { transition-delay: 270ms; }
  .steps li:nth-child(5) { transition-delay: 360ms; }
  .tldr a:nth-child(2) { transition-delay: 70ms; }
  .tldr a:nth-child(3) { transition-delay: 140ms; }
  .tldr a:nth-child(4) { transition-delay: 210ms; }
}

/* ---------- the offset rail: scrolling the page walks the chip ---------- */

.rail {
  position: fixed; left: max(1rem, calc(50vw - 42rem)); top: 50%;
  transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 0.9rem;
  z-index: 4; pointer-events: none;
}
.rail-off, .rail-end {
  font: 400 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
}
.rail-off { color: var(--amber); }
.rail-end { color: var(--faint); }
.rail-track {
  width: 1px; height: min(42vh, 22rem);
  background: var(--line-2); position: relative; overflow: hidden;
}
.rail-fill {
  position: absolute; inset: 0 0 auto 0; height: 0;
  background: var(--scan);
  box-shadow: 0 0 12px 1px rgba(109, 107, 255, 0.55);
}
@media (min-width: 82rem) { .rail { display: flex; } }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 6;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4rem;
}
.mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.02em; text-decoration: none;
}
.mark:hover { text-decoration: none; }
.mark-chip {
  font: 500 0.6875rem/1 var(--mono);
  color: var(--amber); background: rgba(255, 178, 36, 0.1);
  border: 1px solid rgba(255, 178, 36, 0.3);
  border-radius: 6px; padding: 0.3rem 0.35rem;
}
.topbar nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.5rem); }
.topbar nav a {
  color: var(--muted); font-size: 0.9375rem; padding: 0.4rem 0;
  transition: color 0.2s;
}
.topbar nav a:hover { color: var(--text); text-decoration: none; }
/* `.topbar nav a` is 0-1-2 and `.nav-cta` was 0-1-0, so the nav's own
   `padding: 0.4rem 0` won and left this button with no horizontal padding at
   all — the amber box hugged the text. Match the nav's specificity instead of
   fighting it with !important, which is what the colour used to need. */
.topbar nav a.nav-cta {
  color: #100b00;
  background: var(--amber);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}
.topbar nav a.nav-cta:hover {
  color: #100b00;
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 46rem) {
  .topbar { position: static; }
  .topbar nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

/* clip, not hidden: the glows bleed 10% past each edge, but `hidden` would
   create a scroll container and kill the sticky order-form heading */
.hero, .order { overflow: clip; }
.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem); }
.glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60rem;
  background:
    radial-gradient(38rem 26rem at 22% 22%, rgba(109, 107, 255, 0.2), transparent 70%),
    radial-gradient(32rem 22rem at 78% 42%, rgba(55, 215, 255, 0.13), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.glow.bottom {
  inset: auto -10% -30% -10%; height: 44rem;
  background: radial-gradient(40rem 24rem at 50% 80%, rgba(109, 107, 255, 0.16), transparent 70%);
}
.hero-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 4.5rem); align-items: center;
}
.hero-in > * { min-width: 0; }

.kicker, .eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.25rem;
  font: 400 0.8125rem/1 var(--sans);
  color: var(--muted);
}
.kicker span, .eyebrow span {
  font: 400 0.75rem/1 var(--mono);
  color: var(--amber);
  padding-right: 0.7rem;
  border-right: 1px solid var(--line-2);
}
.kicker { margin-bottom: 1.5rem; }

.hero h1 { max-width: 24ch; }
.lede {
  margin: 1.6rem 0 0; max-width: 48ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted); line-height: 1.6;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 2.25rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #100b00;
  font: 600 0.9688rem/1 var(--sans);
  padding: 0.95rem 1.6rem; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 30px -12px rgba(255, 178, 36, 0.6);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 14px 36px -12px rgba(255, 178, 36, 0.7);
}
.btn:active { transform: none; }
.btn.ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--line-2); box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.wide { width: 100%; padding: 1.05rem 1.5rem; margin-top: 0.5rem; }
.btn:disabled {
  background: var(--surface); color: var(--faint);
  border-color: var(--line); box-shadow: none;
  cursor: not-allowed; filter: none; transform: none;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  margin: 2.25rem 0 0; padding: 0; list-style: none;
  font-size: 0.9063rem; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 0.55rem; }
.trust li::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 10px rgba(61, 220, 151, 0.7);
  flex: none;
}
.trust.vertical { flex-direction: column; gap: 0.7rem; margin-top: 2rem; }

/* ---------- the scan panel ---------- */

.scan { margin: 0; }
.scan-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  font: 400 0.75rem/1 var(--mono); color: var(--faint);
}
.scan-state { color: var(--amber); display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.scan-state::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: currentColor; flex: none;
}
.scan-state.locked { color: var(--good); }
@media (prefers-reduced-motion: no-preference) {
  .scan-state:not(.locked)::before { animation: pulse 1s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.25; } }
}
.scan-body {
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(109, 107, 255, 0.05), transparent 40%), #04060d;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.scan pre {
  margin: 0;
  font: 400 clamp(0.6875rem, 0.5rem + 0.55vw, 0.8125rem)/1.95 var(--mono);
  color: var(--faint);
}
.scan .off { color: #59648a; }
.scan .byte { color: #c4cde4; }
.scan .magic { color: var(--amber); }
.scan .ann { color: #8f8dff; }
.scan .ann.b { color: var(--amber); }
.scan .ann.q { color: #59648a; }
.scan figcaption {
  margin-top: 1.1rem; max-width: 62ch;
  font-size: 0.8438rem; line-height: 1.65; color: var(--faint);
}

/* ---------- bands ---------- */

.band { position: relative; padding: var(--gap) 0; }
.band + .band::before {
  content: ""; position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(74rem, 100%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent);
}
/* Also lands on .wrap elements. Same specificity (0-1-0), so this wins only by
   being declared later — which is the narrow reading measure we want here.
   If you move this rule above .wrap, the prose sections silently go full width. */
.prose { max-width: 66ch; }
.sub { color: var(--muted); max-width: 58ch; margin-top: 1.1rem; }

.answer {
  position: relative;
  margin: 1.75rem 0 1.5rem;
  padding-left: 1.25rem;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-weight: 500; letter-spacing: -0.018em; line-height: 1.45;
  color: var(--text);
}
.answer::before {
  content: ""; position: absolute; left: 0; top: 0.25em; bottom: 0.25em;
  width: 2px; border-radius: 2px; background: var(--scan);
}
h2 + .answer { margin-top: 2rem; }

/* ---------- comparison table ---------- */

.table-scroll {
  margin-top: 2.5rem; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 46rem; text-align: left; }
th, td { padding: 1.05rem 1.25rem; vertical-align: top; font-size: 0.9375rem; }
thead th {
  font: 500 0.75rem/1.3 var(--mono); color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody th { font-weight: 500; color: var(--text); }
tbody td { color: var(--muted); }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td.no  { color: var(--bad); }
tbody td.yes { color: var(--good); }
tr.mine {
  background: linear-gradient(90deg, rgba(255, 178, 36, 0.09), rgba(255, 178, 36, 0.02) 60%, transparent);
}
tr.mine th { color: var(--amber); font-weight: 600; }
tr.mine td { color: var(--text); }
tr.mine td.yes { color: var(--good); font-weight: 500; }

/* ---------- steps ---------- */

.steps {
  position: relative; margin: 3rem 0 0; padding: 0 0 0 4.25rem;
  list-style: none; counter-reset: s; max-width: 46rem;
}
.steps::before {
  content: ""; position: absolute; left: 1.375rem; top: 0.75rem; bottom: 4rem;
  width: 1px; background: linear-gradient(180deg, var(--violet), var(--cyan) 55%, transparent);
}
.steps li { position: relative; counter-increment: s; padding-bottom: 2.75rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: -4.25rem; top: -0.1rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font: 500 0.875rem/1 var(--mono); color: var(--muted);
}
.steps li:last-child::before {
  color: var(--amber); border-color: rgba(255, 178, 36, 0.4);
  background: rgba(255, 178, 36, 0.07);
}
.steps p { margin: 0.5rem 0 0; color: var(--muted); max-width: 58ch; }

/* ---------- panels ---------- */

.pair { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 52rem) { .pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem;
}
.panel h3 { margin-bottom: 0.9rem; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.6rem;
  font-size: 0.9375rem; color: var(--muted); line-height: 1.55;
}
.panel li:last-child { margin-bottom: 0; }
.panel li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line-2);
}

/* ---------- price ---------- */

.prices { display: grid; gap: 1rem; margin: 2.75rem 0 0; max-width: 52rem; }
@media (min-width: 44rem) { .prices { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.tier {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.75rem;
}
.tier.lit {
  border-color: rgba(255, 178, 36, 0.35);
  background:
    radial-gradient(24rem 12rem at 100% 0%, rgba(255, 178, 36, 0.11), transparent 70%),
    var(--surface);
}
.tier-name { margin: 0; font-size: 0.875rem; color: var(--muted); }
.tier-fig {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(2.75rem, 2rem + 2.5vw, 3.75rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
}
.tier.lit .tier-fig { color: var(--amber); }
.tier-note { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.price-note { margin: 1.75rem 0 0; max-width: 56ch; color: var(--muted); }

/* ---------- requirements ---------- */

.reqs { margin: 2.25rem 0 1.75rem; padding: 0; list-style: none; }
.reqs li {
  position: relative; padding: 0 0 1.25rem 1.5rem;
  color: var(--muted);
}
.reqs li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--scan);
}
.reqs strong { display: block; color: var(--text); margin-bottom: 0.2rem; }

/* ---------- faq ---------- */

.faq { margin-top: 2.5rem; display: grid; gap: 0.6rem; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, background 0.2s;
}
details:hover { border-color: var(--line-2); }
details[open] { background: var(--surface-2); border-color: var(--line-2); }
summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 1.35rem; cursor: pointer;
  font-weight: 500; letter-spacing: -0.012em;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none;
  font: 400 1.25rem/1 var(--mono); color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}
details[open] summary::after { transform: rotate(45deg); color: var(--amber); }
details > div { padding: 0 1.35rem 0.35rem; }
details p { margin: 0 0 1rem; color: var(--muted); max-width: 64ch; }

/* ---------- form ---------- */

.order { padding-bottom: calc(var(--gap) + 1rem); }
.order-in { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 60rem) {
  .order-in { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: start; }
  .order-head { position: sticky; top: 6rem; }
}

form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem);
}
.row { display: grid; gap: 1.1rem; }
@media (min-width: 34rem) { .row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.35rem; border: 0; padding: 0; min-width: 0; }
.row .field { margin-bottom: 0; }
.row + .field { margin-top: 1.35rem; }
label, legend {
  display: block; padding: 0; margin-bottom: 0.5rem;
  font-size: 0.9063rem; font-weight: 500; color: var(--text);
}
.opt { font-weight: 400; color: var(--faint); }
.hint { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--faint); line-height: 1.5; }
.hint.pull { margin: 0.6rem 0 1.35rem; }

input[type=text], input[type=email], textarea {
  width: 100%; color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
  font: 400 0.9688rem/1.45 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input.mono { font-family: var(--mono); font-size: 0.9063rem; }
textarea { resize: vertical; }
input::placeholder { color: var(--faint); }
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  outline: 0;
  border-color: var(--violet);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(109, 107, 255, 0.18);
}

input[type=file] {
  width: 100%; color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 0.7rem 0.8rem; font: 400 0.8438rem/1.4 var(--sans);
  cursor: pointer;
}
input[type=file]::file-selector-button {
  margin-right: 0.8rem; padding: 0.45rem 0.8rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 7px;
  font: 500 0.8438rem/1 var(--sans); cursor: pointer;
}
input[type=file]:hover { border-color: var(--violet); }

/* segmented choices, built on real radios */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg .choice {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0; padding: 0.6rem 0.9rem;
  font-size: 0.9063rem; font-weight: 400; color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.seg .choice:hover { color: var(--text); border-color: var(--faint); }
.seg .choice:has(input:checked) {
  color: var(--amber); border-color: rgba(255, 178, 36, 0.5);
  background: rgba(255, 178, 36, 0.09);
}
.seg input { accent-color: var(--amber); width: 0.95rem; height: 0.95rem; margin: 0; flex: none; }

.choice.box {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin: 0; padding: 0.95rem 1.1rem;
  font-size: 0.9063rem; font-weight: 400; color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  cursor: pointer; line-height: 1.5;
}
.choice.box:has(input:checked) { color: var(--text); border-color: rgba(61, 220, 151, 0.45); }
.choice.box input { accent-color: var(--good); width: 1.05rem; height: 1.05rem; margin: 0.15rem 0 0; flex: none; }
.choice.box label {
  display: inline; margin: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.choice.box a { color: var(--cyan); }
.checks { display: grid; gap: 0.6rem; }

.hp { position: absolute; left: -9999px; }

.notice {
  margin-bottom: 1.35rem; padding: 1.15rem 1.25rem;
  background: rgba(255, 178, 36, 0.06);
  border: 1px solid rgba(255, 178, 36, 0.3);
  border-radius: var(--r-sm);
  font-size: 0.9063rem; color: var(--muted);
}
.notice strong { color: var(--amber); }
.notice p { margin: 0 0 0.6em; }
.notice p:last-child { margin: 0; }

.form-msg { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.form-msg:empty { margin: 0; }
.form-msg.err { color: var(--bad); }
.form-msg.ok {
  color: var(--good); font-size: 1.0625rem;
  padding: 1.25rem 1.4rem;
  background: rgba(61, 220, 151, 0.07);
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: var(--r);
}
@media (min-width: 60rem) { .form-msg { grid-column: 2; } }

/* ---------- fine print + footer ---------- */

.band.fine { padding: calc(var(--gap) * 0.65) 0; }
/* This lands on an element that is also .wrap, and .prose.small (0-2-0) beats
   .wrap (0-1-0) — so `max-width: none` here would wipe out the page's own
   74rem limit and run the section edge to edge, underneath the fixed rail.
   Match .wrap instead of cancelling it. */
.prose.small { max-width: 74rem; font-size: 0.9063rem; color: var(--muted); }
.prose.small h2 { font-size: 1.125rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.prose.small .pair { margin: 0; }

.foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem; color: var(--muted);
}
.foot-in {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.foot .mark { margin: 0 0 0.4rem; }
.foot .muted { margin: 0; color: var(--faint); }
.disclaim { margin: 0; color: var(--faint); font-size: 0.8125rem; max-width: 70ch; line-height: 1.6; }

/* ---------- wide screens ---------- */

@media (min-width: 62rem) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* ---------- document pages: agreement, evidence ---------- */

.doc { padding: clamp(3rem, 6vw, 5rem) 0 var(--gap); }
.doc-in { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); margin-bottom: 1rem; }
.version {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 2.5rem; padding: 0.45rem 0.8rem;
  font: 400 0.8125rem/1 var(--mono); color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.doc h2 {
  margin: 3rem 0 1rem;
  font-size: 1.375rem; letter-spacing: -0.022em;
  scroll-margin-top: 6rem;
}
.doc h2 .n {
  display: inline-block; min-width: 1.9rem;
  font: 400 0.9375rem/1 var(--mono); color: var(--amber);
  vertical-align: 0.12em;
}
.doc h3 { margin: 2rem 0 0.75rem; color: var(--text); }
.doc p, .doc li { color: var(--muted); }
.doc > .doc-in > p:first-of-type { color: var(--text); }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.3rem; }
.doc li { margin-bottom: 0.5rem; line-height: 1.6; }
.doc ol.tight { counter-reset: f; list-style: none; padding-left: 0; }
.doc ol.tight li { counter-increment: f; position: relative; padding-left: 2.2rem; }
.doc ol.tight li::before {
  content: counter(f); position: absolute; left: 0; top: 0.1em;
  font: 400 0.8125rem/1.6 var(--mono); color: var(--faint);
}
.doc strong { color: var(--text); }

.callout {
  margin: 1.75rem 0; padding: 1.35rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-sm);
}
.callout p:last-child { margin: 0; }
.callout.good { border-left-color: var(--good); }
.callout.gap {
  border-left-color: var(--bad);
  background: rgba(255, 122, 109, 0.05);
  border-color: rgba(255, 122, 109, 0.25);
}
.callout h3 { margin: 0 0 0.6rem; }

.todo {
  font: 500 0.875rem/1.5 var(--mono);
  color: var(--amber); background: rgba(255, 178, 36, 0.1);
  border: 1px dashed rgba(255, 178, 36, 0.45); border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; font-size: 0.9063rem; color: var(--muted);
}
.back:hover { color: var(--text); text-decoration: none; }

.grade { display: grid; gap: 0.6rem; margin: 2rem 0; }
.grade-row {
  display: grid; gap: 0.35rem 1rem; align-items: start;
  padding: 1.15rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
@media (min-width: 40rem) { .grade-row { grid-template-columns: 6.75rem 1fr; } }
.grade-tag {
  font: 500 0.75rem/1.5 var(--mono);
  padding: 0.1rem 0.5rem; border-radius: 5px; justify-self: start;
}
.grade-tag.a { color: var(--good); background: rgba(61, 220, 151, 0.12); }
.grade-tag.b { color: var(--amber); background: rgba(255, 178, 36, 0.12); }
.grade-tag.c { color: var(--faint); background: var(--surface-2); }
.grade-row h3 { margin: 0 0 0.35rem; }
.grade-row p { margin: 0; font-size: 0.9375rem; }

.recap {
  margin: 0 0 1.35rem; padding: 1rem 1.2rem;
  background: rgba(255, 178, 36, 0.06);
  border: 1px solid rgba(255, 178, 36, 0.22);
  border-radius: var(--r-sm);
  font-size: 0.9063rem; color: var(--muted);
}
.recap p { margin: 0; }
.recap strong { color: var(--amber); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--text); }

/* a lone section marker needs no divider */
.eyebrow span:only-child { border-right: 0; padding-right: 0; }

/* ---------- reading progress ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 20; pointer-events: none;
}
.progress-fill {
  height: 100%; width: 0;
  background: var(--scan);
  box-shadow: 0 0 10px rgba(109, 107, 255, 0.65);
}

/* ---------- document hero ---------- */

.doc-hero {
  position: relative; overflow: clip;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.doc-hero .wrap { position: relative; }
.doc-hero h1 { max-width: 24ch; }
.doc-lede {
  margin: 1.5rem 0 0; max-width: 56ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--muted); line-height: 1.6;
}
.doc-hero .version { margin: 1.5rem 0 0; }

/* the four facts that matter, before the fifteen sections that qualify them */
.tldr { display: grid; gap: 0.75rem; margin: 2.5rem 0 0; }
@media (min-width: 40rem) { .tldr { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .tldr { grid-template-columns: repeat(4, 1fr); } }
.tldr a {
  display: block; padding: 1.15rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.tldr a:hover {
  border-color: var(--line-2); background: var(--surface-2);
  text-decoration: none; transform: translateY(-2px);
}
.tldr .sec {
  display: block; margin-bottom: 0.65rem;
  font: 400 0.6875rem/1 var(--mono); color: var(--faint);
}
.tldr strong { display: block; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.tldr p { margin: 0; font-size: 0.8438rem; color: var(--muted); line-height: 1.5; }
.tldr .good strong { color: var(--good); }
.tldr .warn strong { color: var(--amber); }

/* ---------- document body with a contents rail ---------- */

.doc-layout { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.doc-layout > * { min-width: 0; }

.toc {
  padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r);
}
.toc h2 {
  margin: 0 0 0.85rem;
  font: 400 0.6875rem/1 var(--mono); color: var(--faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
@media (max-width: 71.99rem) { .toc ol { grid-template-columns: 1fr 1fr; gap: 0.1rem 1rem; } }
.toc a {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.35rem 0.5rem; border-radius: 6px;
  font-size: 0.875rem; line-height: 1.4; color: var(--muted);
}
.toc a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.toc a .n { font: 400 0.75rem/1.5 var(--mono); color: var(--faint); flex: none; min-width: 1rem; }

@media (min-width: 72rem) {
  .doc-layout { grid-template-columns: minmax(0, 1fr) 15.5rem; }
  .doc-body { grid-column: 1; grid-row: 1; }
  .toc { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; }
  .toc ol {
    max-height: calc(100vh - 12rem); overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .toc ol::-webkit-scrollbar { width: 6px; }
  .toc ol::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
  .toc ol::-webkit-scrollbar-track { background: transparent; }
}

.doc-body { max-width: 66ch; }
.doc-body > h2:first-child { margin-top: 0; }

/* The document pages put .wrap and .doc on the same element so that the
   .doc descendant styles apply. .doc is defined later and its `padding: … 0 …`
   would wipe out .wrap's side gutters, so restore them explicitly — the
   vertical padding comes from .band on the section above. */
.wrap.doc {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* the requirements line under a hero's call to action needs air */
.doc-hero .hint { margin-top: 1.75rem; line-height: 1.7; }

/* ---------- ad slots ---------- */

.ad {
  display: block; max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0.85rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); text-align: center;
}
.ad-label {
  display: block; margin-bottom: 0.65rem;
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint);
}
/* reserve height so the page does not jump when a unit fills */
.ad ins { display: block; min-height: 100px; }

/* An unsupported generation is a price and a wait, not a refusal — so its
   notice reads as information rather than as the amber stop the AMD block uses. */
.notice.info {
  background: rgba(109, 107, 255, 0.07);
  border-color: rgba(109, 107, 255, 0.35);
}
.notice.info strong { color: #a9a7ff; }

/* The alternatives table carries five columns; without a floor on the first one
   the route names wrap to three lines and the rows lose their rhythm. */
#alternatives th:first-child { min-width: 9.5rem; }
#alternatives tbody th code { background: none; border: 0; padding: 0; font-size: 0.95em; }
