/* PitSheet marketing site
   Visual language: timing sheets, pit boards, tyre stickers, telemetry printouts.
   Display: Barlow Condensed. Numerals / labels: JetBrains Mono. Body: Barlow.
   Palette lifted from the app (src/constants/theme.ts). Dark only. */

:root {
  --bg: #0C0E11;
  --surface: #14171C;
  --selected: #1B1F26;
  --border: #232830;
  --border-2: #2E3540;
  --text: #F4F5F7;
  --muted: #9AA3AF;
  --dim: #5C636E;
  --lime: #A3E635;
  --lime-2: #8CC42D;
  --on-lime: #0C0E11;
  --danger: #F87171;
  --paper: #ECE9DF;
  --paper-2: #DDD9CC;
  --ink: #0C0E11;
  --ink-2: #4A4F58;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: 16px;
  --max: 1240px;
  --rule: 1px solid var(--border);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--lime); color: var(--on-lime); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lime);
}
.eyebrow b { color: var(--lime); font-weight: 500; }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-size: clamp(44px, 7vw, 96px);
  margin-top: 14px;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 54ch;
}
.lead strong { color: var(--text); font-weight: 500; }

/* ---------- Chequered + flag motifs ---------- */
.cheq {
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, var(--text) 25%, transparent 25%, transparent 75%, var(--text) 75%),
    linear-gradient(45deg, var(--text) 25%, transparent 25%, transparent 75%, var(--text) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.cheq-strip {
  height: 8px;
  width: 100%;
  background-image:
    linear-gradient(90deg, var(--text) 50%, transparent 50%);
  background-size: 16px 8px;
  opacity: 0.9;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand span i { font-style: normal; color: var(--lime); }
.head-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.head-meta a:hover { color: var(--text); }
.head-meta .cta {
  color: var(--on-lime);
  background: var(--lime);
  padding: 8px 12px;
  font-weight: 700;
}
.head-meta .cta:hover { background: var(--lime-2); color: var(--on-lime); }
@media (max-width: 640px) {
  .head-meta .hide-m { display: none; }
}

/* ---------- Hero ---------- */
.hero, .stance, .download { overflow-x: clip; }
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 112px) 0 clamp(40px, 6vw, 96px);
  border-bottom: var(--rule);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 47px,
    rgba(255,255,255,0.035) 47px 48px
  );
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-copy { position: relative; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  font-size: clamp(54px, 7.6vw, 100px);
  margin: 20px 0 28px;
  max-width: 13.5ch;
}
.hero h1 .l2 { color: var(--lime); }
.hero .lead { margin-bottom: 36px; }

.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-stage::before {
  /* chequered ground plane behind the phones */
  content: "";
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 70%;
  height: 56px;
  background-image:
    linear-gradient(45deg, var(--text) 25%, transparent 25%, transparent 75%, var(--text) 75%),
    linear-gradient(45deg, var(--text) 25%, transparent 25%, transparent 75%, var(--text) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.12;
  transform: skewX(-20deg);
}

/* ---------- Phone frames ---------- */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 1066;
  border-radius: 38px;
  background: var(--selected);
  padding: 10px;
  box-shadow:
    0 0 0 1px var(--border-2),
    0 30px 60px -20px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  background: var(--bg);
}
.phone .tag {
  position: absolute;
  left: -14px;
  top: 28%;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.hero-stage .phone-a {
  width: 52%;
  z-index: 1;
  margin-right: auto;
  transform: rotate(-2deg);
}
.hero-stage .phone-b {
  width: 52%;
  position: absolute;
  right: 0;
  bottom: 90px;
  z-index: 2;
  box-shadow:
    0 0 0 1px var(--border-2),
    0 40px 80px -20px rgba(0,0,0,0.95);
}

/* ---------- Store badges (placeholders, see TODO in HTML) ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  transition: border-color .15s, background .15s, transform .15s;
}
.badge:hover { border-color: var(--lime); background: var(--selected); transform: translateY(-1px); }
.badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.badge .bt {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}
.badge .bt small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.badge .bt span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.badge-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.badge-note b { color: var(--lime); font-weight: 500; }

/* ---------- Pit board strip ---------- */
.pitboard {
  border-bottom: var(--rule);
  background: #000;
}
.pitboard .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
}
.pitboard .wrap > div {
  padding: 22px var(--gutter) 20px;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pitboard .wrap > div:first-child { border-left: var(--rule); }
.pitboard .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.pitboard .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pitboard .v.lime { color: var(--lime); }

/* ---------- Generic section ---------- */
.section {
  padding: clamp(64px, 9vw, 140px) 0;
  border-bottom: var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head .lead { padding-bottom: 8px; }
.num {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
}

/* ---------- The printout (what a sheet captures) ---------- */
.printout {
  --pad: clamp(18px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9);
  /* tractor-feed perforations down each side */
  background-image:
    radial-gradient(circle at 12px 50%, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) 50%, var(--bg) 4px, transparent 4.5px);
  background-size: 100% 28px, 100% 28px;
  background-repeat: repeat-y;
  padding: 0 24px;
}
.printout::before, .printout::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--ink-2) 0 6px, transparent 6px 12px);
  opacity: 0.35;
}
.printout::before { left: 24px; }
.printout::after { right: 24px; }

.po-inner { padding: var(--pad); }
.po-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.po-head .title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.9;
  letter-spacing: 0;
}
.po-head .meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 14px;
  font-size: 12px;
  align-self: end;
}
.po-head .meta span:nth-child(odd) { color: var(--ink-2); }

.po-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.po-strip div {
  padding: 12px 10px 10px 0;
  border-right: 1px dashed rgba(12,14,17,0.35);
}
.po-strip div:last-child { border-right: 0; }
.po-strip .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.po-strip .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1;
  margin-top: 4px;
  text-transform: uppercase;
}
.po-strip .v.hl { background: var(--lime); display: inline-block; padding: 2px 6px 0; }

.po-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.5vw, 40px);
  padding-top: 18px;
}
.po-col h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.po-col h3 span { color: var(--ink-2); font-weight: 400; }
.po-col dl { display: block; }
.po-col .row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(12,14,17,0.25);
}
.po-col dt { color: var(--ink-2); white-space: nowrap; font-size: 12px; }
.po-col .lead-dots { flex: 1; border-bottom: 1px dotted rgba(12,14,17,0.35); transform: translateY(-3px); }
.po-col dd { font-weight: 700; white-space: nowrap; text-align: right; }
.po-col dd small { font-weight: 400; color: var(--ink-2); font-size: 11px; margin-left: 2px; }
.po-col .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.po-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: end;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.po-foot .notes { font-size: 12px; }
.po-foot .notes b { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2); margin-bottom: 4px; }
.po-foot .lap { text-align: right; }
.po-foot .lap b { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2); }
.po-foot .lap span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.po-stamp {
  position: absolute;
  right: clamp(32px, 6vw, 80px);
  top: clamp(-10px, 1vw, 10px);
  transform: rotate(6deg);
  border: 3px solid var(--ink);
  padding: 6px 10px 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  mix-blend-mode: multiply;
}
.fields-note {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.fields-note li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.fields-note li.all { border-color: var(--lime); color: var(--lime); }

/* ---------- Stance ("nothing leaves the phone") ---------- */
.stance .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.stance .h2 { max-width: 10ch; }
.ledger {
  margin-top: 36px;
  border-top: 2px solid var(--text);
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: var(--rule);
}
.ledger .k {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
.ledger .v {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}
.ledger .v.lime { color: var(--lime); }
.ledger .v.zero { color: var(--text); }
.stance-aside { position: relative; padding-top: 30px; }
.sticker {
  background: var(--lime);
  color: var(--on-lime);
  padding: 26px 26px 22px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px -24px rgba(163,230,53,0.35);
  position: relative;
  max-width: 420px;
}
.sticker::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(12,14,17,0.45);
  pointer-events: none;
}
.sticker .s1 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.sticker .s2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.sticker .s3 {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  border-top: 2px solid var(--on-lime);
  padding-top: 10px;
}
.stance-aside p.fine {
  margin-top: 40px;
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
}
.stance-aside p.fine a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.stance-aside p.fine a:hover { border-color: var(--lime); }

/* ---------- Workflow rows ---------- */
.flow .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.steps { border-top: 2px solid var(--text); margin-top: 32px; }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: var(--rule);
}
.step .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.8;
  color: var(--lime);
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.step p { color: var(--muted); max-width: 52ch; }
.step p strong { color: var(--text); font-weight: 500; }
.step .code {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
  border: 1px solid var(--border-2);
  padding: 6px 10px;
  background: var(--surface);
}
.flow-aside { position: sticky; top: 90px; }
.flow-aside .phone { max-width: 340px; margin-left: auto; }
.flow-aside figcaption {
  margin-top: 16px;
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.filters {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.filters li.on { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.filters li.lbl { background: none; border: 0; padding-left: 0; color: var(--dim); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; }

/* ---------- Circuits ---------- */
.circuits { background: var(--surface); }
.circuit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: var(--rule);
  border-left: var(--rule);
}
.circuit-grid li {
  padding: 18px 16px 14px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .2s;
  position: relative;
}
.circuit-grid li:hover { background: var(--selected); }
.circuit-grid .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0;
}
.circuit-grid .ll {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.circuit-grid li.here .name { color: var(--lime); }
.circuit-grid li.here::after {
  content: "NEAREST";
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--on-lime);
  background: var(--lime);
  padding: 3px 6px;
}
.circuit-grid li.more .name { color: var(--muted); font-weight: 600; font-size: 19px; line-height: 1.05; }
.circuit-grid li.more .ll { color: var(--dim); }

/* ---------- Download ---------- */
.download .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.download .h2 { font-size: clamp(56px, 9vw, 140px); }
.download .badges { margin-top: 36px; }
.download .badge-note { margin-top: 16px; display: block; }
.icon-stage { display: flex; justify-content: flex-end; }
.icon-stage img {
  width: min(280px, 60vw);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.7));
}

/* ---------- Footer ---------- */
.site-foot {
  padding: 40px 0 36px;
  border-top: var(--rule);
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
}
.site-foot img { width: 48px; height: 48px; opacity: 0.9; }
.site-foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot .cols a:hover { color: var(--lime); }
.site-foot .cols span { color: var(--dim); }
.site-foot .fine {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-align: right;
}
.site-foot .fine a { color: var(--muted); }
.site-foot .fine a:hover { color: var(--lime); }

/* ---------- Privacy page ---------- */
.doc { padding: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 120px); }
.doc .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.doc-side { position: sticky; top: 90px; }
.doc-side .h2 { font-size: clamp(44px, 6vw, 80px); }
.doc-side dl {
  margin-top: 28px;
  border-top: 2px solid var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.doc-side dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: var(--rule);
}
.doc-side dt { color: var(--dim); text-transform: uppercase; }
.doc-side dd { color: var(--text); }
.doc-side dd a { border-bottom: 1px solid var(--border-2); }
.doc-side dd a:hover { border-color: var(--lime); }
.doc-body { font-size: 17px; line-height: 1.6; }
.doc-body .summary {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 48px;
  position: relative;
}
.doc-body .summary b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 12px;
}
.doc-body .summary ul { margin-top: 10px; }
.doc-body .summary li { padding: 4px 0; border-bottom: 1px dotted rgba(12,14,17,0.3); display: flex; justify-content: space-between; gap: 16px; }
.doc-body .summary li span:last-child { font-weight: 700; }
.doc-body section { padding: 28px 0; border-top: var(--rule); }
.doc-body section:first-of-type { border-top: 2px solid var(--text); }
.doc-body h2 {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 0.95;
  margin-bottom: 14px;
}
.doc-body h2 .num { color: var(--lime); font-size: 13px; }
.doc-body p, .doc-body ul { color: var(--muted); margin-left: 72px; max-width: 62ch; }
.doc-body ul { list-style: square; padding-left: 18px; margin-top: 10px; }
.doc-body li { padding: 3px 0; }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body p + p { margin-top: 12px; }
.doc-body a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.doc-body a:hover { border-color: var(--lime); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap,
  .section-head,
  .stance .wrap,
  .flow .wrap,
  .download .wrap,
  .doc .wrap { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: 24px; justify-content: center; }
  .hero-stage .phone-a { width: 46%; }
  .hero-stage .phone-b { width: 46%; bottom: 60px; right: 2%; }
  .flow-aside { position: static; }
  .flow-aside .phone { margin: 0 auto; }
  .flow-aside figcaption { text-align: center; }
  .icon-stage { justify-content: flex-start; }
  .doc-side { position: static; }
  .doc-body p, .doc-body ul { margin-left: 0; }
  .doc-body h2 { grid-template-columns: 1fr; gap: 6px; }
  .pitboard .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pitboard .wrap > div:nth-child(2) { border-right: 0; }
  .pitboard .wrap > div:nth-child(3) { border-left: var(--rule); border-top: var(--rule); }
  .pitboard .wrap > div:nth-child(4) { border-top: var(--rule); border-right: 0; }
  .po-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(16px, 2.5vw, 40px); }
  .po-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .po-strip div:nth-child(3) { border-right: 0; }
  .po-strip div:nth-child(n+4) { border-top: 1px dashed rgba(12,14,17,0.35); }
  .site-foot .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .site-foot .fine { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) {
  .hero-stage .phone-a { width: 58%; margin-right: auto; }
  .hero-stage .phone-b { width: 58%; bottom: 40px; right: 0; }
  .hero-stage::before { width: 90%; right: -10px; }
  .pitboard .wrap { grid-template-columns: 1fr; }
  .pitboard .wrap > div { border-left: 0 !important; border-right: 0 !important; border-top: var(--rule); }
  .pitboard .wrap > div:first-child { border-top: 0; }
  .po-grid { grid-template-columns: 1fr; }
  .po-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-strip div:nth-child(odd) { border-right: 1px dashed rgba(12,14,17,0.35); }
  .po-strip div:nth-child(even) { border-right: 0; }
  .po-strip div:nth-child(n+3) { border-top: 1px dashed rgba(12,14,17,0.35); }
  .po-foot { grid-template-columns: 1fr; }
  .po-foot .lap { text-align: left; }
  .po-stamp { font-size: 13px; right: 36px; top: -8px; }
  .printout { padding: 0 18px; background-size: 100% 24px; }
  .printout::before { left: 18px; } .printout::after { right: 18px; }
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .ledger .v { text-align: left; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step .n { font-size: 40px; }
  .circuit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circuit-grid .name { font-size: 22px; }
  .circuit-grid li { padding: 14px 12px 12px; }
  .circuit-grid li.here::after { position: static; align-self: flex-start; order: -1; margin-bottom: -2px; }
  .sticker { transform: rotate(-2deg); max-width: none; }
  .badge { height: 52px; }
}
