/* Field report apps: shared stylesheet.
   Neutrals are cool and readable outdoors; hi-vis orange is reserved for
   primary actions (always with ink text); each product's accent is used
   only for its mark and its data. Per-product accents are appended by the
   build (see scripts/build.mjs). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-semi-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); }

:root {
  --surface: #F4F6F5;
  --panel: #FFFFFF;
  --ink: #16202A;
  --ink-2: #4B5863;
  --rule: #D3DADC;
  --field: #6B7780;          /* input borders: 3:1+ against panel */
  --action: #FF6B1A;
  --action-hover: #FF8540;
  --on-action: #16202A;      /* never white text on orange */
  --pass: #2E7D4F;
  --monitor: #B7791F;
  --fail: #B3261E;
  --on-fail: #FFFFFF;
  --on-accent: #FFFFFF;
  --accent: #16202A;
  --focus: #16202A;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 8px;
  --gutter: 16px;
  --maxw: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111A21;
    --panel: #18232C;
    --ink: #E8EEF0;
    --ink-2: #A9B6BE;
    --rule: #2A3842;
    --field: #7D8C96;
    --pass: #5CBB86;
    --monitor: #E3A94B;
    --fail: #F2877E;
    --on-fail: #111A21;
    --on-accent: #111A21;
    --accent: #E8EEF0;
    --focus: #E8EEF0;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
p, ul, ol, dl, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 600; }
abbr[title] { text-decoration: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.375rem, 1.55rem + 3.4vw, 4.125rem); line-height: 1.02; letter-spacing: -0.012em; }
h2 { font-weight: 700; font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.08; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.2; }

.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; padding-block: 40px 72px; }
.narrow > * + * { margin-top: 18px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--rule); }
.skip:focus { top: 8px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1.0625rem/1.1 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 120ms ease;
}
.btn-action { background: var(--action); color: var(--on-action); }
.btn-action:hover { background: var(--action-hover); }
.btn-action[disabled] { opacity: 0.7; cursor: progress; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: var(--field); min-height: 44px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ------------------------------------------------------------------ header */

.top { border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--font-head); }
.top-link { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }

.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
}
.mark svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ hero */

.hero { display: grid; gap: 28px; padding-block: 32px 36px; }
.hero-text { display: grid; gap: 18px; align-content: start; }
.lede { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: grid; gap: 10px; justify-items: start; margin-top: 4px; }
.hero-note { font-size: 0.9375rem; color: var(--ink-2); }
.hero-index { padding-block: 40px 28px; }
.hero-index .hero-text { max-width: 820px; }

/* ------------------------------------------------------------------ facts strip */

.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.facts li {
  padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule);
  font: 600 1rem/1.25 var(--font-head);
}
.facts li:nth-child(odd) { padding-right: 16px; }
.facts li:last-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ ledger sections */

.ledger { display: grid; gap: 16px 40px; padding-block: 44px; }
.ledger + .ledger {
  /* a rule aligned with the content edge, not the gutter */
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.ledger-body { min-width: 0; }

.pain li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 1.125rem; line-height: 1.45; max-width: 40em; }

.features { display: grid; gap: 0 32px; }
.features li { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--ink-2); max-width: 36em; }

.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 700 2.25rem/1 var(--font-head); color: var(--ink-2);
}
.steps p { color: var(--ink-2); }

.honest {
  padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.0625rem; max-width: 40em;
}

/* ------------------------------------------------------------------ price */

.price { display: grid; gap: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.price-col { padding: 18px 18px 20px; }
.price-col + .price-col { border-top: 1px solid var(--rule); }
.price-label { font: 600 1rem/1.2 var(--font-head); }
.price-amt { font: 700 3.5rem/1 var(--font-head); margin-top: 8px; font-variant-numeric: tabular-nums; }
.price-launch .price-amt { font-size: 2.25rem; color: var(--ink-2); }
.price-terms { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.price-note { margin-top: 16px; max-width: 40em; }
.preorder { margin-top: 20px; display: grid; gap: 10px; justify-items: start; }
.preorder-terms { font-size: 0.9375rem; color: var(--ink-2); max-width: 36em; }

/* ------------------------------------------------------------------ form */

.join-intro { margin-bottom: 18px; max-width: 36em; }
.join-form, .join-done {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 16px 20px; display: grid; gap: 16px; max-width: 620px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
.field label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1.0625rem/1.3 var(--font-body); color: var(--ink);
  background: var(--panel); border: 1px solid var(--field); border-radius: var(--radius);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%236B7780' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--fail); border-width: 2px; }
.field-err { color: var(--fail); font-size: 0.9375rem; font-weight: 500; }
.field-check { grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; }
.field-check .field-err { grid-column: 2; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--fail);
  color: var(--ink); background: color-mix(in srgb, var(--fail) 8%, var(--panel)); font-weight: 500;
}
.form-fine { font-size: 0.9375rem; color: var(--ink-2); }
.join-form .btn { justify-self: start; }
.join-done { border-left: 4px solid var(--pass); }
.join-done:focus { outline: none; }
.join-done:focus-visible { outline: 3px solid var(--focus); }
.join-done-h { font: 700 1.5rem/1.15 var(--font-head); }

/* ------------------------------------------------------------------ faq */

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.3 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--ink-2); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 40em; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--rule); padding-block: 36px 56px; font-size: 0.9375rem; color: var(--ink-2); }
.foot .wrap > * + * { margin-top: 12px; }
.foot p { max-width: 56em; }
.foot-status { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.foot-nav a, .foot-nav button { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ cookie notice */

.cookie { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--panel); border-top: 1px solid var(--rule); padding-block: 14px; }
.cookie-in { display: grid; gap: 12px; }
.cookie p { font-size: 0.9375rem; max-width: 52em; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ index list */

.plist { border-top: 1px solid var(--rule); }
.plist-item { border-bottom: 1px solid var(--rule); }
.plist-link { display: grid; grid-template-columns: 32px 1fr; gap: 6px 14px; padding: 18px 0; text-decoration: none; }
.plist-link .mark { grid-row: span 2; margin-top: 2px; }
.plist-text { display: grid; gap: 2px; }
.plist-name { font: 700 1.625rem/1.1 var(--font-head); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.plist-link:hover .plist-name { text-decoration-thickness: 2px; }
.plist-trade { font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); }
.plist-one { margin-top: 4px; }
.plist-price { grid-column: 2; font-weight: 600; font-size: 0.9375rem; }
.plist-price span { display: block; font-weight: 400; color: var(--ink-2); }

.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.simple-list { list-style: disc; padding-left: 1.2em; }

/* ------------------------------------------------------------------ status pills */

.pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 1px 10px 1px 8px; border: 1px solid var(--rule); border-radius: 999px;
  font: 500 0.8125rem/1.5 var(--font-body); color: var(--ink); background: var(--panel); white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex: none; }
.pill-pass .dot { background: var(--pass); }
.pill-monitor .dot { background: var(--monitor); }
.pill-fail .dot { background: var(--fail); }
.pill-wet .dot { background: var(--accent); }

/* ------------------------------------------------------------------ data visuals (shared) */

.viz { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; min-width: 0; }
.viz-head { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.viz-title { font: 600 1.1875rem/1.2 var(--font-head); display: flex; align-items: center; gap: 8px; }
.viz-title::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.viz-sub { font-size: 0.875rem; color: var(--ink-2); }
.viz figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }

.readings { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.875rem; }
.readings caption { text-align: left; font: 600 1rem/1.3 var(--font-head); padding-bottom: 6px; }
.readings th { font-weight: 500; color: var(--ink-2); text-align: right; padding: 6px 0 6px 8px; white-space: nowrap; }
.readings thead th { border-bottom: 1px solid var(--ink-2); font-size: 0.8125rem; }
.readings td, .readings tbody th { border-bottom: 1px solid var(--rule); }
.readings td { font-family: var(--font-data); font-variant-numeric: tabular-nums; text-align: right; padding: 7px 0 7px 8px; }
.readings th:first-child { text-align: left; padding-left: 0; }
.readings tbody th { font-family: var(--font-data); color: var(--ink); font-weight: 400; }

.readout { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9375rem; }
.readout th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 7px 12px 7px 0; width: 42%; vertical-align: top; font-size: 0.875rem; }
.readout td { padding: 7px 0; vertical-align: top; }
.readout tr + tr { border-top: 1px solid var(--rule); }
.readout td .pill { margin-right: 6px; }
.readout .num { font-size: 0.875rem; }

/* DryLog: drying curve */
.dc { padding: 4px 0 26px 30px; }
.dc-plot { position: relative; height: 190px; }
.dc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dc-grid { stroke: var(--rule); stroke-width: 1; }
.dc-std-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dc-line-a { stroke: var(--accent); }
.dc-line-b { stroke: var(--ink-2); }
.dc-dot { fill: none; stroke-linecap: round; stroke-width: 11px; paint-order: stroke; }
.dc-dot-wet { stroke: var(--accent); }
.dc-dot-monitor { stroke: var(--monitor); }
.dc-dot-pass { stroke: var(--pass); }
.dc-ylab { position: absolute; left: -30px; width: 22px; text-align: right; transform: translateY(-50%); font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dc-xlab { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; }
.dc-stdlab { position: absolute; left: 6px; transform: translateY(calc(-100% - 3px)); font-size: 0.75rem; font-weight: 600; color: var(--ink); background: var(--panel); padding: 0 4px; border-radius: 3px; }
.dc-legend { margin-top: 6px; }
.dc-legend li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.dc-key { width: 18px; height: 3px; border-radius: 2px; flex: none; }
.dc-key-a { background: var(--accent); }
.dc-key-b { background: var(--ink-2); }
.dc-legend-name { flex: 1; min-width: 0; }
.dc-legend-name b { font-weight: 600; }
.dc-legend-val { display: inline-flex; align-items: center; gap: 8px; }
.dc-status-key { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* Limbline: risk matrix */
.rm-wrap { display: grid; gap: 6px; }
.rm-axis { font-size: 0.8125rem; color: var(--ink-2); font-weight: 500; padding-left: 31%; text-align: center; }
.rm { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.rm th { font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.2; }
.rm thead th { padding: 0 2px 4px; text-align: center; vertical-align: bottom; }
.rm thead th:first-child { width: 30%; text-align: left; }
.rm-corner { font-size: 0.75rem; display: block; }
.rm tbody th { text-align: left; padding-right: 4px; color: var(--ink); }
.rm td { text-align: center; padding: 12px 2px; border-radius: 4px; font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.rm-low { background: color-mix(in srgb, var(--pass) 18%, var(--panel)); }
.rm-moderate { background: color-mix(in srgb, var(--monitor) 26%, var(--panel)); }
.rm-high { background: color-mix(in srgb, var(--fail) 26%, var(--panel)); }
.rm td.rm-extreme { background: var(--fail); color: var(--on-fail); }
.rm td.rm-on { outline: 3px solid var(--ink); outline-offset: -3px; font-weight: 700; }

/* Tagcheck: monthly tag grid */
.tg { width: 100%; border-collapse: separate; border-spacing: 2px 4px; table-layout: fixed; }
.tg th { font-weight: 500; font-size: 0.75rem; color: var(--ink-2); text-align: center; padding: 0 0 2px; }
.tg thead th.tg-unit { width: 38%; text-align: left; }
.tg thead th.tg-now { color: var(--panel); background: var(--ink); border-radius: 4px; }
.tg tbody th { text-align: left; padding-right: 6px; line-height: 1.25; }
.tg-id { display: block; font-size: 0.8125rem; color: var(--ink); }
.tg-id::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--accent); vertical-align: 1px; }
.tg-desc { display: block; font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-c { padding: 0; height: 22px; border-radius: 3px; vertical-align: middle; position: relative; }
.tg-o, .tg-sw.tg-o { background: var(--pass); }
.tg-a, .tg-sw.tg-a { background: radial-gradient(circle, var(--panel) 0 3px, var(--pass) 3.5px); }
.tg-x, .tg-sw.tg-x { background: var(--fail); }
.tg-c.tg-x::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-fail); font: 700 0.8125rem/1 var(--font-body); }
.tg-e, .tg-sw.tg-e { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.tg-c.tg-now { box-shadow: 0 0 0 2px var(--ink); }
.tg-c.tg-e.tg-now { box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 2px var(--ink); }
.tg-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.tg-key span { display: inline-flex; align-items: center; gap: 6px; }
.tg-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.viz-tags .readout td { font-size: 0.875rem; }
.viz-tags .readout th { width: 26%; }

/* Flowcert: differential gauge */
.g-wrap { max-width: 340px; margin: 0 auto; text-align: center; }
.g-svg { display: block; width: 100%; height: auto; }
.g-arc { fill: none; stroke: var(--rule); stroke-width: 2; }
.g-ok { fill: none; stroke: color-mix(in srgb, var(--pass) 45%, var(--panel)); stroke-width: 7; }
.g-tick { stroke: var(--ink-2); stroke-width: 1.2; }
.g-major { stroke: var(--ink); stroke-width: 2.2; }
.g-num { font: 500 14px var(--font-body); fill: var(--ink-2); }
.g-limit { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.g-needle { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.g-hub { fill: var(--accent); }
.g-read { margin-top: -4px; font: 700 2.25rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.g-read .num { font-family: var(--font-head); }
.readings-flow td:last-child { font-family: var(--font-body); }
.readings-flow tbody th { font-family: var(--font-body); white-space: normal; }
.g-next { margin-top: 12px; font-size: 0.9375rem; }
.g-next .num { font-size: 0.875rem; }

/* Small phones: keep the 5-column risk matrix legible without overflow. */
@media (max-width: 559px) {
  .viz { padding: 14px; }
  .rm { border-spacing: 2px; }
  .rm thead th:first-child { width: 25%; }
  .rm-axis { padding-left: 26%; }
  .rm thead th { font-size: 0.71875rem; padding-inline: 0; }
  .rm td { font-size: 0.75rem; padding: 11px 0; }
  .rm tbody th { font-size: 0.75rem; }
}

/* ------------------------------------------------------------------ larger screens */

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .price { grid-template-columns: 1fr 1fr; }
  .price-col + .price-col { border-top: 0; border-left: 1px solid var(--rule); }
  .viz { padding: 20px; }
  .dc-plot { height: 220px; }
  .join-form, .join-done { padding: 24px; }
  .cookie-in { grid-template-columns: 1fr auto; align-items: center; }
  .plist-link { grid-template-columns: 40px 1fr auto; align-items: start; }
  .plist-link .mark { width: 40px; height: 40px; grid-row: auto; }
  .plist-link .mark svg { width: 26px; height: 26px; }
  .plist-price { grid-column: auto; text-align: right; }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .facts { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); }
  .facts li { border-bottom: 0; padding: 14px 16px 14px 0; }
  .facts li + li { border-left: 1px solid var(--rule); padding-left: 16px; }
  .facts li:last-child { grid-column: auto; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: 56px 64px; }
  .hero-text { padding-top: 12px; gap: 22px; }
  .hero-index { grid-template-columns: 1fr; padding-block: 72px 40px; }
  .ledger { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-block: 64px; }
  .ledger > h2 { position: sticky; top: 24px; align-self: start; }
  .viz { padding: 24px; }
  .dc-plot { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 0) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ------------------------------------------------------------------ Open Graph card (1200x630 render only) */

body.og { width: 1200px; height: 630px; overflow: hidden; background: var(--surface); }
.og-in { display: grid; grid-template-columns: 1fr 560px; gap: 48px; align-items: center; height: 100%; padding: 56px 64px; }
.og-text { display: grid; gap: 22px; }
.og-brand { display: flex; align-items: center; gap: 14px; font: 700 2.25rem/1 var(--font-head); }
.og-brand .mark { width: 48px; height: 48px; }
.og-brand .mark svg { width: 32px; height: 32px; }
.og-h { font: 700 3.625rem/1.02 var(--font-head); letter-spacing: -0.012em; }
.og-sub { font-size: 1.5rem; color: var(--ink-2); }
.og-viz .viz figcaption, .og-viz .readings, .og-viz .readout, .og-viz .dc-status-key, .og-viz .tg-key, .og-viz .g-next { display: none; }

/* generated: product accents */
.p-drylog{--accent:#1E5BB8}
@media (prefers-color-scheme: dark){
.p-drylog{--accent:#7FAAF2}
}
/* generated: visual positions */
.dc-y10{top:86.67%}
.dc-y20{top:53.33%}
.dc-y30{top:20%}
.dc-stdlab{top:80%}
.dc-x1{left:4%}
.dc-x2{left:27%}
.dc-x3{left:50%}
.dc-x4{left:73%}
.dc-x5{left:96%}
