:root { --font-inter: "Inter"; --font-plex-mono: "IBM Plex Mono"; }
/* MMM PH brand tokens (brand supplement v3, Sage 01). Values are the colors as RENDERED in the
   approved reference (the stated authority when they differ from printed hex labels):
   Deep Forest swatch #052820 (label #102E27), Pine #154D3C (label #18483A),
   Sage #D1D79F (label #D5DDA0), Sand #E6E1D2 (label #E8E6D7), Ivory #ECE7DB (label #F5F1E7),
   board backdrop #F1EEE5. Logo panel #0E2D27 = the panel of the approved distribution-curve
   logo (2026-10-22), so the sidebar meets the logo without a seam. See docs/brand/README.md. */
:root {
  --deep-forest: #052820; --logo-panel: #0e2d27; --pine: #154d3c; --sage: #d1d79f; --sand: #e6e1d2;
  --ivory: #ece7db; --board: #f1eee5;
  --bg: var(--ivory); --surface: var(--board); --text: #10211c; --muted: #4f5d57; --border: var(--sand);
  --accent: var(--pine); --accent-contrast: #f5f1e7; --nav-bg: var(--logo-panel); --nav-text: #ece7db;
  --ok: #1f6b45; --warn: #8a5a00; --block: #a3261e; --info: #34566e;
  /* chart series (validated: lightness, chroma, CVD and contrast on the card surface #F1EEE5):
     forest green = actual / the curve, slate blue = the model, from the logo's green and slate */
  --chart-actual: #1a7048; --chart-model: #4a8dc6; --chart-grid: #ddd7c6;
  --radius: 8px; --focus: 0 0 0 3px rgba(21, 77, 60, 0.28);
  /* motion (design-engineering defaults): strong ease-out for responses, ease-in-out for
     on-screen movement; UI motion stays under 300 ms; transform/opacity only */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: var(--font-inter), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.mono, code, .badge, th, .freshness dt, .eyebrow { font-family: var(--font-plex-mono), ui-monospace, SFMono-Regular, Menlo, monospace; }
* { box-sizing: border-box; }
body {
  margin: 0; background-color: var(--bg); color: var(--text); line-height: 1.5;
  background-image: radial-gradient(rgba(5, 40, 32, 0.07) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1 { font-size: 1.55rem; margin: 0 0 0.75rem; letter-spacing: -0.025em; font-weight: 650; color: var(--deep-forest); }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--nav-bg); color: var(--nav-text); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.side .muted { color: #b9c2ad; }
.side nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side nav h2 { font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin: 1rem 0 0.35rem 0.6rem; font-weight: 500; }
.side nav a { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; text-decoration: none; color: rgba(236, 231, 219, 0.78); font-size: 0.9rem; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .side nav a:hover { background: rgba(209, 215, 159, 0.09); color: var(--nav-text); } }
.side nav a[aria-current="page"] { background: rgba(209, 215, 159, 0.14); color: #f5f1e7; font-weight: 600; box-shadow: inset 2px 0 0 var(--sage); }
.side select { background: rgba(255, 255, 255, 0.06); color: var(--nav-text); border-color: rgba(209, 215, 159, 0.35); }
.side button.secondary, .side .button.secondary { color: var(--nav-text); border-color: rgba(209, 215, 159, 0.35); }
.side label { color: var(--nav-text); }
.brand-logo { display: block; width: 100%; height: auto; }
.main { padding: 2rem 2.5rem; max-width: 1240px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.35rem; margin-bottom: 1.1rem; overflow-x: auto; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.banner { border-left: 4px solid var(--warn); background: var(--surface); padding: 0.6rem 1rem; margin-bottom: 1rem; border-radius: 4px; }
.muted { color: var(--muted); font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
thead th { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody td { font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
button, .button { font: inherit; font-weight: 550; background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 6px; padding: 0.45rem 0.9rem; cursor: pointer; text-decoration: none; display: inline-block; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, opacity 150ms ease; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }
button:active:not(:disabled), .button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled), .button:hover { background-color: #0f3e30; }
  button.secondary:hover:not(:disabled), .button.secondary:hover { background-color: rgba(21, 77, 60, 0.06); border-color: #cfc8b4; }
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
input, select, textarea { font: inherit; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); max-width: 100%; transition: border-color 150ms ease, box-shadow 150ms ease; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--pine); }
label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.form { display: grid; gap: 0.75rem; max-width: 520px; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }
.badge { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; border: 1px solid currentColor; }
.badge.pass, .badge.succeeded, .badge.ok { color: var(--ok); }
.badge.warn, .badge.queued, .badge.running { color: var(--warn); }
.badge.block, .badge.failed { color: var(--block); }
.badge.info, .badge.cancelled { color: var(--info); }
.error { color: var(--block); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--border); } .main { padding: 1rem; } }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); min-height: 100vh; }
.login-brand { background: var(--logo-panel); color: var(--nav-text); display: flex; flex-direction: column; justify-content: flex-start; padding: 120px 48px 48px; gap: 24px; }
/* integer offsets: the approved raster logo must land on whole pixels to render 1:1 (brand.spec.ts) */
.login-brand p { max-width: 34rem; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 3rem; max-width: 30rem; }
@media (max-width: 860px) { .login-shell { grid-template-columns: 1fr; } .login-brand, .login-form { padding: 1.5rem; } }
.freshness { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem 1rem; margin: 0 0 1rem; }
.freshness div { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.6rem; }
.freshness dt { font-size: 0.75rem; }
.freshness dd { margin: 0; font-weight: 600; font-size: 0.9rem; }
.grid-curves { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
.side select { width: 100%; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.compare-grid .card { margin-bottom: 0; }
.big { font-size: 1.15rem; font-weight: 700; margin: 0.25rem 0; }
.assumptions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.4rem 1rem; margin: 0; }
.assumptions dd { margin: 0; overflow-wrap: anywhere; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.plan-grid .card[aria-current="true"] { border: 2px solid var(--accent); }

/* ---- Client portal: executive view (point estimates; disclaimers behind info icons) ---- */
.infotip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 0.3rem; color: var(--muted); cursor: help; }
.infotip:hover, .infotip:focus-visible { color: var(--pine); }
.delta { margin-left: 0.4rem; font-size: 0.7rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--block); }
.delta.neutral { color: var(--muted); }
.exec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg a { padding: 0.35rem 0.75rem; font-size: 0.82rem; text-decoration: none; color: var(--muted); border-right: 1px solid var(--border); }
.seg a:last-child { border-right: 0; }
.seg a[aria-current="true"] { background: var(--pine); color: #f5f1e7; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; margin-bottom: 1.1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.kpi-title { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; }
.kpi-value { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.03em; color: var(--deep-forest); font-variant-numeric: tabular-nums; line-height: 1.25; margin: 0.3rem 0 0.15rem; }
.kpi .delta { margin-left: 0; font-size: 0.78rem; }
.exec-card h2 { margin: 0 0 0.8rem; font-size: 1rem; }
.bars { display: grid; gap: 0.45rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.bar-track { background: rgba(21, 77, 60, 0.07); border-radius: 4px; height: 14px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 4px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.perf-wrap { overflow-x: auto; }
table.perf { font-size: 0.875rem; min-width: 760px; }
table.perf th, table.perf td { padding: 0.85rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
table.perf thead th { font-family: var(--font-inter), system-ui, sans-serif; font-size: 0.74rem; font-weight: 600; color: var(--muted); padding-top: 0.4rem; padding-bottom: 0.55rem; white-space: nowrap; }
table.perf thead th.modeled { color: var(--pine); }
table.perf thead th.reported { color: var(--info); }
table.perf tr.bands th { text-align: center; font-family: var(--font-plex-mono), monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 0; padding-bottom: 0.2rem; }
table.perf tr.bands th.band.modeled { color: var(--pine); border-top: 2px solid var(--pine); background: rgba(21, 77, 60, 0.04); }
table.perf tr.bands th.band.reported { color: var(--info); border-top: 2px solid var(--info); background: rgba(52, 86, 110, 0.05); }
table.perf th.name { font-family: var(--font-inter), system-ui, sans-serif; font-weight: 500; color: var(--text); white-space: nowrap; }
table.perf .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.55rem; vertical-align: middle; }
table.perf td .v { font-weight: 500; }
table.perf tr.total th, table.perf tr.total td { background: rgba(21, 77, 60, 0.05); font-weight: 700; }
table.perf tr.total .v { font-weight: 700; }
table.perf tbody tr:not(.total):hover { background: rgba(21, 77, 60, 0.03); }
.perf-foot, .exec-foot { font-size: 0.78rem; color: var(--muted); margin: 0.6rem 0 0; }
.exec-foot { text-decoration: underline dotted; text-underline-offset: 3px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--deep-forest); color: #f5f1e7; border-radius: 8px; padding: 0.5rem 0.9rem; margin-bottom: 1rem; font-size: 0.85rem; }
.preview-bar a { color: var(--sage); }
@media (max-width: 760px) { .bar-row { grid-template-columns: 100px 1fr 70px; } }

/* ---- Executive summary (printable) ---- */
.report { max-width: 1040px; }
.report-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.report-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.2rem; }
.report-logo { background: var(--logo-panel); border-radius: 8px; padding: 6px; line-height: 0; }
.takeaways { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.report-note { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 0.6rem; }
.report-note h2 { font-size: 0.85rem; margin: 0 0 0.3rem; color: var(--text); }
.report-note p { margin: 0 0 0.3rem; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .shell { display: block; }
  .side, .banner, .no-print, .infotip { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card, .kpi { break-inside: avoid; background: #fff; }
  .report-break { break-before: page; }
  .card, .perf-wrap { overflow: visible !important; }
  table.perf { min-width: 0 !important; width: 100%; font-size: 0.66rem; }
  table.perf th, table.perf td { padding: 0.4rem 0.25rem; }
  table.perf thead th { font-size: 0.6rem; white-space: normal; }
  table.perf .delta { font-size: 0.56rem; margin-left: 0.15rem; }
  table.perf .dot { margin-right: 0.3rem; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .kpi { padding: 0.6rem 0.75rem; }
  .kpi-value { font-size: 1.15rem; }
  .report-logo img { width: 150px !important; }
  .perf-foot { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.pill { display: inline-block; padding: 0.12rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; margin-right: 0.4rem; }
.pill.ok { background: rgba(31, 107, 69, 0.12); color: var(--ok); }
.pill.warn { background: rgba(138, 90, 0, 0.12); color: var(--warn); }
.pill.bad { background: rgba(163, 38, 30, 0.12); color: var(--block); }
.pill.off { background: rgba(79, 93, 87, 0.1); color: var(--muted); }
.status-hero p { font-size: 1rem; }
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem 1.5rem; margin: 0; }
.included div { border-top: 1px solid var(--border); padding-top: 0.4rem; }
.included dt { font-size: 0.8rem; color: var(--muted); }
.included dd { margin: 0; font-weight: 600; }
table.perf.compact { min-width: 0; }
.qr { display: block; width: 220px; height: 220px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.key { letter-spacing: 0.08em; font-size: 0.9rem; }
.codes { columns: 2; list-style: none; padding: 0; margin: 0.5rem 0 1rem; font-size: 1rem; }
.codes li { padding: 0.15rem 0; }
.range-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.75rem; }
.range-picker label { display: grid; gap: 0.1rem; font-size: 0.72rem; color: var(--muted); }
.range-picker select, .range-picker input { font-size: 0.85rem; padding: 0.3rem 0.45rem; }
.range-picker .range-dates { display: inline-flex; align-items: center; gap: 0.3rem; }
.range-picker button { padding: 0.35rem 0.9rem; }
.plan-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.plan-title { margin: 0.15rem 0 0.3rem; font-size: 1.3rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-meta { margin: 0; color: var(--muted); font-size: 0.86rem; }
.plan-note { margin: 0.75rem 0 0; padding: 0.5rem 0.75rem; border-left: 3px solid var(--warn); background: rgba(138, 90, 0, 0.06); border-radius: 4px; font-size: 0.86rem; }
table.perf .expand { background: none; border: 0; color: var(--muted); padding: 0 0.35rem 0 0; font-size: 0.8rem; cursor: pointer; width: 1.1rem; }
table.perf .expand-spacer { display: inline-block; width: 1.1rem; }
table.perf tr.sub th.name { padding-left: 2.6rem; font-weight: 400; color: var(--muted); }
table.perf tr.sub td { color: var(--muted); font-size: 0.82rem; }
table.perf td.sub-note { font-size: 0.75rem; font-style: italic; }
@media print { table.perf .expand, table.perf .expand-spacer { display: none; } }

/* ---- Revenue decomposition (Overview) ---- */
.decomp-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 0.9rem; }
.decomp-total { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--deep-forest); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 0.5rem; }
.decomp-total .delta { font-size: 0.85rem; }
.decomp-recon { display: flex; gap: 1.5rem; margin: 0; }
.decomp-recon dt { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; }
.decomp-recon dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.decomp-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--board); }
.decomp-bar span { display: block; height: 100%; min-width: 2px; }
.decomp-scale { display: flex; justify-content: space-between; font-size: 0.75rem; margin: 0.2rem 0 0.6rem; }
.decomp-neg { font-size: 0.82rem; color: var(--block); margin: 0 0 0.6rem; }
.decomp-table th.name { font-weight: 500; }
.decomp-table .swatch, .legend .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 0.55rem; vertical-align: middle; }
.decomp-table tr.neg td .v { color: var(--block); }
.decomp-table tr.subtotal th, .decomp-table tr.subtotal td { font-weight: 700; background: rgba(21, 77, 60, 0.05); }
.decomp-table .iv { display: block; font-size: 0.7rem; color: var(--muted); }
.decomp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--border); margin-top: 0.8rem; padding-top: 0.8rem; }
.decomp-split .kpi-value { display: flex; align-items: baseline; gap: 0.4rem; }
.decomp-sentence { margin: 0.9rem 0 0; padding: 0.7rem 0.9rem; background: rgba(209, 215, 159, 0.25); border-radius: 8px; font-size: 0.92rem; }
.decomp-time { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
.legend .swatch.line { height: 2px; width: 16px; background: var(--chart-actual); border-radius: 0; }
.legend .swatch.dash { height: 0; width: 16px; border-top: 2px dashed var(--chart-model); border-radius: 0; background: none; }
.legend .swatch.band { height: 10px; width: 16px; background: rgba(74, 141, 198, 0.16); border-radius: 2px; }
.legend .swatch.hollow { width: 9px; height: 9px; border: 2px solid var(--chart-actual); border-radius: 50%; background: var(--surface); }
/* hover column: a crosshair appears on the hovered period/spend level */
.hover-col .crosshair { opacity: 0; transition: opacity 80ms; }
.hover-col:hover .crosshair { opacity: 1; }
.chart-note { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
svg .axis-label, .decomp-time text { font-family: var(--font-plex-mono), ui-monospace, monospace; font-variant-numeric: tabular-nums; }
svg .axis-label { font-size: 9.5px; fill: var(--muted); }
svg .axis-title { font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--muted); }
.legend .swatch.line.ink { background: var(--text); }
.legend .swatch.area.ink { width: 16px; height: 10px; border-radius: 2px; background: rgba(16, 33, 28, 0.14); border-top: 2px solid var(--text); }
.channel-icon, .bar-label .dot, th.name .dot { flex: none; vertical-align: -2px; margin-right: 0.45rem; }
.bar-label { display: inline-flex; align-items: center; min-width: 0; }
.curve-title { display: flex; align-items: center; }
.legend .channel-icon { margin-right: 0.3rem; }
.legend .swatch.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--deep-forest); }
.legend .swatch.rc-line { width: 16px; height: 10px; border-radius: 0; background: linear-gradient(rgba(16, 33, 28, 0.16), rgba(16, 33, 28, 0.02)); border-top: 1.75px solid var(--text); }
.legend .swatch.ring { width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
.legend .swatch.untested { width: 14px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--chart-grid) 55%, transparent); border-left: 1px dashed var(--muted); }
.rc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-bottom: 0.9rem; }
.rc-head h2 { margin: 0; }
.rc-legend { margin: 0; }
.rc-nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.rc-count { font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.4rem; }
.icon-btn { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover:not(:disabled) { background-color: rgba(21, 77, 60, 0.06); border-color: #cfc8b4; } }
.rc-viewport { --per: 3; --gap: 0.9rem; overflow: hidden; border-radius: 6px; }
.rc-viewport:focus-visible { box-shadow: var(--focus); }
@media (max-width: 1180px) { .rc-viewport { --per: 2; } }
@media (max-width: 720px) { .rc-viewport { --per: 1; } }
.rc-track { display: flex; gap: var(--gap); transition: transform 260ms var(--ease-in-out); will-change: transform; }
.rc-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.curve-card { margin: 0; border: 1px solid var(--border); border-radius: 6px; padding: 0.7rem 0.8rem 0.35rem; background: rgba(255, 255, 255, 0.28); }
.curve-title { font-size: 0.86rem; font-weight: 600; color: var(--deep-forest); margin-bottom: 0.3rem; }
@media (prefers-reduced-motion: reduce) {
  .rc-track, button, .button, .side nav a { transition: none; }
  button:active:not(:disabled), .button:active { transform: none; }
}

/* single app-wide tooltip (TipLayer): never clipped, always on screen */
.tip-layer { position: fixed; z-index: 1000; max-width: min(340px, calc(100vw - 16px)); padding: 0.55rem 0.75rem; border-radius: 8px; background: var(--deep-forest); color: #f5f1e7; font: 400 0.82rem/1.45 var(--font-inter), system-ui, sans-serif; box-shadow: 0 8px 24px rgba(5, 40, 32, 0.28); pointer-events: none; font-variant-numeric: tabular-nums; }
.tip-layer .tip-title { font-weight: 600; color: var(--sage); margin-bottom: 0.15rem; }
[data-tip-follow] { cursor: default; }
svg [data-tip-follow]:hover { opacity: 0.85; }

/* ---- loading state ---- */
.page-loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 50vh; color: var(--muted); font-size: 1rem; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--pine); animation: spin 0.8s linear infinite; }
.spinner.small { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.busy-overlay { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding-top: 30vh; background: rgba(236, 231, 219, 0.55); backdrop-filter: blur(1px); }
.busy-overlay .page-loading { min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1.2rem; box-shadow: 0 8px 24px rgba(5, 40, 32, 0.12); }
.quick-plan h2 { margin: 0 0 0.6rem; }
.quick-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; margin-bottom: 0.6rem; }
.quick-row label { font-size: 0.8rem; color: var(--muted); }
.peso-input { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 0 0.5rem; }
.peso-input input { border: 0; font-size: 1.25rem; font-weight: 600; width: 11rem; padding: 0.4rem 0; background: transparent; font-variant-numeric: tabular-nums; }
.peso-input input:focus { outline: none; }
.quick-row button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; }
.quick-row select { padding: 0 0.6rem; min-width: 12rem; height: 2.95rem; }
.quick-row .peso-input { height: 2.95rem; }
.quick-row button { height: 2.95rem; }
.plan-preview { margin-top: -0.2rem; }
.plan-preview .plan-head { border-style: dashed; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: step; }
.how li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.88rem; }
.how li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--pine); color: #f5f1e7; font-weight: 700; font-size: 0.78rem; margin-right: 0.5rem; }

/* Tactic tagging */
.seg button { padding: 0.4rem 0.8rem; font-size: 0.85rem; background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--border); border-radius: 0; display: inline-flex; align-items: center; gap: 0.35rem; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--pine); color: #f5f1e7; font-weight: 600; }
.seg button.on .muted { color: #d6dccb; }
.seg { flex-wrap: wrap; margin-bottom: 1rem; }
.tactic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 0.85rem; }
.chip.default { border-style: dashed; }
.chip-x { background: none; border: 0; color: var(--muted); padding: 0 0.2rem; font-size: 1rem; cursor: pointer; }
ol.rules { list-style: none; padding: 0; margin: 0.8rem 0; display: grid; gap: 0.6rem; counter-reset: rule; }
li.rule { border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.8rem; background: var(--surface); counter-increment: rule; }
li.rule::before { content: "Rule " counter(rule); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.35rem; }
li.rule .cond { margin: 0.35rem 0 0 1rem; align-items: center; }
table.perf tr.changed td, table.perf tr.changed th { background: rgba(209, 215, 159, 0.25); }

/* ---- Model run diagnostics ---- */
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.run-head h1 { margin: 0.2rem 0 0.3rem; }
.run-pills { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; }
.pill-label { font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-left: 0.4rem; }
.run-meta { margin: 0 0 1rem; }
.verdict-card { padding: 1.2rem 1.35rem; }
.verdict-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.verdict-status { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; color: var(--deep-forest); margin: 0.1rem 0 0.2rem; }
.verdict-actions { display: flex; align-items: center; gap: 0.8rem; }
.verdict-reasons { margin: 0.8rem 0 0; padding-left: 1.1rem; color: var(--text); font-size: 0.9rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.check-tile { display: grid; gap: 0.2rem; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.35); border-top: 3px solid var(--border); transition: border-color 150ms ease, background-color 150ms ease; }
.check-tile.pass { border-top-color: var(--ok); }
.check-tile.warn { border-top-color: var(--warn); }
.check-tile.fail, .check-tile.block { border-top-color: var(--block); }
@media (hover: hover) and (pointer: fine) { .check-tile:hover { background: rgba(255, 255, 255, 0.7); } }
.check-tile .check-title { font-weight: 600; font-size: 0.86rem; }
.check-tile .check-headline { font-size: 0.8rem; color: var(--muted); }
.check-tile .badge { justify-self: start; font-size: 0.7rem; }
.diag-section { scroll-margin-top: 1rem; }
.diag-head { display: flex; align-items: center; gap: 0.6rem; }
.diag-head h2 { margin: 0; }
.diag-why { margin: 0.35rem 0 0.8rem; max-width: 70ch; }
.diag-section h3 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
table.diag-metrics { font-size: 0.86rem; }
table.diag-metrics th[scope="row"] { font-weight: 500; color: var(--text); white-space: nowrap; }
table.diag-metrics td.muted { font-size: 0.82rem; }
table.diag-metrics tr.is-model td { font-weight: 600; background: rgba(21, 77, 60, 0.04); }
.verdict { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.5rem; vertical-align: 1px; background: var(--border); }
.verdict.good { background: var(--ok); }
.verdict.watch { background: var(--warn); }
.verdict.problem { background: var(--block); }
.best-tag { margin-left: 0.4rem; font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ok); }
.provenance summary { cursor: pointer; font-weight: 600; }
.provenance dl { margin-top: 0.7rem; font-size: 0.85rem; }
.models-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; margin: 0 0 1.1rem; }
.models-intro > div { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.6rem; align-items: baseline; }
.models-intro .muted { grid-column: 2; font-size: 0.84rem; }
.step-n { grid-row: span 2; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--accent-contrast); font-size: 0.78rem; font-weight: 600; }
form.launch { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; align-items: start; }
form.launch fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.8rem 0.8rem; margin: 0; display: grid; gap: 0.6rem; }
form.launch legend { font-family: var(--font-plex-mono), ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 0.3rem; }
form.launch label > span { display: flex; align-items: center; font-size: 0.85rem; }
form.launch select { width: 100%; }
form.launch label.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.launch-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
table.runs td, table.runs th { white-space: nowrap; }
table.runs tr.is-released td { background: rgba(31, 107, 69, 0.04); }
.status-chip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; border: 1px solid currentColor; }
.status-chip.decision_ready { color: var(--ok); }
.status-chip.directional { color: var(--info); }
.status-chip.failed { color: var(--block); }

/* ---------------------------------------------------------------------------------------------
   Aurora glass (screen theme, 2026-10-30). Dark forest base with soft emerald/teal glows;
   frosted-glass cards and navigation; glossy mint actions. Screen only: print, reports and PDFs
   keep the light tokens above. Chart and channel colours are re-stepped for the glass surface
   (~#172421) and validated with the dataviz validator (contrast >= 3:1, lightness band, chroma,
   normal-vision dE >= 16 all pairs); red/green and TikTok's neutral stay documented exceptions,
   always with icon + name (DECISIONS 2026-10-30).
   --------------------------------------------------------------------------------------------- */
@media screen {
  :root {
    --bg: #06110f; --glass: rgba(255, 255, 255, 0.055); --glass-2: rgba(255, 255, 255, 0.09);
    --surface: var(--glass); --border: rgba(255, 255, 255, 0.13); --edge-hi: rgba(255, 255, 255, 0.12);
    --text: #e8f1ec; --muted: #9db6ab; --heading: #f6fbf8;
    --pine: #2a9a76; --accent: #bfdc7a; --accent-2: #a9c964; --accent-contrast: #071a12;
    --nav-bg: rgba(3, 11, 9, 0.58); --nav-text: #e2ece6;
    --edge-neon: rgba(150, 230, 170, 0.18); --nav-label: rgba(196, 226, 140, 0.65); --accent-soft: #d9efc0;
    --ok: #7fd99a; --warn: #ffc65c; --block: #ff7d8c; --info: #8ec5ff;
    --chart-actual: #2ba57e; --chart-model: #5b97d6; --chart-grid: rgba(255, 255, 255, 0.08);
    --ch-meta: #0467df; --ch-google: #2f8a1f; --ch-youtube: #cf2d47; --ch-tiktok: #cfd5d8;
    --ch-tiktok-shop: #1f9ab0; --ch-shopee: #d9760e; --ch-lazada: #ac44b1;
    --decomp-baseline: #3d8f74;
    --focus: 0 0 0 3px rgba(191, 220, 122, 0.35);
    --glass-blur: blur(18px) saturate(140%);
    color-scheme: dark;
  }
  html { background: var(--bg); }
  body {
    background-color: var(--bg);
    background-image:
      radial-gradient(900px 600px at 12% -5%, rgba(38, 160, 120, 0.42), transparent 60%),
      radial-gradient(800px 700px at 95% 20%, rgba(20, 120, 150, 0.34), transparent 60%),
      radial-gradient(700px 500px at 50% 110%, rgba(209, 215, 159, 0.14), transparent 60%);
    background-size: auto; background-attachment: fixed;
  }
  h1, h2, h3, .kpi-value, .decomp-total, .curve-title, .verdict-status { color: var(--heading); }
  .kpi-value, .decomp-total { background: linear-gradient(90deg, #fff, var(--accent-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .decomp-total * { -webkit-text-fill-color: initial; }

  /* frosted glass surfaces with a glossy top sheen */
  .card, .kpi, .curve-card, .check-tile, .banner, .plan-note {
    position: relative;
    background: linear-gradient(160deg, var(--glass-2), var(--glass));
    border: 1px solid var(--border);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 var(--edge-hi), 0 10px 40px rgba(0, 0, 0, 0.35);
  }
  /* neon accent: a thin green-tinted edge with a faint glow on the glass panels */
  .card, .kpi, .curve-card, .check-tile, .plan-note {
    border-color: var(--edge-neon);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 16px rgba(110, 240, 150, 0.05), 0 10px 40px rgba(0, 0, 0, 0.35);
  }
  .card, .kpi { border-radius: 16px; }
  .curve-card, .check-tile { border-radius: 12px; }
  .card::after, .kpi::after, .curve-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%);
  }
  .kpi { overflow: hidden; }
  @media (hover: hover) and (pointer: fine) { .check-tile:hover { background: var(--glass-2); } }

  /* navigation */
  .side { background: var(--nav-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-right: 1px solid rgba(150, 230, 170, 0.12); }
  .login-brand { background: var(--nav-bg); border-right: 1px solid rgba(150, 230, 170, 0.12); }
  .side nav h2 { color: var(--nav-label); letter-spacing: 0.14em; }
  .side nav a { color: rgba(232, 241, 236, 0.72); }
  .side nav a[aria-current="page"] { background: rgba(120, 230, 140, 0.08); box-shadow: inset 0 0 0 1px rgba(140, 230, 150, 0.3), 0 0 10px rgba(57, 255, 20, 0.08); border-radius: 8px; color: var(--accent-soft); }
  .side select { border-color: rgba(150, 220, 170, 0.22); background: rgba(255, 255, 255, 0.04); }
  .side .brand-logo { filter: drop-shadow(0 0 8px rgba(120, 230, 150, 0.16)); }
  .login-brand .brand-logo { filter: drop-shadow(0 0 14px rgba(120, 230, 150, 0.14)); }

  /* actions and inputs */
  button, .button {
    background: var(--accent); color: var(--accent-contrast); font-weight: 600;
    border-radius: 10px; box-shadow: 0 0 12px rgba(191, 220, 122, 0.16);
  }
  button:hover:not(:disabled), .button:hover { background: #cbe68a; }
  button.secondary, .button.secondary, .icon-btn { background: rgba(255, 255, 255, 0.06); color: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(191, 220, 122, 0.35); border: 0; }
  button.secondary:hover:not(:disabled), .button.secondary:hover, .icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
  input, select, textarea, .peso-input { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--border); border-radius: 10px; }
  input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: rgba(191, 220, 122, 0.6); }
  .main a:not(.button), .login-form a { color: #cfe3a8; }
  .peso-input input { background: transparent; }
  select option { background: #0d1d19; color: var(--text); }

  /* small parts that assumed a light page */
  .legend .swatch.dot { background: var(--text); }
  .legend .swatch.area.ink, .legend .swatch.rc-line { background: linear-gradient(rgba(232, 241, 236, 0.18), rgba(232, 241, 236, 0.02)); border-top-color: var(--text); }
  .legend .swatch.ring { border-color: var(--text); }
  table.perf tr.bands th.band.modeled { background: rgba(95, 224, 176, 0.06); }
  .tip-layer { background: rgba(8, 24, 20, 0.92); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .busy-overlay { background: rgba(6, 17, 15, 0.55); }
  .curve-card svg path[fill="none"] { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25)); }
}
@media screen and (prefers-reduced-transparency: reduce) {
  .card, .kpi, .curve-card, .check-tile, .banner, .plan-note, .side { -webkit-backdrop-filter: none; backdrop-filter: none; background: #13231f; }
  .side, .login-brand { background: #07120f; }
}

/* Public website (ADR-0026): the platform's Aurora glass theme and neon accents (globals.css
   tokens), laid out for a marketing page. Everything is scoped under .site. */
.site { min-height: 100vh; overflow-x: clip; }
.site-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.site-narrow { width: min(820px, 100% - 2.5rem); }
.site-skip { position: absolute; left: -999px; top: 0; }
.site-skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--accent); color: var(--accent-contrast); padding: 0.4rem 0.8rem; border-radius: 8px; }
.site a:not(.button) { color: var(--accent-soft, var(--accent)); }
.site .eyebrow { color: var(--nav-label, var(--muted)); margin: 0 0 0.6rem; }

/* navigation */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid rgba(150, 230, 170, 0.12); }
.site-nav-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.site-logo { display: flex; flex-shrink: 0; }
.site-brand { display: block; height: auto; max-width: 100%; width: 168px; }
.site-footer .site-brand { width: 150px; }
.site-nav nav { flex: 1; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.site-nav nav a { display: block; padding: 0.4rem 0.75rem; border-radius: 8px; color: rgba(232, 241, 236, 0.78) !important; text-decoration: none; font-size: 0.92rem; transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .site-nav nav a:hover { color: var(--text) !important; background: rgba(255, 255, 255, 0.06); } }
.site-nav-cta { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* hero */
.site-hero { padding: 4.5rem 0 3.5rem; }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 3rem; align-items: center; }
.site-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 1.1rem; font-weight: 680;
  background: linear-gradient(95deg, #fff 30%, var(--accent-soft, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-lede { font-size: 1.12rem; line-height: 1.55; color: rgba(232, 241, 236, 0.86); margin: 0 0 1.6rem; max-width: 36rem; }
.site-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.site-btn-lg { padding: 0.7rem 1.25rem; font-size: 1rem; }
.site-proof { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--muted); font-size: 0.88rem; }
.site-proof li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(127, 217, 154, 0.6); margin-right: 0.5rem; vertical-align: middle; }
.site-hero-media { position: relative; }
.site-hero-media::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(95, 224, 176, 0.18), transparent 70%); }

/* screenshots in glass frames */
.site-shot { margin: 0; padding: 6px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge-neon, var(--border)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 24px rgba(110, 240, 150, 0.06), 0 24px 60px rgba(0, 0, 0, 0.45); }
.site-shot img { display: block; width: 100%; height: auto; border-radius: 11px; }
.site-shot-hero { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .site-shot-hero { transform: none; } }
.site-caption { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }
.site-stack { display: grid; gap: 0.9rem; }

/* sections */
.site-section { padding: 4.5rem 0; scroll-margin-top: 64px; }
.site-section + .site-section { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.site-h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 0.9rem; font-weight: 660; color: var(--heading, var(--text)); }
.site-h3 { font-size: 1.08rem; font-weight: 620; margin: 0 0 0.45rem; color: var(--heading, var(--text)); letter-spacing: -0.01em; }
.site-sub { font-size: 1.04rem; line-height: 1.6; color: rgba(232, 241, 236, 0.8); max-width: 46rem; margin: 0 0 2rem; }
.site-card { margin: 0; padding: 1.35rem 1.4rem; }
.site-card p { margin: 0; color: rgba(232, 241, 236, 0.8); line-height: 1.55; }
.site-cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.site-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.site-ticks { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.5rem; }
.site-ticks li { position: relative; padding-left: 1.5rem; color: rgba(232, 241, 236, 0.82); line-height: 1.5; font-size: 0.95rem; }
.site-ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.65rem; height: 0.38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* product features */
.site-feature { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3rem; align-items: center; margin-top: 3.5rem; }
.site-feature.reverse > .site-feature-copy { order: 2; }
.site-feature-copy p { color: rgba(232, 241, 236, 0.82); line-height: 1.6; margin: 0; }
.site-feature .site-h3 { font-size: 1.35rem; }

/* steps */
.site-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.site-step-n { display: block; font-family: var(--font-plex-mono), ui-monospace, monospace; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 0.8rem; }

/* pricing */
.site-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.site-plan { margin: 0; padding: 1.4rem; display: flex; flex-direction: column; }
.site-plan > .site-h3 { min-height: 2.75rem; margin-bottom: 0.6rem; }
.site-plan-note { display: block; margin-top: 0.15rem; font-size: 0.76rem; line-height: 1.3; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.site-plan-spend { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.site-plan-spend strong { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.site-plan-price { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--heading, var(--text)); white-space: nowrap; }
.site-plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.site-plan-fee { margin: 0.25rem 0 0; font-size: 0.82rem; }
.site-plan .site-ticks { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1rem; margin-top: 1rem; }
.site-plan .site-ticks li { font-size: 0.88rem; }
.site-pilot { margin: 1.5rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.75rem; }
.site-pilot p { margin: 0; color: rgba(232, 241, 236, 0.8); }

/* FAQ */
.site-faq { display: grid; gap: 0.6rem; }
.site-faq details { border: 1px solid var(--edge-neon, var(--border)); border-radius: 12px; background: rgba(255, 255, 255, 0.04); padding: 0 1.2rem; }
.site-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.site-faq details[open] summary::after { content: "−"; }
.site-faq details p { margin: 0 0 1.1rem; color: rgba(232, 241, 236, 0.8); line-height: 1.6; }

/* demo form */
.site-demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.site-form-card { margin: 0; padding: 1.6rem; }
.site-form { display: grid; gap: 1rem; }
.site-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.site-form-grid .span-2 { grid-column: 1 / -1; }
.site-form input:not([type="checkbox"]), .site-form select, .site-form textarea { width: 100%; padding: 0.6rem 0.75rem; }
.site-form textarea { resize: vertical; }
.site-form button { justify-self: start; padding: 0.7rem 1.4rem; font-size: 1rem; }
.site-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: rgba(232, 241, 236, 0.8); line-height: 1.45; }
.site-consent input { margin-top: 0.2rem; accent-color: var(--accent); }
.site-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-form-error { margin: 0; color: var(--block); font-size: 0.9rem; }
.site-form-done .site-h3 { font-size: 1.25rem; }

/* footer */
.site-footer { border-top: 1px solid rgba(150, 230, 170, 0.12); background: var(--nav-bg); padding: 2rem 0; }
.site-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.site-footer p { margin: 0; font-size: 0.82rem; }

/* legal pages */
.site-doc { padding: 3.5rem 0 4.5rem; }
.site-doc h2 { margin-top: 2rem; font-size: 1.15rem; }
.site-doc p, .site-doc li { color: rgba(232, 241, 236, 0.84); line-height: 1.65; }

@media (max-width: 1080px) {
  .site-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav nav { display: none; }
  .site-nav-cta { margin-left: auto; }
}
@media (max-width: 860px) {
  .site-hero { padding-top: 2.5rem; }
  .site-hero-grid, .site-feature, .site-demo { grid-template-columns: 1fr; gap: 2rem; }
  .site-feature.reverse > .site-feature-copy { order: 0; }
  .site-shot-hero { transform: none; }
  .site-cards-3, .site-split { grid-template-columns: 1fr; }
  .site-section { padding: 3.25rem 0; }
  .site-pilot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .site-plans, .site-steps, .site-form-grid { grid-template-columns: 1fr; }
  .site-nav-cta .button.secondary { display: none; }
  .site-wrap, .site-narrow { width: calc(100% - 2rem); }
}
