/* 1stBreak marketing site.
   ------------------------------------------------------------------------------------------------
   The palette is NOT defined here. tokens.css and ramp.css are generated from the prototype by
   scripts/sync-tokens.mjs, and tests/website.test.js fails if they drift. Everything below either
   uses those tokens or derives from them - a hex typed into this file is a second home for a colour
   the app already owns, which is the exact problem the generator exists to remove.

   ONE deliberate exception, marked where it appears: the dark scheme, which the app does not have
   and which says so. There were two -- the second was an AA-safe muted grey standing in for a
   failing token in the app, and it is gone because the app's own value passes now. */

@import './fonts.css';
@import './tokens.css';
@import './ramp.css';

/* ------------------------------------------------------------------------------------------------
   Scheme
   ------------------------------------------------------------------------------------------------
   Light is the ground truth: it is the app's own palette, and the site is set in it.

   Dark is the SITE'S OWN and the app does not have one. docs/website-brief.html asks for "a dark
   mode that looks like the shed at 5am ... genuinely designed, because it is the mode most of these
   people will actually use", and adds: do not imply in copy or screenshots that the app has one. So
   nothing on the page claims it does.

   It follows the visitor's system setting and a button overrides it. Both directions are declared -
   [data-theme="light"] has to win back under a dark system setting, or the button only works once. */

:root {
  /* WAS an override. The app's --text-muted used to be #9B9686 -- 2.73:1 on bone, a real WCAG AA
     failure -- and this file darkened it rather than shipping text nobody can read, while saying
     the fix belonged in the prototype. It is fixed in the prototype now, so this is the GENERATED
     token again and the site is once more painted entirely in the app's own palette. */
  --muted: var(--fb-text-muted);

  --ground: var(--fb-bg);
  --panel: var(--fb-surface);
  --ink: var(--fb-text);
  --ink-2: var(--fb-text-secondary);
  --rule: var(--fb-border);
  --rule-strong: var(--fb-border-strong);
  --brand: var(--fb-accent);
  --brand-wash: var(--fb-accent-light);
  --on-brand: #FFFFFF;
  /* The call-to-action band is a FIELD OF COLOUR rather than a button, so it does not reuse
     --brand. In light it is the app's own pasture green with white on it. In dark, reusing --brand
     would paint the whole section in the lifted green: a bright pastel slab in an otherwise dark
     page, which is both wrong for "the shed at 5am" and the exact mint this palette exists to
     avoid. Dark gets a deep green ground with the page's own light ink on it. */
  --cta-ground: var(--fb-accent);
  --cta-ink: #FFFFFF;
  /* Severity, for the "it declines" panels. Named for what they are so nothing on this site can
     start reading them as feed levels: in the app these colour Urgent and the plan board. */
  --sev-stop: var(--fb-band-low);
  --sev-hold: var(--fb-band-mid);
  --sev-ok: var(--fb-accent);
  --sev-stop-wash: var(--fb-band-low-bg);
  --sev-hold-wash: var(--fb-band-mid-bg);
  --sev-ok-wash: var(--fb-band-good-bg);

  --shadow: none;
  /* Corners and depth. The site was all 2px squares and hairlines, which read as a document; the
     captures of the app needed a frame that reads as a screen. */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent),
               0 22px 50px -22px color-mix(in srgb, var(--ink) 42%, transparent);
  --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* A 1.2 scale, clamped so it holds up on a phone held in one hand. */
  --step-4: clamp(2.6rem, 1.4rem + 5.4vw, 4.6rem);
  --step-3: clamp(2rem, 1.3rem + 3vw, 3.1rem);
  --step-2: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step--1: 0.875rem;
  --step--2: 0.78rem;

  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.75rem);
  --measure: 34rem;
  --wide: 76rem;

  /* ---- the dark scheme's values, declared ONCE ------------------------------------------------
     Two rules have to apply them - the system preference, and the button's override - and CSS
     cannot put a media query and a plain selector on the same rule. So the two blocks below MAP
     them and this is where they live.
     Written out twice at first, and a mutation found the reason not to: changing one copy and not
     the other left the site's dark mode failing WCAG AA with every assertion still passing, because
     the test could only read one of the two blocks. Same rule as everything else here - if a value
     is needed in two places it gets one home, and the copies go.

     ITEM 10 MOVED THE VALUES THEMSELVES UP INTO THE APP. They were declared here, invented for this
     site, and the day the app grew a dark scheme they would have been a second home for it -- two
     palettes for one product, drifting apart with nothing able to see it. They are generated from
     the prototype's own `:root` now, exactly as the light half already was, and the block below
     MAPS them. The two rules under it map in turn, which is the shape that was already here.

     The app's --accent is #1F4D2C, which is 3.37:1 on this ground and unreadable as text. The lift
     is the app's OWN --ready green rather than an invented mint: the pastel a lighten lands on is
     both hard to read and the colour a competitor in this market leads with. */
  --dk-ground: var(--fb-dk-bg);
  --dk-panel: var(--fb-dk-surface);
  --dk-ink: var(--fb-dk-text);
  --dk-ink-2: var(--fb-dk-text-secondary);
  --dk-muted: var(--fb-dk-text-muted);
  --dk-rule: var(--fb-dk-border);
  --dk-rule-strong: var(--fb-dk-border-strong);
  --dk-brand: var(--fb-dk-accent);
  --dk-brand-wash: var(--fb-dk-accent-light);
  --dk-on-brand: var(--fb-dk-on-accent);
  --dk-sev-stop: var(--fb-dk-band-low);
  --dk-sev-hold: var(--fb-dk-band-mid);
  --dk-sev-ok: var(--fb-dk-accent);
  --dk-sev-stop-wash: var(--fb-dk-band-low-bg);
  --dk-sev-hold-wash: var(--fb-dk-band-mid-bg);
  --dk-sev-ok-wash: var(--fb-dk-band-good-bg);
  /* THE ONE THAT STAYS THE SITE'S OWN, and it says why rather than being the exception nobody
     explains: the call-to-action band is a slab of colour that only this site has -- the app has no
     such thing -- and reusing --brand for it painted the dark scheme in the lifted green, which is
     readable and is a bright pastel wall through the middle of a dark page. Its INK is the app's,
     because that is just body text. */
  --dk-cta-ground: #16261A;
  --dk-cta-ink: var(--fb-dk-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: var(--dk-ground);
    --panel: var(--dk-panel);
    --ink: var(--dk-ink);
    --ink-2: var(--dk-ink-2);
    --muted: var(--dk-muted);
    --rule: var(--dk-rule);
    --rule-strong: var(--dk-rule-strong);
    --brand: var(--dk-brand);
    --brand-wash: var(--dk-brand-wash);
    --on-brand: var(--dk-on-brand);
    --sev-stop: var(--dk-sev-stop);
    --sev-hold: var(--dk-sev-hold);
    --sev-ok: var(--dk-sev-ok);
    --sev-stop-wash: var(--dk-sev-stop-wash);
    --sev-hold-wash: var(--dk-sev-hold-wash);
    --sev-ok-wash: var(--dk-sev-ok-wash);
    --cta-ground: var(--dk-cta-ground);
    --cta-ink: var(--dk-cta-ink);
  }
}

:root[data-theme='dark'] {
  --ground: var(--dk-ground);
  --panel: var(--dk-panel);
  --ink: var(--dk-ink);
  --ink-2: var(--dk-ink-2);
  --muted: var(--dk-muted);
  --rule: var(--dk-rule);
  --rule-strong: var(--dk-rule-strong);
  --brand: var(--dk-brand);
  --brand-wash: var(--dk-brand-wash);
  --on-brand: var(--dk-on-brand);
  --sev-stop: var(--dk-sev-stop);
  --sev-hold: var(--dk-sev-hold);
  --sev-ok: var(--dk-sev-ok);
  --sev-stop-wash: var(--dk-sev-stop-wash);
  --sev-hold-wash: var(--dk-sev-hold-wash);
  --sev-ok-wash: var(--dk-sev-ok-wash);
  --cta-ground: var(--dk-cta-ground);
  --cta-ink: var(--dk-cta-ink);
}

/* ------------------------------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.018em; line-height: 1.13; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); letter-spacing: -0.032em; }
h2 { font-size: var(--step-3); letter-spacing: -0.026em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--brand); }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Every figure with a unit, every label, every hex. This does most of the identity's work. */
.mono, .fig, code, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fig { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.unit { color: var(--muted); font-weight: 400; }

.eyebrow {
  font: 500 var(--step--2)/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.wrap { width: min(100% - (var(--gutter) * 2), var(--wide)); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--on-brand);
  padding: 0.7rem 1rem; z-index: 100; font: 500 var(--step--1) var(--mono);
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------------------------------------
   The cover ramp as the rule between sections
   ------------------------------------------------------------------------------------------------
   Generated from the prototype's own coverColorForBucket. 1,000 to 3,600 kg DM/ha, continuous. */

.ramp { height: 5px; background: var(--fb-cover-ramp); border: 0; margin: 0; }
.ramp--tall { height: 13px; }

/* ------------------------------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------------------------------ */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead__in {
  display: flex; align-items: center; gap: 1rem; min-height: 3.6rem;
  width: min(100% - (var(--gutter) * 2), var(--wide)); margin-inline: auto;
}
.mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 600 1.06rem/1 var(--sans); letter-spacing: -0.03em; color: var(--ink);
  text-decoration: none;
}
/* The mark is the 1B monogram, generated from scripts/mark.js into website/assets/brand/.
   ------------------------------------------------------------------------------------------------
   Drawn as a BACKGROUND rather than an <img> so the light and dark artwork can be swapped by the
   same tokens everything else here uses. Two <img> tags with one hidden would fetch both; a
   <picture> with a media source cannot see the theme BUTTON, only the system setting. This can do
   both, and only the file in use is ever requested.

   It is decorative: the link's own text says 1stBreak, and the wordmark inside the mark is a
   drawing of the same eight letters. Hence aria-hidden on the span rather than a label. */
.mark__glyph {
  display: block; width: 30px; height: 36px; flex: none;
  background: url('./brand/mark.svg') center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mark__glyph { background-image: url('./brand/mark-dark.svg'); }
}
:root[data-theme='dark'] .mark__glyph { background-image: url('./brand/mark-dark.svg'); }

.mark__sub { font: 400 var(--step--2)/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.masthead nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.masthead nav a {
  font: 400 var(--step--1)/1 var(--sans); color: var(--ink-2); text-decoration: none;
  padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
}
.masthead nav a:hover { color: var(--ink); background: var(--brand-wash); }
@media (max-width: 44rem) { .masthead .hide-sm { display: none; } }

.themer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0; margin-left: 0.25rem;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  color: var(--ink-2); cursor: pointer;
}
.themer:hover { color: var(--ink); border-color: var(--brand); }
.themer svg { width: 15px; height: 15px; }
:root:not([data-theme='dark']) .themer .i-sun { display: none; }
:root[data-theme='dark'] .themer .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .themer .i-moon { display: none; }
  :root:not([data-theme='light']) .themer .i-sun { display: block; }
  :root[data-theme='light'] .themer .i-sun { display: none; }
  :root[data-theme='light'] .themer .i-moon { display: block; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 var(--step--1)/1 var(--mono); letter-spacing: 0.02em;
  padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; background: var(--brand); color: var(--on-brand);
}
.btn:hover { background: color-mix(in srgb, var(--brand) 86%, var(--ink)); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--brand-wash); border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* ------------------------------------------------------------------------------------------------
   Sections and panels
   ------------------------------------------------------------------------------------------------ */

/* The masthead is sticky, so an anchor jump has to clear it or the heading lands underneath. */
section, [id] { scroll-margin-top: 4.5rem; }
section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
section > .wrap > h2 { max-width: 22ch; }
.section-lede { max-width: 56ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: clamp(1.15rem, 0.7rem + 1.4vw, 1.75rem);
}
.panel--flush { padding: 0; overflow: hidden; }
.panel h4 { margin-top: 0; }
.panel > p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 57.99rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

.proof { margin: 0; display: grid; gap: 0.9rem; }
.proof dt { font: 500 var(--step--2) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proof dd { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--ink-2); }

/* A tag that says a figure carries its own basis, the way the app prints one. */
.basis {
  display: inline-block; font: 400 var(--step--2)/1.35 var(--mono);
  color: var(--muted); border-left: 2px solid var(--rule-strong); padding-left: 0.6rem;
}

/* ------------------------------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------------------------------ */

/* The hero sits on a soft wash of the app's own pasture green, fading to the page, with the cover
   ramp as its bottom edge -- the product's colours framing the product's screen. */
.hero {
  position: relative;
  padding-top: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(80rem 34rem at 78% 12%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-wash) 55%, var(--ground)) 0%, var(--ground) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--fb-cover-ramp);
}
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); } }
.hero h1 { max-width: 12ch; margin-bottom: 0.4em; }
.hero .lede { max-width: 44ch; }
.hero__actions { margin-top: 1.9rem; }
.hero__facts {
  list-style: none; margin: 1.9rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font: 500 var(--step--1)/1.3 var(--sans); color: var(--ink-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fb-fence-live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-fence-live) 22%, transparent);
}

/* The turning monogram, above the headline. Sized so it reads as a letterhead rather than as a
   demo: the paddock on the right is the hero's argument, and this is the mark that signs it.
   --mark-letter is what hero-mark.js paints the B with, so the object follows the scheme. */
.hero__mark {
  --mark-letter: #23291F;
  width: 118px; height: 132px; margin: 0 0 1rem -0.4rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero__mark { --mark-letter: #EDEBE2; }
}
:root[data-theme='dark'] .hero__mark { --mark-letter: #EDEBE2; }
.hero__mark canvas { display: block; }
@media (max-width: 46rem) { .hero__mark { width: 96px; height: 108px; margin-bottom: 0.75rem; } }

/* ------------------------------------------------------------------------------------------------
   Captures of the app
   ------------------------------------------------------------------------------------------------
   Two frames, and the difference between them is honest rather than decorative. A capture of the
   prototype at desktop width sits in a plain WINDOW -- a bar and a screen, no browser chrome, no
   address bar claiming a URL. A capture at phone width sits on a SCREEN card with rounded corners,
   deliberately not a drawn handset: there is no released phone app, and a bezel round a browser
   prototype would say there is.

   Every figure carrying one says what is on it in its own caption (.media__note) -- a real farm's
   map, test figures, LINZ's credit -- which tests/website.test.js asserts figure by figure. */

.media { margin: 0; }
.window, .screen {
  position: relative; overflow: hidden; background: var(--panel);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.window__bar {
  display: flex; align-items: center; gap: 0.38rem; padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--rule); background: var(--ground);
  font: 500 var(--step--2)/1 var(--mono); color: var(--muted); letter-spacing: 0.02em;
}
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); flex: none; }
.window__bar span { margin-left: 0.6rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.window__screen { position: relative; }
.window__img, .window__video, .screen img { display: block; width: 100%; height: auto; }
.window__video { background: var(--panel); aspect-ratio: 1280 / 710; }
.screen { border-radius: calc(var(--radius) + 6px); padding: 6px; background: var(--ground); }
.screen img { border-radius: var(--radius); border: 1px solid var(--rule); }

/* The note that says what the picture is. Muted and small, but it is not fine print: it is the page
   saying what is real and what is a test figure, in the same figure as the picture. */
.media__note {
  font: 400 var(--step--2)/1.55 var(--mono); color: var(--muted);
  padding: 0.75rem 0.2rem 0; max-width: 72ch;
}
.media__note strong { color: var(--ink-2); font-weight: 600; }
.media__note a { color: var(--ink-2); }

/* Pause and play for the recording -- shown only once script has taken charge of playback. A moving
   picture longer than five seconds has to be stoppable (WCAG 2.2.2). */
.media__toggle {
  position: absolute; right: 0.75rem; bottom: 2.1rem;
  font: 500 var(--step--2)/1 var(--mono); letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink);
  border: 1px solid var(--rule-strong); backdrop-filter: blur(6px);
}
.media__toggle:hover { border-color: var(--brand); }
.hero__media .window { transform: translateZ(0); }
@media (min-width: 62rem) { .hero__media { margin-right: calc(var(--gutter) * -0.35); } }

.plan {
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--panel);
  padding: 0.7rem 0.7rem 0.55rem;
}
.plan svg { display: block; width: 100%; height: auto; }
.plan__caption {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; justify-content: space-between;
  font: 400 var(--step--2)/1.4 var(--mono); color: var(--muted); padding: 0.6rem 0.15rem 0.1rem;
}
.plan__key { display: inline-flex; align-items: center; gap: 0.4rem; }
.plan__key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ------------------------------------------------------------------------------------------------
   The reasoning panel - the app's own shape, drawn
   ------------------------------------------------------------------------------------------------ */

.reason { border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--panel); }
.reason__head {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--sev-ok-wash);
}
.reason__head h4 { margin: 0; font-size: var(--step-0); }
.reason__head .mono { font-size: var(--step--2); color: var(--ink-2); margin-left: auto; }
.reason__body { padding: 1.1rem; display: grid; gap: 1.1rem; }
@media (min-width: 52rem) { .reason__body { grid-template-columns: 1fr 1fr; } }
.reason__block h5 {
  margin: 0 0 0.55rem; font: 500 var(--step--2)/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.reason dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.34rem 1rem; }
.reason dt { color: var(--ink-2); font-size: var(--step--1); }
.reason dd {
  margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
}
.reason dd b { font-weight: 500; }
.reason__rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.reason__rank li {
  display: grid; grid-template-columns: 1.4rem 1fr auto; gap: 0.6rem; align-items: baseline;
  font-size: var(--step--1); padding: 0.32rem 0; border-bottom: 1px dotted var(--rule);
}
.reason__rank li:last-child { border-bottom: 0; }
.reason__rank .n { font: 500 var(--step--2) var(--mono); color: var(--muted); }
.reason__rank .len { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.reason__rank .chosen { color: var(--sev-ok); font-weight: 600; }
.reason__foot {
  border-top: 1px solid var(--rule); padding: 0.85rem 1.1rem;
  font-size: var(--step--1); color: var(--ink-2); background: var(--sev-hold-wash);
}
:root[data-theme='dark'] .reason__foot, :root[data-theme='dark'] .reason__head { background: var(--panel); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .reason__foot,
  :root:not([data-theme='light']) .reason__head { background: var(--panel); }
}
.reason__foot b { font-family: var(--mono); font-weight: 500; }

/* ------------------------------------------------------------------------------------------------
   Steps
   ------------------------------------------------------------------------------------------------ */

.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 3px solid var(--brand); padding-top: 1rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 500 var(--step--2) var(--mono); letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 0.45rem;
}
.step h4 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

/* ------------------------------------------------------------------------------------------------
   "It doesn't know" - the refusals
   ------------------------------------------------------------------------------------------------ */

.refusals { display: grid; gap: 1rem; }
@media (min-width: 54rem) { .refusals { grid-template-columns: repeat(2, 1fr); } }
.refusal { border: 1px solid var(--rule); border-left: 3px solid var(--sev-hold); border-radius: var(--radius-sm);
  background: var(--panel); padding: 1.15rem 1.25rem; }
.refusal h4 { font-size: var(--step-0); margin-bottom: 0.6rem; }
.refusal p { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 0; }
.says {
  font-family: var(--mono); font-size: var(--step--1); line-height: 1.5;
  background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem; margin: 0 0 0.75rem; color: var(--ink);
}
.says b { font-weight: 500; color: var(--sev-stop); }

/* ------------------------------------------------------------------------------------------------
   Whole-farm section
   ------------------------------------------------------------------------------------------------ */

.farm { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
@media (min-width: 42rem) { .farm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .farm { grid-template-columns: repeat(3, 1fr); } }
.farm > div { background: var(--panel); padding: 1.2rem 1.25rem; }
.farm h4 { font-size: var(--step-0); margin-bottom: 0.4rem; display: flex; gap: 0.55rem; align-items: baseline; }
.farm h4 i { width: 9px; height: 9px; border-radius: 1px; flex: none; display: block; }
.farm p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.farm .qual { display: block; margin-top: 0.5rem; color: var(--muted); font-family: var(--mono); font-size: var(--step--2); line-height: 1.45; }

/* ------------------------------------------------------------------------------------------------
   Status tables
   ------------------------------------------------------------------------------------------------ */

.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font: 500 var(--step--2) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 34rem) { td:first-child { white-space: normal; } }
td + td { color: var(--ink-2); }

.stamp {
  display: inline-block; font: 500 var(--step--2)/1 var(--mono); letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid currentColor; vertical-align: middle;
}
.stamp--built { color: var(--sev-ok); }
.stamp--planned { color: var(--muted); }

/* ------------------------------------------------------------------------------------------------
   Call to action
   ------------------------------------------------------------------------------------------------ */

.cta { background: var(--cta-ground); color: var(--cta-ink); border-block: 1px solid var(--rule); }
.cta h2, .cta h4 { color: var(--cta-ink); }
.cta a { color: var(--cta-ink); }
.cta .eyebrow { color: color-mix(in srgb, var(--cta-ink) 68%, transparent); }
.cta__grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 58rem) { .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); } }
.cta p { color: color-mix(in srgb, var(--cta-ink) 86%, transparent); }
.cta .btn { background: var(--cta-ink); color: var(--cta-ground); border-color: var(--cta-ink); }
.cta .btn:hover { background: color-mix(in srgb, var(--cta-ink) 86%, var(--cta-ground)); }
.cta .btn--ghost {
  background: transparent; color: var(--cta-ink);
  border-color: color-mix(in srgb, var(--cta-ink) 45%, transparent);
}
.cta .btn--ghost:hover { background: color-mix(in srgb, var(--cta-ink) 12%, transparent); border-color: var(--cta-ink); }
.terms-card {
  border: 1px solid color-mix(in srgb, var(--cta-ink) 32%, transparent); border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.terms-card h4 { margin-top: 0; font-size: var(--step-0); }
.terms-card dl { margin: 0; display: grid; gap: 0.7rem; }
.terms-card dt {
  font: 500 var(--step--2) var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cta-ink) 70%, transparent);
}
.terms-card dd { margin: 0.15rem 0 0; font-size: var(--step--1); line-height: 1.5; }

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

.foot { border-top: 1px solid var(--rule); padding: 3rem 0 4rem; font-size: var(--step--1); }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h5 {
  font: 500 var(--step--2) var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.75rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: var(--step--2); line-height: 1.6; max-width: 68ch; }

/* ------------------------------------------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------------------------------------------
   The brief: "Treat these as design work, not as a dump. A farmer being asked to put their herd on
   pre-release software will read the terms." So they get a measure, a scale and a contents list. */

.doc { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 5rem; }
.doc__head { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.doc__head h1 { font-size: var(--step-3); max-width: 20ch; }
.doc__meta { font: 400 var(--step--1) var(--mono); color: var(--muted); }
.doc__body { max-width: 42rem; }
.doc__body h2 { font-size: var(--step-2); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.doc__body h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.doc__body h4 { font-size: var(--step-0); margin-top: 1.5rem; }
.doc__body ul, .doc__body ol { padding-left: 1.3rem; margin: 0 0 1em; }
.doc__body li { margin-bottom: 0.4rem; }
.doc__body blockquote {
  margin: 1.25rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--rule-strong);
  color: var(--ink-2);
}
.doc__body code {
  font-size: 0.9em; background: var(--brand-wash); padding: 0.1em 0.34em; border-radius: var(--radius-sm);
}
.doc__body table { margin-bottom: 1.5rem; }
.doc__body .tablewrap { margin-bottom: 1.5rem; }
.doc__toc { margin-bottom: 2.5rem; }
.doc__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.doc__toc a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); }
.doc__toc a:hover { color: var(--brand); text-decoration: underline; }

.draft-notice {
  border: 1px solid var(--sev-hold); border-left: 4px solid var(--sev-hold);
  background: var(--sev-hold-wash); border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 2rem;
}
:root[data-theme='dark'] .draft-notice { background: var(--sev-hold-wash); }
.draft-notice h4 { margin: 0 0 0.4rem; font-size: var(--step-0); }
.draft-notice p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.draft-notice .placeholders { font-family: var(--mono); font-size: var(--step--2); color: var(--muted); }

/* ------------------------------------------------------------------------------------------------
   Motion - one idea, done properly
   ------------------------------------------------------------------------------------------------
   The break line drawing itself across the paddock, once, as the reader arrives. Everything else on
   this site is still. The audience skews to older devices, so reduced-motion gets the finished
   state immediately rather than a degraded animation. */

.wire { stroke-dasharray: 7 5; }

@media (prefers-reduced-motion: no-preference) {
  .draw-in .breakfill { animation: fill-in 900ms cubic-bezier(0.22, 0.9, 0.3, 1) both; }
  .draw-in .wire { animation: wire-in 700ms cubic-bezier(0.22, 0.9, 0.3, 1) 220ms both; }
  @keyframes fill-in {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes wire-in {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}


/* ------------------------------------------------------------------------------------------------
   The proof strip
   ------------------------------------------------------------------------------------------------

   Every competitor on this page's shelf opens with social proof as a row of big numbers -- 20,000
   producers, 17,000, 2.3m cattle. 1stBreak has sold nothing and can claim none of it, and inventing
   a number here would break the one rule the whole site is built on.

   So this row is the same FURNITURE carrying a different kind of claim: four figures out of the
   worked example below, each computed by the app's own code and pinned by tests/website.test.js.
   It is the only honest big-number row this product can print, and it happens to say the thing the
   page is actually about -- that the software considered the alternatives and can tell you what
   they were. Nobody else in this market shows that.
   ------------------------------------------------------------------------------------------------ */

.stats {
  display: grid; gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 34rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ground); padding: 1.4rem 1.25rem 1.5rem; }
.stat b {
  display: block; font: 600 var(--step-4)/1 var(--mono); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat b .unit { font-size: var(--step-1); font-weight: 500; letter-spacing: 0; }
.stat span { display: block; margin-top: 0.5rem; color: var(--ink-2); font-size: var(--step--1); line-height: 1.35; }
.stats__note {
  margin: 0.9rem 0 0; color: var(--muted); font: 400 var(--step--2)/1.4 var(--mono);
}

/* ------------------------------------------------------------------------------------------------
   Image slots
   ------------------------------------------------------------------------------------------------

   A placeholder rather than an <img>, deliberately, and it is two decisions rather than laziness.

   A committed <img> has to EXIST -- tests/website.test.js resolves every src on every page -- so a
   stand-in file would be a real asset in the repo that nothing generated, which is the rule
   website/assets/brand/ is walked in both directions to enforce. And a grey rectangle tells whoever
   is sourcing the picture nothing; this says what the shot is, what shape it is, and where it goes.

   Swapping one in is: replace the <div class="shot"> with the <figure><img></figure> and delete the
   slot. The aspect ratio is set per slot so the page does not jump when the real picture lands.
   ------------------------------------------------------------------------------------------------ */

.shot {
  display: flex; flex-direction: column; justify-content: center; gap: 0.45rem;
  padding: 1.15rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--panel); aspect-ratio: 4 / 3;
}
.shot--wide { aspect-ratio: 16 / 9; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--phone { aspect-ratio: 10 / 16; }
.shot--strip { aspect-ratio: 21 / 9; }
.shot__tag {
  margin: 0; font: 500 var(--step--2)/1 var(--mono); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brand);
}
.shot__what { margin: 0; color: var(--ink); font-size: var(--step--1); line-height: 1.4; }
.shot__spec { margin: 0; color: var(--muted); font: 400 var(--step--2)/1.4 var(--mono); }

/* ------------------------------------------------------------------------------------------------
   One-line feature tiles
   ------------------------------------------------------------------------------------------------
   .farm, with the paragraph doing one line instead of four. The two tiles that carry a regulated
   claim keep their .qual small print, and that contrast is the point rather than an inconsistency:
   seven things stated plainly, two that have to say what they are not.
   ------------------------------------------------------------------------------------------------ */

.farm--tight > div { padding: 1.05rem 1.15rem; }
.farm--tight p { font-size: var(--step--1); line-height: 1.45; }
.farm--tight h4 { margin-bottom: 0.3rem; }

/* A row of short, plain statements under a heading -- no card, no border, just rhythm. */
.plainlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.plainlist li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: baseline;
  font-size: var(--step--1); color: var(--ink-2); line-height: 1.45;
}
.plainlist li b { color: var(--ink); font-weight: 600; }
.plainlist li::before {
  content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--brand);
  display: block; transform: translateY(-1px);
}

/* ------------------------------------------------------------------------------------------------
   The 2026-12 rebuild: layout for a page that shows the app rather than describing it
   ------------------------------------------------------------------------------------------------
   The farmer's verdict on the previous build was "too basic" -- a document with one picture. What
   changed is the pictures (real captures, framed above) and the rhythm: sections alternate between
   the page ground and a soft band, each opens with a head block, and the app's screens carry the
   argument with the copy beside them rather than in front of them. Every colour is still a token. */

.band { background: color-mix(in srgb, var(--brand-wash) 42%, var(--ground)); border-block: 1px solid var(--rule); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.section-head h2 { max-width: 22ch; }

.nav-cta {
  background: var(--brand); color: var(--on-brand) !important; border-radius: 999px;
  padding: 0.6rem 1rem !important; font-weight: 500 !important; margin-left: 0.35rem;
}
.nav-cta:hover { background: color-mix(in srgb, var(--brand) 86%, var(--ink)) !important; }
.btn--lg { padding: 1rem 1.45rem; font-size: var(--step-0); }
.btn { border-radius: 999px; }

.proof-strip { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.stats { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stats__note a { color: inherit; }

.panel--raised { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.reason { border-radius: var(--radius); overflow: hidden; }
.reason__body--single { grid-template-columns: 1fr !important; }

.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 58rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split--media { align-items: center; }

/* A list of short statements with the fence-live tick, the one loud colour on the page. */
.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.ticks li {
  position: relative; padding-left: 1.85rem; color: var(--ink-2); line-height: 1.5;
}
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 0.38rem; top: 0.52em; width: 0.32rem; height: 0.55rem;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks--small { margin-top: 1.1rem; gap: 0.55rem; }
.ticks--small li { font-size: var(--step--1); }

/* A feature row: words one side, a capture the other, alternating down the page. */
.feature {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center;
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
}
.feature + .feature { border-top: 1px solid var(--rule); }
@media (min-width: 58rem) {
  .feature { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
  .feature--flip .feature__text { order: 2; }
  .feature--flip { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); }
}
.feature__text h3 { font-size: var(--step-2); margin-bottom: 0.5em; }
.feature__text > p { color: var(--ink-2); max-width: 44ch; }
.feature__step {
  font: 600 var(--step--1)/1 var(--mono); color: var(--brand); letter-spacing: 0.08em;
  margin: 0 0 0.8rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.feature__step::after { content: ""; width: 2.5rem; height: 2px; background: var(--fb-fence-live); }
.feature__media--narrow { max-width: 25rem; justify-self: center; width: 100%; }

/* The worked example beside the app's own panel. */
.working { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); align-items: start; }
@media (min-width: 62rem) { .working { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); } }
.working__drawn { display: grid; gap: 1.25rem; }
.working__shot { max-width: 24rem; justify-self: center; width: 100%; }
@media (min-width: 62rem) { .working__shot { position: sticky; top: 5.5rem; } }
.plan { border-radius: var(--radius); }

/* The round: four captures in a grid of unequal cells. */
.bento { display: grid; gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); }
@media (min-width: 58rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .bento__week  { grid-column: 1 / span 8; }
  .bento__today { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .bento__wedge { grid-column: 1 / span 8; }
  .bento__water { grid-column: 1 / span 12; }
}
.bento__today { max-width: 24rem; justify-self: center; width: 100%; }

/* The whole-farm tiles, on both marketing pages, as cards rather than a ruled table. */
.farm { background: none; border: 0; gap: 1rem; }
.farm > div {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.3rem 1.3rem;
  transition: border-color 160ms ease, transform 160ms ease;
}
.farm > div:hover { border-color: var(--rule-strong); }
.farm h4 { font-size: var(--step-0); }
.farm h4 i { width: 11px; height: 11px; border-radius: 3px; }
.farm__more { margin-top: 0.7rem !important; font-weight: 600; }
.farm__more a { color: var(--brand); text-decoration: none; }
.farm__more a:hover { text-decoration: underline; }

.refusal { border-radius: var(--radius); }
.status { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .status { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.status h3 { font-size: var(--step-1); display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.tablewrap { border-radius: var(--radius); }

/* A photograph still to come. It looks like a frame waiting for a picture, says which one, and
   carries the spec, so whoever takes it knows the shape -- see the shot list in website/README.md. */
.shot {
  border-radius: var(--radius); border: 1.5px dashed var(--rule-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--rule) 45%, transparent) 14px 15px),
    var(--panel);
}
.shot__tag::before {
  content: ""; display: inline-block; width: 0.95rem; height: 0.7rem; margin-right: 0.5rem;
  border: 1.5px solid currentColor; border-radius: 3px; vertical-align: -0.05rem;
}
#who .shot { margin-top: 1.5rem; }

.cta { position: relative; }
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fb-cover-ramp);
}
.terms-card { border-radius: var(--radius); }

/* The units inside a big figure are spans too, and the caption rule above made them blocks: "176",
   then "m" on its own line under it. Inline again, at the figure's own size unless it is a unit. */
.stat b span { display: inline; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

/* The breadth page's opening: the hero's wash without the hero's size, and its contents as cards. */
.hero--page { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-title { font-size: var(--step-4); max-width: 16ch; }
.jump { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .jump { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .jump { grid-template-columns: repeat(3, 1fr); } }
.jump a {
  display: grid; gap: 0.3rem; padding: 1rem 1.15rem; text-decoration: none;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.jump a:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.jump b { font-weight: 600; color: var(--ink); }
.jump b::after { content: " →"; color: var(--brand); }
.jump span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.4; }

.itself { display: grid; gap: 1.5rem; margin-top: 2.25rem; align-items: start; }
@media (min-width: 58rem) { .itself { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); } }
.itself__shot { max-width: 22rem; justify-self: center; width: 100%; }

/* Where it stands, as three stages left to right: what is done, what is in test now, what is next. */
.stages {
  list-style: none; margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem); padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 52rem) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stage {
  position: relative; background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.25rem 1.3rem 1.35rem; border-top: 4px solid var(--rule-strong);
}
.stage--done { border-top-color: var(--brand); }
.stage--now { border-top-color: var(--fb-fence-live); box-shadow: var(--shadow-lg); }
.stage h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.stage p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.stage .stage__tag {
  font: 600 var(--step--2)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.7rem;
}
.stage--now .stage__tag { color: var(--brand); }

/* The daybreak reel: a portrait animation beside the words, on the same screen card the phone-width
   captures use. It is drawn, and its caption says so. */
.split--reel { align-items: start; }
@media (min-width: 58rem) { .split--reel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.split--reel .shot { margin-top: 2rem; }
.reel { max-width: 22rem; justify-self: center; width: 100%; }
.screen--reel { background: var(--fb-dk-bg); border-color: var(--fb-dk-border); }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--fb-dk-bg); }

/* ------------------------------------------------------------------------------------------------
   The menu, and the pages it leads to (2026-12-01)
   ------------------------------------------------------------------------------------------------
   The site was one long scroll; the farmer asked for its areas to have pages of their own, reached
   from a menu. Every marketing page carries the same list (asserted), the page you are on is marked
   with aria-current, and on a phone the list folds into a Menu button -- a <details>, so it opens
   with no script at all. Before this a phone showed only "Join the alpha" and the theme button. */

.menu { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; position: relative; }
.menu__links { display: flex; align-items: center; gap: 0.15rem; }
.masthead nav a[aria-current="page"] { color: var(--ink); background: var(--brand-wash); font-weight: 500; }
.menu__phone { display: none; }
.menu__phone > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 var(--step--1)/1 var(--sans); color: var(--ink);
  padding: 0.55rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: 999px; margin-left: 0.25rem;
}
.menu__phone > summary::-webkit-details-marker { display: none; }
.menu__icon, .menu__icon::before, .menu__icon::after {
  display: block; width: 14px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
}
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; }
.menu__icon::before { top: -5px; }
.menu__icon::after { top: 5px; }
.menu__sheet {
  position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 15rem; z-index: 50;
  display: grid; gap: 0.15rem; padding: 0.5rem;
  background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.masthead .menu__sheet a { font-size: var(--step-0); padding: 0.75rem 0.85rem; border-radius: var(--radius-sm); }
@media (max-width: 62rem) {
  .menu__links { display: none; }
  .menu__phone { display: block; }
}
@media (max-width: 30rem) { .masthead .nav-cta { display: none; } }

/* The doors on the home page: two with a picture, four without, each a line and a link. */
.doors { display: grid; gap: 1rem; }
@media (min-width: 46rem) {
  .doors { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .door { grid-column: span 6; }
}
@media (min-width: 62rem) {
  .door { grid-column: span 3; }
  .door--wide { grid-column: span 6; }
}
.door {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.door:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) { .door:hover { transform: translateY(-2px); } }
.door img {
  display: block; width: 100%; height: 13rem; object-fit: cover; object-position: top left;
  border-bottom: 1px solid var(--rule); background: var(--ground);
}
.door__text { display: grid; gap: 0.35rem; padding: 1.1rem 1.2rem 1.25rem; }
.door__text b { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.door__text b::after { content: " →"; color: var(--brand); }
.door__text > span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.45; }
.door--cta { background: var(--cta-ground); border-color: var(--cta-ground); }
.door--cta .door__text b, .door--cta .door__text b::after { color: var(--cta-ink); }
.door--cta .door__text > span { color: color-mix(in srgb, var(--cta-ink) 86%, transparent); }

/* The home page's closing band: one line and the way in. */
.cta--short { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.cta__row { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .cta__row { grid-template-columns: 1fr auto; } }
.cta__row h2 { margin-bottom: 0.3em; }

/* The company behind the site, on every page: Apple and Google match the site against the registered
   company and its D-U-N-S record, so the name is given as the Companies Register has it. */
.foot__company { margin: 2rem 0 0; color: var(--ink-2); font-size: var(--step--1); }
.foot__company a { color: inherit; }
