/* ==========================================================================
   Manglar design system v4 — components
   --------------------------------------------------------------------------
   Load order:  tokens.css (generated from design-system/tokens.json)
                manglar.css (this file)
   Rules:
   - Every color, size and radius comes from a token. No hex values below
     this line except inside the token file.
   - Naming: .block, .block-element, .block--modifier, .is-state.
   - Siblings are spaced with gap on a flex/grid parent, not margins.
   Sections:  1 base · 2 type · 3 layout · 4 actions · 5 labels & chips
              6 text blocks · 7 cards · 8 decision · 9 panels & data viz
              10 tables & lists · 11 site chrome · 12 review mode
              13 style guide · 14 utilities · 15 motion & print
   ========================================================================== */

/* ---------- 0. Derived constants (not themeable, so not tokens) ---------- */
:root {
  --gutter: var(--space-6);
  --section-y: var(--space-16);
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --link: var(--accent);
  --link-hover: var(--accent-strong);
}
@media (min-width: 768px) {
  :root { --gutter: var(--space-12); --section-y: var(--space-24); }
}

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-subtle); color: var(--text); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-menu);
  background: var(--text); color: var(--text-inverse);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: 500;
}
.skip-link:focus { top: var(--space-2); }

/* ---------- 2. Type ---------- */
h1, h2, h3, h4 { color: var(--text); font-weight: 600; text-wrap: balance; }
h1, .type-display {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: var(--track-display); font-weight: 600;
}
h2, .type-title {
  font-size: clamp(1.875rem, 3.6vw, 2.625rem); line-height: 1.08; letter-spacing: var(--track-title); font-weight: 600;
}
h3, .type-headline { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: var(--track-headline); font-weight: 600; }
h4, .type-subtitle { font-size: var(--fs-md); line-height: 1.35; letter-spacing: var(--track-tight); font-weight: 600; }
.type-lead { font-size: var(--fs-lead); line-height: 1.55; letter-spacing: var(--track-tight); color: var(--text-secondary); }
.type-lead strong { color: var(--text); font-weight: 600; }   /* one key phrase, as in cards and prose */
.type-body { font-size: var(--fs-base); line-height: 1.6; }
.type-body-sm { font-size: var(--fs-sm); line-height: 1.6; }
.type-caption { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-tertiary); }
.overline, .type-overline {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs); line-height: 1.3; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--text-tertiary);
}
.overline--accent { color: var(--accent); }
.overline--signal { color: var(--signal); }
.type-stat-xl {
  font-family: var(--font-sans); font-size: var(--fs-stat); line-height: 1; font-weight: 600;
  letter-spacing: var(--track-stat); font-variant-numeric: tabular-nums;
}
.type-stat {
  font-family: var(--font-mono); font-size: var(--fs-lg); line-height: 1.1; font-weight: 600;
  letter-spacing: var(--track-stat); font-variant-numeric: tabular-nums;
}
.type-mono, .mono { font-family: var(--font-mono); font-feature-settings: "calt"; }
.type-mono { font-size: var(--fs-sm); line-height: 1.5; }
.type-mono-sm { font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.4; font-weight: 500; letter-spacing: var(--track-mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
/* Two page-ground sections in a row share one gap instead of stacking two. */
.section:not(.section--band) + .section:not(.section--band) { padding-top: 0; }
.section--band { background: var(--surface-sunken); border-block: 1px solid var(--border); --link: var(--accent-strong); }

.hero { padding-block: var(--space-16) var(--space-12); }
@media (min-width: 768px) { .hero { padding-top: calc(var(--space-24) - var(--space-4)); } }
.hero-inner { display: grid; gap: var(--space-6); max-width: 900px; }
.hero h1 { max-width: 920px; }
/* Typed word (owner's comments #162, #183): a caret deletes the word and types the next. The sugarcane pages play it once,
   agriculture then sugarcane (data-once); the homepage loop is off for now. The static word stays for screen readers;
   with reduced motion nothing moves. */
.hero h1:has(.typed) { text-wrap: wrap; }   /* balance would re-flow the headline on every keystroke */
.typed { white-space: nowrap; }
.typed-caret { display: inline-block; width: .06em; height: .9em; margin-left: .04em; vertical-align: -.06em; background: var(--accent); animation: caret-blink 1s steps(1) infinite; }
.typed.is-typing .typed-caret { animation: none; }
.typed.is-done .typed-caret { display: none; }   /* a data-once word, typed: the caret blinks a moment, then leaves */
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typed-caret { display: none; } }
.hero .type-lead { max-width: 720px; }
.hero + .section:not(.section--band) { padding-top: var(--space-8); }

.section-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-10); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .type-lead { max-width: 720px; }

.grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--lg { gap: var(--space-12); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.actions--center { justify-content: center; }
.logo-row + .actions, .grid + .actions, .card-rows + .actions, .split + .actions, .card-widgets + .actions { margin-top: var(--space-10); }   /* a closing action under a logo wall */
.section-head .link-arrow { justify-self: start; }

/* ---------- 4. Actions ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 500; line-height: 1;
  letter-spacing: var(--track-tight); white-space: nowrap;
  padding: 13px 18px; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--primary { background: var(--text); color: var(--text-inverse); border-color: var(--text); }
.btn--access { background: var(--accent-strong); color: var(--text-inverse); border-color: var(--accent-strong); }   /* the header's Access: customers' entrance to the platform, apart from the black CTAs (owner's request, 2026-10-07) */
.btn--access:hover { background: var(--text); border-color: var(--text); color: var(--text-inverse); }
.btn--primary:hover { background: var(--deep); border-color: var(--deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--secondary { background: var(--surface-raised); color: var(--text); border-color: var(--border-control); }
.btn--secondary:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--sm { padding: 9px 14px; min-height: 36px; font-size: var(--fs-sm); }
@media (max-width: 479px) { .btn:not(.btn--sm) { white-space: normal; text-align: center; } }
.btn .arrow, .link-arrow .arrow, .card-cta .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(2px); }

.link {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; transition: color var(--dur) var(--ease);
}
.link:hover { color: var(--link-hover); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--link); font-size: var(--fs-sm); font-weight: 500;
}
.link-arrow:hover { color: var(--link-hover); }

/* In-card call to action. Flips to a solid accent when its card is hovered. */
.card-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1;
  color: var(--accent-strong); background: var(--accent-subtle);
  padding: 10px 14px; border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.card-cta:hover, .card--link:hover .card-cta { background: var(--accent); color: var(--text-inverse); }
.card--link:hover .card-cta .arrow, a.card-cta:hover .arrow { transform: translateX(3px); }

/* ---------- 5. Labels and chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; color: var(--text-secondary);
  padding: 5px 14px 5px 10px; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-xs);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; line-height: 1;
  letter-spacing: var(--track-mono); white-space: nowrap;
  padding: 5px 8px; border-radius: var(--radius-sm);
  color: var(--text-secondary); background: var(--surface-sunken);
}
.chip--accent { color: var(--accent-strong); background: var(--accent-subtle); }
.chip--signal { color: var(--signal-strong); background: var(--signal-subtle); }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip--new { color: var(--accent-strong); background: var(--accent-subtle); text-transform: uppercase; font-size: var(--fs-2xs); letter-spacing: var(--track-label); padding: 4px 6px; }
.chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* Severity chips: ink text, colored dot. The word carries the meaning; the dot is the second cue. */
.chip--sev { color: var(--text); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); }
.chip--sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--sev, var(--sev-none)); }
.chip--sev-none { --sev: var(--sev-none); }
.chip--sev-watch { --sev: var(--sev-watch); }
.chip--sev-act { --sev: var(--sev-act); }
.chip--sev-act { color: var(--text-inverse); background: var(--sev-act); box-shadow: none; }
.chip--sev-act::before { background: var(--text-inverse); }

/* Status line: "Processed · 12h 14m ago". The dot pulses (motion-safe only). */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 500; color: var(--accent-strong);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Every dashboard mock carries this. Mock values are never results. */
.sample-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-tertiary);
  padding: 4px 7px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
}

/* ---------- 6. Text blocks ---------- */
/* Statement: the one ruled text block. Reserved for a line the brand stands on. */
.statement {
  font-size: clamp(var(--fs-md), 2.4vw, var(--fs-xl)); font-weight: 600; line-height: 1.3; letter-spacing: var(--track-headline);
  color: var(--text); max-width: 780px; padding-left: var(--space-5); border-left: 3px solid var(--accent);
}
/* Prose: long-form evidentiary copy (methodology, case study). */
.prose { display: grid; gap: var(--space-4); max-width: 760px; color: var(--text-secondary); font-size: var(--fs-md); line-height: 1.65; }
.prose strong { color: var(--text); font-weight: 600; }
/* Legal pages (privacy, terms; owner 2026-10-08): prose with section headings. */
.legal .legal-h { margin-top: var(--space-6); font-size: var(--fs-lg); line-height: 1.3; letter-spacing: var(--track-tight); color: var(--text); }
.legal .legal-h:first-child { margin-top: 0; }
.legal-updated { margin-top: var(--space-6); color: var(--text-tertiary); }
.prose--ruled { padding-left: var(--space-6); border-left: 2px solid var(--border-strong); }

.callout {
  display: grid; gap: var(--space-3); padding: var(--space-6) var(--space-8);
  background: var(--accent-subtle); border: 1px solid var(--accent-soft); border-radius: var(--radius-lg);
  --link: var(--accent-strong); --link-hover: var(--deep);
}
.callout p { color: var(--text-secondary); max-width: 820px; }
.callout p strong { color: var(--text); font-weight: 600; }
.callout .overline { color: var(--accent-strong); }
.callout--neutral { background: var(--surface-raised); border-color: var(--border); }
@media (max-width: 639px) { .callout { padding: var(--space-5); } }

/* ---------- 7. Cards ---------- */
.card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.card--roomy { padding: var(--space-8); gap: var(--space-4); }
/* Card rows: the same card as an open row — drawing left, words right, a hairline between rows — for a section
   that must read differently from the card grid before it (owner's comment #98). Stacks below 768px. */
.card-rows { display: grid; border-top: 1px solid var(--border); }
.card--row {
  display: grid; gap: var(--space-4) var(--space-10); align-items: center;
  padding: var(--space-8) 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
.card--row > .card-figure { height: 112px; margin-bottom: 0; }
.card-row-body { display: flex; flex-direction: column; gap: var(--space-3); max-width: 640px; }
.card-row-body .card-title { font-size: var(--fs-lg); }
.card-row-body .card-foot { margin-top: 0; padding-top: var(--space-1); }
@media (min-width: 768px) { .card--row { grid-template-columns: 300px minmax(0, 1fr); } }
/* Widget cards: cards laid out like dashboard tiles, with no data in them (sugarcane Monitoring, owner's comment #127): a bar with
   the item's icon, its mono name and a status at the right, then the line and the chips. Three across from 960px, stacked below. */
.card-widgets { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .card-widgets { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.card--widget { gap: var(--space-4); padding: 0 0 var(--space-5); overflow: hidden; }
.card--widget > .card-body, .card--widget > .card-foot { padding-inline: var(--space-5); }
.card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-5); background: var(--surface-sunken); border-bottom: 1px solid var(--border); }
.card-bar-name { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text); }
.card-bar-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-strong); }
.card--widget > .card-figure { margin: 0 var(--space-5); }   /* a small drawing under the bar, its legend close under it (comments #128–130) */
.card--widget > .card-figure + .legend--figure { margin: calc(var(--space-2) - var(--space-4)) var(--space-5) 0; }
/* Chart frame: a widget's drawing with its legend inside one framed area of fixed height, so the widgets' text lines up
   whatever the legend's length (owner's comments #157–159). */
.card-chart { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-2); height: 156px; margin: 0 var(--space-5);
  padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.card-chart > .card-figure { height: auto; min-height: 0; margin: 0; }
.card-chart > .card-figure + .legend--figure { margin: 0; gap: var(--space-1) var(--space-4); }
.card-chart .legend-key { width: 18px; height: 18px; }
.card--link { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.card-title { font-size: var(--fs-md); line-height: 1.35; letter-spacing: var(--track-tight); }
.card-body { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-secondary); }
.card-body strong { color: var(--text); font-weight: 600; }   /* one key phrase per card, as in .prose and .callout */
.headline-accent { color: var(--accent); }
.headline-line { display: inline-block; }   /* a headline line kept whole from 768px, wider than the hero column if it must (owner's comment #180) */
@media (min-width: 768px) { .headline-line { white-space: nowrap; } }
.line-lg { display: inline-block; }   /* a section title kept on one line from 1024px, wider than the section head if it must (owner's comment #197) */
@media (min-width: 1024px) { .line-lg { white-space: nowrap; } }
@media (max-width: 1023px) { .line-lg { display: inline; } }
@media (max-width: 767px) { .headline-line { display: inline; } }   /* one word of a headline set in accent: the crop on its page (owner's comment #146) */
.card-foot { margin-top: auto; padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Card visual: a small inset drawing at the top of a feature card (sample data). */
.card-viz {
  display: grid; gap: var(--space-2); padding: var(--space-3);
  background: var(--surface-page); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.card-viz-pair { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-viz-label {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--track-mono); color: var(--text-tertiary);
}
.card-viz .viz { border-radius: var(--radius-sm); }
/* In a three-up row, insets share one height so the titles below them line up. */
@media (min-width: 1024px) { .grid--3 > .card > .card-viz { min-height: 184px; align-content: center; } }

/* Stat card: a cost line with its number. */
.stat-card { gap: var(--space-4); min-height: 220px; }
.stat-card-value {
  font-family: var(--font-sans); font-size: var(--fs-stat); line-height: 1; font-weight: 600;
  letter-spacing: var(--track-stat); color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-card-value--word { font-size: var(--fs-xl); letter-spacing: var(--track-headline); line-height: 1.1; }
.stat-card .card-body { margin-top: auto; }
/* Production twin: same frame, signal green, KPI chips instead of a number. */
.stat-card--signal .overline { color: var(--signal); }
.stat-card--signal .stat-card-value { color: var(--signal); }

/* Crop card: the homepage selector. Flagship cards carry a mini visualization. */
.crop-card { gap: var(--space-4); padding: var(--space-8); min-height: 100%; }
.crop-card-promise { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: var(--track-headline); }
.crop-card--launch .crop-card-promise { font-size: var(--fs-md); letter-spacing: var(--track-tight); line-height: 1.35; }
.crop-card-viz { margin-block: var(--space-2); }

/* ---------- 8. Decision (crop-page workhorse) ---------- */
.decisions { display: grid; gap: var(--space-4); }
.decision {
  display: grid; gap: var(--space-6); padding: var(--space-8);
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.decision-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-4);
  padding-bottom: var(--space-5); border-bottom: 1px solid var(--border);
}
.decision-head h3 { flex: 1; min-width: min(280px, 100%); }
.decision-grid { display: grid; gap: var(--space-6) var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-block--wide { grid-column: 1 / -1; }
}
.decision-block { display: grid; gap: var(--space-3); align-content: start; }
.decision-block > p { color: var(--text-secondary); }
.decision-block--cost { padding-top: var(--space-5); border-top: 1px dashed var(--border-strong); }
.decision-block--gains { padding-top: var(--space-5); border-top: 1px dashed var(--signal-fill); }
.decision-block--gains .overline { color: var(--signal); }
@media (max-width: 639px) { .decision { padding: var(--space-5); } }

/* Marker list: the › list used inside cards and decisions. */
.ticks { display: grid; gap: var(--space-2); }
.ticks li { position: relative; padding-left: 20px; font-size: var(--fs-base); line-height: 1.55; color: var(--text-secondary); }
.ticks li::before { content: "›"; position: absolute; left: 2px; top: -1px; font-weight: 600; color: var(--accent); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks--signal li::before { color: var(--signal); }
.ticks--sm li { font-size: var(--fs-sm); }

/* ---------- 9. Panels and data viz ---------- */
/* Panel: the dashboard frame. Every panel shows a .sample-flag. */
.panel {
  min-width: 0; overflow: hidden;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.panel-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3) var(--space-6); padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.panel-heading { display: grid; gap: var(--space-1); min-width: 0; }
.panel-title { font-family: var(--font-mono); font-size: var(--fs-base); font-weight: 600; color: var(--text); letter-spacing: var(--track-tight); }
.panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); }
.panel-body { padding: var(--space-6); }
.panel-body--flush { padding: 0; }
.panel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.panel-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-stat { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-right: 1px solid var(--border); }
.panel-stat:last-child { border-right: 0; }
.panel-stat-value { font-family: var(--font-mono); font-size: var(--fs-lg); line-height: 1.1; font-weight: 600; letter-spacing: var(--track-stat); color: var(--text); font-variant-numeric: tabular-nums; }
.panel-stat-value--accent { color: var(--accent); }
.panel-stat-value small { font-size: var(--fs-xs); font-weight: 500; color: var(--text-tertiary); margin-left: 2px; }
@media (max-width: 639px) {
  .panel-stats, .panel-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-stat:nth-child(2n) { border-right: 0; }
  .panel-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .panel-head, .panel-body, .panel-stat { padding-inline: var(--space-4); }
  .panel-body--flush { padding-inline: 0; }
}
.panel-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--space-3) var(--space-6); padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
}

/* Legend: squares carry the key; shape matches no grid on purpose (one legend style). */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-size: var(--fs-xs); color: var(--text-secondary); }
.legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
/* Figure keys: under a CardFigure whose classes share a colour, the key is the shape itself, a tiny line drawing from viz.js
   (owner's comment #109: narrow leaf, broad leaf). Centred, close under the drawing. */
.legend-key { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-secondary); }
.card-figure + .legend--figure { justify-content: center; margin: calc(var(--space-2) - var(--space-5) - var(--space-3)) 0 var(--space-3); }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; background: var(--viz-ok); }
.swatch--ok { background: var(--viz-ok); }
.swatch--dim { background: var(--viz-dim); }
.swatch--a { background: var(--viz-a); }
.swatch--b { background: var(--viz-b); }
.swatch--row { background: var(--viz-row); }
.swatch--gap { background: var(--viz-gap); box-shadow: inset 0 0 0 1px var(--border-strong); }
.swatch--soil { background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border-strong); }
.swatch--sev-none { background: var(--sev-none); }
.swatch--sev-watch { background: var(--sev-watch); }
.swatch--sev-act { background: var(--sev-act); }
.swatch--round { border-radius: 50%; }

/* SVG viz classes — written by assets/js/viz.js */
.viz { display: block; width: 100%; height: auto; }
.viz .cell { fill: var(--viz-ok); }
.viz .cell--dim { fill: var(--viz-dim); }
.viz .cell--a { fill: var(--viz-a); }
.viz .cell--b { fill: var(--viz-b); }
.viz .cell--gap { fill: var(--viz-gap); stroke: var(--border-strong); stroke-width: 0.6; }
.viz .cell--soil { fill: var(--surface-sunken); }
.viz .cell--row { fill: var(--viz-row); }
.viz .cell--index { fill: var(--viz-ok); }
.viz-caption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--track-mono); color: var(--text-tertiary); }

/* Resolution ladder: one field drawn at three resolutions. Schematic, not to scale. */
.res-ladder { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .res-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .res-ladder--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.res-step { display: grid; gap: var(--space-3); align-content: start; }
.res-step-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.res-step-name { font-size: var(--fs-sm); font-weight: 600; }
.res-step-res { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); }
.res-step--manglar .res-step-name { color: var(--accent); }
.res-step p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.5; }
.res-step .viz { border-radius: var(--radius-sm); outline: 1px solid var(--border); }

/* Row strips: cane stand, row by row. Cells are spans written from a pattern string. */
.rowstrips { display: grid; gap: var(--space-2); }
.rowstrip { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px 96px; gap: var(--space-3); align-items: center; }
.rowstrip-id, .rowstrip-pct { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--text); }
.rowstrip-pct { text-align: right; font-variant-numeric: tabular-nums; }
.rowstrip-cells { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 1.5px; height: 16px; }
.rowstrip-cells span { background: var(--viz-row); border-radius: 1px; }
.rowstrip-cells .seg--gap { background: var(--viz-gap); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rowstrip-cells .seg--a { background: var(--viz-a); }
.rowstrip-cells .seg--b { background: var(--viz-b); }
.rowstrip .chip { justify-content: center; }
.rowstrips--mini .rowstrip { grid-template-columns: minmax(0, 1fr); }
.rowstrips--mini .rowstrip-cells { gap: 0; height: 7px; }
.rowstrips--mini .rowstrip-cells span { border-radius: 0; }
@media (max-width: 720px) {
  .rowstrip { grid-template-columns: 48px minmax(0, 1fr) 88px; }
  .rowstrip-pct { display: none; }
  .rowstrip-cells { gap: 0.5px; }
}

/* Triage board (satellite layer): one tile per block, severity by dot and bar. */
.triage { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
@media (min-width: 1024px) { .triage--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.tile {
  display: grid; gap: 6px; padding: 10px 11px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  --sev: var(--sev-none);
}
.tile--watch { --sev: var(--sev-watch); border-color: var(--border-strong); }
.tile--act { --sev: var(--sev-act); border-color: var(--sev-act); }
.tile-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tile-top::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sev); flex-shrink: 0; }
.tile-id { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; line-height: 1; letter-spacing: var(--track-stat); font-variant-numeric: tabular-nums; }
.tile-value small { font-size: var(--fs-xs); color: var(--text-tertiary); font-weight: 500; }
.tile-bar { height: 4px; border-radius: 2px; background: var(--surface-inset); overflow: hidden; }
.tile-bar i { display: block; height: 100%; border-radius: 2px; background: var(--sev); }
.tile-note { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-tertiary); }
.tile-note--held::before { content: "◷ "; }

/* Bar stack: share of hectares per severity step, one row per region. */
.bar-stack { display: grid; gap: var(--space-3); }
.bar-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 56px; gap: var(--space-3); align-items: center; font-size: var(--fs-xs); }
.bar-row-name { color: var(--text-secondary); font-weight: 500; }
.bar-row-value { font-family: var(--font-mono); color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--surface-inset); gap: 2px; }
.bar-track i { display: block; height: 100%; }
.bar-track .is-none { background: var(--sev-none); }
.bar-track .is-watch { background: var(--sev-watch); }
.bar-track .is-act { background: var(--sev-act); }

/* Icons and card figures (brand.md D-11): one line family drawn by viz.js from data-icon / data-figure.
   Icons label a card or a list item and never stand alone without a word; figures explain a card's point. */
.icon-svg, .figure-svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-4);
  border-radius: var(--radius-md); background: var(--accent-subtle); color: var(--accent-strong);
}
.card-icon .icon-svg { width: 26px; height: 26px; }
/* Wide card: one card across the whole grid row, its items side by side under a hairline (sugarcane Plans, owner's comment #145). */
.card--wide { grid-column: 1 / -1; }
/* Features page: a row card, then a grid of points, then a scope caption (owner's request, 2026-10-07). */
.card-rows + .grid { margin-top: var(--space-6); }
.grid + .type-caption, .split-rows + .type-caption { margin-top: var(--space-4); color: var(--text-secondary); }
/* Split rows: a title on the left, its text on the right, hairlines between and no box. A second layout for a list of
   points, so neighbouring sections don't repeat the card grid (Features page, owner's comment #195). Stacks below 768px. */
.split-rows { border-top: 1px solid var(--border); }
.split-row { display: grid; gap: var(--space-2); padding-block: var(--space-6); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-8); align-items: baseline; } }
.split-row-title { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: var(--track-tight); }
.split-row-body { max-width: 62ch; color: var(--text-secondary); }
/* Feature columns: three open columns under an accent rule, no box. A third way to list points on one page
   (Features page, chat and voice, owner's comment #202). Stacks below 768px. */
.feature-cols { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .feature-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }
.feature-col { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-5); border-top: 2px solid var(--accent); }
.feature-col-title { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: var(--track-tight); }
.feature-col-body { color: var(--text-secondary); }
.feature-col-body strong { color: var(--text); font-weight: 600; }
/* Success stories as a blog (owner's requests, 2026-10-07/08), in the site's own style: story cards (text only)
   under the hero, then each story as an article — head, then a narrow reading column with pull quotes.
   No photography, no drawings (brand.md D-23). */
.story-cards { margin-top: var(--space-12); }
.story-card .blog-card-body { grid-template-rows: auto auto 1fr auto; }   /* story cards (owner, 2026-10-08): the blog card's 16:9 image on top, the original story photo (D-23 exception) */
.post + .post { border-top: 1px solid var(--border); }
.post-head { display: grid; gap: var(--space-4); max-width: 760px; margin: 0 0 var(--space-10); }   /* left-aligned, like every section head */
/* Article body (owner, 2026-10-08): one left-aligned column at a reading measure, like the site's section text; quotes
   sit inside the text at the same width, in a compact style. */
.post-body { display: grid; gap: var(--space-5); max-width: 760px; }
.post-body > p { font-size: var(--fs-md); line-height: 1.75; color: var(--text); }
.post-body > p strong { color: var(--text); font-weight: 600; }   /* the people in the story, named in bold (owner, 2026-10-08) */
.post-quote { margin: var(--space-3) 0; padding: var(--space-4) 0; border-block: 1px solid var(--border); display: grid; gap: var(--space-2); }
.post-quote .quote-text { font-size: var(--fs-md); line-height: 1.55; letter-spacing: 0; }
.post-quote .quote-gloss { font-size: var(--fs-xs); }
.post-quote .quote-attr { margin-top: var(--space-1); font-size: var(--fs-xs); }
.post-quote--customer { padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--radius-lg); background: var(--accent-subtle); }   /* the customer's words, highlighted; Manglar's own quote keeps the plain hairline style (owner, 2026-10-08) */
.post-quote--customer .quote-gloss { color: var(--text-secondary); }
.post-quote--customer .quote-text::before, .post-quote--customer .quote-text::after { color: var(--accent-strong); }
.post-source, .post-body > p.post-source { margin-top: var(--space-8); font-size: var(--fs-xs); line-height: 1.5; color: var(--text-tertiary); }
/* Blog (owner, 2026-10-08): a main page listing the articles, one page per article in the stories' reading column. */
.blog-cards { align-items: stretch; }   /* main page (owner, 2026-10-08): every article as a card, three per row */
.blog-card { padding: 0; gap: 0; overflow: hidden; }
.blog-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); }
.blog-card-body { display: grid; gap: var(--space-3); grid-template-rows: auto 1fr auto; padding: var(--space-6); height: 100%; }
.blog-card-body .card-cta { justify-self: start; }
/* Form (owner, 2026-10-08; the partners application): labelled fields in two columns, stacked on phones. */
.form { max-width: 880px; padding: var(--space-8); gap: var(--space-6); }
.form-grid { display: grid; gap: var(--space-5) var(--space-6); }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-field--wide { grid-column: 1 / -1; } }
.form-field { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.form-field label, .form-field legend { font-size: var(--fs-sm); font-weight: 500; color: var(--text); padding: 0; }
.form-req { color: var(--accent-strong); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--surface-page); border: 1px solid var(--border-control); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-subtle); }
.form [aria-invalid="true"] { border-color: var(--detect); }
.form-checks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.form-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 400; color: var(--text-secondary); }
.form-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-strong); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.form-note { color: var(--text-tertiary); max-width: 52ch; }
.form-consent { align-items: flex-start; color: var(--text-secondary); }
.form-consent input { margin-top: 3px; flex: none; }
.form-consent a { color: var(--accent-strong); }
.form-status:empty { display: none; }
/* Demo dialog (owner, 2026-10-08): every "Book a demo" opens the demo form over the page; a full-height sheet on phones. */
.modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(15, 30, 32, 0.48); }
html.modal-open { overflow: hidden; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.modal-title { margin: 0; font-size: var(--fs-xl); }
.modal-close { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-secondary); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--surface-sunken); color: var(--text); }
.modal-close:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.modal-body { padding: var(--space-6); display: grid; gap: var(--space-5); }
.modal-lead { margin: 0; color: var(--text-secondary); }
.form--modal { display: grid; max-width: none; padding: 0; }   /* the pop-up forms space their rows like the in-page form (.card gives it flex) */
.form-optional { font-weight: 400; color: var(--text-tertiary); }
.modal.is-done .form--modal, .modal.is-done .modal-lead { display: none; }
.modal-done { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-4) 0; }
.modal-done p { margin: 0; color: var(--text-secondary); }
.modal-done[hidden] { display: none; }
.modal-done .modal-done-title { font-size: var(--fs-xl); font-weight: 600; color: var(--text); }
@media (max-width: 767px) {
  .modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .modal-head { padding: var(--space-4); }
  .modal-body { padding: var(--space-5) var(--space-4) var(--space-8); }
}
.form-status { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--fs-sm); background: var(--surface-sunken); color: var(--text); }
.form-status[data-kind="ok"] { background: var(--accent-subtle); }
.form-status[data-kind="error"] { box-shadow: inset 3px 0 0 var(--detect); }
.blog-post-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: var(--track-headline); }
.blog-figure { max-width: 760px; margin: var(--space-10) 0 0; }   /* the post's image, at the end of the entry (owner, 2026-10-08) */
.blog-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.blog-figure figcaption { margin-top: var(--space-2); color: var(--text-tertiary); }
.link-arrow--back { justify-self: start; }
.post-body > .ticks { font-size: var(--fs-md); }
.post-body > p a { color: var(--accent-strong); }
.blog-more { display: grid; gap: var(--space-3); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.blog-more a { font-size: var(--fs-md); color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.blog-more a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

.card-parts { display: grid; gap: var(--space-5); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
@media (min-width: 768px) { .card-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
/* Corner drawing: a card's overline and title on the left, a small drawing at the top right (owner's comments #168–170). */
.card-corner { display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: var(--space-4); align-items: start; }
.card-corner > .card-figure { display: flex; justify-content: flex-end; height: 76px; margin: 0; }
.card-corner > .card-figure > .figure-svg { width: auto; height: 100%; aspect-ratio: 3 / 2; }
.card-corner-text { display: flex; flex-direction: column; gap: var(--space-3); }
/* Wide card head: the text, and a drawing to its right from 768px (owner's comment #166). */
.card-wide-head { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 768px) { .card-wide-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.card-wide-head > .card-figure { height: 112px; margin: 0; }
.card-wide-text { display: flex; flex-direction: column; gap: var(--space-3); }
.card-part { display: flex; flex-direction: column; gap: var(--space-2); }
.card-part > .card-icon { width: 36px; height: 36px; margin-bottom: var(--space-2); }
.card-part > .card-icon .icon-svg { width: 22px; height: 22px; }
.card-figure { height: 96px; margin-bottom: var(--space-5); color: var(--text-secondary); }
.section-figure { max-width: 880px; aspect-ratio: 600 / 160; margin: 0 0 var(--space-10); color: var(--text-secondary); }   /* Features page: one wide drawing per section, under its head (owner, 2026-10-08) */
@media (min-width: 640px) { .grid--2 > .card > .card-figure { height: 128px; } }   /* wider cards, taller drawing */
.figure-svg .fig-soft { stroke: var(--border-strong); }
.figure-svg .fig-accent { stroke: var(--accent); }
.figure-svg .fig-fill { fill: var(--accent-subtle); }
.figure-svg .fig-spray { stroke: none; fill: var(--accent-subtle); }
.figure-svg .fig-dash { stroke-dasharray: 3 4; }
.figure-svg .fig-zone { stroke: none; fill: var(--accent); }
.figure-svg .fig-zone--1 { fill-opacity: 0.25; }
.figure-svg .fig-zone--2 { fill-opacity: 0.55; }
.figure-svg .fig-zone--3 { fill-opacity: 0.9; }
.figure-svg .fig-plant { stroke: var(--border-strong); fill: var(--surface-sunken); }
.figure-svg .fig-vigor { stroke: none; fill: var(--signal); }
.figure-svg .fig-haze { stroke: none; fill: var(--surface-sunken); }
.figure-svg .fig-detect { stroke: var(--detect); }   /* detection marks only (D-12) */
.figure-svg .fig-soil { fill: var(--surface-sunken); }
.figure-svg .fig-crop { stroke: var(--accent); fill: var(--accent-subtle); }
.figure-svg .fig-crop-core { stroke: none; fill: var(--accent); }
.figure-svg .fig-weed { stroke: var(--signal); fill: var(--signal-subtle); stroke-width: 1.2; }
.figure-svg .fig-out { stroke: none; fill: var(--signal-subtle); }
.figure-svg .fig-in { stroke: none; fill: var(--surface-sunken); }
.figure-svg .fig-map { stroke: var(--border-strong); fill: var(--surface-raised); }
.figure-svg .fig-textbar { stroke: var(--border-strong); stroke-width: 3; }
.figure-svg .fig-fill-white { fill: var(--surface-raised); }
.figure-svg .fig-pixel { stroke: none; fill: var(--signal); }   /* a coarse sensor pixel: crop and weeds averaged */
.figure-svg .fig-pixel--1 { fill-opacity: 0.35; }
.figure-svg .fig-pixel--2 { fill-opacity: 0.55; }
.figure-svg .fig-pixel--3 { fill-opacity: 0.75; }
.figure-svg .fig-detect-fill { fill: var(--detect-subtle); }
.figure-svg .fig-road { stroke: var(--surface-raised); stroke-width: 3.2; }
.figure-svg .fig-water { stroke: var(--accent); stroke-width: 1.3; }
.figure-svg .fig-cover { stroke: none; fill: var(--signal); fill-opacity: 0.42; }   /* cover-crop canopy seen from above */
.figure-svg .fig-flood { stroke: var(--accent); fill: var(--accent-subtle); }
.figure-svg .fig-row { stroke: var(--border-strong); stroke-width: 1; }   /* crop rows inside a field block */
.figure-svg .fig-row--hit { stroke: var(--accent); }
.figure-svg .fig-dry { stroke: var(--text-tertiary); fill: var(--surface-sunken); }   /* a drying plant: grey, leaves splayed */
.figure-svg .fig-fine { stroke-width: 1.1; }   /* small plants seen from above */
.figure-svg .fig-leaf { stroke: var(--signal); fill: var(--signal-subtle); }   /* the crop in green, where green carries the vigor */
.figure-svg .fig-road-band { stroke: none; fill: var(--surface-raised); }   /* a road or drain: outside the net area */
.figure-svg .fig-replant { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 2 3.5; }   /* the replant plan along a failure */
.figure-svg .fig-cell { stroke: none; fill: var(--surface-sunken); }
.figure-svg .fig-machine { fill: var(--surface-raised); }
.figure-svg .fig-contour { stroke: var(--accent-strong); stroke-width: 1.1; }
.figure-svg .fig-trace { stroke: var(--accent-strong); stroke-width: 1.4; }   /* a traced line: a cane row, the ground along a section */
.figure-svg .fig-status-ok { stroke: none; fill: var(--status-ok); }   /* traffic-light status: the Monitoring block map; the replant, weeding and harvest plans (brand.md D-17) */
.figure-svg .fig-status-watch { stroke: none; fill: var(--status-watch); }
.figure-svg .fig-status-act { stroke: none; fill: var(--status-act); }
.figure-svg .fig-status-line { fill: none; stroke-width: 3.2; stroke-linecap: round; }   /* the same status as a line: weeding rows, harvest rows (D-17, #169–170) */
.figure-svg .fig-status-line--ok { stroke: var(--status-ok); } .figure-svg .fig-status-line--watch { stroke: var(--status-watch); } .figure-svg .fig-status-line--act { stroke: var(--status-act); }
.figure-svg .fig-num { font: 600 11px var(--font-mono); fill: var(--text); stroke: var(--surface-raised); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; text-anchor: middle; }   /* a count on a zone (#168) */
.figure-svg .fig-num--sm { font-size: 8px; font-weight: 500; stroke-width: 0; fill: var(--text-tertiary); }   /* ranks in a leaderboard drawing (agave, #206, #208) */
.figure-svg .fig-mask { fill: var(--accent); stroke: var(--accent); stroke-width: 3; opacity: .5; }   /* a segmentation mask laid over the leaves (leaf area) */
.figure-svg .fig-curve-2 { stroke: var(--signal); }
.figure-svg .fig-curve-3 { stroke: var(--text-tertiary); }

/* Transcript: a console-style question and answer (chat or voice). Sample data only. */
.transcript { display: grid; gap: var(--space-2); }
.transcript-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-2); align-items: baseline; }
.transcript-who {
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--track-mono);
  text-transform: uppercase; color: var(--text-tertiary);
}
.transcript-text { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-secondary); min-width: 0; }
.transcript-line--answer .transcript-who { color: var(--accent-strong); }
.transcript-line--answer .transcript-text { color: var(--text); }
.transcript-text .mono { font-size: var(--fs-2xs); }

/* Rank list: where to walk first. */
.rank-list { display: grid; gap: var(--space-3); counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: var(--space-3); font-size: var(--fs-sm); counter-increment: rank; }
.rank-list li::before { content: counter(rank, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-tertiary); }
.rank-list .rank-meta { color: var(--text-secondary); justify-self: end; font-size: var(--fs-xs); }

/* ---------- 10. Tables and lists ---------- */
.table-wrap {
  overflow-x: auto; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.data-table { font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th {
  font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--text-tertiary); background: var(--surface-sunken); border-bottom-color: var(--border-strong); white-space: nowrap;
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td { color: var(--text-secondary); }
.data-table .col-key { color: var(--text); font-weight: 600; white-space: nowrap; }
.data-table .col-mono { font-family: var(--font-mono); font-size: var(--fs-sm); white-space: nowrap; }
.data-table tr.is-highlight > * { background: var(--accent-subtle); color: var(--text); }
.data-table tr.is-highlight .col-key { color: var(--accent-strong); }
/* Stacked on small screens: each cell shows its column name from data-label. */
@media (max-width: 760px) {
  .data-table--stack thead { display: none; }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack td, .data-table--stack tbody th { display: block; }
  .data-table--stack tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-strong); }
  .data-table--stack tbody tr:last-child { border-bottom: 0; }
  .data-table--stack td, .data-table--stack tbody th { border: 0; padding: var(--space-1) var(--space-5); }
  .data-table--stack tbody th { padding-top: var(--space-2); font-size: var(--fs-base); }
  .data-table--stack td[data-label]::before {
    content: attr(data-label); display: block; font-size: var(--fs-2xs); font-weight: 500;
    letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2px;
  }
}

.spec-list {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden;
}
.spec-row { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: 0; }
@media (min-width: 700px) { .spec-row { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: baseline; } }
.spec-row dt { font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-tertiary); }
.spec-row dd { font-size: var(--fs-sm); color: var(--text); }
.spec-list--mono dd { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* Steps: a real sequence (Fly → Process → Decide), so numbered. */
.steps {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); counter-reset: step;
}
.step { display: grid; gap: var(--space-2); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); counter-increment: step; }
.step:last-child { border-bottom: 0; }
:lang(es) .steps { --step-label: "Paso"; }
:lang(pt) .steps { --step-label: "Passo"; }
.step::before { content: var(--step-label, "Step") " " counter(step, decimal-leading-zero); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-tertiary); }
.step-verb { font-size: var(--fs-md); font-weight: 600; color: var(--accent); letter-spacing: var(--track-tight); }
.step-desc { font-size: var(--fs-sm); color: var(--text-secondary); }
@media (min-width: 760px) {
  .step { grid-template-columns: 96px 160px minmax(0, 1fr); align-items: baseline; gap: var(--space-4); }
}

/* Numbered: an ordered protocol list with mono counters. */
.numbered { display: grid; gap: var(--space-4); counter-reset: n; }
.numbered li { position: relative; padding-left: 44px; color: var(--text-secondary); font-size: var(--fs-base); counter-increment: n; }
.numbered li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--track-mono);
  padding: 3px 7px; border-radius: var(--radius-sm); color: var(--accent-strong); background: var(--accent-subtle);
}
.numbered li strong { color: var(--text); font-weight: 600; }
.numbered--signal li::before { color: var(--signal-strong); background: var(--signal-subtle); }

/* Status list: capability rows with an availability chip (launch crops). */
.status-list {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.status-row { display: grid; gap: var(--space-2) var(--space-6); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
@media (min-width: 820px) { .status-row { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: baseline; } }
.status-row-name { font-weight: 600; font-size: var(--fs-base); }
.status-row-desc { font-size: var(--fs-sm); color: var(--text-secondary); }
.status-row .chip { justify-self: start; }

/* Quote: original-language testimonial with an English gloss. No colored rail. */
.quote {
  display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-8);
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.quote-text { font-size: var(--fs-xl); line-height: 1.3; letter-spacing: var(--track-headline); font-style: italic; color: var(--text); }
.quote-text::before { content: "“"; color: var(--accent); margin-right: 2px; }
.quote-text::after { content: "”"; color: var(--accent); margin-left: 1px; }
.quote-gloss { font-size: var(--fs-sm); color: var(--text-tertiary); }
.quote-attr { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); }
.quote-attr strong { color: var(--text); font-weight: 600; }

/* Evidence rows: case-study stat sentences, cost and production kept apart. */
.evidence { display: grid; gap: var(--space-3); align-content: start; }
.evidence > .overline { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.evidence--signal > .overline { color: var(--signal); border-bottom-color: var(--signal-fill); }
.evidence-row {
  padding: var(--space-4); font-size: var(--fs-sm); color: var(--text-secondary);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.evidence-row strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-size: var(--fs-md); font-weight: 600; letter-spacing: var(--track-tight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-2); top: 50%; width: 20px; height: 20px; margin-top: -10px; display: grid; place-items: center; font-size: var(--fs-lg); line-height: 1; font-weight: 400; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-strong); }
.faq-answer { padding-bottom: var(--space-5); color: var(--text-secondary); max-width: 740px; display: grid; gap: var(--space-3); }
.faq-answer strong { color: var(--text); font-weight: 600; }

/* Logo wall */
.logo-wall-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-8); max-width: 720px; }
.logo-wall-head h2 { font-size: var(--fs-xl); letter-spacing: var(--track-headline); line-height: 1.15; }

/* Crop list: the five crops by name and icon, each linking to its page (the homepage, brand.md D-10).
   Phones: one per line. 640px: two then three. 1024px: one row of five. Built for exactly five crops. */
.crop-list { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .crop-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .crop-list > li { grid-column: span 2; }
  .crop-list > li:nth-child(-n + 2) { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .crop-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .crop-list > li, .crop-list > li:nth-child(-n + 2) { grid-column: auto; }
}
.crop-list-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); height: 100%;
  padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised);
  color: var(--text); font-size: var(--fs-md); font-weight: 600; letter-spacing: var(--track-title); text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.crop-list-icon { width: 28px; height: 28px; color: var(--accent); }
a.is-inactive .crop-list-icon, a.is-inactive.crop-list-link .arrow { color: var(--text-tertiary); }   /* a crop page not live yet (owner's request, 2026-10-07) */
.crop-list-link .arrow { color: var(--accent); transition: transform var(--dur) var(--ease); }
@media (min-width: 640px) {
  .crop-list-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "icon arrow" "name name"; row-gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-4); }
  .crop-list-icon { grid-area: icon; width: 36px; height: 36px; }
  .crop-list-link .arrow { grid-area: arrow; align-self: start; }
  .crop-list-name { grid-area: name; }
}
.crop-list-link:hover { border-color: var(--text); transform: translateY(-1px); }
.crop-list-link:hover .arrow { transform: translateX(2px); }
.crop-list-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-8); }
.logo-row img {
  height: 44px; width: auto; max-width: 140px; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: 0.62; mix-blend-mode: multiply;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.logo-row img:hover { filter: none; opacity: 1; }
.logo-row img[src*="magdalena"] { height: 36px; }
.logo-row img[src*="don_julio"] { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05) brightness(1.08); }   /* its PNG is opaque, on a white and light-grey texture: lift it to white, then multiply it away */
.logo-row img[src*="don_julio"]:hover { filter: brightness(1.08); }
@media (max-width: 639px) { .logo-row img { height: 36px; max-width: 120px; } .logo-row { gap: var(--space-5) var(--space-6); } }

/* ---------- 11. Site chrome ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--surface-page) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .site-header { background: var(--surface-page); } }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-height); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.logo svg { height: 26px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-base); font-weight: 600; letter-spacing: var(--track-tight); color: var(--text); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.site-nav { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-sm); }
.site-nav > a:not(.btn), .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav > a:not(.btn):hover, .nav-trigger:hover, .nav-dropdown.is-open .nav-trigger { color: var(--text); background: var(--surface-sunken); }
.site-nav > a[aria-current="page"] { color: var(--text); }
.site-nav .btn { margin-left: var(--space-2); }
@media (min-width: 1024px) {
  .site-nav { flex: 1; margin-left: var(--space-6); }   /* the crops sit beside the logo… */
  .site-nav > .nav-end { margin-left: auto; }          /* …the language selector and Access on the right (partners joined the left group, owner 2026-10-08) */
}
.nav-crop { display: inline-flex; align-items: center; gap: 6px; }
.nav-crop-icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
/* Inactive link: the page exists but isn't live yet. The anchor keeps its target in data-href (swap it back to href to
   reactivate) and shows greyed out, not clickable (owner's request, 2026-10-07). */
a.is-inactive { color: var(--text-tertiary) !important; opacity: .6; cursor: default; pointer-events: none; }
a.is-inactive .nav-crop-icon { color: var(--text-tertiary); }
.site-nav > a.nav-crop[aria-current="page"] { color: var(--text); }
/* Language switch (EN / ES): a quiet mono pill before the start button. */
/* Language selector: the current language as a mono badge; it opens a menu of all three (owner's request, 2026-10-07). */
.nav-lang { margin-left: var(--space-2); }
@media (min-width: 1024px) { .site-nav > .nav-lang.nav-end { margin-left: auto; margin-right: var(--space-2); } }
.site-nav .nav-trigger.lang-switch {
  gap: 4px; padding: 4px 9px; border: 1px solid var(--border-control); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--track-mono); color: var(--text-secondary);
}
.site-nav .nav-trigger.lang-switch:hover, .nav-lang.is-open .nav-trigger.lang-switch { color: var(--text); border-color: var(--text); background: transparent; }
.nav-dropdown { position: relative; }
.nav-trigger .caret { font-size: var(--fs-2xs); transition: transform var(--dur) var(--ease); }
.nav-dropdown.is-open .caret { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + var(--space-2)); left: 0; z-index: var(--z-menu);
  display: none; flex-direction: column; gap: 2px; min-width: 232px; padding: var(--space-2);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.nav-dropdown.is-open .nav-panel { display: flex; }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--space-2); }   /* bridges the gap so hover doesn't drop on the way down */
.nav-panel a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.nav-panel a:hover { background: var(--surface-sunken); color: var(--text); }
.nav-panel-label { display: none; padding: 8px 12px 4px; }   /* the group's name, shown in the phone menu where the trigger hides */
.nav-panel a.nav-panel-label { display: none; color: var(--text-secondary); }   /* features: the label links to the full page */
.nav-dropdown:has(:focus-visible) .nav-panel { display: flex; }   /* keyboard: tabbing onto a trigger that is a link shows its menu (not on mouse clicks) */
.nav-panel a.nav-crop { justify-content: flex-start; }
.nav-panel--end { left: auto; right: 0; min-width: 184px; }
.nav-lang .nav-panel a { justify-content: flex-start; }
.lang-code { min-width: 22px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--track-mono); color: var(--text-tertiary); }
.nav-lang .nav-panel a[aria-current] { color: var(--text); font-weight: 500; }
.nav-lang .nav-panel a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--accent); }
@media (min-width: 1024px) { .nav-panel a { white-space: nowrap; } }   /* one line per item; the panel widens to the longest */
.nav-panel a[aria-current="page"], .nav-dropdown.is-current > .nav-trigger { color: var(--text); }   /* on a crop page, "crops" reads as current (owner's comment #187) */
.nav-toggle {
  display: none; align-items: center; gap: var(--space-2); padding: 8px 12px; min-height: 40px;
  font-size: var(--fs-sm); font-weight: 500; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-control);
}
.nav-toggle-bars { position: relative; width: 14px; height: 10px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.nav-toggle-bars::before { top: 1px; } .nav-toggle-bars::after { top: 7px; }
.site-header.is-menu-open .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.site-header.is-menu-open .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: var(--surface-raised); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  }
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-nav > a:not(.btn), .nav-trigger { padding: 12px 8px; font-size: var(--fs-base); }
  .nav-trigger { display: none; }
  .nav-panel { position: static; display: flex; min-width: 0; padding: 0 0 var(--space-2); border: 0; box-shadow: none; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-panel a { padding: 12px 8px; font-size: var(--fs-base); }
  .nav-panel-label, .nav-panel a.nav-panel-label { display: block; padding: var(--space-3) 8px var(--space-1); }
  .nav-panel a.nav-panel-label { font-size: var(--fs-2xs); }
  .site-nav .btn { margin: var(--space-3) 0 0; }
  .nav-lang { margin: 0; }
}

.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--border); padding-block: var(--space-12) var(--space-8); --link: var(--accent-strong); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--space-10); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); } }   /* logo · company · resources · follow us · get started (owner, 2026-10-08) */
.footer-brand .logo, .site-footer .footer-brand .logo { display: inline-flex; color: var(--accent); }   /* the mark in brand teal, as in the header */
@media (max-width: 767px) { .footer-brand, .footer-cta { grid-column: 1 / -1; } }
.footer-social a { display: inline-flex; align-items: center; gap: var(--space-2); }
.social-icon { width: 18px; height: 18px; flex: none; color: var(--accent-strong); }
.footer-brand { display: grid; gap: var(--space-5); align-content: start; }
.footer-brand .logo svg { height: 44px; }   /* a bigger logo in the footer (owner, 2026-10-08) */
.footer-brand .wordmark { font-size: var(--fs-xl); }
.footer-actions { display: grid; gap: var(--space-2); justify-items: start; }   /* the CTAs in their own column, stacked */   /* Start with one field · Book a demo, moved here from the homepage customers section (owner, 2026-10-08) */
.site-footer .footer-actions .btn--primary { color: var(--text-inverse); }
.site-footer .footer-actions .btn--secondary { color: var(--text); }
.footer-col { display: grid; gap: var(--space-3); align-content: start; }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a { font-size: var(--fs-sm); color: var(--text-secondary); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-tertiary); }

.closing { text-align: center; }
.closing .container { display: grid; justify-items: center; gap: var(--space-5); }
.closing .container > * { max-width: 100%; min-width: 0; }
.closing h2 { max-width: 760px; }
.closing p { max-width: 620px; color: var(--text-secondary); font-size: var(--fs-md); }
.closing .actions { justify-content: center; margin-top: var(--space-3); }

/* About band */
.about { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }

/* ---------- 12. Review mode ----------
   Draft builds set data-review on <html> (any ancestor works, so a single
   example can opt in). Every unapproved claim carries
   data-claim="<registry id>"; every unconfirmed capability or asset carries
   data-verify="<what to confirm>". Publish builds drop the attribute and
   tools/lint.py blocks any claim whose registry status is not Approved. */
.review-only { display: none; }
[data-preview] .review-badge { display: none !important; }   /* ?preview: a clean view for showing the draft (no comments, no marks) */
[data-review] .review-only { display: block; }
[data-review] [data-claim]::after,
[data-review] [data-verify]::after {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; font-style: normal;
  letter-spacing: var(--track-mono); line-height: 1.4; text-transform: none;
  padding: 1px 5px; border-radius: var(--radius-sm);
  color: var(--text-secondary); background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--border-control);
  align-self: flex-start; justify-self: start; max-width: 100%; white-space: normal;
}
[data-review] [data-claim]::after { content: "verify " attr(data-claim); }
[data-review] [data-claim][data-approved]::after { content: none; display: none; }   /* an Approved claim keeps its registry ID for the linter but shows no tag, even in drafts (owner, 2026-10-08) */
[data-review] :is(.status-row, .grid, .decision-grid, .spec-row)[data-verify]::after { grid-column: 1 / -1; }
[data-review] [data-verify]::after { content: "verify: " attr(data-verify); }
[data-review] .stat-card-value[data-claim]::after { font-size: var(--fs-2xs); letter-spacing: var(--track-mono); }
.fill { font-family: var(--font-mono); font-size: 0.875em; color: var(--text-secondary); background: var(--surface-inset); padding: 0 4px; border-radius: var(--radius-sm); }
.review-note {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary);
  background: var(--surface-inset); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
}
.review-badge {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: var(--z-menu);
  max-width: 300px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--deep); color: var(--text-inverse); box-shadow: var(--shadow-lg);
  font-size: var(--fs-xs); line-height: 1.45;
}
.review-badge strong { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--track-label); text-transform: uppercase; margin-bottom: 2px; }
.review-badge { --link: var(--text-inverse); --link-hover: var(--accent-subtle); }
.review-badge-text { display: block; }
@media (max-width: 639px) {
  .review-badge { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); left: var(--space-4); max-width: none; padding: var(--space-2) var(--space-3); }
  .review-badge strong { margin: 0; }
  .review-badge-text { display: none; }
  .review-badge button { margin: 0; }
}
.review-badge[hidden] { display: none; }
.review-badge button { margin-top: var(--space-2); font-size: var(--fs-2xs); text-decoration: underline; text-underline-offset: 2px; }

/* Hero visual: the page's characteristic dashboard, right under the CTAs. */
.hero-visual { margin-top: var(--space-12); }
.split { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); } }

/* ---------- 13. Style guide (design-system.html and the Design System artifact) ---------- */
.ds-preview { padding: var(--space-6); }
.ds-preview--bleed { padding: 0; }
.ds-preview .site-header { position: relative; }
.ds-entry { display: grid; gap: var(--space-5); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.ds-entry-head { display: grid; gap: var(--space-2); max-width: 760px; }
.ds-entry-stage { min-width: 0; }
.ds-swatches { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ds-swatch { display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 0; }
.ds-swatch-chip { height: 56px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border); }
.ds-swatch-name { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; }
.ds-swatch-value { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-tertiary); }
.ds-swatch p { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.45; }
.ds-scale { display: grid; gap: var(--space-2); }
.ds-scale-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); min-width: 0; }
.ds-scale-row code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); }
.ds-scale-bar { height: 12px; background: var(--accent); border-radius: 2px; }
.ds-type-sample { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 14. Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.nowrap { white-space: nowrap; }
.mt-section { margin-top: var(--space-12); }

/* ---------- 15. Motion and print ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .status-dot, .status::before { animation: manglar-pulse 2.4s ease-in-out infinite; }
}
@keyframes manglar-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer, .review-badge, .nav-toggle { display: none !important; }
  .panel, .card, .decision { box-shadow: none; break-inside: avoid; }
}
/* The new-partner credits point (owner's pick, 2026-10-09): the one feature column set apart, as a tinted card with a
   "New partners" tag, the amount as a large figure and a link to the application form. */
.feature-col--offer {
  padding: var(--space-5) var(--space-6) var(--space-6); border: 1px solid var(--accent-soft); border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--accent-subtle); --link: var(--accent-strong); --link-hover: var(--deep);
}
.feature-col--offer .chip--new { justify-self: start; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.feature-col-figure { display: block; margin-bottom: var(--space-1); font-size: 2.25rem; line-height: 1.05; font-weight: 600; letter-spacing: var(--track-stat); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.feature-col--offer .link-arrow { justify-self: start; margin-top: var(--space-1); }
/* Spam trap (forms service, 2026-10-09): a field people never see or reach; bots that fill it are dropped. */
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
