/* Roux website - one design system for every page.
 * Layout: a 1180px shell; a split hero whose right half is a working view of the Roux Industry Showcase; light
 * bands for the product story, one deep-navy band for governance; the same header and footer on every page.
 * Brand: the approved Ledger mark and colours (src/ui/brand.jsx - ink #16284A, carmine #C4124F; on dark grounds
 * ink #EDE9DF, carmine #EB2468) and the product's own typeface, IBM Plex, self-hosted (assets/fonts, OFL).
 * The site's CSP is style-src 'self' with no inline style attribute anywhere: every rule lives here.
 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin.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-latin-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-latin-500.woff2") format("woff2"); }

:root {
  --bg: #f6f7fa; --surface: #ffffff; --surface-2: #eef1f6; --surface-3: #e6eaf2;
  --ink: #16284a; --ink-2: #2b3a58; --muted: #56617a; --faint: #8891a5; --line: #dfe4ee; --line-strong: #c9d0de;
  --accent: #c4124f; --accent-hover: #a90f44; --on-accent: #ffffff; --accent-text: #c4124f; --accent-soft: #fbe7ee;
  --band: #16284a; --band-2: #1f3560; --on-band: #ede9df; --on-band-muted: #b4bdd0; --band-line: #2c4370;
  --data: #16284a; --data-peak: #c4124f; --data-soft: #9aa7c4; --grid: #e4e8f0;
  --mark-ink: #16284a; --mark-acc: #c4124f; --mark-soft: #475671; --mark-ground: #f6f7fa;
  --ok: #1e7a4d; --ok-soft: #e2f3e9; --warn: #8a5300; --warn-soft: #fbefd9;
  --shadow-sm: 0 1px 2px rgba(22, 40, 74, 0.06);
  --shadow: 0 1px 2px rgba(22, 40, 74, 0.05), 0 18px 40px -18px rgba(22, 40, 74, 0.28);
  --shadow-lg: 0 2px 4px rgba(22, 40, 74, 0.05), 0 40px 80px -32px rgba(22, 40, 74, 0.38);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 16px; --radius-md: 12px; --radius-sm: 8px;
  --shell: 1240px;
  color-scheme: light;
}
/* Light only (the owner, 2026-10-13: "Let's have light mode only, while keeping dark mode off"): no dark palette, and
   color-scheme stays light so a visitor's dark system setting does not darken form controls or scrollbars either. */

/* ── base ─────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.1; letter-spacing: -0.026em; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: 0.88em; background: var(--surface-2); color: var(--ink); padding: 0.1em 0.38em; border-radius: 5px; overflow-wrap: anywhere; }
pre { margin: 0; overflow-x: auto; }
.shell { width: min(100% - 32px, var(--shell)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.fine-print { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ── buttons ──────────────────────────────────────────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent);
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.button:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(196, 18, 79, 0.65); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.button .arrow { transition: transform 0.18s ease; }
.button:hover .arrow { transform: translateX(3px); }
.nav-button { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.button.disabled, .button[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── header ───────────────────────────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease; }
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.lockup { display: block; height: 26px; width: auto; overflow: visible; }
.mk-ink { fill: var(--mark-ink); }
.mk-acc { fill: var(--mark-acc); }
.mk-soft { fill: var(--mark-soft); }
.mk-hair { fill: none; stroke: var(--mark-ground); stroke-width: 1.1; opacity: 0.6; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 0.15s ease, background-color 0.15s ease; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-signin { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.nav-signin:hover { color: var(--accent-text); text-decoration: underline; }
.menu-button { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; }

/* ── hero ─────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 82% 12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    radial-gradient(48rem 26rem at 8% 0%, color-mix(in srgb, var(--data-soft) 22%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.hero-text .lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* The product view: the Retail Performance dashboard of the showcase, drawn in HTML and SVG. */
.product { position: relative; min-width: 0; margin: 0; }
.product-stage { position: relative; }
.product-window { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.product-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.product-bar .glyph { width: 20px; height: 20px; flex: none; }
.product-title { display: grid; gap: 1px; min-width: 0; }
.product-title strong { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.product-title span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.product-chip { margin-inline-start: auto; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.product-body { padding: 16px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; gap: 4px; background: var(--surface); min-width: 0; }
.kpi span { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi strong { font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi.accent strong { color: var(--accent-text); }
.product-charts { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.chart-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; display: grid; gap: 6px; min-width: 0; }
.chart-card h4 { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .tick { fill: var(--faint); font: 400 11px var(--mono); }
.chart-svg .label { fill: var(--muted); font: 500 12px var(--sans); }
.chart-svg .value { fill: var(--ink); font: 500 11px var(--mono); }
.chart-svg .bar { fill: var(--data); transition: opacity 0.15s ease; }
.chart-svg .bar-peak { fill: var(--data-peak); }
.chart-svg:hover .bar { opacity: 0.55; }
.chart-svg .bar:hover { opacity: 1; }
.formula-chip { position: absolute; right: -18px; bottom: -46px; display: grid; gap: 3px; max-width: 300px; padding: 11px 14px; border-radius: 14px;
  background: var(--band); color: var(--on-band); box-shadow: var(--shadow); border: 1px solid var(--band-line); }
.formula-chip span { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-band-muted); }
.formula-chip code { background: transparent; color: var(--on-band); padding: 0; font-size: 13px; }
.formula-chip code b { color: #ff7aa2; font-weight: 500; }
.product-caption { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: calc(100% - 320px); min-width: 220px; }

/* ── sections ─────────────────────────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.soft { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* What is Roux */
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.intro-grid > div { display: grid; gap: 16px; min-width: 0; }
.intro-copy { display: grid; gap: 18px; color: var(--muted); font-size: 1.08rem; }
.intro-copy p:first-child { color: var(--ink); font-size: 1.22rem; line-height: 1.55; }
/* Photographs (D3, the owner's choice 4) and the export illustration (choice 3): self-hosted WebP, sized by width and
   height so nothing shifts while they load. A photograph shows people at work; it never stands for the product. */
.intro-grid.with-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.photo { margin: 0; min-width: 0; }
.photo img, .cta-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo img { aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.illustration { margin: 0; display: grid; gap: 12px; min-width: 0; }
.illustration img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #f7f9fa; box-shadow: var(--shadow); }
.illustration figcaption { font-size: 13px; color: var(--muted); }
.ticks.present-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: clamp(28px, 3.5vw, 44px); }

/* One connected workflow - five stages, a tablist once site.js runs, five plain panels without it. */
.workflow { display: grid; gap: 24px; }
.wf-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.wf-tab { position: relative; display: grid; gap: 6px; justify-items: start; align-content: start; text-align: start; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.wf-tab:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.wf-tab .wf-num { font: 500 11.5px/1 var(--mono); color: var(--faint); letter-spacing: 0.06em; }
.wf-tab strong { font-size: 1.05rem; font-weight: 600; }
.wf-tab small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.wf-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.wf-tab[aria-selected="true"] .wf-num { color: var(--accent-text); }
.wf-panels { display: grid; gap: 16px; }
.wf-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wf-panel > div { display: grid; gap: 14px; min-width: 0; }
.wf-panel h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.wf-panel p { color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; border-radius: 3px; background: var(--accent); }
.wf-art { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 16px; display: grid; gap: 8px; font-size: 14px; min-width: 0; }
.wf-art .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.wf-art .row span:first-child { font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.wf-art .row span:last-child { font: 400 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.wf-art .row.on { border-color: var(--accent); }
.wf-art .row-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wf-art .tag { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 2px 2px 4px; }

/* Capabilities */
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.capability { display: grid; gap: 12px; align-content: start; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.capability:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.capability p { color: var(--muted); font-size: 15.5px; }
.cap-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.cap-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Meaning travels with the number */
.split-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-panel > div { display: grid; gap: 18px; min-width: 0; }
.split-panel > div > p { color: var(--muted); }
.qualification { font-size: 14px; color: var(--muted); border-inline-start: 3px solid var(--line-strong); padding-inline-start: 14px; }
.definition-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.definition-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.definition-head strong { font-size: 14px; }
.definition-head span { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.definition-list { margin: 0; padding: 8px; list-style: none; display: grid; gap: 4px; }
.definition-list li { display: grid; gap: 6px; padding: 12px 12px; border-radius: 10px; }
.definition-list li > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.definition-list li:hover { background: var(--surface-2); }
.definition-list strong { font-size: 14.5px; font-weight: 600; }
.definition-list small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.definition-list code { background: transparent; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.definition-list code b { color: var(--accent-text); font-weight: 500; }
.lineage { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.lineage span { font: 500 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.lineage span.on { background: var(--accent-soft); color: var(--accent-text); }

/* Hybrid execution */
.architecture-card { display: grid; gap: 10px; justify-items: stretch; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.architecture-card > div { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.architecture-card > div strong { font-size: 15px; }
.architecture-card > div span, .architecture-card small { font-size: 13px; color: var(--muted); }
.architecture-card > div.engine { background: var(--band); border-color: var(--band-line); }
.architecture-card > div.engine strong { color: var(--on-band); }
.architecture-card > div.engine span { color: var(--on-band-muted); }
.architecture-arrow { justify-self: center; color: var(--faint); font-size: 18px; line-height: 1; }
.architecture-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.architecture-split > span { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.architecture-split > span strong { font-size: 15px; }

/* Governance band */
.band { background: var(--band); color: var(--on-band); padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50rem 24rem at 90% 0%, rgba(235, 36, 104, 0.16), transparent 60%), radial-gradient(40rem 22rem at 0% 100%, rgba(154, 167, 196, 0.12), transparent 60%); }
.band .shell { position: relative; }
.band h2, .band h3 { color: var(--on-band); }
.band .eyebrow { color: #ff7aa2; }
.band .section-head p:not(.eyebrow) { color: var(--on-band-muted); }
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); border-radius: var(--radius); overflow: hidden; }
.gov-item { background: var(--band); padding: 26px; display: grid; gap: 10px; align-content: start; }
.gov-item p { color: var(--on-band-muted); font-size: 15px; }
.gov-item .cap-icon { background: rgba(235, 36, 104, 0.14); color: #ff7aa2; }

/* Developer */
.developer-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.developer-panel > div { display: grid; gap: 18px; min-width: 0; }
.developer-panel > div > p { color: var(--muted); }
.code-card { border-radius: var(--radius); background: #0b1324; color: #dfe5f3; border: 1px solid #1f2b45; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #1f2b45; font: 500 12px/1 var(--mono); color: #93a0bd; }
.code-head .verb { color: #0b1324; background: #9be3be; padding: 4px 7px; border-radius: 6px; font-weight: 500; }
.code-card pre { padding: 18px 20px; font-size: 13.5px; line-height: 1.7; }
.code-card code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.c-k { color: #93a0bd; }
.c-s { color: #9be3be; }
.c-p { color: #ff8fb3; }
.c-n { color: #f5c77e; }

/* Demo access / sign-in: the Home page's demo section, which render-site.mjs writes per launch mode */
.demo-access-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-access-card > div { display: grid; gap: 14px; min-width: 0; }
.demo-access-card > div > p:not(.eyebrow):not(.fine-print) { color: var(--muted); }
.demo-access-credentials { padding: 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.demo-access-credentials dl { margin: 0; display: grid; gap: 10px; }
.demo-access-credentials dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.demo-access-credentials dt { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.demo-access-credentials dd { margin: 0; min-width: 0; }
.demo-access-credentials dd code { font-size: 14px; background: var(--surface); border: 1px solid var(--line); padding: 4px 8px; }
.demo-access-credentials strong { font-size: 1.1rem; }
.demo-account { display: grid; gap: 3px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.demo-account strong { font-size: 1rem; }
.demo-account span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.demo-access-credentials .button { justify-self: start; margin-top: 4px; }
.section.soft:has(.demo-access-card) { background: transparent; border: 0; }
.section:has(.demo-access-card) { padding-block: clamp(24px, 3vw, 40px); }
.section:has(.cta-band) { padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 96px); }

/* Closing call to action */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 52px);
  border-radius: 28px; background: var(--band); color: var(--on-band); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40rem 20rem at 100% 0%, rgba(235, 36, 104, 0.22), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band > div { display: grid; gap: 10px; min-width: 0; }
.cta-band h2 { color: var(--on-band); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: var(--on-band-muted); max-width: 64ch; }
.cta-band .button.secondary { color: var(--on-band); border-color: var(--band-line); }
.cta-band .button.secondary:hover { background: var(--band-2); border-color: var(--on-band-muted); }
.cta-band.with-photo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; gap: clamp(24px, 3.5vw, 48px); }
.cta-band.with-photo > div { align-content: center; gap: 12px; }
.cta-band.with-photo .actions { margin-top: 8px; }
.cta-photo { margin: 0; min-width: 0; min-height: 260px; }
.cta-photo img { height: 100%; object-fit: cover; border-radius: 18px; }

/* ── footer ───────────────────────────────────────────────────────────────────────────────────── */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--bg); }
.site-footer .shell { display: grid; gap: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.footer-grid > div:first-child { display: grid; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { font-size: 13px; color: var(--faint); max-width: 80ch; border-top: 1px solid var(--line); padding-top: 20px; }

/* ── inner pages ──────────────────────────────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50rem 22rem at 85% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }
.page-hero .shell { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 18ch; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; max-width: 64ch; }
.prose { max-width: 820px; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 22px; }
.prose h3 { margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.prose pre { background: #0b1324; color: #dfe5f3; border-radius: 12px; padding: 16px 18px; font-size: 13.5px; line-height: 1.7; border: 1px solid #1f2b45; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.notice { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); color: var(--ink-2); }
.notice.warning { border-inline-start-color: var(--accent); background: var(--accent-soft); }
.endpoint { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.endpoint strong { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.table-wrap th, .table-wrap td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: transparent; }
.consent-checkbox { width: auto !important; margin-inline-end: 8px; accent-color: var(--accent); }
.field label:has(.consent-checkbox) { font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.not-found-main { min-height: 75vh; display: grid; align-items: center; border-bottom: 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-strip > div { display: grid; gap: 4px; }
.trust-strip span { color: var(--muted); font-size: 14px; }

/* ── motion ───────────────────────────────────────────────────────────────────────────────────── */
/* The owner, 2026-10-13: "restore the animations and interactivity" of the page he supplied - its hero entrance,
   sections that settle in as they are reached, a reading-progress line under the header, a workflow that moves, and a
   dashboard the visitor can filter. Each effect is added by assets/site.js, so without script nothing is hidden, and
   the reduced-motion rule at the end of this block turns every one of them off. */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.product-window { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-text > * { animation: enter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: 0.06s; }
.hero-text > :nth-child(3) { animation-delay: 0.12s; }
.hero-text > :nth-child(4) { animation-delay: 0.18s; }
.product-caption { animation: enter 0.6s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
/* sections settle in as they are reached (the script marks them only where IntersectionObserver exists) */
.reveal-ready .will-reveal { opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal-ready .will-reveal.is-revealed { opacity: 1; transform: none; }
/* reading progress: a carmine line under the header, as wide as the share of the page read */
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--page-progress, 0%);
  background: var(--accent); pointer-events: none; transition: width 0.12s linear; }
/* the workflow: a rail under the steps that runs to the open one, and each panel eases in */
.wf-tabs::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 3px; width: var(--wf-progress, 0%);
  border-radius: 3px; background: var(--accent); transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wf-panel.is-entering { animation: panel-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
/* the hero dashboard, filtered by region: bars grow or shrink from their baseline, values ease in */
.region-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.region-filter button { font: 500 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.region-filter button:hover { color: var(--ink); border-color: var(--line-strong); }
.region-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chart-svg rect[data-month], .chart-svg rect[data-cat] { transform-box: fill-box; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.15s ease, fill 0.3s ease; }
.chart-svg rect[data-month] { transform-origin: 50% 100%; }
.chart-svg rect[data-cat] { transform-origin: 0% 50%; }
.chart-svg text[data-cat-value] { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes value-in { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kpi strong.is-updating, .chart-svg .is-updating { animation: value-in 0.4s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── responsive ───────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { max-width: 720px; }
  .product { max-width: 780px; }
}
@media (max-width: 960px) {
  .hero-grid, .intro-grid, .intro-grid.with-photo, .split-panel, .developer-panel, .demo-access-card, .contact-layout, .wf-panel, .cta-band.with-photo, .ticks.present-facts { grid-template-columns: minmax(0, 1fr); }
  .cta-photo { min-height: 0; }
  .cta-photo img { aspect-ratio: 16 / 9; }
  .capability-grid, .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .wf-tab { scroll-snap-align: start; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-button { display: inline-grid; place-items: center; }
  .nav { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-links { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 0 4px; }
  .nav-links[data-open] { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav > .button { order: 2; margin-inline-start: auto; }
  .nav > .nav-signin { order: 2; margin-inline-start: auto; }
  .nav > .nav-signin + .button { margin-inline-start: 0; }
  .menu-button { order: 3; margin-inline-start: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .capability-grid, .gov-grid, .field-grid, .trust-strip, .wf-art .row-pair { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-charts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .demo-access-credentials dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .formula-chip { position: relative; right: auto; bottom: auto; margin-top: 12px; max-width: none; }
  .product-caption { margin-top: 14px; max-width: none; }
  .nav-button { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .nav > .nav-signin { display: none; }
  .nav > .nav-signin + .button { margin-inline-start: auto; }
}
