/* ¼ km² Cities: the v2 site, after the Claude Design project "¼ km² Cities — website v2".
   Warm paper, near-black ink, one moss accent; Inter Tight for text, Instrument Serif italic
   for "Cities." and the stressed words in headings, JetBrains Mono for small labels. Light
   theme only. Flat and square: 1px ink borders, no shadows, gradients or rounded corners.
   Fonts are self-hosted under the SIL Open Font License (assets/fonts/OFL-*.txt).
   The Content-Security-Policy allows no style attributes, so every look lives in this file. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-v9-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-v5-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin-wght.woff2") format("woff2");
}

:root {
  --paper: #f4efe5;
  --ink: #1c1814;
  --ink-2: #5a4f43;   /* 7:1 on paper: the lightest colour used for text */
  --line: rgba(28, 24, 20, 0.18);
  --accent: #4a5e3e;  /* moss, 6.2:1 on paper */
  --card: #fbf8f2;    /* cards, panels and form fields, a touch lighter than paper */
  --error: #9a2f1f;   /* form errors only, 6.5:1 on paper */

  /* Drawings and fills. Never text, except --sand on --ink. */
  --plot: #ebe3d2;
  --sand: #d8c9aa;
  --sand-line: #9c8667;
  --green: #b9c6ad;
  --lane: #c7b89b;
  --tree: #8ba585;
  --clay: #b8a07a;
  --sky: #a5b9c4;
  --ghost: #948776;
  --tint: #ebe4d4;    /* every other lane of the path */
  --money: #e2e7d8;   /* the path's money lane */

  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1200px;
  --pad-x: clamp(16px, 4vw, 48px);

  color-scheme: light;
  color-scheme: only light;
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { overflow: visible; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }
.skip:hover { color: var(--paper); }

/* — type — */
.num, .label, .badge, .tag, .meta, .notice dt, .kv dt {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.num { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.label { font-size: 11px; color: var(--ink-2); }
.badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.h1 {
  margin-top: 16px;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  margin-top: 14px;
  max-width: 24ch;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ser { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
/* A stressed phrase in a heading stays on one line. */
.h1 .ser, .h2 .ser { white-space: nowrap; }
.lead { margin-top: 18px; max-width: 60ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.small { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.small + .small { margin-top: 4px; }
.muted { color: var(--ink-2); }
.fig { display: block; margin-top: 16px; max-width: 90ch; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-2 { background: transparent; color: var(--ink); }
.btn-2:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-s { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-inline { margin-top: 32px; }
.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}
.btn:hover .icon { transform: translateX(3px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* — top bar — */
.top { border-bottom: 1px solid var(--ink); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; min-height: 68px; }
.home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.home:hover { color: var(--ink); }
.home .wm { font-size: 22px; }
.mark { flex: none; position: relative; width: 18px; height: 18px; border: 1.5px solid var(--ink); }
.mark::after { content: ""; position: absolute; inset: 3px; background: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.tools { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
.langs > * { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.langs a { color: var(--ink-2); text-decoration: none; }
.langs a:hover { color: var(--ink); text-decoration: underline; }
.langs [aria-current] { text-decoration: underline; text-underline-offset: 0.18em; }

/* — wordmark: "¼ km²" in Inter Tight, "Cities." in Instrument Serif italic — */
.wm { line-height: 0.92; white-space: nowrap; }
.wm-km { font-weight: 600; letter-spacing: -0.045em; }
.wm-cities { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* — hero — */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: center; }
.hero-fig .card { max-width: 540px; }

/* — cards: the listing card and the choice screen — */
.card { background: var(--card); border: 1px solid var(--ink); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.listing { font-size: 15px; line-height: 1.4; }
.listing-body { display: flex; gap: 20px; padding: 20px; }
.listing .plan { flex: none; display: block; width: 176px; height: 176px; }
.listing-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.listing-name { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.listing-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 14px; }
.listing-status b, .homes b, .next b { font-weight: 600; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14.5px; }
.kv dt { padding-top: 3px; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); }
.listing .kv { padding-top: 12px; border-top: 1px solid var(--line); }
.homes { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.squares { display: flex; flex-wrap: wrap; gap: 3px; }
.squares span { width: 11px; height: 11px; border: 1px solid var(--accent); }
.squares .on { background: var(--accent); }
.next { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }

/* — sections — */
.sec { padding-block: clamp(56px, 6vw, 80px); border-top: 1px solid var(--ink); }
.body { margin-top: clamp(28px, 4vw, 44px); }
.viz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* §01: what exists, what's missing */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 0 48px; }
.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.piece {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
  padding: 16px;
  border: 1px dashed var(--ink-2);
  font-size: 16px;
  line-height: 1.3;
}
.piece.on { border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); }
.piece.on .num { color: var(--sand); }

/* §02: the path, as lanes on wide screens and a numbered list below 1140px */
.lanes {
  display: grid;
  grid-template-columns: 139px repeat(8, minmax(0, 1fr));
  grid-template-rows: 48px repeat(5, minmax(128px, auto)) 16px minmax(112px, auto);
  column-gap: 13px;
}
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; }
.c4 { grid-column: 4; } .c5 { grid-column: 5; } .c6 { grid-column: 6; }
.c7 { grid-column: 7; } .c8 { grid-column: 8; } .c9 { grid-column: 9; }
.r1 { grid-row: 1; } .r2 { grid-row: 2; } .r3 { grid-row: 3; } .r4 { grid-row: 4; }
.r5 { grid-row: 5; } .r6 { grid-row: 6; } .r7 { grid-row: 7; } .r8 { grid-row: 8; }
.to3 { grid-row-end: 3; } .to4 { grid-row-end: 4; } .to5 { grid-row-end: 5; }
.to6 { grid-row-end: 6; } .to7 { grid-row-end: 7; }
.lanes-head, .lanes-n { font-family: var(--font-mono); }
.lanes-head { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.lanes-n { font-size: 12px; }
.lanes-axis { grid-column: 2 / -1; align-self: end; position: relative; height: 2px; margin: 0 2px 14px 0; background: var(--ink-2); }
.lanes-axis::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -2px;
  border-left: 8px solid var(--ink-2);
  border-block: 5px solid transparent;
}
.lane-bg { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.lane-bg.tint { background: var(--tint); }
.lane-bg.r6 { border-bottom: 1px solid var(--line); }
.lane-bg.money { border-top: 1.5px solid var(--accent); background: var(--money); }
.lane-label { grid-column: 1; display: flex; flex-direction: column; padding: 13px 12px; font-size: 15px; line-height: 22px; }
.lane-label b { font-weight: 600; }
.lane-label .ser { font-size: 22px; }
.lane-label.money { color: var(--accent); }
.lanes-dash { position: relative; z-index: 1; justify-self: center; width: 0; margin-block: 12px; border-left: 1.5px dashed var(--ink-2); }
.box {
  position: relative;
  z-index: 2;
  min-height: 104px;
  margin-block: 12px;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--card);
  font-size: 13px;
  line-height: 17px;
  hyphens: auto;
  overflow-wrap: break-word;
}
.box b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.box.final { background: var(--ink); color: var(--paper); }
.box.final b { color: var(--sand); }
.box.up::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 24px;
  margin-left: -1px;
  background: var(--ink-2);
}
.box.up::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 17px);
  left: 50%;
  margin-left: -5px;
  border-bottom: 7px solid var(--ink-2);
  border-inline: 5px solid transparent;
}
.box-money { min-height: 96px; margin-block: 8px 6px; border: 1.5px solid var(--accent); }
.box-money b { color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }

.steps { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps-n { padding-top: 2px; font-family: var(--font-mono); font-size: 13px; }
.steps-body { display: flex; flex-direction: column; gap: 6px; }
.steps-title { font-size: 17px; font-weight: 600; }
.steps-text { font-size: 15.5px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 6px; border: 1px solid var(--ink-2); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); }
.steps-money { padding-top: 2px; font-size: 15px; font-weight: 600; color: var(--accent); }
@media (min-width: 1140px) {
  .steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 1139px) {
  .lanes { display: none; }
}

/* §03: same land, drawn to scale */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend-mono { gap: 10px 24px; font-family: var(--font-mono); font-size: 12px; }
.sw { flex: none; width: 12px; height: 12px; }
.legend-mono .sw { width: 14px; height: 14px; }
.sw-ink { background: var(--ink); }
.sw-sand { border: 1px solid var(--sand-line); background: var(--sand); }
.sw-green { border: 1px solid var(--accent); background: var(--green); }
.sw-lane { background: var(--lane); }
.legend-mono .sw-tree { width: 12px; height: 12px; border: 1px solid var(--accent); border-radius: 50%; background: var(--tree); }
.sw-clay { background: var(--clay); }
.sw-sky { background: var(--sky); }
.sw-margin { background: var(--ink-2); }
.sw-fee { background: var(--accent); }
.plots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; margin-top: 28px; }
.plot { display: flex; flex-direction: column; gap: 12px; width: 260px; }
.plot-title { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.plot-title span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.plot .plan { display: block; }
.plot .kv { gap: 6px 12px; font-size: 15px; line-height: 1.4; }
.plot .kv dd { color: var(--ink-2); }
.plot .kv dd b { font-weight: 600; color: var(--ink); }
.scale { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.scale svg { flex: none; }
.sb-fill { fill: var(--ink); }
.sb-line { fill: none; stroke: var(--ink); stroke-width: 1; }
.pl-ground { fill: var(--plot); }
.pl-garden { fill: var(--sand); }
.pl-green { fill: var(--green); }
.pl-lane { fill: var(--lane); }
.pl-div { stroke: var(--sand-line); stroke-width: 0.3; }
.pl-bldg { fill: var(--ink); }
.pl-joint { stroke: var(--plot); stroke-width: 0.35; }
.pl-tree { fill: var(--tree); stroke: var(--accent); stroke-width: 0.3; }
.pl-edge { fill: none; stroke: var(--ink); stroke-width: 0.6; }

/* §04: open books */
.books { display: flex; flex-direction: column; gap: 28px; }
.route { display: flex; flex-direction: column; gap: 10px; }
.route-name { font-size: 18px; font-weight: 600; }
.cost-bar { display: block; height: 48px; border: 1px solid var(--ink); overflow: hidden; }
.cb-clay { fill: var(--clay); }
.cb-sand { fill: var(--sand); }
.cb-sky { fill: var(--sky); }
.cb-margin { fill: var(--ink-2); }
.cb-fee { fill: var(--accent); }
.cb-gap { stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.note { max-width: 72ch; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--ink); font-size: 15.5px; color: var(--ink-2); }
.note b { font-weight: 600; color: var(--ink); }
.gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0 32px; margin-top: 44px; }
.get { padding: 16px 0; border-top: 1.5px solid var(--ink); }
.get h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.get p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* §05: the choice screen */
.choices { font-size: 16px; line-height: 1.45; }
.choices-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); }
.choices-controls { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-right: 1px solid var(--line); }
.segs { min-width: 0; margin: 0; padding: 0; border: 0; }
.segs legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
.segs > div { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
}
.seg input:hover + span { border-color: var(--accent); }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choices-note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.choices-note .ser { display: block; font-size: 19px; color: var(--ink); }
.choices-view { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 24px; }
.view-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary { font-weight: 600; }
.massing { border: 1px solid var(--line); background: var(--paper); }
.massing svg { display: block; width: 100%; height: auto; }
.ms-block, .ms-home { fill: var(--plot); stroke: var(--ink); stroke-width: 1.5; }
.ms-floor { stroke: var(--ink); stroke-width: 0.75; }
.ms-mine { fill: var(--accent); }
.ms-edge { stroke: var(--ink); stroke-width: 1.5; }
.ms-ghost { fill: none; stroke: var(--ghost); stroke-width: 1; stroke-dasharray: 4 4; }
.ms-roof { fill: var(--ink); }
.ms-ground { stroke: var(--ink); stroke-width: 1.5; }
.price { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.price-label { font-weight: 600; }
.price-value { font-family: var(--font-mono); font-size: 14px; }
.price-bar { display: block; width: 100%; height: 10px; border: 1px solid var(--line); background: var(--plot); overflow: hidden; }
.pb-fill { fill: var(--accent); }

/* §06: the group-size ladder */
.ladder { margin-top: 16px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ladder li { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.ladder-n { flex: 1 1 13rem; font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.5; }
.ladder-n.ser { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; }
.ladder-body { flex: 3 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.ladder-bar { display: block; width: 100%; height: 10px; }
.ladder-bar rect { stroke-width: 1; vector-effect: non-scaling-stroke; }
.lb-sand { fill: var(--sand); stroke: var(--sand-line); }
.lb-green { fill: var(--green); stroke: var(--accent); }
.lb-tree { fill: var(--tree); stroke: var(--accent); }
.lb-goal { fill: var(--accent); stroke: var(--accent); }
.goal b { font-weight: 600; }

/* §07: landowners, the pitch beside what they get */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 64px; align-items: end; }
.points { border-bottom: 1px solid var(--line); }
.point { padding: 16px 0; border-top: 1px solid var(--line); }
.point h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.point p { margin-top: 4px; font-size: 16px; color: var(--ink-2); }

/* §08: partners */
.rows { margin-top: 36px; border-bottom: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 16px 0; border-top: 1px solid var(--line); }
.row dt { flex: 1 1 11rem; font-weight: 600; }
.row dd { flex: 4 1 320px; color: var(--ink-2); }

/* §09: status */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; margin-top: 40px; padding: 0; list-style: none; }
.phase { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 0 0; border-top: 4px solid var(--lane); }
.phase.on { border-top-color: var(--accent); }
.phase b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.phase span { font-size: 15px; color: var(--ink-2); }
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.gate { padding: 18px 20px; border: 1px solid var(--ink); }
.gate h3 { font-size: 17px; font-weight: 600; }
.gate ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }

/* §10: who runs it */
.who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.who > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--paper); }
.who-name { font-weight: 600; }
.who p:last-child { font-size: 16px; color: var(--ink-2); }

/* §11: sign up, one door each for households, landowners and partners */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0;
  list-style: none;
}
.door { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; border: 1px solid var(--ink); }
.door h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.door p { margin-bottom: 14px; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.door .btn { display: flex; margin-top: auto; }

/* — forms, each on its own page — */
.form { display: flex; flex-direction: column; gap: 26px; font-size: 16px; line-height: 1.45; }
.form-land { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--ink); background: var(--card); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-weight: 600; }
.field > legend { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 26px 24px; }
.form-land .field-row { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.opt { font-weight: 400; color: var(--ink-2); }
.hint { font-size: 14.5px; color: var(--ink-2); }
.form input[type="text"], .form input[type="email"], .form input[type="number"], .form select, .form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.form-land input[type="text"], .form-land textarea { background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form ::placeholder { color: var(--ink-2); opacity: 1; }
.form input[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: var(--error); }
.pair { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.pair-item { display: flex; flex-direction: column; gap: 8px; width: 9rem; }
.options { display: flex; flex-wrap: wrap; gap: 0 24px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.choice input, .consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { margin-top: 3px; }
.field-error { font-size: 14.5px; font-weight: 500; color: var(--error); }
.consent + .field-error { margin-left: 32px; }
.error-summary { padding: 16px 18px; border: 2px solid var(--error); background: var(--card); }
.form-land .error-summary { background: var(--paper); }
.error-title { font-weight: 600; color: var(--error); }
.error-summary ul { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-left: 18px; font-size: 15px; }
.error-summary a, .error-summary a:hover { color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 14.5px; color: var(--ink-2); }
.form-status { color: var(--ink-2); }
.form-status:empty { display: none; }
.form-failed { padding: 12px 16px; border: 2px solid var(--error); font-weight: 500; color: var(--error); }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border: 1px solid var(--ink); background: var(--card); }
/* Focus moves here after sending so screen readers announce it; it isn't a control, so no ring. */
.form-done:focus { outline: none; }
.form-done h2 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.form-done p { max-width: 52ch; color: var(--ink-2); }
.form-done .btn { margin-top: 8px; }
/* Honeypot: off-screen field that only bots fill in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* — footer — */
.foot { padding-block: 32px 36px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--accent); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-brand .wm { font-size: 26px; color: var(--ink); }
.foot-brand p { font-size: 15px; }
.privacy-line { max-width: 90ch; margin-top: 16px; }
.privacy-line a { white-space: nowrap; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
}
.dots { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0; list-style: none; }

/* — form pages, privacy notice and 404 — */
.doc { padding-block: clamp(24px, 6vh, 72px) clamp(48px, 9vh, 112px); }
.form-page .body { max-width: 760px; }
.form-page-land .body { max-width: 640px; }
.meta { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.doc .h1 + .meta { margin-top: 16px; }
.doc .meta + .h1 { margin-top: 12px; }
.notice { max-width: 920px; margin-top: clamp(28px, 5vh, 52px); border-top: 1.5px solid var(--ink); }
.notice > div {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 6px 32px;
  padding-block: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.notice dt { padding-top: 0.3em; font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-2); }
.notice dd { max-width: 62ch; }

/* — narrower screens — */
@media (max-width: 900px) {
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; overflow-x: auto; border-top: 1px solid var(--line); }
  .tools { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ctas .btn { width: 100%; }
  .listing-body { flex-direction: column; }
  .listing .plan { width: 100%; height: auto; }
  .choices-body { grid-template-columns: minmax(0, 1fr); }
  .choices-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 680px) {
  .notice > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .icon { transition: none; }
}
