/* ===========================================================================
   sport-streaming.se — "Sändning"
   Broadcast graphics: bone paper, ink black, one signal red.
   Implements references/design.md. Read that file before changing anything here.

   Two rules carry the whole identity and are easy to erode by accident:
     1. Structure is 2px ink borders and solid ink bars, never hairlines.
     2. --radius is 0. Everywhere.
   =========================================================================== */

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

:root {
  --paper:      #F2EFE9;
  --paper-2:    #E6E1D6;
  --ink:        #101014;
  --ink-2:      #23232B;
  --ink-60:     #55555E;
  --hair:       #CFC9BB;
  --signal:     #E82C0C;
  --signal-ink: #C21F00;
  --bone:       #F7F5F0;

  --max: 1240px;
  --gutter: 24px;
  --border: 2px;

  /* Bahnschrift leads because it actually ships with Windows 10 and 11 — it is the
     DIN-derived variable face with a real width axis, so `font-stretch: condensed`
     narrows it properly. "Arial Narrow" is deliberately NOT first: it installs with
     Office rather than with Windows, so on a clean Windows 11 machine it silently
     falls through to plain Arial and the condensed identity disappears. Verified
     absent on the build machine. Do not reorder this list without checking
     C:\\Windows\\Fonts on a machine without Office. */
  --font-display: "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed",
                  "Liberation Sans Narrow", "Arial Narrow", "Franklin Gothic Medium",
                  Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
               "Roboto Mono", Consolas, monospace;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bone);
  padding: 12px 18px; font-family: var(--font-mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { left: 0; }

main:focus { outline: none; }

/* ── Type scale ─────────────────────────────────────────────────────────── */

/* font-stretch is what makes the width axis engage on Bahnschrift, and what selects
   the right family member on Avenir Next / Roboto Condensed. Without it the headings
   render at normal width and the design loses its defining characteristic. It is
   repeated on every rule that uses --font-display, deliberately: font-stretch does
   not travel with the font-family custom property. */
h1, h2 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
  /* Swedish compounds are long and unbreakable, and a display face at 2.6rem on a
     360px screen has roughly 18 characters to play with. "Kommentatorsspråk" is 17
     and overflowed the column by 26px — as *inline* overflow, so the element's own
     rect stayed inside the viewport and only the document scrollWidth moved. That is
     invisible to a rect-based overflow check and was found by bisection.
     hyphens breaks it properly where the engine has sv patterns; overflow-wrap is
     the guarantee that it breaks at all. Keep both. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .92;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}

p { margin: 0 0 1.1em; }

strong, b { font-weight: 700; }

/* ── The signature: the lower third ─────────────────────────────────────────
   A solid ink block with mono uppercase text, led by a signal square. It is the
   only element on the site permitted to shout, which is why nothing else does. */

.lt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 7px 13px 7px 11px;
}
.lt::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--signal);
  flex: none;
}

.section-head { margin: 0 0 24px; }
.section-head .lt { margin-bottom: 12px; }

/* An h2 inside .col-main gets its own spacing; the section-head wrapper handles
   the rest. Kept as two separate rules so they cannot cancel each other out. */
.col-main > .section-head { margin-top: 56px; }
.col-main > .section-head:first-of-type { margin-top: 40px; }

/* ── Ticker ─────────────────────────────────────────────────────────────────
   Static by design: no marquee, no JS, no animation. A scrolling strip is
   unreadable at 360px and would be a second loud element. */

.ticker {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.ticker .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.ticker .sep { color: var(--ink-60); }
.ticker .hl { color: var(--bone); border-bottom: 2px solid var(--signal); }
.tick-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--signal); color: var(--bone);
  padding: 3px 9px; font-weight: 700; letter-spacing: .14em;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--border) solid var(--ink);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header { background: var(--paper); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-size: 1.4rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand b { font-weight: 700; color: var(--ink-60); }
.brand .mark { flex: none; }

.desktop-nav { margin-left: auto; }
.desktop-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.desktop-nav li { white-space: nowrap; } /* load-bearing — see design.md, Breakpoints */
.desktop-nav a {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .12s linear, color .12s linear;
}
.desktop-nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }

/* ── Buttons ─────────────────────────────────────────────────────────────
   Order matters: .btn declares the base, the modifiers override it. Both are
   single-class selectors, so the later rule wins. Do not raise the specificity
   of .btn or the modifiers stop working. */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bone);
  border: var(--border) solid var(--ink);
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--bone); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover { background: var(--signal); border-color: var(--signal); color: var(--bone); }

.btn-sm { padding: 10px 15px; font-size: .72rem; flex: none; }

/* ── Mobile nav ─────────────────────────────────────────────────────────── */

.mobile-nav { display: none; margin-left: auto; position: static; }
.mobile-nav summary {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: var(--border) solid var(--ink);
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::marker { content: ""; }

.bars { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--ink);
  transition: transform .12s linear, top .12s linear;
}
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.mobile-nav[open] .bars { background: transparent; }
.mobile-nav[open] .bars::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] .bars::after { top: 0; transform: rotate(-45deg); }

/* Closed state made explicit. Relying on the UA's closed-<details> behaviour leaves
   the panel in layout as a skipped subtree whose descendants still report boxes and
   still contribute scrollable overflow — that produced a phantom 26px horizontal
   overflow at 360px that `npm run audit` caught and that was invisible on screen.
   `display: none` removes the whole class of artifact. The links stay in the HTML
   source for crawlers either way. */
.mobile-nav:not([open]) .mobile-panel { display: none; }

.mobile-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: var(--border) solid var(--ink);
  padding: 10px var(--gutter) 22px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.mobile-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-panel li + li { border-top: 2px solid var(--paper-2); }
.mobile-panel a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
}
.mobile-panel .btn { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

/* No border-bottom: the score strip's own 2px frame terminates the hero. Adding
   one here produces two parallel rules with a gap between them. */
.hero { padding: 64px 0 56px; }
.hero .lt { margin-bottom: 22px; }
.hero h1 { max-width: 15ch; }
.hero .rule { width: 190px; height: 6px; background: var(--signal); margin: 0 0 26px; }
.hero .lead {
  max-width: 58ch;
  font-size: 1.14rem;
  color: var(--ink-60);
  margin-bottom: 30px;
}
.hero .lead b { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

/* ── Score strip ────────────────────────────────────────────────────────── */

.scorestrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: var(--border) solid var(--ink);
  border-right: 0;
  margin-bottom: 0;
}
.scorestrip > div {
  border-right: var(--border) solid var(--ink);
  padding: 18px 16px;
  min-width: 0;
}
.scorestrip .fig {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.scorestrip .lab {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--ink-60);
}

/* ── Generic sections ───────────────────────────────────────────────────── */

/* Every band carries its own top rule, so the sequence stays uniform whether it
   follows the hero, another band or the CTA. Do not switch this to `.band + .band`
   — the first band after the hero then loses its rule. */
.band { padding: 72px 0; border-top: var(--border) solid var(--ink); }

.grid { display: grid; gap: 0; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }

/* Cards share one ink frame rather than each carrying their own, so the grid
   reads as a single broadcast panel instead of three floating boxes. */
.grid.g3, .grid.g2 {
  border: var(--border) solid var(--ink);
}
.grid > .card { border-right: var(--border) solid var(--ink); }
.grid.g3 > .card:nth-child(3n), .grid.g2 > .card:nth-child(2n) { border-right: 0; }
.grid.g3 > .card:nth-child(n+4), .grid.g2 > .card:nth-child(n+3) { border-top: var(--border) solid var(--ink); }

.card {
  display: block;
  padding: 26px 24px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .12s linear;
}
a.card:hover { background: var(--paper-2); color: var(--ink); }
.card p { margin: 0; color: var(--ink-60); font-size: .95rem; }
.card .cn {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: 12px;
}

/* ── Chips ──────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 16px;
  border: var(--border) solid var(--ink);
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  text-decoration: none;
  transition: background-color .12s linear, color .12s linear;
}
.chip:hover { background: var(--ink); color: var(--bone); }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: var(--border) solid var(--ink);
}
.plan {
  padding: 24px 20px;
  border-right: var(--border) solid var(--ink);
  display: flex; flex-direction: column;
  min-width: 0;
}
.plan:last-child { border-right: 0; }
.plan h3 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0;
  margin: 0 0 4px;
}
.plan .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  letter-spacing: -.03em;
  margin: 8px 0 2px;
}
.plan .price span { font-size: 1.1rem; letter-spacing: 0; }
.plan .per {
  font-family: var(--font-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-60);
  margin: 0 0 16px;
}
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: .9rem; }
.plan li { padding: 7px 0; border-top: 2px solid var(--paper-2); }
.plan li:first-child { border-top: 0; }
.plan .btn { margin-top: auto; }

.plan .tag {
  display: inline-block; align-self: flex-start;
  background: var(--signal); color: var(--bone);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 4px 9px; margin-bottom: 10px;
}
.plan .tag-plain { background: var(--ink); }

.plan.popular { background: var(--ink); color: var(--bone); }
.plan.popular li { border-top-color: var(--ink-2); }
.plan.popular .per { color: var(--hair); }
.plan.popular .tag { background: var(--signal); }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--ink);
  color: var(--bone);
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-top: 44px; padding-bottom: 44px;
}
.cta-band .lt { background: var(--signal); margin-bottom: 14px; }
.cta-band .lt::before { background: var(--ink); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; color: var(--hair); max-width: 56ch; }

/* ── Article layout ─────────────────────────────────────────────────────── */

.crumbs {
  font-family: var(--font-mono);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-60);
  padding-top: 24px; padding-bottom: 4px;
}
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs a:hover { color: var(--signal-ink); }
.crumbs span[aria-hidden] { margin: 0 8px; }

.article { padding-bottom: 72px; }
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.col-main { min-width: 0; padding-top: 20px; }
.col-main h1 { max-width: 18ch; }

.meta {
  font-family: var(--font-mono);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-60);
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  padding: 10px 0;
  margin-bottom: 32px;
}

.col-main > p, .col-main > ul, .col-main > ol { max-width: 68ch; }
.col-main ul, .col-main ol { padding-left: 1.2em; }
.col-main li { margin-bottom: .5em; }

/* ── Running order (table of contents) ──────────────────────────────────────
   Numbered because a reading order genuinely is a sequence — the numbers carry
   information rather than decorating the panel. */

.runorder { position: sticky; top: 92px; padding-top: 20px; }
.runorder h2 {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-60);
  border-bottom: var(--border) solid var(--ink);
  padding-bottom: 8px; margin-bottom: 4px;
}
.runorder ul { list-style: none; margin: 0 0 32px; padding: 0; }
.runorder li { border-bottom: 2px solid var(--paper-2); }
.runorder a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0;
  font-size: .88rem; text-decoration: none;
  color: var(--ink-60);
}
.runorder a:hover { color: var(--ink); }
.ro-n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .7rem; font-weight: 700;
  color: var(--signal-ink);
  flex: none;
}
.runorder .related { margin-top: 8px; }
.runorder .related a { display: block; padding: 8px 0; }

/* ── TL;DR ──────────────────────────────────────────────────────────────── */

.tldr {
  background: var(--paper-2);
  border-left: 6px solid var(--signal);
  padding: 22px 24px;
  margin: 0 0 36px;
  max-width: 68ch;
}
.tldr .lt { margin-bottom: 12px; }
.tldr p:last-child { margin-bottom: 0; }

/* ── Figures ────────────────────────────────────────────────────────────────
   Photographs are graded to the palette by scripts/fetch-images.js — warm
   monochrome between --ink and --paper — so a page never carries a second,
   uncontrolled palette. The 2px ink frame is the same rule the cards and tables
   use, which is what stops a photo reading as a foreign object on the page. */

.hero-fig {
  margin: 0 0 34px;
  border: var(--border) solid var(--ink);
  max-width: 100%;
}
.hero-fig img { width: 100%; height: auto; display: block; }

.band-fig .hero-fig { margin-bottom: 16px; }
.figcap {
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-60);
  max-width: 78ch;
  margin: 0;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

/* max-width + min-width:0 keep the wrapper from being widened by its own table.
   Without them a table with nowrap headers can push its container instead of
   scrolling inside it, which is a horizontal-overflow bug on mobile. */
.tablewrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 32px;
  border: var(--border) solid var(--ink);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: bottom;
  text-align: left;
  font-size: .8rem;
  color: var(--ink-60);
  padding: 10px 14px;
  border-top: var(--border) solid var(--ink);
}
thead th {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}
tbody th, tbody td { padding: 10px 14px; text-align: left; border-top: 2px solid var(--paper-2); }
tbody th { font-weight: 700; }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody tr:nth-child(even) th, tbody tr:nth-child(even) td { border-top-color: var(--hair); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { border-top: var(--border) solid var(--ink); max-width: 68ch; }
.faq details { border-bottom: var(--border) solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem; font-weight: 700; line-height: 1;
  color: var(--signal-ink);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-60); max-width: 62ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Inline CTA ─────────────────────────────────────────────────────────── */

.inline-cta {
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  padding: 20px 0;
  margin: 36px 0;
  max-width: 68ch;
  font-size: .98rem;
}
.inline-cta p:last-child { margin-bottom: 0; }

/* ── Related block ──────────────────────────────────────────────────────── */

.related-block { padding: 64px 0; border-top: var(--border) solid var(--ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  color: var(--hair);
  padding: 56px 0 32px;
}
footer a { color: var(--hair); text-decoration: none; }
footer a:hover { color: var(--bone); text-decoration: underline; }
footer .brand { color: var(--bone); margin-bottom: 14px; }
footer .brand:hover { color: var(--bone); }
footer .brand b { color: var(--hair); }
.foot-blurb { font-size: .92rem; color: var(--hair); max-width: 42ch; }

.cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
/* These look like small labels but they are top-level sections. Do not change
   them to h4/h5 to match their size — see CLAUDE.md, Accessibility. */
.cols h2 {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 14px;
}
.cols ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.cols li { margin-bottom: 9px; }

.legal {
  border-top: 2px solid var(--ink-2);
  padding-top: 24px;
  font-size: .8rem;
  color: var(--ink-60);
}
.legal a { color: var(--ink-60); }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.notfound { padding: 80px 0 96px; }
.notfound .rule { width: 190px; height: 6px; background: var(--signal); margin: 0 0 26px; }
.notfound .lead { max-width: 54ch; font-size: 1.14rem; color: var(--ink-60); }
.notfound .lt { margin-bottom: 20px; }
.notfound .chips { margin-top: 30px; }
.notfound .code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700; line-height: .9; letter-spacing: -.04em;
  margin-bottom: 18px;
}

/* ===========================================================================
   Breakpoints — see references/design.md
   =========================================================================== */

@media (max-width: 1200px) {
  .desktop-nav ul { gap: 18px; }
  .desktop-nav a { font-size: .72rem; }
  .nav { gap: 18px; }
}

@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan { border-right: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); }
  .plan:nth-child(2n) { border-right: 0; }
  .plan-trial { grid-column: 1 / -1; }
  .plan:last-child { border-bottom: 0; }
  .plan:nth-last-child(2) { border-bottom: 0; }
}

/* The nav has its own breakpoint, above the layout one — eight labels plus the brand
   and the CTA need roughly 1080px on one line.

   Measured on the build machine: the row needs 1073px, overflowing by 9px at 1040 and
   by 48px at 1001. 1100 rather than 1080 because the display stack resolves to
   different faces on different platforms — Bahnschrift here, Avenir Next Condensed on
   macOS, Roboto Condensed on Android — and their advance widths are not identical.
   The cushion is for that, not for indecision.

   Adding a ninth nav item means re-measuring, not guessing. */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 900px) {
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 > .card:nth-child(3n) { border-right: var(--border) solid var(--ink); }
  .grid.g3 > .card:nth-child(2n) { border-right: 0; }
  .grid.g3 > .card:nth-child(n+3) { border-top: var(--border) solid var(--ink); }

  .scorestrip { grid-template-columns: repeat(3, 1fr); }
  .scorestrip > div:nth-child(n+4) { border-top: var(--border) solid var(--ink); }

  .wrap { grid-template-columns: 1fr; gap: 0; }
  .runorder { position: static; padding-top: 0; margin-bottom: 40px; }
  .runorder ul { margin-bottom: 20px; }

  .cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero { padding-top: 48px; }
  .band { padding: 56px 0; }
}

@media (max-width: 700px) {
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }

  .nav > .btn-sm { display: none; }

  .grid.g3, .grid.g2 { grid-template-columns: 1fr; }
  .grid > .card { border-right: 0; }
  .grid > .card + .card { border-top: var(--border) solid var(--ink); }

  .scorestrip { grid-template-columns: repeat(2, 1fr); }
  .scorestrip > div:nth-child(n+3) { border-top: var(--border) solid var(--ink); }
  .scorestrip > div:nth-child(2n) { border-right: 0; }

  .pricing { grid-template-columns: 1fr; }
  .plan { border-right: 0; }
  .plan-trial { grid-column: auto; }

  .cols { grid-template-columns: 1fr; gap: 28px; }
  .cta-row .btn { width: 100%; }
  .hero .rule { width: 130px; }
  .ticker .container { font-size: .68rem; }
}

/* ===========================================================================
   Reduced motion — the only motion here is a 120ms colour transition and the
   hamburger morph. Both go.
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
