/* Market Run marketing site.
   Faces and palette are the game's own (pubspec.yaml fonts, lib/ui/theme.dart).
   The page runs through one in-game day: section backgrounds go from dawn sky
   to night, and the header clock follows along. */

@font-face { font-family: "Lilita"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --ink: #221c17;
  --paper: #fff3da;
  --paper-dark: #f3e1bd;
  --white: #fffcf4;
  --sun: #f6c844;
  --sun-deep: #e0a62a;
  --tomato: #e2482f;
  --tomato-deep: #b83420;
  --blue: #1f5fa8;
  --green: #3e8a4a;
  --green-deep: #2b6535;
  --clay: #c2603a;
  --sky: #7fc4f0;
  --night: #1d2238;
  --night-deep: #161a2c;
  --muted: #6b5c49;
  --tar: #3a312b;

  --display: "Lilita", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --measure: 62ch;
  --wide: 1160px;
  --overlap: 140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[data-sky="night"] :focus-visible { outline-color: var(--sun); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sun); padding: 10px 16px; border: 3px solid var(--ink); border-radius: 999px;
  font-weight: 900; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Buttons: the game's chunky pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  font: 900 18px/1 var(--body); color: var(--ink); text-decoration: none;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: #ffd65c; }

/* ---------- HUD header ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px clamp(12px, 3vw, 28px) 10px;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px 0 8px;
  background: var(--white);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  font: 900 18px/1 var(--body); text-decoration: none; white-space: nowrap;
}
.hud-home img { border-radius: 50%; border: 2px solid var(--ink); }
.hud-clock {
  padding: 0 16px 0 8px;
  background: #a9d8f6;
  font-variant-numeric: tabular-nums;
  transition: background-color .4s;
}
.hud-clock[data-sky="night"] { background: var(--night); color: var(--sun); border-color: var(--ink); }
.hud-sun {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink);
  transition: background-color .4s, box-shadow .4s;
}
.hud-sun[data-sky="night"] { background: var(--paper); box-shadow: inset -8px -3px 0 0 #c9c2b0; }
.hud-nav {
  display: flex; gap: 2px; justify-self: center; padding: 0 6px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
}
.hud-nav a {
  display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  font-weight: 900; text-decoration: none;
}
.hud-nav a:hover { background: var(--paper-dark); }
.hud-get { padding: 0 22px; background: var(--sun); }
.hud-get:hover { background: #ffd65c; }

/* Day progress, styled after the road HUD's progress bar. */
.hud-day {
  grid-column: 1 / -1;
  height: 12px; margin-top: 4px;
  background: var(--paper-dark);
  border: 3px solid var(--ink); border-radius: 999px;
  overflow: hidden;
}
.hud-day span {
  display: block; height: 100%; width: 100%;
  background: var(--green);
  transform-origin: left; transform: scaleX(var(--day, 0));
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; }
.sky {
  padding-top: 150px;
  background:
    radial-gradient(circle at 26% 100%, var(--sun) 0 300px, var(--ink) 300px 308px, transparent 309px),
    var(--sky);
}
.hero-inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.hero-sign { margin-bottom: -2px; }
.sign { width: 100%; }
.hero-copy { align-self: center; padding-bottom: 56px; }
.hero h1 {
  font: 400 clamp(38px, 4.6vw, 58px)/1.04 var(--display);
  letter-spacing: .005em;
  max-width: 14ch;
  /* The game's outlined title style: light fill, ink outline, hard shadow. */
  color: var(--white);
  text-shadow:
    -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink),
    5px 7px 0 var(--ink);
}
.lede { margin-top: 22px; max-width: 46ch; font-size: 19px; font-weight: 700; }
.platforms-line { margin-top: 18px; font-size: 15px; font-weight: 700; max-width: 46ch; }
.platforms-line a { text-underline-offset: 3px; }

.road { position: relative; }
.verge { height: 18px; background: var(--green); border-top: 6px solid var(--ink); }
.tar {
  position: relative; height: 128px;
  background: var(--tar);
  border-top: 8px solid var(--sun);
  box-shadow: inset 0 6px 0 var(--ink), inset 0 -10px 0 #2a231e;
}
.lane {
  position: absolute; left: 0; right: 0; top: 58px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--white) 0 80px, transparent 80px 150px);
}
.bakkie {
  position: absolute; z-index: 2;
  left: clamp(16px, 9vw, 140px); bottom: 16px;
  width: clamp(130px, 13vw, 190px);
  animation: drive-in 2.6s cubic-bezier(.22, .8, .25, 1) .3s both;
}
@keyframes drive-in {
  from { transform: translateX(calc(-100% - 20vw)); }
  to { transform: translateX(0); }
}
.field { padding: 48px 24px 0; background: var(--green); border-bottom: 6px solid var(--ink); }
.shot-hero {
  position: relative; z-index: 3;
  max-width: 1040px;
  margin: 0 auto calc(var(--overlap) * -1);
}

/* ---------- Store badges ----------
   Official artwork, used unmodified. Google's PNG carries 41px of clear space
   on each side of a 168px-tall badge; negative margins absorb it so both
   badges show at the same height. */
.badges { --badge-h: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.badges li { display: flex; }
.badge { display: flex; border-radius: 10px; }
.badge img { display: block; }
.badge-apple img { height: var(--badge-h); width: auto; }
.badge-google img {
  height: calc(var(--badge-h) * 250 / 168); width: auto; max-width: none;
  margin: calc(var(--badge-h) * -41 / 168);
}

/* ---------- Screenshots ---------- */
.shot img {
  width: 100%;
  border: 4px solid var(--ink); border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper-dark);
}
.shot figcaption { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--muted); }

/* ---------- Sections (stops along the day) ---------- */
.stop { padding: 104px 24px; }
.stop > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.hero + .stop { padding-top: calc(var(--overlap) + 88px); }

.stop-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.clock {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 10px;
  background: #a9d8f6; border: 3px solid var(--ink); border-radius: 999px;
  font: 900 17px/1 var(--body); font-variant-numeric: tabular-nums;
}
.clock::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink);
}
.stop h2 { font: 400 clamp(32px, 4.2vw, 50px)/1.05 var(--display); letter-spacing: .005em; }
/* Narrow blocks stay left-aligned with the heading instead of centring. */
.stop > .stop-lede { max-width: var(--measure); margin-left: max(0px, calc((100% - var(--wide)) / 2)); }
.stop-head + .stop-lede, .stop-head + .split { margin-top: 28px; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
}
.split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-text p + p { margin-top: 16px; }
.split-text { max-width: var(--measure); }

.stop-paper { background: var(--paper-dark); }
.stop-farm { background: var(--paper); }
.stop-road { background: var(--white); }
.stop-market { background: var(--paper-dark); }
.stop.stop-friends { background: var(--paper); padding-bottom: 176px; position: relative; }
.stop-friends::after {
  /* dusk: the walk home */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(var(--paper), var(--sun) 35%, var(--clay) 65%, var(--night));
}
.stop-loan, .stop-get { background: var(--night); color: var(--paper); }
.stop-get { padding-top: 24px; }
[data-sky="night"] .clock { background: var(--night-deep); color: var(--sun); border-color: var(--paper); }
[data-sky="night"] .clock::before { background: var(--paper); border-color: var(--paper); box-shadow: inset -5px -2px 0 0 #c9c2b0; }

/* ---------- Morning paper ---------- */
.clippings {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  align-items: start;
}
.clip {
  padding: 22px 20px 34px;
  background: #faf6ec;
  color: var(--ink);
  box-shadow: 0 2px 0 rgb(34 28 23 / .18);
  /* torn lower edge */
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 84% 95%, 75% 99%, 66% 94%, 57% 100%, 48% 95%, 38% 99%, 29% 94%, 20% 100%, 11% 95%, 0 99%);
  border-top: 6px double var(--ink);
}
.clip h3 { font: 900 22px/1.15 var(--body); }
.clip p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.clip-a { transform: rotate(-1.6deg); }
.clip-b { transform: rotate(1.1deg) translateY(18px); }
.clip-c { transform: rotate(-.6deg) translateY(6px); }
.clip-d { transform: rotate(1.8deg) translateY(24px); }

/* ---------- Farm ---------- */
.farm-bottom {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 40px; align-items: start;
}
.tray {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
  background: var(--ink);
  border: 4px solid var(--ink); border-radius: 20px; overflow: hidden;
}
.tray li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--white); }
.tray img { flex: none; width: 56px; height: 56px; }
.tray h3 { font: 900 20px/1.2 var(--body); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tray h3 span {
  font-size: 14px; font-weight: 900; padding: 2px 10px;
  background: #d8ecc9; border: 2px solid var(--ink); border-radius: 999px;
}
.tray p { margin-top: 6px; font-size: 16px; line-height: 1.5; }

.ledger {
  padding: 24px 28px;
  background: var(--white); border: 4px solid var(--ink); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
}
.ledger h3 { font: 900 20px/1.2 var(--body); margin-bottom: 12px; }
.ledger dl div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.ledger dl div::after { content: ""; order: 2; flex: 1; border-bottom: 3px dotted rgb(34 28 23 / .35); }
.ledger dt { flex: none; font-weight: 700; }
.ledger dd { flex: none; order: 3; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Market ---------- */
.agents { margin-top: 80px; }
.agents h3, .floor h3 { font: 900 24px/1.2 var(--body); }
.agents ul { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.agents li { display: flex; gap: 16px; align-items: flex-start; }
.agents img, .bubble img, .friend-picker img, .dialog-face {
  flex: none; border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--sky);
}
.agents img { width: 84px; height: 84px; background: var(--sun); }
.agents h4 { font: 900 19px/1.25 var(--body); }
.agents .who { font-size: 15px; font-weight: 700; color: var(--muted); }
.agents p:last-child { margin-top: 6px; font-size: 16px; line-height: 1.5; }

.floor { margin-top: 72px; }
.floor ul { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.bubble { display: flex; gap: 18px; align-items: flex-end; }
.bubble img { width: 76px; height: 76px; background: var(--white); }
.bubble blockquote {
  position: relative; flex: 1;
  padding: 18px 20px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 22px 22px 22px 6px;
  box-shadow: 4px 4px 0 var(--ink);
}
.bubble blockquote p { font-weight: 700; font-size: 17px; line-height: 1.5; }
.bubble footer { margin-top: 8px; font-size: 14px; font-weight: 900; color: var(--muted); }

/* ---------- Lingo (as in the game's notebook) ---------- */
.lingo {
  position: relative;
  padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit;
  border-bottom: 2px dotted var(--tomato-deep);
  cursor: help;
}
.lingo .def {
  position: absolute; z-index: 20;
  left: 50%; bottom: calc(100% + 10px);
  width: max-content; max-width: 240px;
  padding: 8px 12px;
  background: var(--ink); color: var(--paper);
  border-radius: 10px;
  font: 700 15px/1.4 var(--body); text-align: left;
  opacity: 0; pointer-events: none;
  transform: translate(calc(-50% + var(--nudge, 0px)), 4px);
  transition: opacity .12s, transform .12s;
}
.lingo:hover .def, .lingo:focus-visible .def, .lingo[aria-expanded="true"] .def {
  opacity: 1; transform: translate(calc(-50% + var(--nudge, 0px)), 0);
}

/* ---------- Friends: the game's dialog panel ---------- */
.friends {
  margin-top: 44px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start;
}
.friend-picker { display: flex; flex-direction: column; gap: 8px; }
.friend-picker button {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px;
  background: transparent; border: 3px solid transparent; border-radius: 999px;
  font: 900 18px/1.2 var(--body); color: var(--ink); text-align: left;
  cursor: pointer;
}
.friend-picker button:hover { background: var(--white); border-color: rgb(34 28 23 / .25); }
.friend-picker button[aria-selected="true"] {
  background: var(--sun); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.friend-picker img { width: 56px; height: 56px; }

.dialog {
  background: var(--paper);
  border: 4px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 820px;
}
.dialog-head { padding: 18px 24px 14px; background: #8fc6ef; }
.dialog-name { font: 400 32px/1.1 var(--display); }
.dialog-meta { margin-top: 4px; font-weight: 700; font-size: 16px; }
.dialog-strip {
  height: 16px;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='10'%3E%3Cg stroke='%23221c17' stroke-width='1.5'%3E%3Cpath d='M0 10L8 0L16 10Z' fill='%23f6c844'/%3E%3Cpath d='M16 10L24 0L32 10Z' fill='%23e2482f'/%3E%3Cpath d='M32 10L40 0L48 10Z' fill='%233e8a4a'/%3E%3Cpath d='M48 10L56 0L64 10Z' fill='%231f5fa8'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 64px 10px;
}
.dialog-body { display: flex; gap: 24px; align-items: flex-start; padding: 26px 24px 8px; }
.dialog-face { width: 132px; height: 132px; background: #a9d8f6; }
.dialog-say {
  flex: 1;
  padding: 18px 22px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 20px;
  font: 700 18px/1.55 var(--body);
}
.dialog-perks { padding: 18px 24px 26px; }
.dialog-perks h4 { font: 900 18px/1.2 var(--body); }
.perks { margin-top: 10px; display: grid; gap: 8px; }
.perks li { font-size: 16px; line-height: 1.5; padding-left: 56px; text-indent: -56px; }
.perks li .hearts { display: inline-block; margin-right: 10px; text-indent: 0; }
.perks b { font-weight: 900; }
.hearts {
  flex: none; min-width: 44px; text-align: center;
  padding: 1px 8px; border-radius: 999px;
  background: var(--tomato); color: var(--white); border: 2px solid var(--ink);
  font-weight: 900; font-size: 14px;
}
.hearts::after { content: " \2665"; }

/* ---------- Loan (night) ---------- */
.stop-loan .split { align-items: start; }
.note {
  justify-self: center; width: min(100%, 440px);
  padding: 22px 26px 26px;
  background: var(--white); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 10px;
  box-shadow: 8px 8px 0 #0b0e1a;
  transform: rotate(-1.4deg);
}
.note-tag { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tomato); }
.goals { margin-top: 12px; display: grid; gap: 6px; }
.goals li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.goals li::before {
  content: ""; flex: none; width: 20px; height: 20px;
  border: 3px solid var(--ink); border-radius: 5px; background: var(--paper);
}
.goals li:first-child { font: 400 24px/1.2 var(--display); }

/* ---------- Get the game (night) ---------- */
.get-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start;
}
.devices { width: 100%; border-collapse: collapse; }
.devices caption { text-align: left; font: 900 22px/1.2 var(--body); padding-bottom: 12px; }
.devices th, .devices td { text-align: left; padding: 14px 16px 14px 0; border-top: 2px solid rgb(255 243 218 / .18); vertical-align: top; }
.devices thead th { font-size: 14px; font-weight: 900; color: #c9bfae; border-top: 0; padding-bottom: 8px; }
.devices tbody th { font-weight: 900; }
.when {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 2px solid rgb(255 243 218 / .45);
  font-size: 14px; font-weight: 900; white-space: nowrap;
}
.when-now { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.news { padding: 28px; border: 3px solid rgb(255 243 218 / .25); border-radius: 20px; }
.news label { display: block; font: 900 22px/1.2 var(--body); }
.news-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.news input {
  flex: 1 1 240px; min-height: 52px; padding: 0 18px;
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--white); color: var(--ink);
  font: 700 18px var(--body);
}
.news input[aria-invalid="true"] { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato); }
.news-msg { margin-top: 12px; min-height: 1.6em; font-weight: 700; }
.news-msg.is-error { color: #ffb4a3; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: #d9cfbd; padding: 0 24px 56px; }
.foot-inner { max-width: var(--wide); margin: 0 auto; padding-top: 40px; border-top: 2px solid rgb(255 243 218 / .15); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts dt { font-size: 14px; font-weight: 700; color: #a99f8f; }
.facts dd { font-weight: 900; color: var(--paper); }
.made { margin-top: 32px; max-width: var(--measure); font-size: 16px; }
.links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; font-weight: 900; }
.links a { color: var(--paper); text-underline-offset: 4px; }
.copy { margin-top: 20px; font-size: 14px; color: #a99f8f; }

/* ---------- Legal pages (privacy.html) ---------- */
.legal .hud { grid-template-columns: auto 1fr auto; }
.legal .hud-get { grid-column: 3; }
.legal-top { background: var(--sky); padding: 120px 0 72px; border-bottom: 6px solid var(--ink); }
/* Lines up with the policy column, past the 220px contents list and its 64px gap. */
.legal-top-inner { max-width: var(--wide); margin: 0 auto; padding: 0 24px 0 calc(24px + 284px); }
.short { max-width: 70ch; }
.legal h1 {
  font: 400 clamp(40px, 6vw, 64px)/1.04 var(--display);
  color: var(--white);
  text-shadow:
    -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink),
    5px 7px 0 var(--ink);
}
.legal-date { margin-top: 14px; font-weight: 900; font-size: 15px; }
.legal-intro { margin-top: 18px; font-weight: 700; max-width: var(--measure); }
.short {
  margin-top: 32px; padding: 24px 28px;
  background: var(--white); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.short h2 { font: 400 26px/1.15 var(--display); }
.short ul { margin-top: 12px; display: grid; gap: 8px; }
.short li { padding-left: 30px; position: relative; }
.short li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--ink);
}

.legal-body {
  max-width: var(--wide); margin: 0 auto; padding: 72px 24px 104px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start;
}
.toc { position: sticky; top: 100px; }
.toc h2 { font: 900 16px/1.2 var(--body); color: var(--muted); }
.toc ul { margin-top: 12px; display: grid; gap: 2px; border-left: 3px solid var(--paper-dark); }
.toc a {
  display: block; padding: 5px 0 5px 14px; margin-left: -3px;
  border-left: 3px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.toc a:hover { border-left-color: var(--ink); }

.policy { max-width: 70ch; }
.policy section + section { margin-top: 64px; }
.policy section { scroll-margin-top: 100px; }
.policy h2 { font: 400 clamp(28px, 3.4vw, 38px)/1.1 var(--display); }
.policy h3 { margin-top: 32px; font: 900 20px/1.3 var(--body); }
.policy h2 + p, .policy h2 + ul, .policy h2 + table { margin-top: 16px; }
.policy p, .policy ul, .policy address { margin-top: 12px; }
.policy ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.policy li::marker { color: var(--clay); }
.policy address { font-style: normal; line-height: 1.8; }
.policy a { text-underline-offset: 3px; }

.legal-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.legal-table caption { text-align: left; font-weight: 900; padding-bottom: 10px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 2px solid var(--paper-dark); }
.legal-table thead th { font-size: 14px; color: var(--muted); border-top: 0; padding-bottom: 6px; }
.legal-table tbody th { font-weight: 900; width: 38%; }

.todo { background: #ffe58a; padding: 0 4px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal .foot { padding-top: 0; }
.legal .foot-inner { border-top: 0; }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .toc { position: static; }
  .legal-top-inner { padding-left: 24px; }
}
@media (max-width: 600px) {
  .legal-top { padding: 104px 0 56px; }
  .short { padding: 20px; }
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 12px 0; border-top: 2px solid var(--paper-dark); }
  .legal-table th, .legal-table td { display: block; border: 0; padding: 2px 0; width: auto; }
  .legal-table tbody th { width: auto; }
  .legal-table td::before { font-weight: 900; color: var(--muted); }
  .legal-table td:nth-of-type(1)::before { content: "What we use: "; }
  .legal-table td:nth-of-type(2)::before { content: "Basis: "; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .clippings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .farm-bottom, .get-grid { grid-template-columns: 1fr; }
  .ledger { max-width: 560px; }
  .agents ul { grid-template-columns: 1fr; max-width: var(--measure); }
}
@media (max-width: 900px) {
  .hud-nav { display: none; }
  .hud { grid-template-columns: auto auto 1fr auto; }
  .hud-get { grid-column: 4; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { order: -1; padding-bottom: 8px; }
  .hero-sign { max-width: 520px; }
  .sky { padding-top: 112px; background: radial-gradient(circle at 50% 100%, var(--sun) 0 190px, var(--ink) 190px 196px, transparent 197px), var(--sky); }
  .split, .split-flip { grid-template-columns: 1fr; gap: 36px; }
  .split-flip .shot { order: 2; }
  .floor ul { grid-template-columns: 1fr; }
  .friends { grid-template-columns: 1fr; }
  .friend-picker { flex-direction: row; overflow-x: auto; padding: 4px 4px 10px; }
  .friend-picker button { flex: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --overlap: 70px; }
  .hud-home span { display: none; }
  .hud-home { padding: 0 8px; }
  .hud-pill { height: 44px; font-size: 16px; }
  .hud-get { padding: 0 16px; }
  .stop { padding: 80px 20px; }
  .tar { height: 92px; }
  .lane { top: 40px; height: 8px; }
  .bakkie { bottom: 22px; }
  .clippings, .tray { grid-template-columns: 1fr; }
  .clip-b, .clip-c, .clip-d { transform: rotate(0.8deg); }
  .dialog-body { flex-direction: column; }
  .dialog-face { width: 96px; height: 96px; }
  .bubble img { width: 56px; height: 56px; }
  .bubble { gap: 12px; }
  .badges { --badge-h: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bakkie { animation: none; }
  .btn, .lingo .def, .hud-clock, .hud-sun { transition: none; }
}
