/* ══════════════════════════════════════════════════════════════════════════════
   ponics.app — site styles
   Pixel, 2026-09-17. Shared by all three pages. Load AFTER tokens.css.

   Consolidated from the render builds' four stylesheets (`_base.css`, `_p9.css`,
   `_page.css` and a per-page inline block). Three things changed on the way in,
   and all three were the point of the exercise:

     · EVERY COLOUR IS A TOKEN. The render builds carried ~30 raw hex values —
       #8A5A12, #C98A2E, #A97A2A, #1C6129 and so on — scattered across four files.
       Nothing here is a raw hex except inside a token definition.
     · DEAD RULES DROPPED. The render CSS accumulated four generations of
       abandoned concepts: `.chip`, `.recog-label`, `.subline`, `.art-ph`,
       `.claim-pair`, `.next-ph`, `.fold`, `.h-stamp`. None is in any shipping
       page's markup. They are not carried over.
     · SCAFFOLD IS ABSENT, NOT HIDDEN. No `.flag`, no `.pulled`, no `.sec-tag`,
       no `.h-stamp`, no clean-mode switch. The working record keeps those; the
       site does not have them to hide.
   ══════════════════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kept with the old site's exact declaration block so a screen-reader-only
   string behaves identically to how it did before the rewrite. */
.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;
}

/* ══ NAV ═══════════════════════════════════════════════════════════════════
   🔴 KNOWN GAP, CARRIED FORWARD DELIBERATELY AND FLAGGED IN THE README:
   `.site-nav-links` is hidden below 760px and `.site-nav-menu` is shown — so at
   mobile the hamburger is the ONLY navigation affordance, and it has no
   behaviour attached. This is not a decorative glyph; below 760px the site
   currently has no working navigation at all. Left as-is rather than silently
   deleted or silently wired, because either is a decision.
   ══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(40, 37, 37, 0.08);
}
.site-nav-brand { display: flex; align-items: center; margin-right: auto; }
.site-nav-brand img { height: 28px; display: block; }

.site-nav-links { display: none; gap: 16px; }
.site-nav a {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.01em;
}
/* 🔴 SCOPED TO `.site-nav` ON PURPOSE — DO NOT FLATTEN THIS BACK TO `.site-nav-pill`.
   The rename from `nav .pill` to a flat `.site-nav-pill` dropped this rule's
   specificity from (0,1,1) to (0,1,0), which put it BELOW `.site-nav a` above.
   The pill then inherited that rule's `--color-black` and rendered dark brown type
   on the dark brown pill fill — near-invisible, and nothing about the declaration
   had changed. It lost on weight, not on content.
   ⭐ The general shape: renaming a DESCENDANT selector to a FLAT class changes its
   specificity, so a rule that was winning on source order can start losing silently.
   A rename is not a no-op, and this one was invisible in the CSS diff. */
.site-nav .site-nav-pill {
  background: var(--color-home);
  color: var(--color-bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

/* The menu button is a real <button> with aria-expanded — not the decorative
   span it started as. Below 760px it is the only navigation affordance, so it
   has to be focusable, operable by keyboard, and announce its own state.
   The button resets are needed because a <button> brings its own background,
   border and font that would otherwise show through. */
.site-nav-menu {
  display: flex; flex-direction: column; gap: 3px; padding: 7px 6px;
  background: none; border: 0; cursor: pointer; font: inherit; color: inherit;
}
.site-nav-menu i {
  display: block; width: 17px; height: 2px;
  background: var(--color-black); border-radius: 2px;
  transition: transform 160ms ease, opacity 120ms ease;
}
/* Bars fold into a cross while open. Cosmetic, but a toggle that never changes
   appearance reads as a button that did nothing. */
/* nth-of-type, not nth-child: the button's first child is the sr-only label, so
   child indices would shift if that label ever moved. */
.site-nav-menu[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(5px) rotate(45deg); }
.site-nav-menu[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.site-nav-menu[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-5px) rotate(-45deg); }

/* Nothing in this stylesheet styled focus, so every control relied on the
   browser default ring. Made deliberate here, in brand colour, and only for
   keyboard focus so a mouse click does not leave a ring behind. */
.site-nav a:focus-visible,
.site-nav-menu:focus-visible,
.site-footer a:focus-visible,
.route-link:focus-visible,
.store-badges a:focus-visible,
.signup-input:focus-visible,
.signup-button:focus-visible {
  outline: 3px solid var(--color-green-on-light);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-menu i { transition: none; }
}

/* ══ TYPE ═════════════════════════════════════════════════════════════════ */
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 7.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-outline-disabled);
  margin: 0 0 9px;
  border-left: 3px solid var(--color-evidence-rule);
  padding-left: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--color-evidence-ink);
}

.body-copy { font-size: 0.95rem; line-height: 1.55; margin: 0 0 14px; max-width: 62ch; }
.body-copy:last-child { margin-bottom: 0; }

/* The route link under a claim. A LINK, not a button — the block is content,
   and a control and content are different objects. */
.route-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-green-on-light);
  text-decoration: none;
  border-bottom: 2px solid rgba(30, 108, 47, 0.25);
  padding-bottom: 2px;
}
/* A route link that ends a PARAGRAPH (the two /make-it-yours refrains) sits on
   its OWN line beneath the text — Neill, 2026-09-28: "so they stand out more".
   Left inline, whether it wrapped depended on the screen width, so one link sat
   on its own line and the other ran on after the sentence.
   `display: table` makes it block-level but shrink-to-fit, so the underline stays
   the width of the words and a long label can still wrap on a narrow screen.
   The gap matches Home's standalone route links (text-to-link ≈ 33px: the
   paragraph's 14px bottom margin plus the link's own 16px, plus leading), so a
   route link reads the same everywhere on the site. */
.body-copy .route-link { display: table; margin-top: 30px; }

/* ══ SECTIONS ═════════════════════════════════════════════════════════════ */
.section { padding: 34px 20px; position: relative; }
.section-inner { }
.section--dark { background: var(--color-home); color: var(--color-bg); }
.section--dark .section-title { color: var(--color-bg); }

/* ══ EVIDENCE OBJECTS ══════════════════════════════════════════════════════
   Every evidence object caps at 560px — the width the hero sets. None stretches
   to the content column. At ≥900 type sits LEFT and the object RIGHT, always the
   same side; alternating would read as a device rather than a rhythm. Below 900
   the object is full-width, because 390 IS its natural width — so the rule only
   bites at ≥900, which is also where the site's tablet breakpoint sits. The two
   systems agree and neither had to move.
   ══════════════════════════════════════════════════════════════════════════ */
.evidence-row + .evidence-row { margin-top: 26px; }
.evidence-object { max-width: 560px; }
.evidence-object img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  border: 1px solid var(--color-accent-grey);
}
.evidence-caption {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--color-outline-disabled);
  margin: 8px 0 0;
}

/* ══ STATUS INDICATOR ══════════════════════════════════════════════════════
   From `ux/catalog/components/status_indicator_mobile/`. DIRECTION is the glyph,
   SEVERITY is the modifier — shape-first, so direction survives with no colour.
   ⛔ Never reference `ux/catalog/icons/status_*.svg` directly: those bake
   #FFDD00 in, which is what produced three identical rings for three different
   severities on the old build.
   ══════════════════════════════════════════════════════════════════════════ */
.status-ind {
  display: inline-block;
  width: var(--ind-size, 20px);
  height: var(--ind-size, 20px);
  font-size: var(--ind-size, 20px);
  line-height: 1;
  flex: none;
  color: var(--ind-color, var(--color-alert-yellow));
}
.status-ind--ok     { --ind-color: var(--color-primary-green-2); }
.status-ind--low    { --ind-color: var(--color-alert-yellow); }
.status-ind--medium { --ind-color: var(--color-alert-orange); }
.status-ind--high   { --ind-color: var(--color-alert-red); }
.status-ind--inline { vertical-align: -0.45em; margin-left: 5px; }

/* ══ HERO ═════════════════════════════════════════════════════════════════ */
.hero { padding: 22px 20px 0; }
/* Hidden at mobile: the nav already carries the wordmark a few pixels above, and
   at 375 a second one costs most of the first screen. Shown from 760 up — see the
   desktop block. */
.hero-wordmark { display: none; }
.hero-routes { margin-top: 18px; }
.hero-routes .readout-feed-label { margin: 0 0 9px; }

.hero-object { position: relative; overflow: visible; margin: 0 0 16px; }

/* The card shell. `overflow` MUST stay visible — the net pot is 106% tall and
   deliberately breaks the top edge — so the parent's radius never clips, and
   anything sitting behind a rounded corner shows through it. */
.readout-card {
  border: 1px solid var(--color-accent-grey);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(40, 37, 37, 0.04);
}

/* 🔴 NO BACKGROUND HERE. The render build inherited a light-grey background on
   this element from an earlier two-frame layout where it was a 2px divider.
   That layout is gone; the background survived it and rendered as grey squares
   behind the band's rounded top corners. Kept transparent, and the reason is
   recorded so nobody "restores" it. */
.hero-frames { position: relative; display: block; background: transparent; }

/* 15px, not 16: the card is `--radius-card` (16) with a 1px border, so the inner
   arc is one pixel tighter. */
.hero-band { display: block; position: relative; overflow: hidden; border-radius: 15px 15px 0 0; }
.hero-band img { width: 100%; display: block; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-band-shift {
  position: absolute; top: 0; left: 7.69%;
  -webkit-mask-image: linear-gradient(to right, transparent 44%, #000 50%);
          mask-image: linear-gradient(to right, transparent 44%, #000 50%);
}
.hero-plant {
  position: absolute; left: 50%; bottom: 1%;
  transform: translateX(-50%);
  height: 106%; width: auto; z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(40, 37, 37, 0.20));
  pointer-events: none;
}

/* ══ THE READOUT ══════════════════════════════════════════════════════════
   The hero's live values. The label sits left and the readings are pushed hard
   RIGHT by `margin-right:auto` on the label — so the gap is made by the free
   space itself and holds at every width, rather than being tuned for one.
   ══════════════════════════════════════════════════════════════════════════ */
.readout { padding: 12px 14px 13px; border-radius: 0 0 15px 15px; }
.readout-values {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 16px;
  font-variant-numeric: tabular-nums;
}
.readout-cell .value {
  font-size: 1.28rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: var(--color-evidence-ink);
  border-bottom: 1px dashed var(--color-evidence-rule);
  padding-bottom: 2px;
  white-space: nowrap;
}
.readout-cell .value small { font-size: 0.55rem; font-weight: 700; opacity: 0.75; margin-left: 2px; }
.readout-cell .label {
  display: flex; align-items: center;
  font-size: 0.53rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-outline-disabled);
  margin-top: 5px;
}
.readout-cell--name .value { font-size: 1.02rem; letter-spacing: 0; }
.readout-cell--name { margin-right: auto; }

.readout-rule { border-top: 1px solid var(--color-accent-grey); margin: 11px 0 0; }

/* The feed list. ONE column — a two-column grid READS down each column, which
   presented the five items out of order while the markup was correct. */
.readout-feed { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; }
.readout-feed-label {
  padding-top: 2px;
  font-size: 0.54rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-outline-disabled);
  white-space: nowrap;
}
.readout-feed-list {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.readout-feed-list .pair { white-space: nowrap; }
.readout-feed-list b {
  font-weight: 800;
  color: var(--color-evidence-ink);
  border-bottom: 1px dashed var(--color-evidence-rule);
}

/* ══ PAGE STATEMENT — the fold on a capability page ═══════════════════════ */
.statement h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 6.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 24ch;
  color: var(--color-black);
}
.statement .lede {
  font-size: 0.95rem; line-height: 1.55;
  margin: 0; max-width: 62ch;
  color: var(--color-outline-disabled);
}

/* The heading on each half of `/make-it-yours`. Same face and weight as a step
   title; no numeral, because the two halves are a PAIR and not a sequence. */
.half-title {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem; line-height: 1.15;
  margin: 0 0 12px;
  color: var(--color-evidence-ink);
}

/* ══ THE FOUR STEPS ════════════════════════════════════════════════════════
   The number is the sequence and the sequence is the argument — it is a LABEL,
   not a control, so no circle, no rule, no tap affordance.
   ⛔ THE NUMERAL LIVES HERE, IN THE BUILD, AND NOT IN THE COPY. A number that
   expresses POSITION belongs to the build; the copy file's headings carry none,
   deliberately, so a reorder cannot leave a stale numeral in a string of record.
   ══════════════════════════════════════════════════════════════════════════ */
.step-title {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem; line-height: 1.15;
  margin: 0 0 10px;
  color: var(--color-evidence-ink);
}
.step-title .step-number {
  font-variant-numeric: tabular-nums;
  color: var(--color-evidence-rule);
  margin-right: 0.45em;
}

/* ══ THE STAGE PAIR ════════════════════════════════════════════════════════
   Two frames of the same reservoir at two stages. Neither frame names its stage
   on screen, and at 390 they are never co-visible with the control line — so each
   label is the only thing tying its frame to its cause. Structural, not decorative.
   ⛔ THE PAIR IS AT ITS FLOOR (275px each in the rail at ≥900). If this step's type
   is ever shortened, DO NOT recover the length by shrinking the frames — the app's
   own type is what the width is paying for.
   ══════════════════════════════════════════════════════════════════════════ */
.frame-pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
.frame-pair figure { margin: 0; }
.frame-pair img {
  display: block; width: 100%; height: auto;
  border-radius: 9px;
  border: 1px solid var(--color-accent-grey);
}
.frame-label {
  font-size: 0.62rem; font-weight: 700; line-height: 1.4;
  text-align: center; margin-top: 6px;
  color: var(--color-outline-disabled);
}
/* The pair's control line, split in two (Neill, 2026-09-28): the control half
   ("same reservoir, same reading") and the delta half ("only the stage is
   different"). Below 900 the frames stack, so the halves stack beneath both.
   At 900 and up each half sits centred under its own frame — see the 900 block,
   whose columns must stay in lockstep with `.frame-pair`'s. */
.pair-caption span { display: block; }
.pair-caption span + span { margin-top: 6px; }

/* ══ STORE BADGES ═════════════════════════════════════════════════════════ */
.store-badges { display: flex; gap: 10px; margin: 0 0 18px; }
.store-badges img { height: 40px; display: block; }

/* ══ CORRECTION DIAGRAM ═══════════════════════════════════════════════════ */
.diagram {
  border: 1px solid var(--color-accent-grey);
  border-radius: 14px;
  background: var(--color-white);
  padding: 13px 15px;
}
.diagram-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.diagram-cell .value {
  font-size: 1.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: var(--color-evidence-ink);
  border-bottom: 1px dashed var(--color-evidence-rule);
  padding-bottom: 2px;
  white-space: nowrap;
}
.diagram-cell .value small { font-size: 0.54rem; font-weight: 700; opacity: 0.75; margin-left: 2px; }
.diagram-cell .label {
  display: flex; align-items: center;
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-outline-disabled);
  margin-top: 5px;
}
.diagram-rule { border-top: 1px solid var(--color-accent-grey); margin: 11px 0 0; }
.diagram-note { font-size: 0.68rem; line-height: 1.35; color: var(--color-outline-disabled); margin: 9px 0 0; }
.diagram-note b { color: var(--color-black); font-weight: 800; }

/* ══ THE TWO ROUTE CARDS ══════════════════════════════════════════════════ */
.route-cards { display: flex; flex-direction: row; gap: 7px; }
.route-card {
  flex: 1; display: block; position: relative; text-decoration: none;
  border: 1px solid var(--color-accent-grey);
  border-left: 3px solid var(--color-evidence-rule);
  border-radius: 10px;
  background: var(--color-white);
  padding: 8px 10px 9px;
}
.route-card-label  { display: block; font-size: 0.88rem; font-weight: 800; line-height: 1.15; color: var(--color-evidence-ink); }
.route-card-moment { display: block; font-size: 0.71rem; font-weight: 600; line-height: 1.22; color: var(--color-evidence-rule); margin-top: 2px; }
.route-card-names  { display: block; font-size: 0.64rem; font-weight: 700; line-height: 1.28; color: var(--color-outline-disabled); margin-top: 4px; }
.route-card-chev   { position: absolute; right: 8px; top: 9px; font-size: 0.8rem; font-weight: 800; color: var(--color-green-on-light); }

/* ══ CTA ══════════════════════════════════════════════════════════════════ */
.cta { background: var(--color-home); color: var(--color-bg); padding: 34px 20px 40px; }
.cta .kicker {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--color-evidence-rule); margin: 0 0 8px;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem); line-height: 1.12;
  margin: 0 0 10px; color: var(--color-bg);
}
.cta p { font-size: 0.9rem; line-height: 1.5; margin: 0 0 16px; }
.cta .offer { font-size: 0.86rem; font-weight: 700; color: var(--color-evidence-rule); margin: 0 0 14px; }
/* Sits BEFORE the waitlist now (ruled order: expectation first, exit last), so
   it takes the gap below the store badges and hands off to the waitlist's own
   top margin. */
.cta .who-its-for { font-size: 0.78rem; line-height: 1.45; margin: 18px 0 0; max-width: 560px; }

/* ══ WAITLIST ══════════════════════════════════════════════════════════════
   Wired to Mailchimp 2026-09-25 (project phase 5) — see assets/js/site.js.
   ✅ `--color-alert-orange` on the error state is RULED (Neill, 2026-09-25).
   The old site referenced `--b04-accent-pink`, which was never defined, so those
   messages rendered in inherited colour. Orange matches the MEDIUM severity
   indicator the hero readout already uses, so a failed signup stays inside the
   severity language the site already speaks rather than introducing red.
   ══════════════════════════════════════════════════════════════════════════ */
.waitlist { margin: 22px 0 0; }
/* The waitlist's sub-heading. A real <h3> — it is the Start block's second
   audience, and the anchor target of the hero's "No system yet →" link, so it
   earns a place in the outline — but sized with the block's small type, not as
   a section title. */
.waitlist-heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px;
}
/* 🔴 SCOPED TO `.cta` ON PURPOSE. As a flat `.waitlist-lead` (0,1,0) this rule
   lost to `.cta p` (0,1,1) above, so its 0.78rem and its margin NEVER APPLIED —
   the lead rendered at 0.9rem, in the original build too. It went unnoticed until
   the "No system yet?" sub-heading arrived and rendered SMALLER than the sentence
   beneath it. Same shape as `.site-nav .site-nav-pill`: a flat class beside an
   element-qualified rule loses on weight, silently. */
.cta .waitlist-lead { font-size: 0.78rem; line-height: 1.45; margin: 0 0 10px; max-width: 560px; }

.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.signup-input {
  flex: 1 1 200px; min-width: 0;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 9px 12px;
  border: 1px solid var(--color-inverse-disabled);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-black);
}
.signup-input::placeholder { color: var(--color-outline-disabled); }
.signup-button {
  flex: none;
  font-family: inherit; font-size: 0.82rem; font-weight: 800;
  padding: 9px 16px;
  border: 1px solid var(--color-primary-green-2);
  border-radius: 8px;
  background: var(--color-primary-green-2);
  color: var(--color-white);
  cursor: pointer;
}
/* Scoped to `.cta` for the same reason as `.cta .waitlist-lead` above — as a flat
   class it lost to `.cta p`, so it rendered at 0.9rem with no gap above it. */
.cta .signup-status { font-size: 0.76rem; font-weight: 700; margin: 8px 0 0; min-height: 1.2em; }
.signup-status[data-state="ok"]      { color: var(--color-primary-green-1); }
.signup-status[data-state="error"]   { color: var(--color-alert-orange); }
.signup-status[data-state="pending"] { color: var(--color-inverse-disabled); }

.signup-button[aria-busy="true"] { opacity: 0.65; cursor: progress; }
.signup-button:disabled { cursor: not-allowed; }

/* Off-screen rather than `display: none`: a hidden input is not submitted by
   some bots' parsers, and the point is that a bot DOES fill it. */
.mc-honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ══ FOOTER ═══════════════════════════════════════════════════════════════
   ⛔ `/privacy` and `/termsofuse` are GENERATED pages in the splashpage repo,
   produced by `tools/sync_legal.py` from the `ponics_content` repo. This site
   links them and never touches them. Both links must survive any edit here.
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-home);
  color: var(--color-bg);
  padding: 0 20px 34px;
  font-size: 0.74rem;
  line-height: 1.6;
}
.site-footer a { color: var(--color-bg); text-decoration: underline; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.site-footer-legal { opacity: 0.72; margin: 0; }

/* ══ LEGAL PAGES — long-form prose ════════════════════════════════════════
   `/privacy` and `/termsofuse` are GENERATED (tools/ponics_site/legal.py) and
   wrap ponics_content's markup in the site shell. That content is plain prose —
   h1/h2/h4, paragraphs, lists, strong — with no classes of its own, so it is
   styled by descendant selectors here rather than by markup we control.

   Carried across from the old stylesheet's `.legal-content` block with the token
   names remapped to canonical: b02-background → color-bg, n01-black →
   color-black, b01-home → color-home, p-green02 → color-green-on-light.

   ⚠ The source content jumps h2 → h4 with no h3. That is a heading-order defect
   in ponics_content, not something to paper over with styling: h4 is styled as
   the third level it is used as, and the skip is logged for the content repo.
   ══════════════════════════════════════════════════════════════════════════ */
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 20px 72px;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--color-home);
  margin: 0 0 26px;
}
.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.006em;
  color: var(--color-home);
  margin: 38px 0 12px;
}
.legal-content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-home);
  margin: 24px 0 8px;
}
.legal-content p,
.legal-content li {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--color-black);
}
.legal-content p { margin: 0 0 15px; }
.legal-content ul { margin: 0 0 16px; padding-left: 26px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { font-weight: 700; color: var(--color-home); }
.legal-content a {
  color: var(--color-green-on-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:focus-visible {
  outline: 3px solid var(--color-green-on-light);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 760px) {
  .legal-content { padding: 64px 44px 88px; }
}

/* ══ MOBILE NAV PANEL ══════════════════════════════════════════════════════
   Only below 760px, where `.site-nav-links` is otherwise `display: none`. The
   open state is an attribute selector (0,2,0), which beats the base rule (0,1,0)
   without !important. Confined to a max-width query so it cannot interfere with
   the desktop nav above 760, whatever state the attribute was left in.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 759.98px) {
  .site-nav { position: relative; }
  .site-nav-links[data-open="true"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px 18px 18px;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(40, 37, 37, 0.08);
    z-index: 20;
  }
  .site-nav-links[data-open="true"] a { font-size: 0.82rem; }
}

/* ══ DESKTOP SCALE ═════════════════════════════════════════════════════════
   The whole site renders at 120% on wide screens — Neill, 2026-09-27: at 100% a
   1920 monitor leaves ~370px of empty margin either side and the type reads
   small; at 120% browser zoom it is right, and the "What you already have"
   route cards land on the fold.

   `zoom` rather than rescaling tokens: the stylesheet sizes layout in px and type
   in rem, so bumping the root font-size would grow the text inside unchanged
   boxes and alter every proportion. `zoom` scales both together, which is exactly
   what browser zoom does — verified to reproduce the 120% measurements to the
   pixel at 1920.

   WHY 1440, derived rather than picked. Media queries do NOT see `zoom` — they
   evaluate against the real viewport. Browser zoom does change what media queries
   see (120% on 1920 is a 1600px viewport), so to stay equivalent the zoomed
   layout must still get the full desktop design, whose last breakpoint is 1200:
       1200 × 1.2 = 1440
   At 1440 and up, 120% leaves an effective layout of at least 1200 and every
   breakpoint resolves the same way browser zoom would. Below it, 120% would
   squeeze the two-column hero under its own breakpoint, so the site stays at
   100% there — tablets and mobile are unaffected.

   ⚠ The step is visible if a desktop window is dragged across 1440: the page
   grows by a fifth at that width. A fixed window never crosses it.
   ⚠ Someone who ALSO sets browser zoom gets both. Check at browser zoom 100%.
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  body { zoom: 1.2; }
}

/* ══ BREAKPOINTS ══════════════════════════════════════════════════════════
   760 / 900 / 1200. The old site used 600 and 900; 760 is where the nav and the
   hero padding turn on these pages and 1200 is where the hero goes two-column.
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 760px) {
  /* The wordmark returns above the eyebrow at desktop widths. Same asset as the
     nav brand, at hero scale. Decorative here — `alt=""` is correct, because the
     nav brand immediately above it already carries the accessible name. */
  .hero-wordmark {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 0 16px;
  }

  /* On HOME at desktop the hero carries the wordmark a little below, so the nav
     copy is redundant and comes out. Home only — every other page keeps it,
     because it is their only link back to `/` (the footer does not link home).
     Dropping `.site-nav-brand` also drops its `margin-right: auto`, which is what
     was pushing the links and pill to the right; `flex-end` restores that. */
  .page-home .site-nav-brand { display: none; }
  .page-home .site-nav { justify-content: flex-end; }

  .site-nav { padding: 12px 44px; }
  .site-nav-brand img { height: 34px; }
  .site-nav-links { display: flex; }
  .site-nav-menu { display: none; }

  .hero { padding: 40px 44px 0; max-width: var(--page-max); margin: 0 auto; }
  .hero-object { max-width: 560px; }

  .readout { padding: 17px 20px 18px; }
  .readout-cell .value { font-size: 1.5rem; }
  .readout-cell--name .value { font-size: 1.18rem; }

  .section { padding: 44px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-title { font-size: 2rem; }

  .cta { padding: 52px 44px 56px; }
  .site-footer { padding: 0 44px 44px; }
}

@media (min-width: 900px) {
  .evidence-row {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 44px;
    align-items: center;
  }
  .evidence-row + .evidence-row { margin-top: 38px; }
  .frame-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  /* LOCKSTEP with .frame-pair above: same columns, same 10px gap, so each half
     of the caption is centred under the frame it describes. Change one, change
     both. */
  .pair-caption { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; text-align: center; }
  .pair-caption span + span { margin-top: 0; }
}

/* ══ FLOW ROW — prose beside an object, top-aligned ════════════════════════
   2026-09-28, Neill, on /make-it-yours: the image did not line up with its text
   and the paragraphs had huge gaps. Cause: `.evidence-row` CENTRES one short
   paragraph against a taller object, and the paragraphs around the row sat
   outside the grid at a different width — so the text measure changed mid-section
   and the object's left edge fell inside the wider paragraphs above and below.

   A flow row puts every paragraph and the object in the row as SIBLINGS:
     · below 900 there is no grid, so they read in source order and the object
       stays directly after the paragraph it illustrates (mobile is unchanged);
     · at 900 and up every text block is placed in column 1 and the object in
       column 2 from the first row down, top-aligned, one measure throughout.

   `--rows` (set on the row) is the number of text blocks. The extra `1fr` track
   after them is SLACK: the object spans it, so an object taller than the text
   grows that empty track instead of pushing space in between paragraphs. Items
   spanning a flexible track are left out of auto-track sizing, which is what
   keeps the paragraph gaps at their own margins. If a paragraph is added and
   `--rows` is not bumped, it lands in the slack track — the layout degrades
   gracefully, but bump it.

   `row-gap: 0` because rows here are paragraphs: their own margins set the
   rhythm, and `.evidence-row`'s 44px `gap` would otherwise land between them. */
@media (min-width: 900px) {
  .evidence-row.evidence-row--flow {
    grid-template-rows: repeat(var(--rows, 1), auto) 1fr;
    row-gap: 0;
    align-items: start;
  }
  .evidence-row--flow > * { grid-column: 1; }
  .evidence-row--flow > .evidence-object { grid-column: 2; grid-row: 1 / -1; }
  /* Grid items do not collapse margins, so a paragraph's 14px bottom margin would
     ADD to the refrain's 26px top margin (40) instead of merging with it (26), as
     it does in normal flow below 900. Space by top margin only, which reproduces
     what collapsing gave: 14 between paragraphs, 26 before the refrain. */
  .evidence-row--flow > .body-copy { margin-bottom: 0; }
  .evidence-row--flow > .body-copy + .body-copy { margin-top: 14px; }
}

/* ══ HOME: EVIDENCE OBJECTS SHARE THE HERO'S COLUMN ════════════════════════
   Home only, and only where the hero is actually two-column (>=1200). Below that
   the hero stacks, so there is no right-hand edge to line up with and the default
   evidence grid is correct.

   The two grids disagreed in both of their terms, which is why the objects sat
   ~63px left of the hero object above them:

     hero      1092 content box (--page-max 1180 less its 44px padding either
               side), split 1.05fr / 0.95fr with a 54px gap
     sections  1100 `.section-inner`, split 1fr / 560px with a 44px gap

   Matching the content box AND the column split puts every object below the hero
   on the hero object's left edge. The right column lands at 493px, so the one
   object that asked for 530 is clamped to it — the shared column is the point.
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .page-home .section-inner { max-width: calc(var(--page-max) - 88px); }
  .page-home .evidence-row {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
  }
}

@media (min-width: 1200px) {
  /* 🔴 `.site-nav-brand { display: none }` was here until 2026-09-17 and is
     removed. With it, NO wordmark rendered at all above 1200px — the nav brand
     was hidden here and `.hero-wordmark` is hidden just below — and since the
     brand link is the only route back to `/` (the footer does not link home),
     every page had no way home at desktop widths.
     The comment on `.hero-wordmark` below already states the intended rule —
     "the wordmark is nav brand-home at EVERY width" — so the intent was to drop
     the hero copy and keep this one. Only half of that had been applied.
     `justify-content: flex-end` is kept but is now inert: `.site-nav-brand`
     carries `margin-right: auto`, which does the same job while the brand is
     visible. */
  .site-nav { justify-content: flex-end; }
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
    padding-top: 52px;
  }
  /* The hero wordmark used to be hidden here. It is not any more: it is shown from
     760 up (see that block), and this rule sits LATER in the file, so leaving it
     would have silently overridden that and kept the hero bare at exactly the
     widest sizes.
     The original reasoning — that hiding it left no way home at >=1200 — no longer
     applies: `.site-nav-brand` is visible at every width now, so the nav carries
     the link home and this one is free to be decorative. */
  .hero-object { max-width: none; }
  .hero-routes { grid-column: 1 / -1; margin-top: 4px; }
}
