/* EU edition landing. Plain CSS, one origin, no external resources (CSP 'self').
   Type: Archivo variable (wght + wdth). Display = narrow + heavy; text = normal width.
   Palette: paper / ultramarine ink / flame blue; green + red + amber are the product's own outcome colours. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --ink: #0b1a47;
  --ink-2: #26356a;
  --muted: #51608a;
  --line: #d5dbe8;
  --line-strong: #b4bdd4;
  --flame: #2b59ff;
  --flame-ink: #ffffff;
  --flame-soft: #e4ebff;
  --flame-light: #8fd3ff;
  --ok: #0e9f6e;
  --ok-soft: #dcf4e9;
  --fail: #e23b43;
  --fail-soft: #fce3e5;
  --fail-text: #b3202b;
  --fail-strong: #c5303a;
  --ok-strong: #0a7a55;
  --signal: #f2a20c;
  --signal-soft: #fdefd0;
  --grid-dot: #c9d1e3;
  --band: #0b1a47;
  --band-ink: #eaf0ff;
  --band-muted: #a9b8de;
  --band-line: #25367a;
  --focus: #2b59ff;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #081030;
  --surface: #0f1b45;
  --surface-2: #132150;
  --ink: #eaf0ff;
  --ink-2: #c4d0f2;
  --muted: #9fb0da;
  --line: #22306a;
  --line-strong: #34458a;
  --flame: #6f90ff;
  --flame-ink: #081030;
  --flame-soft: #17265c;
  --ok: #34d399;
  --ok-soft: #0f3a30;
  --fail: #ff6b72;
  --fail-soft: #4a1a24;
  --fail-text: #ff6b72;
  --fail-strong: #c5303a;
  --ok-strong: #0a7a55;
  --signal: #ffb938;
  --signal-soft: #433010;
  --grid-dot: #2a3a78;
  --band: #050b24;
  --band-line: #1b2a66;
  --focus: #8fd3ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #081030;
    --surface: #0f1b45;
    --surface-2: #132150;
    --ink: #eaf0ff;
    --ink-2: #c4d0f2;
    --muted: #9fb0da;
    --line: #22306a;
    --line-strong: #34458a;
    --flame: #6f90ff;
    --flame-ink: #081030;
    --flame-soft: #17265c;
    --ok: #34d399;
    --ok-soft: #0f3a30;
    --fail: #ff6b72;
    --fail-soft: #4a1a24;
    --fail-text: #ff6b72;
    --fail-strong: #c5303a;
    --ok-strong: #0a7a55;
    --signal: #ffb938;
    --signal-soft: #433010;
    --grid-dot: #2a3a78;
    --band: #050b24;
    --band-line: #1b2a66;
    --focus: #8fd3ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ── type roles ───────────────────────────────────────────── */
.display {
  font-weight: 800;
  font-stretch: 76%;
  letter-spacing: -0.012em;
  line-height: 0.98;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.7rem, 8.2vw, 7.4rem); }
.h-lg { font-size: clamp(2.1rem, 4.7vw, 3.8rem); }
.h-md { font-size: clamp(1.55rem, 2.8vw, 2.15rem); line-height: 1.04; }
.sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 8px; border: 1.5px solid var(--flame);
  background: var(--flame); color: var(--flame-ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 89, 255, 0.28); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--sm { padding: 9px 15px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ── header ───────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-weight: 800; font-stretch: 88%; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand span { white-space: nowrap; }
.brand__mark { width: 26px; height: 26px; color: var(--flame); flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav .btn { white-space: nowrap; }
.show-xs { display: none; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--flame); }
@media (max-width: 900px) { .nav a:not(.btn):not(.nav__login) { display: none; } }
@media (max-width: 420px) {
  .nav__login { display: none; }
  .top__in { gap: 12px; }
  .nav { gap: 10px; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .nav .btn--sm { padding: 9px 12px; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
}
sub { font-size: 0.9em; line-height: 0; }

/* ── hero ─────────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 84px) 0 0; }
.hero__grid { display: block; }
.hero__head { max-width: 1120px; }
.hero__sub { margin: 28px 0 0; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero__micro { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line-strong); }
.facts li { padding: 16px 0 0; font-size: 0.97rem; line-height: 1.45; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts li { padding: 14px 0; border-bottom: 1px solid var(--line); } }

/* ── flow canvas (illustration of the product's method editor) ── */
.flow-wrap { margin-top: clamp(36px, 5vw, 64px); }
.flow { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(11, 26, 71, 0.35); }
.flow__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.flow__title { font-weight: 700; font-size: 1rem; margin-right: auto; }
.flow__title small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 3px; background: var(--surface); }
.seg__lbl { font-size: 0.82rem; color: var(--muted); margin-right: 10px; align-self: center; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button[data-outcome="neg"][aria-pressed="true"] { background: var(--fail-strong); color: #fff; }
.seg button[data-outcome="pos"][aria-pressed="true"] { background: var(--ok-strong); color: #fff; }
.flow__replay { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 8px 14px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.flow__replay:hover { border-color: var(--ink); }

.flow__stage {
  position: relative; padding: 30px 24px 28px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.flow__grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 44px; align-items: start; z-index: 1; }
.flow__edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.edge { fill: none; stroke: var(--line-strong); stroke-width: 2; transition: stroke 0.3s, opacity 0.3s; }
.edge--taken { stroke: var(--ok); stroke-width: 2.4; }
.edge--taken-neg { stroke: var(--fail); stroke-width: 2.4; stroke-dasharray: 7 5; }
.edge--idle { opacity: 0.45; stroke-dasharray: 4 5; }
.token { fill: var(--flame); stroke: var(--surface); stroke-width: 3; filter: drop-shadow(0 2px 6px rgba(43, 89, 255, 0.55)); }
.token-label { font: 700 12px var(--mono); fill: var(--flame-ink); }

.stage {
  position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px 12px; font-size: 0.8125rem; line-height: 1.35; cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, opacity 0.3s, background 0.25s;
}
.stage:hover { border-color: var(--line-strong); }
.stage[data-selected="true"] { border-color: var(--flame); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame) 22%, transparent); }
.stage__head { display: flex; align-items: flex-start; gap: 8px; }
.stage__title { font-weight: 800; font-size: 0.95rem; line-height: 1.2; flex: 1; }
.stage__state { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.8px solid var(--line-strong); display: grid; place-items: center; margin-top: 1px; }
.stage__state svg { width: 11px; height: 11px; opacity: 0; }
.stage[data-state="active"] { border-color: var(--flame); }
.stage[data-state="active"] .stage__state { border-color: var(--flame); background: var(--flame-soft); }
.stage[data-state="active"] .stage__state::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flame); animation: pulse 1.1s ease-in-out infinite; }
.stage[data-state="done"] .stage__state { background: var(--ok); border-color: var(--ok); }
.stage[data-state="done"] .stage__state svg { opacity: 1; stroke: #fff; }
.stage[data-state="skipped"] { border-style: dashed; background: transparent; opacity: 0.62; }
.stage[data-state="skipped"] .stage__title { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--fail); }
.stage[data-state="skipped"] .stage__state { border-color: var(--fail); }
.stage[data-state="pending"] { opacity: 0.8; }
@keyframes pulse { 0%, 100% { transform: scale(0.7); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage[data-state="active"] .stage__state::after { animation: none; } }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--signal-soft); color: #8a5a00; border: 1px solid color-mix(in srgb, var(--signal) 55%, transparent); margin-top: 6px; }
:root[data-theme="dark"] .badge { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--signal); } }
.stage__method { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; }
.stage__hours { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 8px; }

.outcomes { margin-top: 10px; display: grid; gap: 5px; }
.outcome { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 22px 6px 9px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--line-strong); font-size: 0.78rem; font-weight: 600; transition: background 0.25s, border-color 0.25s; }
.outcome__sign { font-weight: 800; width: 10px; }
.outcome::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--line-strong); border: 2px solid var(--surface); }
.outcome--pos { border-left-color: var(--ok); } .outcome--pos::after { background: var(--ok); }
.outcome--neg { border-left-color: var(--fail); } .outcome--neg::after { background: var(--fail); }
.outcome[data-chosen="true"].outcome--pos { background: var(--ok-soft); }
.outcome[data-chosen="true"].outcome--neg { background: var(--fail-soft); }
.outcome[data-chosen="false"] { opacity: 0.5; }

.reagents { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.reagents__h { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.reagent { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; }
.reagent b { font-family: var(--mono); font-weight: 600; font-size: 0.75rem; }
.stage[data-state="skipped"] .reagent b { text-decoration: line-through; }
.stage__skipnote { display: none; margin-top: 8px; font-size: 0.75rem; font-weight: 700; color: var(--fail-text); }
.stage[data-state="skipped"] .stage__skipnote { display: block; }

.protocol { grid-column: 4 / span 2; grid-row: 2; }
.protocol .stage__title { font-size: 1rem; }
.protocol__line { margin: 8px 0 0; font-weight: 700; font-size: 0.86rem; }
.protocol__sub { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; }

.flow__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.metric { padding: 18px 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric__k { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.metric__v { font-weight: 800; font-stretch: 80%; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; }
.metric__d { font-size: 0.8rem; color: var(--muted); min-height: 1.3em; }
.metric__d b { color: var(--ok); }
.timeline { grid-column: 1 / -1; padding: 0 22px 20px; }
.timeline__bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); gap: 2px; }
.timeline__seg { background: var(--flame); transition: flex-basis 0.5s var(--ease), background 0.3s; min-width: 0; }
.timeline__seg[data-state="skipped"] { background: repeating-linear-gradient(45deg, var(--signal) 0 5px, transparent 5px 9px); opacity: 0.9; }
.timeline__legend { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

.record { border-top: 1px solid var(--line); padding: 20px 22px 24px; background: var(--surface); }
.record__h { font-weight: 800; font-stretch: 84%; font-size: 1.15rem; margin-bottom: 4px; }
.record__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 28px; margin-top: 12px; }
.record dt { font-size: 0.75rem; color: var(--muted); }
.record dd { margin: 2px 0 0; font-size: 0.9rem; font-weight: 600; }
.record dd .mono { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.record__empty { color: var(--muted); font-size: 0.92rem; }
.flow__note { margin: 12px 4px 0; color: var(--muted); font-size: 0.85rem; }

/* stacked (narrow) canvas */
@media (max-width: 980px) {
  .flow__grid { grid-template-columns: 1fr; gap: 14px; padding-left: 18px; }
  .flow__grid::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--line-strong); }
  .flow__edges { display: none; }
  .protocol { grid-column: auto; grid-row: auto; }
  .outcome::after { display: none; }
  .outcome { padding-right: 9px; }
  .flow__foot { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__stage { padding: 22px 16px; }
}

/* capabilities under the canvas */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-strong); }
.caps li { padding: 22px 28px 26px 0; }
.caps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.caps h3 { font-size: 1.1rem; font-stretch: 88%; margin-bottom: 8px; }
.caps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 1000px) { .caps { grid-template-columns: 1fr 1fr; } .caps li:nth-child(odd) { padding-left: 0; border-left: 0; } .caps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } .caps li { padding: 20px 0; border-left: 0 !important; } .caps li + li { border-top: 1px solid var(--line); } }

/* ── generic section frame ────────────────────────────────── */
.sec { padding: clamp(56px, 7.5vw, 112px) 0; }
.sec--tight { padding: clamp(44px, 5.5vw, 76px) 0; }
.sec--band { background: var(--band); color: var(--band-ink); }
.sec--band .muted, .sec--band .sub { color: var(--band-muted); }
.sec__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.sec__title { grid-column: 1 / span 5; }
.sec__body { grid-column: 7 / span 6; }
.sec__sticky { position: sticky; top: 96px; align-self: start; }
@media (max-width: 1000px) { .sec__title, .sec__body { grid-column: 1 / -1; } .sec__sticky { position: static; } }

/* index rows: term left, text right — ruled, not carded */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.15rem; font-stretch: 88%; line-height: 1.25; }
.row p { margin: 0; color: var(--ink-2); }
.row p + p { margin-top: 0.6em; }
.row ul li { padding: 3px 0; color: var(--ink-2); }
.row ul b { color: var(--ink); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.sec--band .rows { border-color: var(--band-line); }
.sec--band .row { border-color: var(--band-line); }
.sec--band .row p, .sec--band .row li { color: var(--band-muted); }
.sec--band .row b, .sec--band .row h3 { color: var(--band-ink); }

/* process (a real sequence → numerals are allowed here) */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px 36px; padding: 40px 0; border-top: 1px solid var(--line-strong); align-items: start; }
.step__n { font-weight: 800; font-stretch: 70%; font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 0.85; color: var(--flame); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: 82%; margin-bottom: 12px; line-height: 1.08; }
.step p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 1000px) { .step { grid-template-columns: 64px minmax(0, 1fr); } .step__art { grid-column: 2; } }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step__art { grid-column: 1; } }

/* little artefacts that belong to the steps */
.art { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 16px 18px; font-size: 0.85rem; box-shadow: 0 18px 40px -28px rgba(11, 26, 71, 0.4); }
.art__h { font-weight: 700; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.label { display: grid; gap: 10px; }
.label__code { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.label__bars { height: 54px; width: 100%; color: var(--ink); }
.label__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; gap: 12px; }
.gate { display: grid; gap: 10px; }
.gate__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.gate__row b { font-weight: 700; }
.gate__row span { color: var(--muted); font-size: 0.8rem; }
.gate__alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--fail-soft); border-left: 3px solid var(--fail); border-radius: 4px; font-weight: 600; font-size: 0.82rem; }
.gate__alert svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fail-text); }
.btn-fake { align-self: start; padding: 8px 14px; border-radius: 7px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-weight: 700; font-size: 0.85rem; background: transparent; cursor: not-allowed; }
.approve { display: grid; gap: 8px; }
.approve__line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.approve__line:last-child { border-bottom: 0; }
.approve__line b { font-weight: 700; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.chip--ok { background: var(--ok-soft); color: #08684a; }
.chip--wait { background: var(--signal-soft); color: #8a5a00; }
:root[data-theme="dark"] .chip--ok { color: var(--ok); }
:root[data-theme="dark"] .chip--wait { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip--ok { color: var(--ok); } :root:not([data-theme="light"]) .chip--wait { color: var(--signal); } }

/* QC */
.qc { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 18px 8px; box-shadow: 0 24px 60px -34px rgba(11, 26, 71, 0.4); }
.qc__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.qc__title { font-weight: 800; font-stretch: 86%; }
.qc__title small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.qc__legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.qc__svg { width: 100%; height: auto; }
.qc__svg text { font: 500 12px "Archivo", system-ui, sans-serif; fill: var(--muted); }
.qc__svg .pt { cursor: pointer; transition: r 0.15s; }
.qc__svg .pt:focus-visible { outline: none; stroke: var(--focus); stroke-width: 3; }
.qc__tip { min-height: 2.6em; padding: 8px 4px 12px; font-size: 0.86rem; color: var(--ink-2); }
.qc__tip b { color: var(--ink); }

.defs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.defs li { padding: 20px 24px 8px 0; }
.defs li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.defs h3 { font-size: 1.05rem; font-stretch: 88%; margin-bottom: 6px; }
.defs p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 1000px) { .defs { grid-template-columns: 1fr 1fr; } .defs li:nth-child(odd) { padding-left: 0; border-left: 0; } .defs li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .defs { grid-template-columns: 1fr; } .defs li { padding: 18px 0; border-left: 0 !important; } .defs li + li { border-top: 1px solid var(--line); } }

/* fit list */
.fit { columns: 2; column-gap: 56px; border-top: 1px solid var(--line-strong); }
.fit li { break-inside: avoid; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fit h3 { font-size: 1.1rem; font-stretch: 88%; margin-bottom: 4px; }
.fit p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 760px) { .fit { columns: 1; } }

/* pricing */
.price { border-top: 1px solid var(--line-strong); }
.price__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 16px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price__labs { font-weight: 700; }
.price__bar { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.price__fill { height: 100%; background: var(--flame); border-radius: 7px; }
.price__row--open .price__fill { background: repeating-linear-gradient(90deg, var(--flame) 0 8px, transparent 8px 14px); }
.price__val { font-weight: 800; font-stretch: 82%; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums; }
.price__val small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); font-stretch: 100%; }
@media (max-width: 640px) { .price__row { grid-template-columns: 1fr auto; } .price__bar { grid-column: 1 / -1; order: 3; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.list li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.list--plain li::before { border: 0; width: 8px; height: 2px; background: var(--line-strong); transform: none; top: 1.35em; }
.list b { color: var(--ink); }
.list-h { font-weight: 800; font-stretch: 86%; font-size: 1.1rem; margin-bottom: 8px; }

/* trial form */
.trial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.trial__copy { grid-column: 1 / span 5; }
.trial__form { grid-column: 7 / span 6; }
@media (max-width: 1000px) { .trial__copy, .trial__form { grid-column: 1 / -1; } }
.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 26px; box-shadow: 0 24px 60px -34px rgba(11, 26, 71, 0.4); }
.form h3 { font-size: 1.5rem; font-stretch: 80%; margin-bottom: 14px; }
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.intent legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.intent label { display: block; cursor: pointer; }
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent span { display: block; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 9px; font-weight: 700; font-size: 0.93rem; line-height: 1.25; transition: border-color 0.15s, background 0.15s; }
.intent span small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.intent input:checked + span { border-color: var(--flame); background: var(--flame-soft); }
.intent input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2, .intent { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.req { color: var(--fail-text); }
.field input[type="text"], .field textarea { width: 100%; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--fail); }
.err { color: var(--fail-text); font-size: 0.84rem; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--flame); color-scheme: light dark; }
.consent label { font-size: 0.88rem; color: var(--ink-2); font-weight: 500; }
.consent a { color: var(--flame); }
.status { min-height: 1.5em; margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }
.status.is-error { color: var(--fail-text); font-weight: 600; }
.success { background: var(--surface); border: 1px solid var(--ok); border-radius: 14px; padding: 28px; }
.success[hidden] { display: none; }
.success h3 { font-size: 1.6rem; font-stretch: 80%; margin-bottom: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line-strong); padding: 36px 0 44px; font-size: 0.92rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--flame); }

/* privacy / licence pages */
.doc { padding: 48px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-stretch: 76%; margin-bottom: 18px; }
.doc h2 { margin-top: 36px; font-size: 1.35rem; font-stretch: 86%; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li { margin: 6px 0; }

/* ── additions ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sec__body--wide { grid-column: 6 / span 7; }
@media (max-width: 1000px) { .sec__body--wide { grid-column: 1 / -1; } }
.sec--band .btn--light { background: var(--flame-light); border-color: var(--flame-light); color: #06123a; }
.btn--light:hover { box-shadow: 0 6px 18px rgba(143, 211, 255, 0.3); }
.list-h--gap { margin-top: 28px; }
.price__bar { display: block; height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.price__fill { display: block; }
.w100 { width: 100%; } .w90 { width: 90%; } .w80 { width: 80%; } .w67 { width: 67%; } .w55 { width: 55%; }
.btn-fake { display: inline-block; align-self: start; padding: 8px 14px; border-radius: 7px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-weight: 700; font-size: 0.85rem; cursor: not-allowed; }
.label__bars rect { fill: currentColor; }
.sec__title h2 { max-width: 15ch; }
/* the narrow canvas keeps outcomes legible */
@media (max-width: 980px) { .flow__bar { padding: 14px 16px; } .seg { width: 100%; } .seg__lbl { display: none; } .seg button { flex: 1; } }
.licence { white-space: pre-wrap; font-size: 0.82rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 8px; overflow-wrap: anywhere; }

/* ── theme switch ──────────────────────────────────────────── */
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

/* ── trial mode switch and sign-up pages ─────────────────────────────────────────────────── */
[data-trial-mode="self-serve"] .only-request { display: none; }
[data-trial-mode="request"] .only-selfserve { display: none; }
.trial__go { background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--flame); border-radius: 14px; padding: 26px; margin-bottom: 18px; }
.trial__go h3 { font-size: 1.5rem; font-stretch: 80%; margin-bottom: 8px; }
.trial__go p { margin: 0 0 16px; color: var(--ink-2); }
.trial__go .small { margin: 14px 0 0; color: var(--muted); }
.page-narrow { width: min(640px, calc(100% - 32px)); margin: 48px auto 80px; }
.page-narrow .sub { margin: 14px 0 28px; }
/* a card straight after the heading (no .sub in between, e.g. /trial/confirm) needs its own gap; with .sub the larger margin wins */
.page-narrow h1 ~ .form, .page-narrow h1 ~ .success { margin-top: 24px; }
.form__title { font-size: 1.4rem; font-stretch: 80%; margin-bottom: 14px; }
.success.is-bad { border-color: var(--fail); }
.success .small { margin-top: 14px; color: var(--muted); }
@media (max-width: 560px) { .page-narrow { margin: 28px auto 56px; } .trial__go { padding: 20px; } }
