/* Sideline Sentry — landing page.
   The page is one soccer field running top to bottom, in white chalk on a
   sun-bleached base. Every section uses the same two-track row (FIELD +
   SIDELINE) so the touchlines line up. No media queries for layout: it is
   all flex-wrap, auto-fit grids and clamp(). */

:root {
  --base: #F1EDE2;
  --paper: #F7F4EC;
  --white: #FFFFFF;
  --chalk: #FFFFFF;
  --ink: #1B1A17;
  --ink-2: #4A463D;
  --muted: #8A8270;
  --rule: #D8D1BF;

  --dark-text: #E4DECF;
  --dark-text-2: #B9B19C;
  --dark-rule: #3A3832;
  --dark-chalk: rgba(255, 255, 255, .38);

  /* Flag colours carry meaning only: heat level, alerts, fatigue, ⚠ tags. */
  --flag-green: #1F8A4C;
  --flag-yellow: #F2C12E;
  --flag-red: #D33A2C;
  --flag-black: #141413;

  --led-screen: #0C0C0B;

  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --stripes: repeating-linear-gradient(135deg, #E7E1D1 0 10px, #EEE9DC 10px 20px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--flag-red); }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Row structure ---------- */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(10px, 3vw, 40px); }
.row { display: flex; flex-wrap: wrap; }
.field {
  flex: 999 1 600px; min-width: 0; position: relative;
  border-left: 3px solid var(--chalk); border-right: 3px solid var(--chalk);
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px);
}
.side {
  flex: 1 1 300px; min-width: 0;
  padding: clamp(20px, 6vw, 72px) 0 32px clamp(14px, 2.4vw, 32px);
}
.stack { display: flex; flex-direction: column; }

/* ---------- Shared type ---------- */

.h2 {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--sans);
  letter-spacing: -.03em; text-wrap: balance;
}
.h2-big {
  font: 800 clamp(34px, 4.6vw, 56px)/1 var(--sans);
  letter-spacing: -.035em; text-wrap: balance;
}
.h3 { font: 700 20px/1.2 var(--sans); }
.body { font: 400 16px/1.5 var(--sans); }
.label { font: 600 11px/1 var(--mono); letter-spacing: .2em; color: var(--muted); }
.note { font: 500 12px/1.5 var(--mono); color: var(--ink-2); }
.alert-sub { color: var(--flag-red); font-family: var(--mono); font-size: 14px; }
.alert-ok { color: var(--flag-green); font-family: var(--mono); font-size: 14px; }

/* ⚠ placeholder tag. Stays visible until the real value exists. */
.todo {
  align-self: flex-start;
  font: 600 11px/1.2 var(--mono);
  background: var(--flag-yellow); color: var(--ink);
  padding: 4px 7px; border-radius: 3px;
}
/* ?preview=clean hides the optional ⚠ notes for a launch preview. Values that
   are still genuinely missing (prices) are not marked .todo-note and stay. */
.hide-todos .todo-note { display: none !important; }

/* Striped render / content slot. */
.slot {
  border: 2px dashed var(--muted); border-radius: 6px; background: var(--stripes);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 12px; width: 100%;
}
.slot-title { font: 600 12px/1.3 var(--mono); }
.slot-meta { font: 500 11px/1.4 var(--mono); color: var(--ink-2); }

/* Ruled column (data, hardware). */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.col { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 14px; }
.col-kicker { font: 600 11px/1.2 var(--mono); color: var(--ink-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 3px;
  background: var(--ink); color: var(--base); text-decoration: none; cursor: pointer;
  font: 700 17px/1 var(--sans);
}
.btn { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { background: var(--flag-red); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--base); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Nav (sticky, behind the goal line) ---------- */

:root { --nav-h: 68px; }
section[id] { scroll-margin-top: var(--nav-h); }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--base);
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--ink); box-shadow: 0 10px 24px -20px rgba(27, 26, 23, .6); }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.nav-bar .wordmark { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav-links a {
  position: relative; padding: 8px 0; text-decoration: none;
  font: 600 15px/1 var(--sans); color: var(--ink-2); white-space: nowrap;
  transition: color .2s ease;
}
/* Chalk-line underline that draws in from the left. */
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--flag-red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-links-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-links a[href="#why"], .nav-links a[href="#compare"] { display: none; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px;
    transition: transform .25s ease, background-color .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    background: var(--base); border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 30px -24px rgba(27, 26, 23, .7);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a, .nav-links a[href="#why"], .nav-links a[href="#compare"] {
    display: block; padding: 15px 0; font-size: 18px; color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a::after { display: none; }
  .nav-links .nav-links-cta {
    display: flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 54px;
    border: 0; border-radius: 3px; background: var(--ink); color: var(--base); font-weight: 700;
  }
}

.wordmark {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 21px/1 var(--sans); letter-spacing: -.02em;
}
.wordmark::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background: var(--flag-red); }
.wordmark:hover { color: var(--ink); }

/* ---------- Hero: goal line + penalty box ---------- */

.hero .field {
  border: 3px solid var(--chalk); border-bottom: 0;
  padding: 0 clamp(14px, 4vw, 56px) clamp(56px, 7vw, 96px);
}
.penalty-box {
  position: relative; border: 3px solid var(--chalk); border-top: 0;
  padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 60px);
}
.goal-area {
  position: absolute; left: 28%; width: 44%; top: 0;
  height: clamp(44px, 7vw, 100px); border: 3px solid var(--chalk); border-top: 0;
}
.arc { width: 180px; height: 62px; overflow: hidden; margin: 0 auto; }
.arc::before {
  content: ""; display: block; width: 180px; height: 180px; margin-top: -118px;
  border: 3px solid var(--chalk); border-radius: 50%;
}
.arc-top::before { margin-top: 0; }

.hero-copy { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.hero h1 {
  font: 800 clamp(40px, 6.2vw, 76px)/.98 var(--sans);
  letter-spacing: -.035em; text-wrap: balance;
}
.hero-lede { max-width: 31em; font: 400 clamp(18px, 1.7vw, 20px)/1.5 var(--sans); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cta-secondary { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.3 var(--sans); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hero-note { font: 500 13px/1.4 var(--mono); color: var(--ink-2); }

.hero .side {
  padding: clamp(20px, 3vw, 36px) 0 40px clamp(14px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
}
.alert-caption { min-height: 3em; }
.toggles { display: flex; gap: 6px; }
.toggle {
  flex: 1; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink);
  font: 600 13px/1 var(--mono);
}
.toggle-sub[aria-pressed="true"] { background: var(--flag-red); color: var(--white); }
.toggle-ok[aria-pressed="true"] { background: var(--flag-green); color: var(--white); }
.hero .slot { aspect-ratio: 4 / 3; margin-top: 8px; }

/* ---------- The box display ---------- */

.box-face {
  background: var(--flag-black); border-radius: 12px; padding: 14px;
  box-shadow: 0 2px 0 var(--ink), 0 16px 36px -18px rgba(27, 26, 23, .55);
}
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.box-head-label { font: 600 10px/1 var(--mono); color: #8C8572; letter-spacing: .12em; }
.lamps { display: flex; gap: 5px; }
.lamp { width: 12px; height: 12px; border-radius: 2px; }
.lamp-green { background: #1F3A28; }
.lamp-yellow { background: #4A3F17; }
.lamp-red { background: #FF4A3A; box-shadow: 0 0 8px rgba(255, 74, 58, .7); }
.lamp-black { border: 1.5px solid #4A4740; }
.screen { background: var(--led-screen); border-radius: 5px; padding: 12px 6px; }
.mini-screen { background: var(--flag-black); border-radius: 8px; padding: 10px 6px; }
.seg { display: block; width: 100%; height: auto; }
.seg polygon { transition: fill .25s ease; }
/* Before JS draws the display, keep its space and show the text. */
.seg-fallback { display: block; color: #FF4A3A; font: 600 clamp(20px, 2.4vw, 28px)/1 var(--mono); text-align: center; padding: 8px 0; }

/* ---------- Problem ---------- */

.beats { display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 36px); }
.problem .h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.beat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; }
.beat-num { font: 600 13px/2.1 var(--mono); color: var(--ink-2); }
.beat-body { display: flex; flex-direction: column; gap: 8px; }
.beat h3 { font: 700 clamp(21px, 2.2vw, 26px)/1.2 var(--sans); letter-spacing: -.02em; }
.beat p { max-width: 36em; font: 400 18px/1.55 var(--sans); }
.stat-slot { align-items: flex-start; text-align: left; padding: 16px; gap: 8px; }
.stat-slot strong { font: 800 34px/1 var(--sans); letter-spacing: -.02em; color: var(--muted); }
.stat-slot span { font: 500 12px/1.5 var(--mono); }

/* ---------- How it works: halfway line ---------- */

.how .field { padding: clamp(150px, 18vw, 200px) clamp(18px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.halfway { position: absolute; left: 0; right: 0; top: clamp(60px, 8vw, 90px); height: 3px; background: var(--chalk); }
.center-circle, .center-spot {
  position: absolute; left: 50%; top: clamp(60px, 8vw, 90px);
  transform: translate(-50%, -50%); border-radius: 50%;
}
.center-circle { width: clamp(160px, 20vw, 240px); height: clamp(160px, 20vw, 240px); border: 3px solid var(--chalk); }
.center-spot { width: 9px; height: 9px; background: var(--chalk); }
.how .h2 { position: relative; margin-bottom: clamp(28px, 4vw, 44px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }
.step-body { display: flex; flex-direction: column; gap: 6px; }
.step-label { font: 600 12px/1 var(--mono); color: var(--ink-2); }
.step-label.red { color: var(--flag-red); }
.step-label.green { color: var(--flag-green); }
.step p { font: 400 17px/1.5 var(--sans); }
.marker-box {
  width: 40px; height: 28px; margin-top: 2px; border-radius: 4px; background: var(--flag-black);
  display: flex; align-items: center; justify-content: center;
  font: 600 9px/1 var(--mono); color: #FF4A3A;
}
.dot {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--sans);
}
.dot-white { background: var(--paper); }
.dot-red { background: var(--flag-red); color: var(--white); box-shadow: 0 0 0 5px var(--base), 0 0 0 7px var(--flag-red); }
.dot-green { background: var(--flag-green); color: var(--white); }
.kicker { position: relative; margin-top: clamp(40px, 5vw, 56px); font: 800 clamp(24px, 2.8vw, 32px)/1.15 var(--sans); letter-spacing: -.02em; }
.kicker span { color: var(--flag-green); }
.how .side { padding: clamp(20px, 18vw, 200px) 0 40px clamp(14px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.side-cue { font: 600 12px/1.4 var(--mono); }
.side-cue.red { color: var(--flag-red); }
.side-cue.green { color: var(--flag-green); margin-top: 16px; }

/* ---------- Questions ---------- */

.qa {
  display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0;
  border-top: 2px solid var(--rule);
}
.qa:first-child { border-top-color: var(--ink); }
.qa:last-child { border-bottom: 2px solid var(--ink); }
.qa-q { flex: 1 1 230px; font: 700 20px/1.3 var(--sans); letter-spacing: -.015em; }
.qa-a { flex: 1.5 1 300px; display: flex; flex-direction: column; gap: 10px; }
.qa-a p { font: 400 16px/1.5 var(--sans); }
.in-box { font: 600 11px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.pro-chip { font: 600 11px/1 var(--mono); background: var(--ink); color: var(--base); padding: 3px 6px; white-space: nowrap; }
.flags { display: flex; flex-wrap: wrap; gap: 5px; }
.flag { padding: 5px 9px; font: 600 11px/1 var(--mono); color: var(--white); }
.flag-green { background: var(--flag-green); }
.flag-yellow { background: var(--flag-yellow); color: var(--ink); }
.flag-red { background: var(--flag-red); }
.flag-black { background: var(--flag-black); }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend strong:not(.pro-chip) { color: var(--ink); }
.legend .pro-chip { padding: 2px 5px; }

/* ---------- Pro: night game ---------- */

.pro { background: var(--ink); color: var(--base); }
.pro .field {
  border-color: var(--dark-chalk);
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
}
.pro-sub { margin-top: 18px; max-width: 34em; font: 400 19px/1.55 var(--sans); color: var(--dark-text); }
.pro-name {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 3px solid var(--dark-chalk);
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline;
}
.pro-name h3 { font: 800 clamp(26px, 3vw, 34px)/1.05 var(--sans); letter-spacing: -.03em; }
.pro-name-meta { font: 500 13px/1.4 var(--mono); color: var(--dark-text-2); }
.pro-statement { margin: 12px 0 clamp(24px, 4vw, 36px); max-width: 36em; font: 400 17px/1.55 var(--sans); color: var(--dark-text); }
.metric-lead { padding: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.metric-lead-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.metric-lead h4 { font: 700 22px/1.2 var(--sans); letter-spacing: -.015em; color: var(--flag-yellow); }
.metric-lead-tag { font: 600 11px/1 var(--mono); color: var(--dark-text-2); }
.metric-lead p { max-width: 38em; font: 400 16px/1.55 var(--sans); color: var(--dark-text); }
.metric { padding: 16px 0; border-top: 1px solid var(--dark-rule); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.metric h4 { flex: 0 0 220px; font: 700 18px/1.3 var(--sans); }
.metric p { flex: 1 1 260px; font: 400 16px/1.5 var(--sans); color: var(--dark-text); }
.price-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pro .price-row { padding: 18px 0 0; border-top: 1px solid var(--dark-rule); }
.pro .price-row h4 { font: 700 18px/1.3 var(--sans); }
.price-row-meta { font: 400 15px/1.4 var(--sans); }
.pro .price-row-meta { color: var(--dark-text); }

.pro .side { padding: clamp(24px, 7vw, 88px) 0 48px clamp(14px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.mock-label {
  align-self: flex-start; font: 600 11px/1.3 var(--mono);
  border: 1.5px dashed var(--flag-yellow); color: var(--flag-yellow); padding: 5px 8px;
}
.phone {
  max-width: 340px; background: var(--paper); color: var(--ink);
  border-radius: 22px; border: 6px solid var(--dark-rule); padding: 16px 10px 18px;
  display: flex; flex-direction: column; gap: 11px;
}
.phone-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.phone-head strong { font: 800 18px/1 var(--sans); letter-spacing: -.02em; }
.phone-head span { font: 600 9px/1 var(--mono); color: var(--ink-2); }
.phone-row {
  display: grid; grid-template-columns: 24px 26px minmax(0, 1fr) 54px 40px; gap: 7px;
  align-items: center; padding: 0 4px;
}
.phone-row.th { padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 600 9px/1.2 var(--mono); color: var(--ink-2); }
.p-num { font: 800 17px/1 var(--sans); }
.p-min { font: 600 12px/1 var(--mono); }
.p-day { font: 600 11px/1 var(--mono); }
.p-bar { height: 7px; background: #E2DBC8; }
.p-bar i { display: block; height: 7px; background: var(--ink); }
.p-chip { font: 600 9.5px/1 var(--mono); text-align: center; padding: 4px 0; color: var(--white); }
.p-chip.gassed { background: var(--flag-red); }
.p-chip.tiring { background: var(--flag-yellow); color: var(--ink); }
.p-chip.fresh { background: var(--flag-green); }
.phone-note { margin: 4px 4px 0; padding: 10px 12px; background: var(--ink); color: var(--base); font: 500 12px/1.45 var(--sans); }
.pro .note { max-width: 340px; color: var(--dark-text-2); }

/* ---------- Data ---------- */

.data .field { padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 56px) clamp(36px, 5vw, 56px); }
.data .cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.data .side { padding-top: clamp(20px, 6vw, 80px); }
.data .side .todo { display: inline-block; line-height: 1.4; }

/* ---------- Comparison ---------- */

.compare .field { padding: clamp(36px, 5vw, 56px) clamp(18px, 4vw, 56px); }
.compare .h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font: 400 15px/1.35 var(--sans); }
thead tr { border-bottom: 2px solid var(--ink); }
th { padding: 10px 6px; text-align: center; font: 600 11px/1.3 var(--mono); color: var(--ink-2); text-transform: uppercase; }
th:first-child { text-align: left; width: 32%; padding-left: 0; }
th:last-child, td:last-child { text-align: right; padding-right: 0; }
td { text-align: center; }
td:first-child { text-align: left; padding: 13px 10px 13px 0; }
tbody tr { border-bottom: 1px solid var(--rule); }
tbody tr.last-other { border-bottom: 2px solid var(--ink); }
tbody tr.ours { border-bottom: 0; }
tbody tr.ours td { font-weight: 700; }
tbody tr.ours td:first-child { padding: 15px 10px 15px 0; }
.t-sub { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.t-no { color: var(--muted); }
.t-price { font-family: var(--mono); font-size: 13px; }
.ours-name { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--sans); letter-spacing: -.02em; }
.ours-name::before { content: ""; width: 12px; height: 12px; background: var(--flag-red); }
.ours .todo { white-space: nowrap; }
.compare .side { padding-top: clamp(16px, 5vw, 56px); }

/* ---------- Hardware ---------- */

.hardware .field { padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 56px); }
.hardware .h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.slot-wide { aspect-ratio: 16 / 7; min-height: 180px; padding: 14px; margin-bottom: 28px; }
.kit-price { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--ink); }
.kit-price .price-row-meta { color: var(--ink-2); }
.hardware .side { padding: clamp(16px, 6vw, 80px) 0 40px clamp(14px, 2.4vw, 32px); }
.slot-square { aspect-ratio: 1 / 1; max-width: 340px; }

/* ---------- Why ---------- */

.why .h2 { margin-bottom: 20px; }
.story-slot { max-width: 620px; align-items: flex-start; text-align: left; padding: 20px; gap: 8px; }
.story-slot .slot-meta { font-size: 12px; line-height: 1.55; }
.team { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.team div { display: flex; flex-direction: column; gap: 4px; }
.team strong { font: 700 19px/1.2 var(--sans); }
.team span { font: 500 12px/1.3 var(--mono); color: var(--ink-2); }
.why .side { padding-top: clamp(16px, 6vw, 72px); display: flex; flex-direction: column; gap: 6px; }
.big-temp { font: 800 clamp(72px, 9vw, 112px)/.85 var(--sans); letter-spacing: -.05em; color: var(--flag-red); }

/* ---------- Pilot: far penalty box ---------- */

.pilot .field { border: 3px solid var(--chalk); border-top: 0; padding: 0 clamp(14px, 4vw, 56px); }
.penalty-box-far {
  position: relative; border: 3px solid var(--chalk); border-bottom: 0;
  padding: clamp(28px, 4vw, 48px) clamp(12px, 3vw, 40px) clamp(64px, 9vw, 120px);
}
.penalty-box-far .goal-area { top: auto; bottom: 0; height: clamp(40px, 6vw, 90px); border-top: 3px solid var(--chalk); border-bottom: 0; }
.pilot-intro { position: relative; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.pilot-intro p { max-width: 34em; font: 400 18px/1.55 var(--sans); }
.pilot .side {
  padding: clamp(16px, 8vw, 120px) 0 40px clamp(14px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  font: 500 12px/1.55 var(--mono); color: var(--ink-2);
}

.card {
  position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  padding: clamp(16px, 3vw, 28px);
}
.form { display: flex; flex-direction: column; gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-label { font: 600 14px/1 var(--sans); }
.fld-label .opt { font-weight: 400; color: var(--ink-2); }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 3px; background: var(--white);
  color: var(--ink); font-size: 16px; /* 16px so iOS doesn't zoom */
}
.fld input, .fld select { height: 52px; padding: 0 14px; }
.fld select { padding: 0 12px; }
.fld textarea { padding: 12px 14px; font: 400 16px/1.5 var(--sans); resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--flag-yellow); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink);
  font: 600 15px/1 var(--sans);
}
.chips-size .chip { min-width: 72px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--base); }

.checks { display: flex; flex-direction: column; gap: 4px; }
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font: 500 17px/1.3 var(--sans); }
.check input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.check-box {
  flex: 0 0 28px; height: 28px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--white); font: 700 18px/1 var(--sans);
}
.check input:checked + .check-box { background: var(--ink); }
.check input:checked + .check-box::after { content: "✓"; }
.check input:focus-visible + .check-box { outline: 3px solid var(--flag-yellow); outline-offset: 1px; }

.form-error { padding: 10px 12px; background: var(--flag-red); color: var(--white); font: 600 15px/1.4 var(--sans); border-radius: 3px; }
.form .btn { min-height: 56px; font-size: 18px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.success { display: flex; flex-direction: column; gap: 18px; }
.success .mini-screen { padding: 14px 10px; max-width: 420px; }
.success h3 { font: 800 clamp(28px, 3.4vw, 40px)/1 var(--sans); letter-spacing: -.03em; }
.success p { font: 400 18px/1.55 var(--sans); }
.linkish {
  align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font: 600 16px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--flag-red); }

/* ---------- Footer ---------- */

.footer-bar { padding: 32px 0 44px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-left .wordmark { font-size: 20px; }
.footer-left .wordmark::before { flex-basis: 14px; width: 14px; height: 14px; }
.footer-email { font: 500 14px/1.4 var(--mono); }
.footer-line { font: 400 14px/1.4 var(--sans); }
.footer-right { flex: 0 1 460px; display: flex; flex-direction: column; gap: 10px; }
.footer-right p { font: 400 14px/1.55 var(--sans); color: var(--ink-2); }
.footer-right strong { color: var(--ink); }
.footer-right .copy { font: 500 13px/1.4 var(--mono); }

[hidden] { display: none !important; }

/* ---------- Section transitions ---------- */

.steps { list-style: none; margin: 0; padding: 0; }

/* Dusk / dawn: the day game fades into the night game and back. The
   touchlines keep running through the band so the field never breaks. */
.dusk { height: clamp(90px, 12vw, 170px); background: linear-gradient(var(--base), var(--ink)); }
.dusk.dawn { background: linear-gradient(var(--ink), var(--base)); }
.dusk .wrap, .dusk .row { height: 100%; }
.dusk .field { padding: 0; border-color: rgba(255, 255, 255, .6); }
.dusk .side { padding: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font: 600 15px/1.3 var(--sans); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* Phone-only CTA bar that follows the reader down the page. */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--base); border-top: 2px solid var(--ink);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta.show { transform: none; }
  footer { padding-bottom: 80px; }
}

/* ---------- Motion ----------
   Everything below is gated on .js (set in <head>) and switched off under
   prefers-reduced-motion, so without either the page is simply static. */

@media (prefers-reduced-motion: no-preference) {
  /* Hero: load-in, staggered. */
  .js .hero-copy > *, .js .hero-side > * {
    opacity: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards;
  }
  .js .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .42s; }
  .js .hero-side > :nth-child(1) { animation-delay: .25s; }
  .js .hero-side > :nth-child(2) { animation-delay: .35s; animation-name: drop; }
  .js .hero-side > :nth-child(3) { animation-delay: .55s; }
  .js .hero-side > :nth-child(4) { animation-delay: .62s; }
  .js .hero-side > :nth-child(5) { animation-delay: .7s; }

  /* The goal area and arc draw down onto the field. */
  .js .hero .goal-area { transform-origin: top; animation: chalk-y .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .arc::before { animation: fade .9s .45s ease both; }

  /* Scroll reveals. JS adds .reveal and a per-sibling --i, then .in on entry. */
  .js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Halfway line rolls out from the center spot; the circle follows. */
  .js .how .halfway { transform: scaleX(0); transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
  .js .how .center-circle { opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .8s ease .5s, transform .9s cubic-bezier(.2, .7, .2, 1) .5s; }
  .js .how .center-spot { transform: translate(-50%, -50%) scale(0); transition: transform .4s ease; }
  .js .how.in .halfway { transform: none; }
  .js .how.in .center-circle { opacity: 1; transform: translate(-50%, -50%); }
  .js .how.in .center-spot { transform: translate(-50%, -50%); }

  /* Red marker pulses like the band buzzing. */
  .js .how.in .dot-red { animation: buzz 2.4s 1.2s ease-in-out infinite; }

  /* Pro mock: effort bars fill once the phone is in view. */
  .js .p-bar i { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
  .js .phone-row:nth-child(4) .p-bar i { transition-delay: .08s; }
  .js .phone-row:nth-child(5) .p-bar i { transition-delay: .16s; }
  .js .phone-row:nth-child(6) .p-bar i { transition-delay: .24s; }
  .js .phone-row:nth-child(7) .p-bar i { transition-delay: .32s; }
  .js .phone.in .p-bar i { transform: none; }

  /* Far penalty box: the goal area draws up from the goal line. */
  .js .pilot .goal-area { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.2, .7, .2, 1) .2s; }
  .js .pilot.in .goal-area { transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chalk-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes buzz {
  0%, 70%, 100% { box-shadow: 0 0 0 5px var(--base), 0 0 0 7px var(--flag-red); }
  80% { box-shadow: 0 0 0 7px var(--base), 0 0 0 9px var(--flag-red); }
  90% { box-shadow: 0 0 0 5px var(--base), 0 0 0 7px var(--flag-red); }
}
