/* brewmargin — the only stylesheet. Modern CSS, one spacing scale, light +
   dark via prefers-color-scheme with a data-theme override (header toggle,
   persisted in localStorage). No framework, no build step.
   Brand (Brewmargin brand kit v1.0, 2026-07): Crema/Espresso/Steam at 60/30/10
   with Margin Green as the only accent — green means profit (and the kit's own
   interaction hover), amber is price creep, red is selling at a loss. Type is
   Bricolage Grotesque (display+body, variable 300-800) with Fragment Mono for
   numbers, SKUs and receipt labels. Pills for buttons and chips, 14-18px card
   radii, dashed rules read as receipt tears. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/static/brand/fonts/bricolage-grotesque-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/static/brand/fonts/fragment-mono-400.woff2") format("woff2");
}

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;

  color-scheme: light;
  --bg: #F6EEE1;         /* Crema — warmth, not white */
  --card: #FFFDF8;       /* Steam — cards, receipts, review rows */
  --fg: #221712;         /* Espresso — text, the counter */
  --muted: #6B5A48;      /* roast-brown body copy */
  --faint: #93826C;      /* mono labels, receipt captions */
  --border: #E4D9C6;
  --hairline: #F0E7D6;   /* inner receipt rules */
  --dash: #D3C4A9;       /* dashed = receipt tear */
  --brand: #0F7A50;      /* Margin Green — profit, and the interaction hover */
  --accent: #221712;     /* primary buttons pour espresso */
  --btn-fg: #F6EEE1;
  --btn-hover: #3A2C21;
  --ok: #0F7A50;         /* margin up */
  --warn: #9C5A18;       /* price creep */
  --bad: #B23A2A;        /* selling at a loss */
  --radius: 14px;
  --show-sun: none;      /* theme-toggle shows the mode you'd switch TO */
  --show-moon: block;
  --show-hero-light: block;
  --show-hero-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1B120C;       /* the room after close */
    --card: #221712;     /* Espresso panels */
    --fg: #F6EEE1;       /* Crema on espresso — 13.2:1 */
    --muted: #B99F80;
    --faint: #93826C;
    --border: #3A2C21;
    --hairline: #3A2C21;
    --dash: #6B5A48;
    --brand: #2FB37E;    /* green lifts on dark */
    --accent: #F6EEE1;   /* primary buttons pour crema */
    --btn-fg: #221712;
    --btn-hover: #FFFDF8;
    --ok: #2FB37E;
    --warn: #D9A05B;
    --bad: #DE7259;      /* loss red, lifted for dark contrast */
    --show-sun: block;
    --show-moon: none;
    --show-hero-light: none;
    --show-hero-dark: block;
  }
}

/* Explicit user choice (header toggle) beats the OS preference, both ways. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B120C;
  --card: #221712;
  --fg: #F6EEE1;
  --muted: #B99F80;
  --faint: #93826C;
  --border: #3A2C21;
  --hairline: #3A2C21;
  --dash: #6B5A48;
  --brand: #2FB37E;
  --accent: #F6EEE1;
  --btn-fg: #221712;
  --btn-hover: #FFFDF8;
  --ok: #2FB37E;
  --warn: #D9A05B;
  --bad: #DE7259;
  --show-sun: block;
  --show-moon: none;
  --show-hero-light: none;
  --show-hero-dark: block;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6EEE1;
  --card: #FFFDF8;
  --fg: #221712;
  --muted: #6B5A48;
  --faint: #93826C;
  --border: #E4D9C6;
  --hairline: #F0E7D6;
  --dash: #D3C4A9;
  --brand: #0F7A50;
  --accent: #221712;
  --btn-fg: #F6EEE1;
  --btn-hover: #3A2C21;
  --ok: #0F7A50;
  --warn: #9C5A18;
  --bad: #B23A2A;
  --show-sun: none;
  --show-moon: block;
  --show-hero-light: block;
  --show-hero-dark: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.58 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* If a number matters, it's mono; if it's mono, it traces to an invoice. */
code, pre, kbd { font-family: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

a { color: var(--accent); }

/* Brand character: text selection and keyboard focus carry the one accent. */
::selection { background: var(--brand); color: #F6EEE1; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
/* Lockup (brand kit §02): the ring, then the lowercase 800 wordmark. The ring
   is a cup stain that refuses to close — the margin, in green, completes it.
   Gap = 50°, green always top-right; never close it, never recolour the green. */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; text-transform: lowercase; color: var(--fg); }
.brand-mark { display: block; }
.brand-mark path { fill: none; stroke-linecap: round; }
.brand-mark .arc-ink { stroke: var(--fg); }
.brand-mark .arc-margin { stroke: var(--brand); }
.site-header nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-links { display: flex; align-items: center; gap: var(--space-4); }

/* Mobile menu — the brand menubutton: hamburger morphs into the cut-X. */
.menu-btn { display: none; padding: var(--space-2); background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.menu-btn svg { display: block; }
.menu-btn svg .h line { stroke: var(--fg); stroke-width: 5; transition: opacity 0.22s ease, transform 0.22s ease; transform-origin: 24px 24px; }
.menu-btn svg .x line { stroke: var(--fg); stroke-width: 6; opacity: 0; transition: opacity 0.22s ease 0.06s; }
.menu-btn.open svg .h line { opacity: 0; transform: scale(0.85); }
.menu-btn.open svg .x line { opacity: 1; }

.theme-toggle {
  display: flex;
  align-items: center;
  padding: var(--space-2);
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle .ico-sun { display: var(--show-sun); }
.theme-toggle .ico-moon { display: var(--show-moon); }

main { max-width: 960px; margin: 0 auto; padding: var(--space-5); }
.narrow { max-width: 480px; }

h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 var(--space-4); }
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: var(--space-6) 0 var(--space-3); }
h3 { font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
/* Subsections inside one card (settings sign-in security). */
.card h3 { margin: var(--space-5) 0 var(--space-2); font-size: 1rem; }
.card h3:first-child { margin-top: 0; }
/* Checkbox rows sit tight; the block-label margin is for text inputs. */
.card label:has(> input[type="checkbox"]) { margin: var(--space-2) 0; }
.link-blue { color: var(--brand); }

/* Settings: one deliberate column (audit 2026-07-11 — masonry traps voids and
   orphans; settings pages read top to bottom). Groups carry a quiet eyebrow. */
.settings-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5); max-width: 640px; margin-top: var(--space-5);
}
.settings-grid section { min-width: 0; }
.settings-grid h2 { margin-top: 0; }
.settings-group {
  margin: var(--space-5) 0 calc(-1 * var(--space-2));
  padding-top: var(--space-5);
  border-top: 1.5px dashed var(--dash);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
}
.settings-group:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Label-above input with its action beside it (add a passkey). */
.inline-add { display: flex; gap: var(--space-3); align-items: flex-end; }
.inline-add > div { flex: 1; }
.inline-add label { margin-top: 0; }
.inline-add .btn { flex: none; }

/* --- verify result panel --- */
.result {
  border: 1px solid var(--border);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: var(--space-5);
  background: var(--card);
}
.result .verdict { display: flex; align-items: center; gap: var(--space-3); font-size: 1.35rem; font-weight: 700; margin: 0; }
.result .mark { font-size: 1.6rem; line-height: 1; }
.result .product { margin: var(--space-3) 0 0; font-size: 1.05rem; }
.result .history { margin: var(--space-3) 0 0; color: var(--muted); font-size: 0.95rem; }
.result.authentic { border-left-color: var(--ok); }
.result.authentic .verdict, .result.authentic .mark { color: var(--ok); }
.result.suspicious { border-left-color: var(--warn); }
.result.suspicious .verdict, .result.suspicious .mark { color: var(--warn); }
.result.counterfeit, .result.fake, .result.recalled { border-left-color: var(--bad); }
.result.counterfeit .verdict, .result.counterfeit .mark,
.result.fake .verdict, .result.fake .mark,
.result.recalled .verdict, .result.recalled .mark { color: var(--bad); }
/* Verdict washes: verify is the one place color carries meaning, so let it. */
.result.authentic { background: color-mix(in srgb, var(--ok) 7%, var(--card)); }
.result.suspicious { background: color-mix(in srgb, var(--warn) 8%, var(--card)); }
.result.counterfeit, .result.fake, .result.recalled { background: color-mix(in srgb, var(--bad) 7%, var(--card)); }
.result.unrecognized { border-left-color: var(--warn); }
.result.unrecognized .verdict { color: var(--warn); }

/* --- forms --- */
label { display: block; font-size: 0.9rem; color: var(--muted); margin: var(--space-4) 0 var(--space-1); }
/* Checkboxes are exempt from the full-width rule (settings audit 2026-07-11:
   width:100% turned every checkbox into a block and orphaned its label). */
input:not([type="checkbox"]), select {
  width: 100%;
  padding: var(--space-3);
  font: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
label:has(> input[type="checkbox"]) { display: flex; gap: var(--space-2); align-items: center; color: var(--fg); }
.btn {
  display: inline-block;
  padding: var(--space-3) calc(var(--space-4) + 4px);
  font: inherit;
  font-weight: 700;
  color: var(--btn-fg);
  background: var(--accent);
  border: 1px solid transparent; /* reserves the .secondary border so both heights match */
  border-radius: 999px; /* pills for chips + btns (kit §06) */
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.btn:hover:not(:disabled) { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn.secondary { color: var(--fg); background: transparent; border: 1px solid var(--dash); }
.btn.secondary:hover:not(:disabled) { background: transparent; border-color: var(--fg); }
.btn:disabled { opacity: 0.6; cursor: default; }
/* Primary form actions that should span like the alt sign-in buttons. */
.btn-block { display: block; width: 100%; }
.field-error { color: var(--bad); font-size: 0.9rem; margin: var(--space-3) 0 0; }

/* Alternate sign-in: an "or" rule, then compact icon buttons side by side. */
.or-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: 0.85rem; margin: var(--space-4) 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1.5px dashed var(--dash); }
.alt-login { display: flex; flex-direction: column; gap: var(--space-3); }
.alt-login .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.alt-login .btn svg { flex: none; }

/* 30-day scan chart (M13 P3): one mono series, native-title hover, recessive
   baseline; min-height keeps a busy day visible, empty days stay empty. */
.chart {
  display: flex; align-items: flex-end; gap: 2px;
  height: 120px; border-bottom: 1px solid var(--border);
}
.chart-slot { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.chart-bar {
  width: 100%; min-height: 2px;
  background: var(--fg); border-radius: 4px 4px 0 0;
}
.chart-x { display: flex; justify-content: space-between; font-size: 0.8rem; margin-top: var(--space-1); }

/* Branded verify header (M13 P1): brand logo/name/tagline; the left border
   carries the brand's own accent colour when set. */
.verify-brand {
  display: flex; align-items: center; gap: var(--space-4);
  border: 1px solid var(--border); border-left-width: 4px;
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
  background: var(--card); margin-bottom: var(--space-4);
}
.verify-logo { max-height: 40px; max-width: 120px; }
.verify-brand-name { margin: 0; font-weight: 600; }
.verify-tagline { margin: var(--space-1) 0 0; font-size: 0.9rem; }

.watch { margin: var(--space-5) 0 0; }
.watch form { display: flex; gap: var(--space-3); align-items: flex-end; }
.watch form > div { flex: 1; }
.watch label { margin-top: 0; }
.report { margin-top: var(--space-5); }
details.report summary { cursor: pointer; }
details.report form { margin-top: var(--space-3); }

/* --- dashboard --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.stat .num { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 1.8rem; letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

.table-wrap { overflow-x: auto; }
/* Long one-liners (badge embed, API keys) scroll inside their box instead of
   bleeding across the layout (settings audit 2026-07-11). */
pre { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
th { color: var(--faint); font-family: "Fragment Mono", ui-monospace, monospace; font-weight: 400; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
td code { font-size: 0.9em; }

.badge { display: inline-block; padding: 1px var(--space-3); border-radius: 999px; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.02em; line-height: 1.9; white-space: nowrap; }
.badge.info { color: var(--muted); background: color-mix(in srgb, var(--faint) 14%, transparent); }
.badge.warning { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.badge.critical { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); }
.filters > div { flex: 1; min-width: 140px; }
.filters label { margin-top: 0; }

/* DPP editor (audit 2026-07-11): four fieldsets instead of eighteen identical
   cards, the label row carries a compact visibility control, actions ride a
   sticky bar so Save/Preview/Publish never scroll away. */
.pp-editor { display: grid; gap: var(--space-4); }
.pp-editor fieldset.card { min-inline-size: 0; margin: 0; border: 1px solid var(--border); }
.pp-editor legend { font-weight: 600; padding: 0 var(--space-2); }
.pp-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pp-field-head label { flex: 1; }
select.pp-vis {
  width: auto; padding: 2px var(--space-2);
  font-size: 0.8rem; color: var(--muted); border-radius: 6px;
}
.action-bar {
  position: sticky; bottom: var(--space-3); z-index: 5;
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgb(0 0 0 / 8%);
}
.action-bar .spacer { flex: 1; }

/* Fire inspection capture (spec F3): one row per check, answers inline. */
.check-row { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.check-row:last-child { border-bottom: none; }
.check-label { margin: 0 0 var(--space-2); font-weight: 500; }
.check-label .muted { font-weight: 400; font-size: 0.85rem; }
.check-answers { display: flex; gap: var(--space-4); }
.check-answers label { display: flex; gap: var(--space-1); align-items: center; margin: 0; color: var(--fg); }
.check-answers input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); }
.check-extra label { margin-top: var(--space-2); }
.photo-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.photo-grid img { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }

/* Geo-lock chip picker: chips above the country select, presets under it. */
.chip-picker .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px var(--space-2) 2px var(--space-3);
  font-size: 0.85rem; background: var(--card); white-space: nowrap;
}
.chip button {
  border: 0; background: none; padding: 0 2px; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 1rem; line-height: 1;
}
.chip button:hover { color: var(--bad); }
.chip-presets { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.chip-presets .btn { padding: var(--space-1) var(--space-3); font-size: 0.85rem; font-weight: 500; }

.pager { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-4); }
.exports { display: flex; gap: var(--space-2); }
.exports a { font-size: 0.85rem; padding: var(--space-1) var(--space-3); }

/* --- marketing pages (M12 phase 1, docs/11) --- */
main.mkt { max-width: none; padding: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 720px; }
.mkt section { padding: 48px 0; }
@media (min-width: 720px) { .mkt section { padding: 72px 0; } }
.mkt section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mkt section.alt + section.alt { border-top: none; }

.nav-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.18s ease; }
.nav-link:hover { color: var(--brand); }
/* Dash pages emit bare <a> nav links; give them the same quiet treatment.
   :not(.btn)/:not(.nav-chip) keeps the nav CTAs (Sign up / Dashboard) and the
   identity chip on full contrast — this selector outranks their own rules. */
.nav-links a:not(.btn):not(.nav-chip) { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.18s ease; }
.nav-links a:not(.btn):not(.nav-chip):hover { color: var(--brand); }
/* Signed-in identity chip: logo (when one exists) + brand name, a link to
   account settings. Same metrics AND shape as .btn.nav-cta beside it, so the
   pair reads as one control family (Ben, 2026-07-12). */
.nav-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: var(--space-2) var(--space-4); /* same metrics as .btn.nav-cta so both states share one height */
  font-weight: 500; color: var(--fg); white-space: nowrap; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-chip:hover { border-color: var(--brand); color: var(--brand); }
.nav-chip img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; display: block; flex: none; }
.btn.nav-cta { padding: var(--space-2) var(--space-4); }
@media (max-width: 760px) {
  .site-header { position: relative; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .site-header.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-5) var(--space-4);
  }
}

.mkt .hero { position: relative; overflow: hidden; padding: 52px 0 44px; text-align: center; }
@media (min-width: 720px) { .mkt .hero { padding: 84px 0 60px; } }
.mkt .hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-bg.light { display: var(--show-hero-light); }
.hero-bg.dark { display: var(--show-hero-dark); }
/* Any light/dark asset pair (imgs or inline SVG wrappers) rides the same vars. */
.themed.light { display: var(--show-hero-light); }
.themed.dark { display: var(--show-hero-dark); }
/* .themed makes this display:block, so it needs its own centering. */
.hero-art { width: 100%; max-width: 720px; height: auto; margin: 4rem auto 0; border: 1px solid var(--border); border-radius: 14px; }
.mcard .card-art { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; margin-bottom: var(--space-3); }
.card-art svg { width: 100%; height: auto; display: block; }
/* The three audience animations run continuously on one shared 6s loop; equal
   durations starting on the same render keep them in lockstep (Ben, 2026-07-09). */
@media (prefers-reduced-motion: reduce) {
  .mkt svg * { animation: none !important; }
}
.mkt .hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: var(--space-4) 0;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: var(--space-1) var(--space-3); margin: 0;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
.eyebrow {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 var(--space-2);
}
.eyebrow.warn-eyebrow { color: var(--warn); }
.mkt h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 var(--space-3); max-width: 46rem; }
.muted-head { display: block; color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); max-width: 42rem; margin: 0 0 var(--space-5); }
.sub.center, .cta-row.center { margin-left: auto; margin-right: auto; text-align: center; }
/* A centred coda after a card grid gets air above it (Ben, 2026-07-07). */
.cards3 + .sub.center, .cards2 + .sub.center { margin-top: var(--space-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin: var(--space-5) 0; }
.mkt .hero .cta-row { margin-bottom: var(--space-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: center; list-style: none; padding: 0; margin: var(--space-6) 0 0; font-size: 0.85rem; color: var(--muted); }
/* Marketing checks are decoration and follow the accent; verify-outcome
   green stays semantic (.result.authentic). */
.chips li::before { content: "✓ "; color: var(--brand); }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }
.mcard { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.mcard:hover, .tier:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 10%, transparent);
}
.mkt section.alt .mcard, .mkt .tiers .tier { background: var(--card); }
.mkt section:not(.alt) .mcard { background: var(--card); }
.mcard .label { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0; }
.mcard h3 { margin: var(--space-2) 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.mcard p { color: var(--muted); font-size: 0.95rem; margin: 0 0 var(--space-3); }
.mcard.slim h3 { margin-top: 0; }
.mcard.slim p { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.ticks li { padding-left: 1.4em; position: relative; margin: var(--space-2) 0; }
.ticks li::before { content: "✓"; color: var(--brand); position: absolute; left: 0; font-weight: 700; }
.ticks.spaced { max-width: 42rem; font-size: 1rem; }
.ticks.spaced li { margin: var(--space-3) 0; }

.steps .step { text-align: center; padding: var(--space-4); }
.step-n { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.step h3 { margin: var(--space-2) 0; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step-art { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; margin-bottom: var(--space-3); }

/* Industry icons (brand suite icons-industries/, inlined for theming):
   line-art follows --fg, the cut-X badge flips blue with a micro-motion on hover. */
.mcard .axind { display: block; margin-bottom: var(--space-2); color: var(--fg); }
.axind .bx line { transition: stroke 0.2s; }
.axind:hover .bx line, .mcard:hover .axind .bx line { stroke: var(--brand); }
.axind-vial .cap { transition: transform 0.25s; }
.axind-vial:hover .cap { transform: translateY(-4px); }
.axind-vial .liq { transition: transform 0.35s; }
.axind-vial:hover .liq { transform: translateY(-9px); }
.axind-sup .lid { transition: transform 0.25s; }
.axind-sup:hover .lid { transform: translateY(-5px); }
.axind-watch .handm { transform-origin: 48px 50px; }
.axind-watch:hover .handm { animation: axspinm 1.2s linear infinite; }
.axind-watch .handh { transform-origin: 48px 50px; transition: transform 0.6s; }
.axind-watch:hover .handh { transform: rotate(120deg); }
@keyframes axspinm { to { transform: rotate(360deg); } }
.axind-bot .bot { transform-origin: 48px 82px; transition: transform 0.3s; }
.axind-bot:hover .bot { transform: rotate(-8deg); }
.axind-tee .tee { transform-origin: 48px 56px; transition: transform 0.25s; }
.axind-tee:hover .tee { transform: translateY(-2px) scale(1.04); }
.axind-cos .lid2 { transform-origin: 48px 37px; transition: transform 0.28s; }
.axind-cos:hover .lid2 { transform: translateY(-5px) rotate(-5deg); }
.axind-cos .spark { opacity: 0; transition: opacity 0.2s; }
.axind-cos:hover .spark { opacity: 1; }
.axind-baby .bb { transform-origin: 48px 80px; }
.axind-baby:hover .bb { animation: axrock 0.9s ease-in-out infinite alternate; }
@keyframes axrock { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.axind-beam .beamg { transition: transform 0.25s; }
.axind-beam:hover .beamg { transform: translateY(-3px); }
.axind-auto .rotor { transform-origin: 48px 52px; }
.axind-auto:hover .rotor { animation: axspinm 1.4s linear infinite; }

.stats.big .num { font-size: 2.6rem; }
.stat .src { color: var(--muted); font-size: 0.8rem; margin-top: var(--space-1); }

.tiers-section { padding-top: 0 !important; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.tier { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tier.featured { border-color: var(--brand); border-width: 1.5px; box-shadow: 0 1px 2px rgb(34 23 18 / 5%); }
.tier-tag {
  position: absolute; top: -0.8em; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #F6EEE1;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 12px; white-space: nowrap;
}
.tier h3 { margin: 0; }
.tier-desc { color: var(--muted); font-size: 0.9rem; min-height: 3.2em; }
.tier .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: var(--space-3) 0; }
.tier .price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tier .btn { display: block; text-align: center; margin-bottom: var(--space-4); }
.pay-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3); margin: var(--space-5) 0 0;
  color: var(--muted); font-size: 0.85rem;
}
.pay-row svg { display: block; }

.faq details { border-bottom: 1px solid var(--border); padding: var(--space-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: var(--space-3) 0 0; }

.note.card { background: var(--bg); }
.note.card p { margin: 0; color: var(--muted); }
.legal h2 { font-size: 1.15rem; margin: var(--space-6) 0 var(--space-3); }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; }
.legal strong { color: var(--fg); }
.mkt .legal { padding-top: 0; }
.mkt .hero + .legal { padding-top: 0; }

.cta-final { text-align: center; }
.cta-final h2 { margin-left: auto; margin-right: auto; }

.contact-section { padding-top: 0 !important; }
/* Keep the form compact: narrower card, name + email share a row (Ben, 2026-07-09). */
.contact-section .card { max-width: 560px; margin-inline: auto; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 var(--space-4); }
textarea {
  width: 100%; padding: var(--space-3); font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  resize: vertical;
}
.center-card { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mkt-footer { border-top: 1px solid var(--border); background: var(--card); padding: var(--space-5) 0; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: var(--space-4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.18s ease; }
.footer-nav a:hover { color: var(--brand); }
.footer-meta { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1.5px dashed var(--dash); font-size: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* --- /styleguide (brand + theme test page) --- */
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }
.swatch { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.swatch .chip { height: 56px; }
.swatch .meta { padding: var(--space-2) var(--space-3); font-size: 0.8rem; background: var(--card); }
.swatch .meta code { color: var(--muted); }
