/* ==========================================================================
   APEX PAYMENTS — Prototype Design System
   B2B fintech / AI aesthetic. Placeholder content throughout.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand: #0a6dff;
  --eyebrow: #0467f9;
  --eyebrow-strong: #0356d6;   /* 11–13px brand text needs another step down */        /* brand blue is 4.25:1 at 13px; this clears AA */
  /* Accents used inside the engine / pipeline panels. The panel flips with the
     theme, so these must too — as literals they read 1.5–2.2:1 on the light
     surface. Dark-theme values are the originals. */
  --panel-ok: #00874b;
  --panel-ok-2: #008654;
  --panel-mint: #0d8656;
  --panel-sky: #237da3;
  --panel-body: #6c7584;
  /* Syntax colours for the always-dark API sample. Fixed, not theme-aware:
     that block keeps its dark ground in both themes, so a token that flips
     would make it unreadable in light mode — which is exactly what happened. */
  --code-str: #7fe3b8;
  --code-fn: #8fd8ff;
  --code-num: #6fe3b0;
  --code-comment: #7b89a8;
  --code-key: #c3a6ff;
  --brand-700: #0a52d6;
  --brand-400: #4d92ff;
  --brand-100: #e7f0ff;
  --cyan: #00d4ff;
  --violet: #7c3aed;
  --green: #00895b;
  --green-bright: #00e0a4;
  --amber: #ff9f43;

  /* Neutrals — LIGHT theme (default). These flip in [data-theme="dark"]. */
  --bg: #ffffff;            /* page base */
  --ink: #0a1124;           /* primary text */
  --ink-2: #46506a;         /* muted text */
  --ink-3: #636c80;   /* was #6b7488: 4.06:1 on the footer tint, under the 4.5 floor */         /* soft text */
  --line: #e7eaf2;          /* borders */
  --line-2: #eef1f8;        /* soft borders */
  --surface: #ffffff;       /* cards / elevated */
  --surface-2: #f6f8fc;     /* alt section / subtle fill */
  --surface-3: #eef2fb;     /* deeper fill */
  --nav-bg: rgba(255, 255, 255, .82);
  --brand-tint: #e7f0ff;    /* light brand wash (hover, callouts) */

  /* "Device/brand" panel surfaces (hero, engine, CTA, footer, stat band).
     These FLIP with theme — light values here, dark values in [data-theme="dark"]. */
  --dk-bg: #eef3fc;         /* panel base */
  --dk-bg-2: #eaeff7;       /* footer */
  --dk-card: #ffffff;       /* sub-cards inside panels */
  --dk-border: #e2e7f1;
  --dk-text: #0a1124;       /* strong text on panels */
  --dk-body: #46506a;       /* body text on panels */
  --dk-muted: #626b7e;      /* labels on panels — was #6b7488, 4.06:1 once the panel goes light */
  --dk-accent: #0e7490;     /* engine "LIVE" accent (readable on light) */
  --track: rgba(10, 17, 36, .09);   /* progress / bar tracks */
  --grid-line: rgba(10, 17, 36, .05); /* hero / panel grid lines */

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 51, .06), 0 4px 16px rgba(16, 24, 51, .05);
  --shadow-md: 0 8px 30px rgba(16, 24, 51, .10);
  --shadow-lg: 0 30px 80px rgba(10, 36, 99, .18);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===================== DARK THEME ===================== */
[data-theme="dark"] {
  --eyebrow: #3a8bff;
  --eyebrow-strong: #5c9dff;
  --panel-ok: #00e0a4;
  --panel-ok-2: #00c896;
  --panel-mint: #6ee7b7;
  --panel-sky: #7fd9ff;
  --panel-body: #dde6f5;
  --bg: #05090f;
  --ink: #e8edf6;
  --ink-2: #aab6cf;
  --ink-3: #8090aa;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --surface: #0e1726;       /* elevated cards */
  --surface-2: #0a121e;     /* alt section */
  --surface-3: #111c2e;
  --nav-bg: rgba(8, 14, 24, .82);
  --brand-100: rgba(10, 109, 255, .16);
  --brand-tint: rgba(10, 109, 255, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  /* dark values for the flipping panel tokens */
  --dk-bg: #04080f;
  --dk-bg-2: #080f1a;
  --dk-card: rgba(255, 255, 255, .035);
  --dk-border: rgba(255, 255, 255, .09);
  --dk-text: #ffffff;
  --dk-body: #aebbd4;
  --dk-muted: #7d8aa3;
  --dk-accent: #00d4ff;
  --track: rgba(255, 255, 255, .08);
  --grid-line: rgba(255, 255, 255, .05);
}
[data-theme="dark"] body { background: var(--bg); }
/* keep brand-tinted icon chips subtle in dark */
[data-theme="dark"] .card .ic,
[data-theme="dark"] .card.t-blue .ic,
[data-theme="dark"] .card.t-violet .ic,
[data-theme="dark"] .card.t-green .ic,
[data-theme="dark"] .card.t-amber .ic { background: rgba(255,255,255,.05); border-color: var(--line); }
[data-theme="dark"] .uc .uic { background: var(--brand-100); }
[data-theme="dark"] .member .av { background: linear-gradient(135deg, #16233a, #0e1726); }
[data-theme="dark"] .compare td.apex { background: rgba(10,109,255,.10); }
/* contained dark accents need a hairline so they read against a dark page */
[data-theme="dark"] .cta-band { border: 1px solid rgba(255,255,255,.10); }
[data-theme="dark"] .price-card.pop { border-color: var(--brand); }
[data-theme="dark"] .ph-bars .bar { opacity: 1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  transition: background .3s var(--ease), color .3s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* Display sizes carry hierarchy through size; weight is kept in reserve so a bolded
   phrase inside a heading still reads as emphasis. Small headings keep more weight
   because they have no size to lean on. */
h1, h2 { line-height: 1.1; letter-spacing: -.022em; margin: 0; font-weight: 500; overflow-wrap: break-word; }
h3, h4 { line-height: 1.15; letter-spacing: -.012em; margin: 0; font-weight: 650; overflow-wrap: break-word; }
p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.center { text-align: center; }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--violet) 60%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Eyebrow + section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.eyebrow.on-dark { color: var(--cyan); }
.eyebrow.on-dark::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }

/* A section that belongs to the product above it rather than standing beside
   it. Three signals, all subtractive — nothing new is drawn:
     · the eyebrow names the parent product instead of a new theme
     · the heading drops below the product's own h3 ceiling (34px), so it can
       never out-rank the thing it is a cross-section of
     · the head is left-aligned like the feature rows above it; a centred head
       reads as "new chapter", which is exactly what this is not
   Paired with .section-sub, which closes the vertical gap so proximity groups
   it with the product band above (Gestalt: proximity beats a shared rule). */
.section-sub { padding-top: 56px; }
.sec-head-sub h2 { font-size: clamp(22px, 2.6vw, 30px); }
.sec-head-sub p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap; font-family: inherit;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(10, 109, 255, .32); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 109, 255, .42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-100); }
.btn-dark { background: #0d1730; color: #fff; }
.btn-dark:hover { background: #15224a; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
/* "on-dark" ghost buttons sit on panels that flip with theme → follow --dk tokens */
.on-dark .btn-ghost, .btn-ghost.on-dark { color: var(--dk-text); border-color: var(--dk-border); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-100); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { height: 26px; width: auto; }
/* logo wordmark is transparent blue ink → tint it white on dark backgrounds */
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  transition: all .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-cta .login-link { padding: 8px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-cta .login-link:hover { color: var(--eyebrow); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dk-bg); color: var(--dk-text); padding: 92px 0 0; }
.hero-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-mesh::before, .hero-mesh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .30;
}
[data-theme="dark"] .hero-mesh::before, [data-theme="dark"] .hero-mesh::after { opacity: .55; }
.hero-mesh::before { width: 620px; height: 620px; left: -120px; top: -160px; background: radial-gradient(circle, rgba(10,109,255,.9), transparent 70%); animation: float1 16s ease-in-out infinite; }
.hero-mesh::after { width: 560px; height: 560px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(124,58,237,.8), transparent 70%); animation: float2 19s ease-in-out infinite; }
.hero-glow3 { position: absolute; width: 480px; height: 480px; left: 40%; bottom: -200px; border-radius: 50%; filter: blur(100px); background: radial-gradient(circle, rgba(0,212,255,.5), transparent 70%); z-index: 0; animation: float1 22s ease-in-out infinite; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-35px,25px)} }
.hero-inner { position: relative; z-index: 2; text-align: center; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px; border-radius: 999px;
  background: var(--dk-card); border: 1px solid var(--dk-border); font-size: 13px; color: var(--dk-body); margin-bottom: 26px;
}
.hero-badge .pill { background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 500; letter-spacing: -.032em; max-width: 950px; margin: 0 auto; }
/* The gradient phrase is the one place weight is spent, so it reads as emphasis
   rather than the whole line shouting. */
.hero h1 .grad-text, .hero h1 strong { font-weight: 700; }
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--dk-body); max-width: 620px; margin: 24px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dk-muted); }

/* Hero stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 66px; border-top: 1px solid var(--dk-border); }
.hero-stats .stat { padding: 26px 16px; text-align: center; border-right: 1px solid var(--dk-border); }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat .num { font-size: clamp(28px, 4vw, 42px); font-weight: 850; letter-spacing: -.02em; }
.hero-stats .stat .lbl { font-size: 12.5px; color: var(--dk-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
/* stat accent colors — readable on light, vivid on dark */
.tn-cyan { color: #0891b2; } .tn-green { color: var(--green-2); } .tn-violet { color: #7c3aed; } .tn-blue { color: #0a6dff; }
[data-theme="dark"] .tn-cyan { color: var(--cyan); }
[data-theme="dark"] .tn-green { color: var(--green-bright); }
[data-theme="dark"] .tn-violet { color: #b794ff; }
[data-theme="dark"] .tn-blue { color: var(--brand-400); }

/* ---------- Logo cloud ---------- */
.logos { padding: 40px 0 8px; }
.logos .cap { text-align: center; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 26px; }

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9e0ee; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-100), #fff); border: 1px solid var(--line); font-size: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--eyebrow); font-weight: 650; font-size: 14px; }
.card .more svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }
.card-feature { padding: 0; }

/* Tinted accent cards */
.card.t-blue .ic { background: linear-gradient(135deg, #e7f0ff, #fff); }
.card.t-violet .ic { background: linear-gradient(135deg, #f1e9ff, #fff); }
.card.t-green .ic { background: linear-gradient(135deg, #e2fbf3, #fff); }
.card.t-amber .ic { background: linear-gradient(135deg, #fff1e2, #fff); }

/* ---------- Split feature row ---------- */
/* Same min-width:auto trap as .pipe — a long unbreakable string inside .fshot
   (the dashboard URL) set a 360px floor, pushing the page 2px wide on a 375px
   phone. Pre-existing; fixed here because it is the same root cause. */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature-row.rev .ftext { order: 2; }
.feature-row .ftext h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.feature-row .ftext p { color: var(--ink-2); font-size: 17px; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.feature-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--green); }

/* ---------- Browser/screenshot frame (placeholder) ---------- */
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
/* Code/decision "terminal" frames stay dark in both themes (conventional). */
.frame.dark { border-color: rgba(255,255,255,.09); background: #080f1a; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame.dark .frame-bar { background: #0b1322; border-color: rgba(255,255,255,.09); }
.frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #d4d9e6; }
.frame.dark .frame-bar .dot { background: #2a3650; }
.frame-bar .url { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }
.frame.dark .frame-bar .url { color: var(--code-comment); }
.frame-body { padding: 22px; }
.ph-note { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Placeholder dashboard bits */
.ph-dash { display: grid; gap: 16px; }
.ph-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ph-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
/* min-width:0 + wrap so the label can always shrink to its track. Font metrics
   differ between platforms — this cell fit on macOS and overflowed by 2px on
   the Linux CI runner — so the fix must not depend on a specific measurement. */
.ph-kpi .k { font-size: 12px; color: var(--ink-3); min-width: 0; overflow-wrap: anywhere; }
.ph-kpi .v { font-size: 24px; font-weight: 800; margin-top: 4px; min-width: 0; overflow-wrap: anywhere; }
.ph-kpi .d { font-size: 12px; font-weight: 700; margin-top: 2px; }
.ph-kpi .d.up { color: var(--panel-ok-2); } .ph-kpi .d.down { color: var(--red); }
.ph-chart { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); }
.ph-bars { display: flex; align-items: flex-end; gap: 9px; height: 130px; margin-top: 14px; }
.ph-bars .bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--brand-400), var(--brand)); opacity: .9; transition: height 1s var(--ease); }

/* ---------- Dark engine section ---------- */
.dark-sec { background: var(--dk-bg); color: var(--dk-text); position: relative; overflow: hidden; }
.dark-sec .sec-head h2 { color: var(--dk-text); }
.dark-sec .sec-head p { color: var(--dk-body); }
.dark-sec .dk-grid {
  position: absolute; inset: 0; opacity: .5; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 70%);
}
.dark-sec .container { position: relative; z-index: 1; }

/* ---------- AI pipeline animation ---------- */
/* Engine is an always-dark "device" panel — works on any theme/section */
.engine {
  border: 1px solid var(--dk-border); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(10,109,255,.10), transparent 55%),
    radial-gradient(120% 80% at 100% 0%, rgba(124,58,237,.10), transparent 55%),
    var(--dk-bg);
  color: var(--dk-text);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.engine-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
/* flex-wrap, because this row now carries the "Sample data" chip as well as the
   LIVE label (SE2-01), and the two together overrun the panel below ~420px.
   Wrapping keeps both on the same SCREEN, which is the entire point of putting
   the chip here; overflowing or ellipsing it would give back what the fix
   bought. */
.engine-live { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--dk-accent); }
.engine-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 12px var(--green-bright); animation: blink 1.4s infinite; }
/* .mock-tag carries `margin-left: auto` for its home in .frame-bar, where it is
   pushed to the far end of the mock's chrome. Here it must stay welded to the
   word it qualifies, so the auto margin is cancelled outright rather than left
   to resolve to zero by accident of the container being content-sized. */
.engine-live .mock-tag { margin-left: 0; letter-spacing: .08em; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.engine-tx { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dk-muted); }
.engine-tx b { color: var(--dk-text); font-weight: 600; }

/* Incoming transaction detail card */
.engine-txn { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; border: 1px solid var(--dk-border); border-radius: 14px; background: var(--dk-card); padding: 18px 20px; margin-bottom: 18px; }
.etx-main { display: flex; flex-direction: column; }
.etx-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; color: var(--dk-muted); }
.etx-caret { color: var(--dk-accent); }
.etx-amount { font-size: clamp(28px, 4vw, 36px); font-weight: 850; letter-spacing: -.02em; color: var(--dk-text); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.etx-loc { font-size: 13px; color: var(--dk-body); }
.etx-loc b { color: var(--dk-text); font-weight: 600; }
.etx-status { margin-top: auto; padding-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .03em; color: var(--dk-accent); display: inline-flex; align-items: center; gap: 6px; }
.etx-status.done { color: var(--green-bright); }
[data-theme="dark"] .etx-status.done { color: var(--green-bright); }
.etx-meta { display: flex; flex-direction: column; justify-content: center; }
.etx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--dk-border); }
.etx-row:last-child { border-bottom: 0; }
.etx-k { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em; color: var(--dk-muted); }
.etx-v { font-size: 13px; color: var(--dk-text); font-weight: 600; text-align: right; }
.etx-risk { font-weight: 800; letter-spacing: .04em; }
.etx-risk.risk-low { color: var(--green-2); } .etx-risk.risk-med { color: var(--amber); } .etx-risk.risk-high { color: #e11d48; }
[data-theme="dark"] .etx-risk.risk-low { color: #34d399; }
[data-theme="dark"] .etx-risk.risk-med { color: #fbbf24; }
[data-theme="dark"] .etx-risk.risk-high { color: #fb7185; }

/* Cost breakdown strip */
.cost-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.cost-cell { border: 1px solid var(--dk-border); border-radius: 11px; background: var(--dk-card); padding: 11px 14px; display: flex; flex-direction: column; gap: 4px; }
.cost-cell .cost-k { font-size: 11px; color: var(--dk-muted); }
.cost-cell .cost-v { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--dk-text); font-variant-numeric: tabular-nums; transition: color .3s; }
.cost-cell.total { border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.06); }
.cost-cell.total .cost-v { color: var(--dk-accent); }

/* Live system log */
.engine-log { border: 1px solid var(--dk-border); border-radius: 14px; background: var(--dk-card); padding: 14px 16px; margin-top: 18px; }
.elog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.elog-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; color: var(--dk-muted); }
.elog-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--dk-muted); }
.elog-meta b { color: var(--dk-text); font-weight: 700; }
.elog-ver { color: var(--dk-accent); }
.elog-body { height: 200px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.log-line { flex: 0 0 auto; line-height: 1.45; color: var(--dk-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .3s var(--ease); }
.log-line .ts { color: var(--dk-muted); }
.log-line.ok { color: var(--green-2); font-weight: 600; }
[data-theme="dark"] .log-line.ok { color: var(--green-bright); }
@keyframes logIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* minmax(0, 1fr), not 1fr: a bare 1fr track keeps min-width:auto, so labels
   like "MCP Assembly / Feature container" set a min-content floor the grid
   cannot go below — which is how the last step used to spill 33px past the
   panel edge. minmax(0, …) lets the tracks actually share the space. */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.pstep {
  border: 1px solid var(--dk-border); border-radius: 12px; padding: 14px 12px; background: var(--dk-card);
  text-align: center; transition: all .4s var(--ease); position: relative;
}
.pstep .pic { font-size: 20px; margin-bottom: 8px; filter: grayscale(.4); transition: .4s; }
.pstep .pn { font-size: 12px; font-weight: 700; color: var(--dk-body); }
.pstep .pd { font-size: 10px; color: var(--dk-muted); margin-top: 3px; line-height: 1.35; }
.pstep.on { border-color: rgba(0,212,255,.5); background: rgba(0,212,255,.07); box-shadow: 0 0 26px rgba(0,212,255,.16); transform: translateY(-3px); }
.pstep.on .pic { filter: none; }
.pstep.on .pn { color: var(--dk-text); }
.pstep.done { border-color: rgba(0,224,164,.35); }
.pstep.done .pic { filter: none; }
.pstep .pbar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--cyan); border-radius: 2px; transition: width .5s linear; }
.pstep.on .pbar { width: 100%; }

.engine-grids { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.ebox { border: 1px solid var(--dk-border); border-radius: 14px; padding: 16px; background: var(--dk-card); }
.ebox .eh { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dk-muted); margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
/* Feature scores */
.feat-row { display: grid; grid-template-columns: 120px 1fr 38px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 11.5px; }
.feat-row .fn { color: var(--dk-body); }
.feat-track { height: 6px; border-radius: 4px; background: var(--track); overflow: hidden; }
.feat-fill { height: 100%; width: 0; border-radius: 4px; transition: width 1.1s var(--ease); }
.feat-row .fv { font-family: 'JetBrains Mono', monospace; color: var(--dk-text); text-align: right; font-size: 11px; }
/* Routes */
.route { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--dk-border); border-radius: 11px; margin-bottom: 8px; transition: .4s; }
.route.win { border-color: rgba(0,224,164,.5); background: rgba(0,224,164,.07); box-shadow: 0 0 18px rgba(0,224,164,.12); }
.route .rl { display: flex; align-items: center; gap: 10px; }
.route .rdot { width: 9px; height: 9px; border-radius: 50%; }
.route .rn { font-size: 13px; font-weight: 650; color: var(--dk-text); }
.route .rr { font-size: 10.5px; color: var(--dk-muted); }
.route .rs { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 800; color: var(--dk-muted); transition: color .3s; }
.route.win .rs { color: var(--green-bright); }
.route .rtag { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--green-bright); border: 1px solid rgba(0,224,164,.4); border-radius: 999px; padding: 2px 7px; opacity: 0; transition: .3s; }
.route.win .rtag { opacity: 1; }
/* Decision */
.decis { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dcard { border: 1px solid var(--dk-border); border-radius: 12px; padding: 14px; background: var(--dk-card); text-align: center; opacity: .4; transition: .5s; }
.dcard.show { opacity: 1; border-color: rgba(0,212,255,.3); }
.dcard .dk { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dk-muted); }
.dcard .dv { font-size: 15px; font-weight: 800; color: var(--dk-text); margin-top: 6px; }
.dcard .dv.g { color: var(--green-2); }
.route.win .rs { color: var(--green-2); }
[data-theme="dark"] .dcard .dv.g, [data-theme="dark"] .route.win .rs { color: var(--green-bright); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: .2s; font-family: inherit;
}
.tab:hover { border-color: var(--brand-400); color: var(--brand); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; }
.slides { position: relative; }
.slide { display: none; }
.slide.active { display: block; animation: fadeUp .5s var(--ease); }
.slide-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: .2s; padding: 0; }
.slide-dots button.active { background: var(--brand); width: 26px; border-radius: 6px; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 22px; }
.step .sn { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--eyebrow); }
.step h4 { font-size: 17px; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); }
.step .line { position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.step .line::after { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Testimonial ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote .mark { font-size: 56px; line-height: .5; color: var(--brand); font-weight: 900; }
.quote blockquote { font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -.01em; margin: 18px 0 26px; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; justify-content: center; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--violet)); }
.quote .who .nm { font-weight: 700; font-size: 15px; }
.quote .who .rl { font-size: 13px; color: var(--ink-3); }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 0 auto 36px; }
.price-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--ink-2); font-family: inherit; }
.price-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 11px; color: var(--green); font-weight: 800; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); position: relative; }
.price-card.pop { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 14px; border-radius: 999px; }
.price-card .pl { font-size: 15px; font-weight: 700; }
.price-card .pp { font-size: 42px; font-weight: 850; margin: 12px 0 2px; letter-spacing: -.03em; }
.price-card .pp .per { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.price-card .pdesc { color: var(--ink-2); font-size: 14px; min-height: 42px; }
.price-card .plist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.price-card .plist li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); }
.price-card .plist li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; }
.member .av { width: 100%; aspect-ratio: 1; border-radius: 16px; background: linear-gradient(135deg, var(--surface-3), #dfe7f7); display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--brand-400); margin-bottom: 14px; }
.member .nm { font-weight: 700; font-size: 16px; }
.member .rl { font-size: 13px; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dk-bg); color: var(--dk-text); padding: 60px; text-align: center; border: 1px solid var(--dk-border); }
.cta-band .glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(110px); background: radial-gradient(circle, rgba(10,109,255,.35), transparent 70%); top: -200px; left: 30%; z-index: 0; }
[data-theme="dark"] .cta-band .glow { background: radial-gradient(circle, rgba(10,109,255,.6), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: var(--dk-body); margin: 16px auto 28px; max-width: 540px; font-size: 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--dk-bg-2); color: var(--dk-body); padding: 64px 0 30px; border-top: 1px solid var(--dk-border); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .brand { color: var(--dk-text); margin-bottom: 14px; }
.footer .brand img { filter: none; }
[data-theme="dark"] .footer .brand img { filter: brightness(0) invert(1); }
.footer .blurb { font-size: 14px; max-width: 280px; color: var(--dk-muted); }
.foot-contact { margin-top: 16px; max-width: 280px; font-size: 14px; line-height: 1.9; color: var(--dk-muted); }
.foot-contact a { font-size: 14px; color: var(--dk-body); }
.foot-contact a:hover { color: var(--brand); }
.footer h5 { color: var(--dk-text); font-size: 13px; letter-spacing: .04em; margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { font-size: 14px; color: var(--dk-body); transition: .2s; }
.footer a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dk-border); font-size: 13px; color: var(--dk-muted); flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--dk-border); display: grid; place-items: center; }
.footer-social a.footer-privacy { width: auto; min-width: 72px; padding: 0 13px; font-weight: 650; }
.footer-social a:hover { border-color: var(--brand); }
.footer-social svg { width: 16px; height: 16px; }

/* Collection-point privacy notice: informational disclosure beside Submit,
   never a blanket agreement checkbox. */
.form-privacy-notice {
  width: 100%; margin: 2px 0 14px; padding: 10px 12px; border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; line-height: 1.55; text-align: left;
}
.form-privacy-notice a { color: var(--eyebrow-strong); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.cta-actions .form-privacy-notice { max-width: 720px; flex-basis: 100%; margin-inline: auto; color: var(--dk-body); background: var(--dk-card); border: 1px solid var(--dk-border); border-left: 3px solid var(--brand); }
.public-legal-footer { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 13px; text-align: center; }
.public-legal-footer a { color: var(--eyebrow-strong); font-weight: 650; }

/* ---------- Auth / forms ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-form-wrap { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 28px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--surface); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-aside { background: var(--dk-bg); color: var(--dk-text); position: relative; overflow: hidden; display: grid; align-items: center; padding: 56px; }
.auth-aside .glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(100px); background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%); top: -120px; right: -120px; }
[data-theme="dark"] .auth-aside .glow { background: radial-gradient(circle, rgba(124,58,237,.6), transparent 70%); }
.auth-aside .ainner { position: relative; z-index: 1; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btn { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; }
.social-btn:hover { background: var(--surface-2); }

/* Page hero (interior) */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 64px 0; }
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 760px; }
.page-hero p { font-size: 19px; color: var(--ink-2); max-width: 620px; margin-top: 18px; }

/* Use case list */
/* background must be a token, not #fff: as a literal this card stayed white
   in dark mode while its text stayed near-white — 1.17:1, unreadable. */
.uc { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: .25s; }
.uc:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.uc .uic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-100); display: grid; place-items: center; flex-shrink: 0; font-size: 20px; }
.uc h4 { font-size: 16px; margin-bottom: 6px; }
.uc p { font-size: 14px; color: var(--ink-2); }

/* ---------- Scroll reveal ----------
   Progressive enhancement, and the direction is the whole point.

   .reveal used to start at opacity:0 and depend on JS adding .in, with its only
   safety net living INSIDE @media (prefers-reduced-motion: reduce). So the one
   combination nobody tested — scripting broken AND reduced-motion off — left
   every .reveal block at opacity 0 and rendered the page as a blank sheet, with
   nothing anywhere reporting an error. Measured in a browser on origin/main,
   not reasoned about: 19 of 19 hidden on index.html, 14 of 14 on products.html.

   Now the content is visible on its own and `.js-anim` is what GRANTS
   permission to hide and animate. That class is added by the inline script in
   each page's <head>, and removed again 1.2s later if app.js has not set
   data-reveal-ready — so neither "scripting off" nor "app.js failed to load"
   can hide anything.

   This rule pair lives in styles.css, which every page shares, so the <head>
   script has to go on every page that uses .reveal — not just the two carrying
   the beacon, or the entrance animation would silently vanish from the rest of
   the site. Seven: index, products, solutions, pricing, resources, company,
   demo. (login, whitepaper and the pipeline demo have no .reveal at all.) */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .reveal.d1 { transition-delay: .08s; } .js-anim .reveal.d2 { transition-delay: .16s; } .js-anim .reveal.d3 { transition-delay: .24s; } .js-anim .reveal.d4 { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-right: 6px; }
.lang-btn { border: 0; background: transparent; padding: 7px 11px; font-size: 13px; font-weight: 650; color: var(--ink-3); cursor: pointer; font-family: inherit; line-height: 1; transition: .2s; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--brand); color: #fff; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: inline-grid;
  place-items: center; margin-right: 8px; transition: .2s; padding: 0;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Dark "stat band" (contained dark panel for stat strips) ---------- */
.stat-band {
  border-radius: var(--radius-lg); background:
    radial-gradient(120% 90% at 50% 0%, rgba(10,109,255,.14), transparent 60%), var(--dk-bg);
  border: 1px solid var(--dk-border); padding: 8px 26px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat-band .hero-stats { margin-top: 0; border-top: 0; }

/* ---------- Pricing — 4-tier + detail ---------- */
.price-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .pmeta { margin: 16px 0 4px; display: grid; gap: 0; }
.price-card .pmeta .pm { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px dashed var(--line); padding: 9px 0; }
.price-card .pmeta .pm .l { color: var(--ink-3); } .price-card .pmeta .pm .v { font-weight: 700; text-align: right; }
.price-card .consult { margin-top: auto; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); min-height: 88px; }
.price-card .consult b { color: var(--ink); display: block; margin-bottom: 3px; font-size: 12px; }
.price-card .pcta { padding-top: 16px; }
.price-card.pop .pp { color: var(--brand); }
.tier-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: var(--brand-100); color: var(--eyebrow-strong); margin-bottom: 10px; }

/* Shared "all plans include" strip */
.includes { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 26px; }
.includes .inc { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.includes .inc svg { width: 17px; height: 17px; color: var(--green); }

/* Optimization pricing cards */
.opt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); }
.opt-card .big { font-size: 34px; font-weight: 850; letter-spacing: -.02em; margin: 10px 0 4px; }
.opt-card .big .unit { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.opt-card.alt { background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; border: 0; }
.opt-card.alt .big { color: #fff; } .opt-card.alt p { color: rgba(255,255,255,.85); }
.opt-card .or { text-align: center; font-weight: 800; color: var(--ink-3); }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 620px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.compare thead th.apex { color: var(--brand); }
.compare tbody td.feat { color: var(--ink-2); font-weight: 600; }
.compare tbody td.apex { font-weight: 700; color: var(--ink); background: rgba(10,109,255,.045); }
.compare tbody tr:last-child td { border-bottom: 0; }

/* Light callout */
.callout { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-tint), var(--surface)); padding: 34px; }
.callout h3 { font-size: 22px; margin-bottom: 8px; }
.callout ol { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 9px; }
.callout ol li { font-size: 15px; color: var(--ink); }

/* ---------- Responsive ---------- */
.nav-m { display: none; }   /* nav items that only appear in the mobile drawer */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .login-link, .nav-cta > .btn { display: none; }   /* CTAs move into the drawer */
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
  .nav.open .nav-links a:hover, .nav.open .nav-links a.active { background: var(--surface-2); }
  .nav.open .nav-links .nav-m { display: block; }
  .nav.open .nav-links .nav-m.nav-m-sep { display: block; height: 1px; padding: 0; margin: 8px 0 4px; background: var(--line); }
  .nav.open .nav-links .nav-m-btn { background: var(--brand); color: #fff; text-align: center; margin-top: 4px; }
  .nav.open .nav-links .nav-m-btn:hover { background: var(--brand-700); }

  .grid-3, .grid-4, .price-grid, .price-grid-4, .team-grid, .steps, .engine-grids, .pipe { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .feature-row.rev .ftext { order: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4, .price-grid, .price-grid-4, .steps, .engine-grids { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat { padding: 20px 10px; }
  .sec-head p { font-size: 16px; }
  .cta-band { padding: 36px 22px; }
  .engine { padding: 16px; }
  .engine-top { gap: 8px; }
  .engine-tx { font-size: 11px; }
  .engine-txn { grid-template-columns: 1fr; padding: 16px; }
  .cost-strip { grid-template-columns: repeat(2, 1fr); }
  .elog-body { font-size: 10.5px; height: 184px; }
  .elog-meta { font-size: 9px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .price-card, .card { padding: 24px; }
}

@media (max-width: 400px) {
  .lang-btn { padding: 7px 8px; }
  .hero-stats, .cost-strip, .footer-top { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
}


/* ---------- Reduced motion ----------
   Neutralise every transition/animation for users who asked for it, and take
   .reveal to its END state rather than to nothing.

   This block is no longer .reveal's safety net — the base rule in "Scroll
   reveal" is, at all times and for every user. What is still needed here is an
   override of `.js-anim .reveal`, at equal specificity and later in the file,
   so someone with reduced-motion on and JS on never sees the hidden start
   state even for the frames before app.js runs. Writing it as bare `.reveal`
   would lose that race: `.js-anim .reveal` is the more specific selector, and
   a media query adds no specificity of its own. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
  .js-anim .reveal.d1, .js-anim .reveal.d2, .js-anim .reveal.d3, .js-anim .reveal.d4 { transition-delay: 0s; }
}


/* ---------- Icon sprite ----------
   Replaces the emoji that used to sit in .ic / .uic / .pic. Same 24-grid,
   2px-stroke language as lucide-react in the merchant portal, so the site and
   the product read as one thing. Decorative: every call site is aria-hidden and
   the adjacent heading carries the meaning. */
.ico { width: 22px; height: 22px; flex: none; color: var(--brand); display: block; }
/* Inline icons sit inside coloured text (status chips, eyebrows) and must take
   that colour, not the brand blue that the standalone boxes use. */
.ico-inline { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 2px; color: inherit; }
.card .ic .ico { width: 23px; height: 23px; }
.uc .uic .ico { width: 21px; height: 21px; }
.pstep .pic { font-size: 0; margin-bottom: 8px; display: grid; place-items: center; filter: none; }
.pstep .pic .ico { width: 21px; height: 21px; color: var(--dk-muted); transition: color .4s, transform .4s; }
.pstep.done .pic .ico, .pstep.on .pic .ico { color: var(--brand); }
/* Scale the glyph, never `.pic`. `.pic` is a full-width grid block since the
   sprite migration, so transforming it magnifies the entire step and pushes
   content past the box — which is what it used to do. */
.pstep.on .pic .ico { transform: scale(1.12); }
.ebox .eh .ico-inline { color: var(--dk-muted); }

/* ---------- Hero: copy, then the engine at full width ----------
   This was a two-column hero for one release and it was the wrong call. The
   engine panel is ~1690px tall while the copy beside it is ~760px, so 55% of
   the left column was empty; and squeezing a wide dashboard artifact into half
   the available width is what forced its six-track pipeline to overflow. Stacked,
   the panel gets 1377px instead of 700px and the pipeline fits six across again.

   The copy is centred: the panel below it is full-width and symmetric, so a
   left-aligned column above would hang off one edge of it. */
.hero-inner { text-align: center; padding-bottom: 72px; }

.hero-copy { max-width: none; }
.hero-badge { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 950px; margin: 0 auto 20px; }
.hero-sub { max-width: 58ch; margin: 0 auto; }
.hero-actions { justify-content: center; margin-top: 38px; }
.hero-note { margin: 18px auto 0; }

/* Secondary action sits under the description rather than beside the primary
   button, so only one thing competes for the click. */
.hero-jump {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-size: 15px; font-weight: 600; color: var(--dk-text);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 3px; transition: border-color .2s, color .2s;
}
.hero-jump svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
/* The text itself is 28px tall — under the 44px touch minimum. Pad the hit area
   without moving the underline, which stays on the text. */
.hero-jump { position: relative; }
.hero-jump::after {
  /* Vertical only. Extending sideways would grow the element's scrollWidth and
     register as an overflow — which the gate correctly flagged. */
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}
.hero-jump:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.hero-jump:hover svg { transform: translateY(2px); }

.hero-demo { margin-top: 76px; min-width: 0; }
.hero-demo .engine { margin: 0; }
.hero-demo-note {
  margin: 14px 2px 0; font-size: 12.5px; line-height: 1.5;
  color: var(--dk-muted); text-align: center;
}

/* The nav is sticky at 69px, so any deep-linked target lands underneath it.
   This was a single rule for #engine-panel, which is why that one anchor looked
   right while #engine, #optimization, #analytics, #team and #careers all landed
   at top:0 with their eyebrow sliced off by the nav — including the landing
   screen of the homepage's only route into the Edge technical profile.
   (QA Q-4, 2026-09-02.)

   Scoped to [id] rather than to a hand-kept list of anchors: a list is exactly
   what failed here, and it fails again the next time someone adds a section.
   scroll-margin-top only ever applies when the element is a scroll target, so
   it is inert on the several hundred ids that are never linked to. 92px = the
   69px nav + 23px of breathing room, the value #engine-panel was already using
   and the one the hero's "See how the engine works" link was measured against. */
[id] { scroll-margin-top: 92px; }

.hero-inner .hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 60px; border-top: 1px solid var(--dk-border); gap: 0;
}
@media (max-width: 860px) {
  .hero-inner .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Closing differentiators ----------
   Three claims a processor-owned tool cannot make. Kept as a quiet strip above
   the CTA rather than a section of its own — six cards of assurances read as
   filler, and half of them repeated the hero. */
.why-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; margin-bottom: 64px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.why .ico { width: 20px; height: 20px; margin-bottom: 12px; }
.why h3 { font-size: 16px; margin-bottom: 7px; }
.why p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .why-strip { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Section rhythm (home only) ----------
   Every section used to be padded 96/96, so nothing read as more important than
   anything else. Depth now varies with the weight of the content.
   Scoped to .page-home deliberately: the other seven pages have their own
   section mix and were not designed or checked against this rhythm, and a
   global padding change would silently restyle all of them. */
.page-home .section { padding: 88px 0; }
.page-home .section-alt { padding: 72px 0; }          /* a scannable four-step strip, not a deep read */
.page-home #analytics.section { padding: 120px 0; }   /* the one section that earns dwell time */
.page-home .section:last-of-type { padding: 104px 0 112px; }


/* ---------- Upcoming resources ----------
   These cards used to be <a href="#"> — twelve of them, each with a category,
   an invented read time, and a title that read like a published article. They
   went nowhere. They are now plain elements: the topics still signal what Apex
   writes about, but nothing invites a click that cannot be honoured. */
.card.is-upcoming { cursor: default; opacity: .82; }
.card.is-upcoming:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.card.is-upcoming .ph-note { color: var(--brand); }


/* ---------- Hero engine: fit the column it now lives in ----------
   Six steps across a ~640px column leaves ~90px each, which is too tight for
   two-line labels. Three across, two rows, gives each step room to breathe and
   removes the overflow entirely. */

/* The 1200px container was sized for a centred single-column hero. A two-column
   hero carrying a dense product panel needs more room, and on a 1920px screen
   the old cap left 720px of empty margin while both columns squeezed. Widen the
   hero only — every other section keeps the established measure. */
/* A dashboard-shaped panel earns more room than a text column would. */
@media (min-width: 1360px) { .hero .container { max-width: 1440px; } }
@media (min-width: 1680px) { .hero .container { max-width: 1560px; } }

/* ---------- Article pages (resources/blog) ----------
   Generated by tools/build-articles.py from tools/articles.py. Long-form
   reading, so the measure is tight and the vertical rhythm is set by the
   heading, not by uniform margins. */
.art { padding-top: 56px; }
.art-wrap { max-width: 760px; }

.art-back {
  /* flex + fit-content, not inline-flex: the eyebrow that follows is also an
     inline box and would otherwise sit on the same line as the back link. */
  display: flex; width: fit-content; align-items: center; gap: 7px; margin-bottom: 30px;
  font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none;
  transition: color .2s;
}
.art-back svg { width: 15px; height: 15px; }
.art-back:hover { color: var(--brand); }

.art-eyebrow { margin-bottom: 14px; }
.art-title {
  font-size: clamp(29px, 4vw, 42px); font-weight: 500;
  letter-spacing: -.022em; line-height: 1.14; margin: 0 0 18px;
}
.art-dek {
  font-size: 19px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line);
}

.art-body { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.art-body p { margin: 0 0 22px; }
.art-body b { color: var(--ink); font-weight: 650; }
.art-body i { font-style: italic; }
.art-body code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em; padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  white-space: nowrap;
}
.art-body h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -.014em; line-height: 1.25;
  color: var(--ink); margin: 46px 0 16px;
}

.art-list { margin: 0 0 24px; padding: 0; list-style: none; }
.art-list li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
}
.art-list li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55;
}

.art-note {
  margin: 0 0 26px; padding: 18px 22px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  font-size: 15.5px; line-height: 1.62; color: var(--ink-2);
}

.art-tablewrap { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 10px; }
.art-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
.art-table th, .art-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.art-table thead th {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.art-table tbody tr:last-child td { border-bottom: 0; }
.art-table code { white-space: nowrap; }

.art-cta {
  margin-top: 56px; padding: 30px 32px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); text-align: center;
}
.art-cta h3 { font-size: 20px; margin: 0 0 8px; }
.art-cta p { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; }

@media (max-width: 640px) {
  .art-body { font-size: 16px; }
  .art-cta { padding: 24px 20px; }
}


/* ---------- Small semantic text: AA floor in light theme ----------
   These four sit on white at 11–15px, where the palette's display-tuned values
   land between 3.2 and 4.3. Scoped to the light theme so the dark panels keep
   the brighter variants they were picked for. Explicit selectors rather than
   token edits: the values reaching these rules come through overrides that are
   not worth untangling for four declarations. */
:root:not([data-theme="dark"]) .etx-risk.risk-med { color: #9a5a02; }
:root:not([data-theme="dark"]) .etx-risk.risk-high { color: #b3123a; }
:root:not([data-theme="dark"]) .dv.g { color: #02704e; }
:root:not([data-theme="dark"]) .d.down { color: #c11a1a; }
:root:not([data-theme="dark"]) .compare th.apex { color: var(--eyebrow-strong); }
:root:not([data-theme="dark"]) .tier-badge { color: var(--eyebrow-strong); }
[data-theme="dark"] .compare th.apex { color: var(--eyebrow-strong); }
/* the demo link in the login aside is 14px brand blue on the darkest ground */
[data-theme="dark"] .login-aside a, [data-theme="dark"] .auth-side a { color: var(--eyebrow-strong); }

/* ---------- Founder profiles ----------
   Replaces a grid of eight placeholder members. Two real people with real
   credentials read as more credible than eight initials, and the layout should
   reflect that: room for the substance rather than a headshot grid. */
.founders {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
/* Column + auto margin on the contact row, so the two cards' contact rows line
   up with each other rather than each floating under its own bullet list. The
   two founders will never have the same number of lines of biography. */
.founder {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 28px;
  display: flex; flex-direction: column;
}
.founder-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
/* img, not a div of initials — the element is the same size either way, so the
   card layout is unchanged. object-fit keeps the crop honest if the source
   aspect ever drifts. */
.founder-head .av {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  object-fit: cover; display: block;
  background: var(--brand-100);
  border: 1px solid var(--line);
}
.founder h3 { font-size: 19px; margin: 0 0 4px; }
.founder-role { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
/* margin-bottom, not the links' margin-top: `margin-top: auto` there can resolve
   to 0 on a card that is exactly content-tall (mobile, one column), which would
   put the divider hard against the last bullet. */
.founder-facts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.founder-facts li {
  position: relative; padding-left: 20px;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.founder-facts li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5;
}
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }
.founder-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.founder-mail, .founder-li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--eyebrow-strong);
  text-decoration: none; word-break: break-all;
}
.founder-li svg { width: 16px; height: 16px; flex: none; }
.founder-li:hover { text-decoration: underline; text-underline-offset: 3px; }
.founder-mail svg { width: 16px; height: 16px; flex: none; }
.founder-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare-note {
  margin: 16px 4px 0; font-size: 13px; line-height: 1.6;
  color: var(--ink-3); max-width: 72ch;
}

/* ==========================================================================
   THE EDGE DECISION DIAGRAM  (.eflow)  — homepage hero
   --------------------------------------------------------------------------
   What it replaced, and why the replacement is a drawing rather than a widget:
   the hero used to run a six-step simulator of the Edge pipeline. That artifact
   is a good thing to WATCH once you already know what Edge is; it is a poor
   thing to MEET. It moved to products.html#engine, and the hero now carries the
   one picture the product needs a stranger to leave with — that Edge reads one
   payment five ways, decides three things about it inside one core, and takes
   one path out of five.

   The test the drawing has to pass, and the reason nothing here is decorative:
   hide every <text> node and the geometry alone must still say

       many signals, weighted unequally, converge  ->  one core with three
       parts works on them  ->  one path is taken and the others are not.

   Screenshots v6-edge-notext-a.png / -b.png in ~/apex-website-mockups are that
   test, run on each of the two cores.
   The processor logos are graphics, not <text>, so they survive that test — the
   thing to check in it is that the core still shows three parts.

   HOW EACH MEANING IS CARRIED BY SHAPE
   · CONVERGENCE — five strands gather from a 400-unit column onto a 150-unit
     stretch of the core's edge, each arriving along the core's own NORMAL.
     The normals are computed by tools/edge-diagram.mjs, not eyeballed, so the
     strands meet the body at five right angles instead of piling into one node.
     v3 ran all five into a single point and the junction knotted.
   · WEIGHT — said exactly twice, never three times: the arc on each badge (read
     per profile) and the width of the strand leaving it (read across the fan).
     Strand width is strictly proportional — 0.08 x the percentage — so the
     thinnest is 0.96px and reads as "barely counted".
   · WORK — the core has an inside: a wall about 15% of the radius thick, a
     chamber inside it in a different tone, and three plates carrying the three
     decisions. Core a adds three nested contours in the wall and keeps the two
     rails and sixteen hairlines of wiring; core b fills the wall as our logo
     ring and puts our mark in the chamber instead of the wiring.
   · CHOICE — five candidates leave, one per processor actually connected. One
     is thicker, solid, brand-coloured, beaded, and ARRIVES: it runs into its
     chip and out the other side to an outcome. Four are thinner, dashed,
     fading, and stop early on a hollow ring, short of a chip that is dimmed.
     Six signals, so "taken" never rests on colour, and never on opacity.

   THE LINE SYSTEM — three widths, and every stroke in the drawing is one of
   them. v4 declared four tiers and then used two of them for almost everything:
   probed at 1440, 30 of its 53 paths were 1px and 11 more were 2.5px, so the
   "system" existed on the five weighted strands and nowhere else, and the
   picture read as one thickness drawn everywhere. The tiers below are a
   geometric scale — 0.9 : 1.5 : 2.5, each step 5/3 of the last, far enough
   apart to tell at a glance and not far enough to shout — and they are assigned
   by WHAT A LINE IS FOR, not by what kind of object it belongs to:

     --ew-lead 2.5   the taken path, and the gauges that measure the inputs:
                     each badge's track and weight arc, the lane, and the tick
                     in the approved disc (13 strokes)
     --ew-line 1.5   every outline in the drawing: the core's own shell, the
                     plates inside it, the processor chips, the badge disc
                     edges, the stop rings, the four paths not taken (22)
     --ew-fine 0.9   the core's internals — chamber edge, rails, wiring, and
                     (in core a) the contours. There on the second look, gone
                     on the first. 22 of them in core a; in core b, which has
                     no wiring, ONE. That is a real cost of core b and it is
                     recorded rather than glossed: the tier still exists but it
                     is carried by a single stroke, and what rewards the second
                     look there is the watermark, not a hairline.

   Those counts are the census `node fe-measure.mjs` prints, not an estimate.
   The only other widths in the drawing are the five weighted strands, which are
   an ENCODING (0.08 x the percentage, so 32% really is 2.7x the width of 12%)
   and not a tier, and --ew-bead, which is not a line at all — it is the
   diameter of a dot travelling the lane.

   1.5 is also the stroke width of every icon in icons.svg, so the site's icon
   set lands ON the middle tier instead of being a fourth width nobody chose.
   (Those are shadow content carrying it as a presentation attribute, so they do
   not show up in the census — but it is the same 1.5.) Contrast does the rest
   of the separating: opacity, dash and colour, never thickness.

   COLOUR. Five profile hues, one per profile, and nothing WE draw is allowed to
   use them: colour on this side means "which profile". The three lever icons
   are therefore all one colour (--brand); giving them hues of their own would
   open a second legend competing with the first. --p1..--p5 are the site's own
   accent hues (brand / green / violet / amber / cyan) at the step each theme
   needs — the same move, for the same reason, as --eyebrow-strong.

   The processor marks are the honest exception, and it is worth being exact
   rather than pretending: five brand palettes now appear in this drawing, and
   two of them (Stripe's indigo, Adyen's green) sit near --p3 and --p2. A third
   is not a palette at all — Braintree publishes a monochrome lockup, and black
   on the light chip is what that mark IS. They do
   not compete with the legend because they are not free-floating colour — each
   is INSIDE a logo, inside a white chip, in the half of the picture where no
   profile hue appears at all. Recolouring them to keep the palette pure was the
   alternative, and a recoloured logo is not that company's logo.

   GROUND. The hero is a "panel": --dk-* flips with the theme, so every value
   below is a --dk-* or a --p*, never --ink-*. A literal or a page token here
   would be readable in exactly one theme. The one deliberate exception is the
   processor chip, which must NOT flip — see ".eflow .chip" for why.
   ========================================================================== */
.hero-demo .edge-fig { margin: 0; }
.edge-fig { margin: 64px 0 0; padding: 0; }
.edge-pan { width: 100%; max-width: 1152px; margin-inline: auto; overflow: hidden; }

.eflow { display: block; width: 100%; height: auto; margin: 0 auto; }
/* Capped at its own design width. Unbounded, the hero container reaches 1512px
   at 1920 and every label in the drawing would render ~31% larger than the body
   text beside it. Drawn at 1:1, never enlarged. */
.eflow-wide { max-width: 1152px; }
.eflow-narrow { display: none; max-width: 1000px; }

.eflow {
  /* three stroke tiers, 5/3 apart, + one dot diameter. Nothing in this drawing
     uses a width that is not one of these; see the header above for who is on
     which tier and why. */
  --ew-fine: 0.9;    /* chamber edge, rails, wiring, cortex contours    */
  --ew-line: 1.5;    /* every outline, the core's shell included         */
  --ew-lead: 2.5;    /* badge gauge + arc, and the lane that is taken     */
  --ew-bead: 4.5;    /* a dot, not a line                                */
  /* Round everywhere, declared once. v4 set linecap on five classes and left
     every <path class="wire"> at the initial `butt`, which put a square nub on
     each hairline where it met a rail — invisible at a glance, and the reason
     the wiring read as chopped rather than routed. Both properties inherit, so
     one declaration reaches every stroke in both scenes; the icons carry their
     own (identical) values as presentation attributes. */
  stroke-linecap: round; stroke-linejoin: round;
  --p1: var(--brand); --p2: var(--green); --p3: var(--violet);
  --p4: #9a5a02;     /* --amber at 4.6:1 on the light panel; the literal already
                        lives in this file for .etx-risk.risk-med */
  --p5: #0891b2;     /* --cyan is 1.6:1 on the light panel and unusable there */
  --ok-ink: #02704e; /* --green is 3.99:1 on the light panel, under AA for the
                        12px APPROVED label; this literal is already the file's
                        light-panel green, on .dv.g */
}
[data-theme="dark"] .eflow {
  --p1: var(--brand-400); --p2: var(--green-bright); --p3: #b794ff;
  --p4: var(--amber); --p5: var(--cyan); --ok-ink: var(--green-bright);
}

/* ---- type in the drawing ------------------------------------------------
   Floor is 11px RENDERED, at every viewport `npm run check:svg` renders. These
   declarations are the WIDE scene's sizes and the narrow scene's BASE sizes;
   two media queries at the bottom of this file override them, and the numbers
   below are only the story above 1120px.

   Wide scene (>1120px): a 1152-unit viewBox, so rendered px = declared x
   (container / 1152). The container bottoms out at 1073 — a 1121px viewport,
   one above the breakpoint — = x0.9314, so the smallest declared size may not
   go below 11.81. It is 12, and 12 renders at 11.18px there. That is the whole
   wide-scene worst case and it still holds.

   ⚠️ The rest of what this note used to say did not. It claimed "11.33px at
   320px … both clear the floor, so the <=374px block below only carries
   t-step", and by 2026-09-02 every part of that was wrong:
     - 320px does not use the wide scene at all; it uses the narrow one, at
       x0.8452, where a declared 12 renders at 10.14px — under the floor. What
       makes 320px pass is the <=374px block, not this declaration.
     - that block carries four selectors (t-step, t-ok, t-tag, t-val), not one.
     - the note predated the `(max-width:1120px) and (min-height:760px)` block,
       which overrides both of them for any viewport at least 760px tall.
   The narrow scene's real numbers, and why they are 13.6, live with those two
   blocks at the bottom of this file. Do not re-derive them from here.

   Nothing in this comment is a substitute for `npm run check:svg`, which reads
   rendered px out of a real render — a 16-viewport sweep in both languages, on
   top of the full theme x language cross product. A number in a comment is not
   a measurement, and this comment is the worked example of why. */
.eflow text { font-family: inherit; }
.eflow .t-prof { font-size: 13.5px; font-weight: 550; fill: var(--dk-text); }
.eflow .t-core { font-size: 15.5px; font-weight: 700; letter-spacing: -.012em; fill: var(--dk-text); }
.eflow .t-step { font-size: 12px; font-weight: 650; fill: var(--dk-text); }
.eflow .t-ok   { font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; fill: var(--ok-ink); }

/* ---- the five badges ----------------------------------------------------
   All five the same size, on purpose: five different-sized stickers would read
   as five different KINDS of thing and the column would lose its order. The arc
   starts at 3 o'clock — exactly where the strand leaves — and sweeps
   anticlockwise, so it grows away from the junction rather than into it. */
.eflow .pf1 { color: var(--p1); } .eflow .pf2 { color: var(--p2); }
.eflow .pf3 { color: var(--p3); } .eflow .pf4 { color: var(--p4); }
.eflow .pf5 { color: var(--p5); }
/* track and arc are the SAME width: this is a gauge, and a gauge whose
     empty half is thinner than its full half stops reading as one ring. */
.eflow .m-track { fill: none; stroke: currentColor; stroke-width: var(--ew-lead); opacity: .15; }
.eflow .m-arc   { fill: none; stroke: currentColor; stroke-width: var(--ew-lead); }
.eflow .m-disc  { fill: currentColor; opacity: .11; }
.eflow .m-edge  { fill: none; stroke: currentColor; stroke-width: var(--ew-line); opacity: .26; }

/* ---- the five strands ---------------------------------------------------
   width = 0.08 x the example weight. Strictly proportional, so 12% really is
   thinner than 32% by the ratio it claims; the percentages are stated in the
   caption so nobody reads them as a measured result. The phone scene uses
   non-scaling strokes below, so the same tiers remain visible after its wide
   coordinate system is fitted into a narrow viewport. */
.eflow .st { fill: none; }
.eflow-wide .s1 { stroke: var(--p1); stroke-width: 1.2; }
.eflow-wide .s2 { stroke: var(--p2); stroke-width: .96; }
.eflow-wide .s3 { stroke: var(--p3); stroke-width: 2.56; }
.eflow-wide .s4 { stroke: var(--p4); stroke-width: 1.36; }
.eflow-wide .s5 { stroke: var(--p5); stroke-width: 1.92; }
.eflow-narrow .s1 { stroke: var(--p1); stroke-width: 1.5; }
.eflow-narrow .s2 { stroke: var(--p2); stroke-width: 1.2; }
.eflow-narrow .s3 { stroke: var(--p3); stroke-width: 3.2; }
.eflow-narrow .s4 { stroke: var(--p4); stroke-width: 1.7; }
.eflow-narrow .s5 { stroke: var(--p5); stroke-width: 2.4; }

/* ---- the core -----------------------------------------------------------
   Three things were deleted from v3's core and one was added.

   Deleted: a 36-tooth aperture ring, a second concentric ring, and a dashed
   third ring. Together they read as a camera iris or an instrument dial — a
   thing that is CALIBRATED, not a thing that DECIDES — and they were the
   drawing's densest object while carrying no meaning at all.

   Added, in v4: a rim, the same outline repeated 7 units in at a fifth of the
   opacity. That was too little. v5's outline also drifted only 6% on three
   harmonics, which at 118 units is invisible, so the object as shipped was a
   pale disc with three white pills on it — David's words were "a transparent
   circle, still ugly", and they were right.

   v6 REPLACES THE INTERIOR AND OFFERS TWO OF THEM. Which one ships is one flag
   in tools/edge-diagram.mjs (--core=a | b); everything else in the drawing is
   shared, so the choice is a choice about one object and not about two
   drawings. Both give the body a real wall (about 15% of the radius) and a
   chamber inside it in a different tone — see ".eflow .core-chamber".

     a  the outline gains three deep, narrow clefts and the wall carries three
        nested contours, packed on the flank the strands arrive from and absent
        on the flank the answer leaves from. A body that is denser where it is
        listening. NOT a brain glyph — a brain glyph is the single most common
        way an AI-decision diagram announces that nobody thought about it — and
        not a radial comb either, which is the mistake v3 made from the other
        side: radial repetition reads as a mechanism, tangential repetition
        reads as depth.

     b  the outline becomes our own logo ring, traced from
        apex_logo_mark_400x400.png and checked against it (0.984 IoU, see
        tools/check-apex-mark.mjs), with the A-and-arrow behind the plates as a
        watermark. The engine is Apex, so the engine is drawn as Apex. This one
        has NO internal wiring: the mark is the interior, and hairlines drawn
        over it turn both into texture. */
/* The shell is on the outline tier, not the lead tier, and that was decided by
   looking: at 2.5 the core became a bold blue ring, the eye stopped there, and
   the plates and wiring inside it — the whole point of the object — flattened
   into it. What makes the core the centre of this picture is its FILL and the
   three lit plates on it, not the weight of its edge. */
.eflow .core-shell { fill: var(--brand-tint); stroke: var(--brand-400);
  stroke-width: var(--ew-line); opacity: .95; }

/* ---- v6: THE CORE HAS A WALL AND A CHAMBER, IN BOTH VARIANTS -------------
   v5's core was an outline, a tint and three plates. David's word for it was
   "a transparent circle", and that was accurate: one flat region with stickers
   on it. What replaced the 7-unit rim is a real inside/outside — a wall about
   15% of the radius thick, and a chamber inside it that is a DIFFERENT tone
   from the wall rather than the same tone with a hairline drawn on it. Three
   tones stacked (wall, chamber, plate) is the whole depth budget; there is no
   shadow, no glow and no gradient anywhere in this object.
   The chamber's edge stays on the hairline tier, and it replaces .core-rim
   one-for-one, so the stroke census does not move because of it. */
.eflow .core-chamber { fill: var(--brand); fill-opacity: .11;
  stroke: var(--brand-400); stroke-width: var(--ew-fine); stroke-opacity: .34; }

/* ---- variant A: the cortex ----------------------------------------------
   Three contours of the same body, nested inward, all centred on the direction
   the five strands arrive from (which is NOT the same direction in the two
   scenes — the wide core is entered from the left and the narrow one from the
   upper right, so the focus angle is passed in rather than assumed) and each
   one shorter than the last: half-widths 168 / 138 / 106 degrees. Read across,
   the core is layered where it is listening and bare where it has decided — the
   gradient IS the meaning, which is why it is a gradient of COUNT (three lines,
   then two, then none) and not of colour.
   Fading inward gives the stack its thickness. It is the same idea the old
   .core-rim carried alone, done three times so it is visible without being
   loud. */
.eflow .fold { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); }
.eflow .fold:nth-of-type(1) { opacity: .48; }
.eflow .fold:nth-of-type(2) { opacity: .34; }
.eflow .fold:nth-of-type(3) { opacity: .22; }

/* ---- variant B: our own ring, and our own mark behind the plates ---------
   The band between the logo ring's two edges, filled. Not stroked: a 17-unit
   stroke would be a fourth line width in a drawing that has exactly three, and
   the ring on our logo is a filled shape, not a thick line. evenodd because the
   two ellipses wind the same way.
   The watermark is the one recolour in this drawing, and it is allowed for the
   one reason the processor marks are not: it is ours. 12% of --brand is the
   level at which it survives being crossed by a white plate — you read it in
   the gaps and complete it — without ever competing with the plate's label. */
.eflow .core-band { fill: var(--brand); fill-opacity: .17; fill-rule: evenodd; }
.eflow .wm { fill: var(--brand); opacity: .15; }
[data-theme="dark"] .eflow .core-chamber { fill-opacity: .15; }
[data-theme="dark"] .eflow .core-band { fill-opacity: .20; }
[data-theme="dark"] .eflow .wm { opacity: .21; }

/* ==========================================================================
   v7 — THREE CORES, AND THE ONE THING ALL THREE CHANGED FIRST
   --------------------------------------------------------------------------
   David's verdict on v6a was that the core was ugly, and the four things wrong
   with it were specific rather than a matter of taste:

     1  the three nested contours were the OUTLINE offset inward three times,
        which is how a contour map draws a hill. Read back: a terrain diagram.
     2  the outline itself was a smooth body with three clefts cut into it —
        neither brain-like nor decisive, and it read as a walnut.
     3  the three white rounded plates were hard-edged UI cards lying ON a soft
        organic body. Two languages, arguing. The core had no INSIDE, only a top.
     4  blue on blue: at a glance the interior was mush in light mode.

   (4) IS FIXED FIRST, AND NOT BY DARKENING ANYTHING — darkening is what made it
   mush. v6 stacked THREE close blues: a tinted shell, a tinted chamber on top of
   it, and a white plate on top of that. Whatever was drawn in the chamber had to
   survive two washes of --brand before it reached the eye. So one whole tonal
   layer is deleted. The wall keeps the tint; everything inside it sits on
   --dk-card, the panel's own card colour, which is plain white in light. The
   interior is then drawn on a clean ground at ordinary opacities instead of
   being shouted through a wash. Two tones, not three.

   (3) then answers itself in each variant, because a white plate on a white
   ground is not a thing: a1 leaves the words a CLEARING in its lattice, a2
   leaves them the RIDGES between its cuts, a3 makes them HOLES in its material.
   None of the three can be "pasted on", which is the point.

   THE HAIRLINE TIER, ELEMENT BY ELEMENT. Core a carried 22 strokes at
   --ew-fine: the chamber edge (1), three cortex contours (3), and the wiring —
   five wires in, two rails, six plate connectors, five wires out (18). All three
   v7 cores drop the wiring, and that is a replacement rather than an omission:
   the wiring existed to answer "what is going on in there", and each new
   interior answers the same question, so keeping both would be answering it
   twice on top of itself. Each variant lands on FIVE, which is what makes the
   three comparable:

     a1   1 .core-void edge · 1 .mesh (every lattice link, one path) · 3 .rule
     a2   1 .core-void edge · 4 .cut  (one companion hairline per sulcus)
     a3   3 .win edges · 2 .chain     (a3 has no void: its material IS the fill)

   .mesh being ONE path for ~120 segments is load-bearing, not a byte
   optimisation: the census counts ELEMENTS, and 120 separate hairlines would
   swamp the tier in one of the three variants and make them incomparable.

   The OUTLINE tier loses the three .plate rects in all three variants: 22 -> 19.
   The lead tier (13) does not move — nothing on it belongs to the core.

   The a1 dots and the a2 ribbons are FILLS, not strokes, so they appear in no
   tier at all. In a2 that is the whole reference rather than a convenience: a
   sulcus has to swell and taper, an SVG stroke cannot, and a cut that swells is
   what separates an engraved plate from a cartoon outline.
   ========================================================================== */

/* The clean ground, a1 and a2. Not a third tint — --dk-card is the same token
   the plates used to use, moved from three small rectangles to the whole
   interior, which is why nothing had to be darkened to compensate. */
.eflow .core-void { fill: var(--dk-card); stroke: var(--brand-400);
  stroke-width: var(--ew-fine); stroke-opacity: .45; }
/* a3 draws no shell fill — .wall IS its fill — so its outer edge is a separate
   stroke-only path, laid over the windows so the body's silhouette stays crisp
   where the widest window comes closest to it. */
.eflow .core-edge { fill: none; stroke: var(--brand-400); stroke-width: var(--ew-line); }

/* ---- a1: the lattice ----------------------------------------------------
   The gradient is in SPACING and nowhere else: one opacity for every link, one
   for every dot. An opacity ramp on top of the spacing ramp would be the same
   fact said twice, and saying a thing twice is exactly what made v6's contours
   read as texture rather than as structure. */
.eflow .mesh { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .34; }
.eflow .node { fill: var(--brand); opacity: .72; }
/* The three rules are the three decisions. Hairline tier, not outline tier,
   because they are what the lattice RESOLVES ONTO — a heavier line would make
   them the object and the lattice its background. */
.eflow .rule { fill: none; stroke: var(--brand-400); stroke-width: var(--ew-fine); opacity: .8; }
[data-theme="dark"] .eflow .mesh { stroke: var(--brand-400); opacity: .46; }
[data-theme="dark"] .eflow .node { fill: var(--brand-400); opacity: .85; }
[data-theme="dark"] .eflow .rule { opacity: .62; }

/* ---- a2: the sulci ------------------------------------------------------
   Filled, because they must swell and taper. Opacity is the ink weight of an
   engraved line and is the same for all four; what varies between them is
   WIDTH, which is the only thing a burin varies. */
.eflow .sulcus { fill: var(--brand); fill-opacity: .52; }
.eflow .cut { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .40; }
[data-theme="dark"] .eflow .sulcus { fill: var(--brand-400); fill-opacity: .55; }
[data-theme="dark"] .eflow .cut { stroke: var(--brand-400); opacity: .48; }

/* ---- a3: the chambers ---------------------------------------------------
   One fill, even-odd, so "the material is continuous around the three windows"
   is a property of the geometry and not of three shapes lining up. The window
   edge is not decoration: in dark --dk-card is rgba(255,255,255,.035), i.e.
   very nearly the panel itself, and without an edge a window would differ from
   the material by almost nothing. Same reasoning that gave variant b its clip. */
.eflow .wall { fill: var(--brand); fill-opacity: .15; fill-rule: evenodd; }
.eflow .win { fill: var(--dk-card); stroke: var(--brand-400);
  stroke-width: var(--ew-fine); stroke-opacity: .42; }
.eflow .chain { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .38; }
[data-theme="dark"] .eflow .wall { fill-opacity: .19; }
[data-theme="dark"] .eflow .win { stroke-opacity: .40; }
[data-theme="dark"] .eflow .chain { stroke: var(--brand-400); opacity: .5; }

/* ==========================================================================
   v8 — THREE CORES TAKEN FROM PHOTOGRAPHED REFERENCES
   --------------------------------------------------------------------------
   v3 / v6a / v7a1 / v7a2 were each rejected as ugly, and the reason a fifth
   invented shape would have failed too is in ~/apex-website-refs/REFERENCES.md
   §4: of 30 real products, exactly ONE puts a body with three named parts at a
   point where five lines land and five leave. This is a geometry overload, not
   a taste problem — three iconed words and ten line terminations do not fit
   inside a 150px circle.

   All three v8 cores therefore split the job the way Baseten splits it:

     the BOUNDARY stays simple, so ten lines can land anywhere on it;
     COUNTABLE STRUCTURE carries "three parts", so it survives the no-text test;
     the WORDS go wherever there is room, which need not be inside the body.

   THE STROKE TIERS DO NOT MOVE. --ew-lead (2.5) is untouched in all three:
   nothing on that tier belongs to the core. The two lower tiers are
   re-allocated, and here is every element, so the census below can be checked
   rather than believed:

     b1  --ew-line  core-void edge (1) + 3 slab tops              = 4
         --ew-fine  3 slab walls + 3 leaders + 3 chips            = 9
     b2  --ew-line  core-edge (1) + 3 rows                        = 4
         --ew-fine  core-void edge (1) + 1 tab                    = 2
     b3  --ew-line  core-edge (1) + 1 processor slot chip         = 2
         --ew-fine  core-void edge (1) + 3 rules + 1 badge        = 5

   In every one of them the three .plate rects are gone, as they were in v7 —
   none of these cores has anything pasted on it. b1's slab tops take their
   place on the outline tier one for one, which is the point: the plates USED to
   be what said "three parts", and now the body itself does.

   COLOUR. Unchanged rule: --dk-* and --p* only, never a page token, never a
   literal — with the one standing exception, .eflow .chip, which must not flip
   with the theme because it is the clear space a brand mark assumes. b3 uses
   that same chip for the processor slot on its card, for the same reason and
   with the same mark.
   ========================================================================== */

/* ---- the monospace label chip, shared by all three -----------------------
   Every v8 core moves type out of the body and onto a chip. JetBrains Mono is
   already this file's mono (line 6) and it is what the references use for
   exactly this: Baseten's `696/1000 REPLICAS`, Together's `OPTIMIZED
   TRAINING`, Linear's `FIG 0.1`, Fingerprint's `THIS IS REAL DATA`. A single
   advance is also what lets the generator size a chip before the browser has
   rendered the word in it.
   12px is the floor here as everywhere: x0.931 at the narrowest wide layout is
   11.17, and the <=374px block below lifts it the same way it lifts .t-step. */
.eflow .t-tag {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; fill: var(--dk-muted);
}
.eflow .t-head { fill: var(--dk-text); font-weight: 700; }
.eflow .t-val  { font-size: 12px; font-weight: 550; fill: var(--dk-text); }
/* chip / tab / badge are one shape with three jobs, so they are one rule.
   Hairline, because a chip is an annotation: it must not out-weigh the body it
   is annotating, and the outline tier already belongs to the body. */
.eflow .tag, .eflow .tab, .eflow .badge {
  fill: var(--dk-card); stroke: var(--brand-400);
  stroke-width: var(--ew-fine); stroke-opacity: .55;
}

/* ---- b1: THE LAYER STACK  (ZOOM-baseten-core-stack + linear FIG 0.1) -----
   Three coins in axonometric, staggered so each layer's top face is reachable
   from above by a leader that crosses nothing. The layers are told apart by
   LINES, not by three progressively darker blues — which is precisely what
   made v6's interior mush in light mode, and it is why this variant needed no
   dark-theme fix beyond the two already-shared tokens.
   The wall carries a fill and the top face does not, so a slab has a lit
   surface and a shaded edge with no shadow, no gradient and no glow anywhere:
   the same two-tone budget every core since v6 has been held to. */
.eflow .slab-top  { fill: var(--dk-card); stroke: var(--brand-400); stroke-width: var(--ew-line); }
.eflow .slab-wall { fill: var(--brand); fill-opacity: .13; stroke: var(--brand-400);
  stroke-width: var(--ew-fine); stroke-opacity: .6; }
/* Dashed, and dashed at a finer period than the four not-taken candidates
   (3 7): a leader must not be mistaken for a path. It is also the only dashed
   thing in the drawing that does not fade, because it is not petering out —
   it is pointing. */
.eflow .lead { fill: none; stroke: var(--brand-400); stroke-width: var(--ew-fine);
  stroke-dasharray: 2.5 4; opacity: .78; }
/* the pin. A leader that merely stops looks like it ran out; a leader that
   lands on a dot has arrived at something. Baseten's do the same. */
.eflow .lead-pin { fill: var(--brand); opacity: .85; }
[data-theme="dark"] .eflow .slab-wall { fill-opacity: .16; }
[data-theme="dark"] .eflow .lead-pin  { fill: var(--brand-400); }

/* ---- b2: THE TABBED CONTAINER  (ZOOM-stripe-radar-container + primer) ----
   Stripe draws a model that has stages as a 1px rounded boundary with the
   object's NAME on a tab riding the top border, three named divisions inside,
   and a dot field as the only interior material. Nothing is filled and nothing
   glows; the whole object is edges and one texture.
   The rows span the container's full inner width on purpose. v5's three
   floating pills read as objects lying ON a disc — David's "transparent circle
   with white pills" — and a division that reaches both walls cannot be read
   that way. */
.eflow .brow { fill: var(--dk-card); stroke: var(--brand-400);
  stroke-width: var(--ew-line); stroke-opacity: .5; }
/* A FILL, not a stroke: 90 dots as one path, so the tier census counts one
   element and not ninety. The same reason a1's .mesh is one path. */
.eflow .grid-dot { fill: var(--brand); opacity: .28; }
/* the caption naming what each row picks. Right-aligned against the row's far
   edge, so the three of them make a second vertical the eye can run down —
   the ZOOM-primer-fallback-card.png device (PROCESSOR / FALLBACK PROCESSOR). */
.eflow .t-cap { letter-spacing: .10em; }
[data-theme="dark"] .eflow .grid-dot { fill: var(--brand-400); opacity: .34; }
[data-theme="dark"] .eflow .brow { stroke-opacity: .42; }

/* ---- b3: THE DECISION CARD  (ZOOM-primer-fallback-card + radar panel) ----
   Primer does not draw its routing engine; it draws an `Authorize Payment`
   card with named slots holding real processor marks. 22 of the 30 products
   surveyed draw nothing at all in this position, and the most credible of the
   ones that do (Primer, Stripe Radar, Fingerprint) all replaced the metaphor
   with the product. So this core is one Edge decision, written out.
   Every value on it is a decision Edge genuinely emits, and there is not one
   reading anywhere on the card — no percentage, no count, no `0.00`, no `--`.
   A card that is half concrete and half placeholder is worse than no card: the
   real field names are what make a reader believe the empty number. The
   EXAMPLE badge is the same device as Fingerprint's `THIS IS A DEMO`. */
.eflow .crow { fill: none; stroke: var(--brand-400); stroke-width: var(--ew-fine);
  stroke-opacity: .42; }
[data-theme="dark"] .eflow .crow { stroke-opacity: .38; }

/* ==========================================================================
   v9 — n1: THE NETWORK  (the core stops being an object with an edge)
   --------------------------------------------------------------------------
   b3 was read back as a table, and correctly: a bordered white card with a
   header, three horizontal rules, and on each row an icon, a mono label and a
   value in a second aligned column. All four of those are table primitives.
   So there is no container here at all — no fill, no border, no rules, no
   header, no badge, no value column. Nothing in this block draws a boundary,
   and .core-void / .core-edge are not used by this variant.

   WHAT THE INK IS. Four layers of dots (5 profiles -> 9 mixed -> 3 decisions
   -> 5 candidates) and the 87 edges between them, all on --ew-fine. The five
   input dots sit on the strands' own attachment points and the five candidate
   dots on the fan-out curves' own origins, so the network is wired to the rest
   of the drawing rather than placed next to it. tools/edge-diagram.mjs has the
   derivation of every count; this file only says how they are inked.

   THE TIERS. --ew-lead (2.5) and --ew-line (1.5) are untouched by the core, as
   in every variant since v7 — nothing on either tier belongs to it. On
   --ew-fine, n1 carries SIX elements: five weighted fans (one per profile) and
   one path holding the other 42 edges. Every dot is a FILL and three of the
   four layers are one path each, so 22 nodes cost nothing in the census and
   four elements in the DOM. b3 carried five on this tier and two on the
   outline tier; n1 carries six and none.

   WEIGHT, SAID ONCE MORE IN THE ONE PLACE IT WAS BEING DROPPED. The five
   strands encode their weight as width (0.08 x the percentage) and then stop
   at the body. Here the edges leaving each input node continue it as opacity,
   STRICTLY PROPORTIONAL on the same terms: 0.012 x the percentage. That is not
   the same fact twice in the same place — it is one fact carried across a
   boundary that used to swallow it, and it is the only reason a viewer can see
   that the issuing bank's fan is the darkest thing inside the body. Width was
   not available: this drawing has exactly three stroke widths and a fourth
   would break the system the whole picture is held together by.
   Downstream of the hidden layer the page has stated no weights at all, so
   those 42 edges are one flat value. Inventing a gradient there is the exact
   move REFERENCES.md F1 records as the failure ("辉光是在替代信息").

   LIGHT MODE IS THE HARD ONE and it is handled by the same two things twice:
   the faintest fan is --brand at 14.4% over the #eef3fc panel, which is
   rgb(205,224,252) — present, and 33 steps off the ground, which is what
   "barely counted" should look like; and the three words are --dk-text at
   weight 650 sitting in rectangles the mesh was CLIPPED out of, so nothing
   crosses them at any opacity. Dark mode multiplies every opacity by 1.55 and
   swaps --brand for --brand-400, because #04080f gives a low-alpha blue much
   less to work with than white does.
   ========================================================================== */
.eflow .net { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .26; }
/* 0.018 x the profile's percentage: 15 / 12 / 32 / 17 / 24. The same five
   numbers as .s1-.s5's widths above and derived the same way, so they move
   together or not at all. The CONSTANT was set by looking: at 0.012 the whole
   field measured 14%-38% and read as one flat wash — proportional, and
   invisibly so. 0.018 puts the range at 22%-58%, which over the #eef3fc panel
   is rgb(188,214,252) to rgb(107,166,254). The flat value above (26%) sits
   INSIDE that range on purpose, so the unweighted half of the network cannot
   dominate the weighted half or disappear under it. */
.eflow .nf1 { opacity: .270; }
.eflow .nf2 { opacity: .216; }
.eflow .nf3 { opacity: .576; }
.eflow .nf4 { opacity: .306; }
.eflow .nf5 { opacity: .432; }
/* Nodes are flat fills. No glow, no ring, no gradient and no second colour:
   REFERENCES.md F1 is a whole product (Confluent) failing on exactly that, and
   "every node is a little glowing ball" is the single most recognisable tell
   of a machine-made diagram. Four sizes, and each says what kind of node it
   is: hidden (smallest, most numerous) < candidate < decision. */
.eflow .nd      { fill: var(--brand); opacity: .55; }
.eflow .nd-cand { fill: var(--brand); opacity: .62; }
.eflow .nd-out  { fill: var(--brand); opacity: .95; }
/* currentColor, inside .pf1-.pf5 — so an input node is literally the hue of
   the strand that lands on it, with no new token and no second legend. */
.eflow .nd-in   { fill: currentColor; opacity: .92; }
[data-theme="dark"] .eflow .net { stroke: var(--brand-400); opacity: .40; }
[data-theme="dark"] .eflow .nf1 { opacity: .351; }
[data-theme="dark"] .eflow .nf2 { opacity: .281; }
[data-theme="dark"] .eflow .nf3 { opacity: .749; }
[data-theme="dark"] .eflow .nf4 { opacity: .398; }
[data-theme="dark"] .eflow .nf5 { opacity: .562; }
[data-theme="dark"] .eflow .nd      { fill: var(--brand-400); opacity: .68; }
[data-theme="dark"] .eflow .nd-cand { fill: var(--brand-400); opacity: .72; }
[data-theme="dark"] .eflow .nd-out  { fill: var(--brand-400); }

/* The wiring. This is what replaced v3's 36-tooth aperture, and the reason is
   not decorative: the aperture said "calibrated instrument", the wiring says
   "the five inputs go somewhere and the five candidates come out". Two rails
   and sixteen hairlines, all on the thinnest tier, so with the plates on top
   the core reads as one object and only rewards a second look. */
/* opacity up from v4's .32/.5 because the width came down from 1 to 0.9 — the
   wiring is meant to be a second-look reward, not an absent one, and thinning
   it without compensating had made it the latter. */
.eflow .wire { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .42; }
.eflow .rail { fill: none; stroke: var(--brand); stroke-width: var(--ew-fine); opacity: .6; }
/* The three plates sit ON the shell and over the wiring, so with every <text>
   hidden the core still shows three parts and three icons rather than an empty
   ring. --dk-card, not --surface: white on the tinted disc in light, darker
   than the tinted disc in dark. One declaration, both themes. */
.eflow .plate { fill: var(--dk-card); stroke: var(--brand-400);
  stroke-width: var(--ew-line); }
.eflow .lv-ico { color: var(--brand); }

/* ---- the five candidates ------------------------------------------------ */
.eflow .lane { fill: none; stroke: var(--brand); stroke-width: var(--ew-lead); }
/* Not taken: thinner, dashed, and actually FADING. A flat 50% opacity reads as
   "a second line"; a fade reads as "this one peters out". The gradient is in
   user space because the wide scene's alternates run left-to-right and the
   narrow one's run top-to-bottom. */
.eflow .alt { fill: none; stroke-width: var(--ew-line); stroke-dasharray: 3 7; }
.eflow .alt-w { stroke: url(#efadeW); }
.eflow .alt-n { stroke: url(#efadeN); }
.eflow .fade-a { stop-color: var(--dk-muted); stop-opacity: .8; }
.eflow .fade-b { stop-color: var(--dk-muted); stop-opacity: .16; }
.eflow .stop { fill: none; stroke: var(--dk-muted); stroke-width: var(--ew-line); opacity: .7; }
/* ---- the five processors ------------------------------------------------
   v4 typed the provider names in our own type and drew Stripe as a single
   indigo dot. That is the cheapest thing a diagram can do and it reads as a
   placeholder — these are the companies a merchant already has contracts with,
   and a merchant looking at this picture is asking whether we can really talk
   to them. So each is its own published mark, in its own published colours,
   unmodified: assets/psp/*.svg, inlined as <symbol>s by tools/edge-diagram.mjs.

   THE CHIP IS WHY THIS WORKS IN BOTH THEMES. A brand mark cannot be recoloured
   without becoming a different mark, and four of these five are dark-on-light
   assets that would vanish on the dark panel (edge-merchant-portal's PspLogo
   carries the same warning, from the same measurement). CSS filters are the
   same sin with extra steps. So the marks are not adapted to the ground — the
   ground is put under the marks: one constant light chip, identical in light
   and dark, which is the clear-space every one of these brand guidelines
   assumes. It is also exactly how a real processor list looks in Stripe's or
   Adyen's own dashboard, so it costs nothing in realism.

   NOT-TAKEN IS SAID FOUR WAYS, AND ONLY ONE OF THEM IS OPACITY: the path is
   dashed rather than solid, it fades out along its length, it stops short on an
   open ring instead of arriving, and its chip is dimmed. Drop colour and drop
   opacity and the reading survives on dash + stops-short alone. */
/* Two literals, and they are literals on purpose in a block whose rule is
   "--dk-* or --p*, never a fixed colour": the chip is the one surface here that
   must NOT flip with the theme, so a theme token would be exactly the bug. The
   border is 15% of --dk-text's light value, which is the same edge the plates
   get from --brand-400 and reads as an edge without becoming a second frame. */
.eflow .chip { fill: #fdfefe; stroke: #0a112426; stroke-width: var(--ew-line); }
.eflow .psp  { opacity: .62; }
.eflow .psp-on { opacity: 1; }
/* The taken processor is the only one the lane reaches, so it is also the only
   one that gets a ring of the brand around its chip. --brand at 30% on white:
   present, and not a second border. */
.eflow .psp-on .chip { stroke: var(--brand); stroke-opacity: .55; }
.eflow .ok-disc  { fill: var(--ok-ink); }
.eflow .ok-mark  { fill: none; stroke: var(--dk-bg); stroke-width: var(--ew-lead); }

/* The only animation in the drawing: beads travelling the taken lane, so the
   picture says "live traffic" rather than "a diagram of traffic".
   0% and 100% are the SAME FRAME, because the offset shifts by exactly one
   dash period and -42 = 0 (mod 42). That matters because this site's global
   reduced-motion fallback is `animation-duration: .001ms; iteration-count: 1`
   — it does not stop the animation, it runs it to completion instantly. With
   fill-mode none the element then reverts to offset 0. Both ends and the
   reduced-motion resting state are therefore pixel-identical. Change the lane
   length and this stays true; change the dasharray or the keyframe and it does
   not — they are one number in two places. */
.eflow .beads { fill: none; stroke: var(--brand); stroke-width: var(--ew-bead);
  stroke-linecap: round; }
.eflow-wide .beads { stroke-dasharray: .1 41.9; animation: ebead-w 3.4s linear infinite; }
.eflow-narrow .beads { stroke-dasharray: .1 31.9; animation: ebead-n 2.6s linear infinite; }
@keyframes ebead-w { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -42; } }
@keyframes ebead-n { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -32; } }

.edge-cap {
  margin: 22px auto 0; max-width: 78ch; font-size: 13.5px; line-height: 1.65;
  color: var(--dk-body); text-align: left;
}
.edge-cap b { color: var(--dk-text); font-weight: 650; }

/* 1120, and the number was measured. The wide scene needs a container of at
   least 1056 to hold the 11px floor on its 12px labels; the hero container is
   viewport - 48 below 1200, so that is a viewport of 1104. 1120 is the nearest
   round number above it with slack. */
@media (max-width: 1120px) {
  .eflow-wide { display: none; }
  .eflow-narrow { display: block; max-width: 1000px; }
  .eflow-narrow .t-prof,
  .eflow-narrow .t-step,
  .eflow-narrow .t-ok { font-size: 20px; }
  .eflow-narrow .t-core { font-size: 22px; }
  .eflow-narrow .st,
  .eflow-narrow .net,
  .eflow-narrow .alt,
  .eflow-narrow .lane,
  .eflow-narrow .beads,
  .eflow-narrow .m-track,
  .eflow-narrow .m-arc,
  .eflow-narrow .m-edge,
  .eflow-narrow .chip,
  .eflow-narrow .stop,
  .eflow-narrow .ok-mark { vector-effect: non-scaling-stroke; }
  .edge-cap { text-align: left; }
}
@media (max-width: 560px) {
  /* Give the product illustration the phone width it needs at the container
     level. Copy stays on the original 24px reading gutter; the diagram itself
     uses 8px gutters without overflowing any ancestor. */
  .hero-inner { padding-left: 8px; padding-right: 8px; }
  .hero-copy,
  .edge-lede,
  .edge-cap { margin-left: 16px; margin-right: 16px; }
  .edge-fig { margin-top: 44px; }
  /* Use the phone's visual width, not the narrower copy column. */
  .edge-pan {
    width: 100%; max-width: none;
  }
  .eflow-narrow { width: 100%; max-width: none; }
  .eflow-narrow .t-prof,
  .eflow-narrow .t-step,
  .eflow-narrow .t-ok { font-size: 27px; }
  .eflow-narrow .t-core { font-size: 30px; }
}
@media (max-width: 390px) {
  .eflow-narrow .t-prof,
  .eflow-narrow .t-step,
  .eflow-narrow .t-ok { font-size: 28px; }
  .eflow-narrow .t-core { font-size: 31px; }
}
@media (max-width: 360px) {
  .eflow-narrow .t-prof,
  .eflow-narrow .t-step,
  .eflow-narrow .t-ok { font-size: 31px; }
  .eflow-narrow .t-core { font-size: 34px; }
}
@media (max-width: 330px) {
  .eflow-narrow .t-prof,
  .eflow-narrow .t-step,
  .eflow-narrow .t-ok { font-size: 33px; }
  .eflow-narrow .t-core { font-size: 36px; }
}

/* ---------- The live pipeline, on products.html ----------
   The simulator's new home. .engine already carries its own panel — border,
   dark ground, shadow — so the stage only has to place it; wrapping it in a
   .dark-sec, as the static strip it replaced was, would have double-framed it.
   The note is page-level muted text (--ink-3), not panel text (--dk-muted):
   it sits outside the panel, on the page's own background. */
.engine-stage { margin-top: 44px; min-width: 0; }
.engine-stage .engine { margin: 0; }
.engine-note {
  margin: 14px 2px 0; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-3); text-align: center;
}

/* ==========================================================================
   SE run 2026-09-02-run1 — the fixes that needed CSS
   ========================================================================== */

/* ---------- "Sample data" / "Illustrative" marker (SE-03) ----------
   The Edge diagram already carried a correct disclaimer and the merchant formed
   his impression before he reached it: 13.5px of grey, UNDER a picture he had
   already read. Meanwhile 94.7%, $182K and 38c carried nothing at all, and the
   page had by then taught him that unmarked numbers are real.

   So this is not another line of grey. It is a chip, in the mock's own browser
   chrome, ABOVE the numbers — the same place Stripe puts "Test mode", and for
   the same reason: the frame is read before its contents. Amber rather than
   grey because it is a caution, and grey is what he already scrolled past. */
.mock-tag {
  display: inline-flex; align-items: center; flex: none; margin-left: auto;
  padding: 3px 8px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  background: #fff1de; color: #7a4100; border: 1px solid #f2c893;
}
/* The chip is fixed-width and the fake URL beside it is not: on a 375px screen
   "dashboard.apex-payment.ai/overview" plus a chip is wider than the frame.
   The URL is decoration, so it is the one that gives way. */
.frame-bar .url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The developer API sample contains machine-readable tokens. On the narrow
   one-column feature row, let those tokens wrap rather than widen the frame. */
#developers .frame-body { overflow-wrap: anywhere; }

/* Only two grounds are dark independently of the theme: `.frame.dark`, the
   mock with the black terminal body, and everything under [data-theme="dark"].
   The hero is NOT one of them — `--dk-*` are panel tokens that flip with the
   theme, not literal dark colours, and reading them as literal is what put an
   amber-on-white chip at 1.4:1 into the light homepage. The contrast gate
   caught it; the assumption is the thing worth remembering. */
[data-theme="dark"] .mock-tag,
.frame.dark .mock-tag {
  background: rgba(255, 159, 67, .16); color: #ffc489;
  border-color: rgba(255, 159, 67, .42);
}
.mock-note {
  margin: 14px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3);
}

/* ---------- The Edge diagram's disclaimer, moved above it (SE-03/SE-15) ------
   SE named this sentence as correct and asked for it to be moved up and given
   weight rather than replaced. Same words, plus the one thing it did not say:
   that the four faint marks are processors NOT TAKEN, rather than processors
   not available. That misreading is what the whole picture turns on. */
.edge-lede {
  margin: 0 auto 20px; max-width: 78ch; font-size: 13.5px; line-height: 1.7;
  font-weight: 550; color: var(--dk-text); text-align: left;
}
.edge-lede .mock-tag { margin-right: 8px; vertical-align: 2px; }

/* ---------- Engine panel notes (SE-03 / SE-11) ----------
   `.engine-note .mock-tag` used to be declared here. It is gone with the chip
   it styled: SE2-01 moved that chip up into the panel header, and a rule left
   behind for a selector nothing matches is the next person's false lead. */
.engine-spec {
  margin: 8px 2px 0; font-size: 12px; line-height: 1.55;
  color: var(--ink-3); text-align: center;
}
/* The implementation detail that used to BE the card's explanation. Kept, but
   demoted to a spec line under the sentence a payments lead can act on. */
.card-spec {
  margin-top: 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .01em;
}

/* ---------- Feature scores: scale and direction (SE-13) ----------
   "Is 0.31 good or bad? Is 1 the top? Is higher better?" — and the answer is
   not the same for all five rows, so the scale goes on the box once and the
   direction goes on each row. */
.ebox .eh .eh-note {
  margin-left: auto; text-transform: none; letter-spacing: .02em;
  font-weight: 500; color: var(--dk-muted);
}
.feat-row .fn { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.feat-row .fdir { font-size: 9.5px; color: var(--dk-muted); letter-spacing: .01em; }

/* ---------- Contact is an email, and says so (SE-07) ----------
   It used to look exactly like every other footer link, so clicking it threw a
   mail client at someone who was reading a website. The envelope and the
   address are the two things that would have let him decide first. */
.foot-mail {
  display: inline-grid; grid-template-columns: auto auto;
  column-gap: 7px; row-gap: 1px; align-items: center;
}
/* Not named `ico-*`: tools/inline-icons.py treats any `class="ico…"` as a
   page that uses the sprite, and would have inlined 1.8 KB of unused symbols
   into pricing.html and demo.html, which have no icons at all. */
.foot-mail .foot-mail-ico { width: 14px; height: 14px; }
.foot-mail-addr {
  /* Mono and smaller is the whole de-emphasis. No opacity: dimming a footer
     link is the cheapest way to walk a passing contrast ratio into a failing
     one, and the contrast gate would then be the thing telling us. */
  grid-column: 2; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
}

/* ---------- The hero link now leaves the page (SE-01) ----------
   It used to be a down arrow to a still picture on the same page. It is a right
   arrow to the moving one, because the arrow was half the promise. */
.hero-jump-out:hover svg { transform: translateX(3px); }

/* The former phone scene was sized by height because it was an 812-unit
   vertical composition. The replacement is a 1000x512 horizontal chart like
   desktop, so width is the only sizing axis; no height query may override it. */

/* NVIDIA membership: signed brand canvas stays white in both site themes.
   Images retain original colors; these local colors do not change site tokens. */
.nvidia-membership {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; padding: 26px 24px; gap: 16px;
  background: #fff; color: #0a1124; border-block: 1px solid #e7eaf2;
}
.nvidia-membership__lockup {
  display: grid; grid-template-columns: 180px auto 240px; gap: 28px;
  align-items: center; justify-content: center; max-width: 100%; margin: 0;
  font-size: 19px; font-weight: 500; line-height: 1.4; text-align: center;
}
.nvidia-membership__apex { display: block; width: 180px; height: auto; }
.nvidia-membership__link { display: block; width: 240px; }
.nvidia-membership__link img { display: block; width: 100%; height: auto; }
.nvidia-membership__link:focus-visible { outline: 2px solid #0356d6; outline-offset: 4px; }
.nvidia-membership__relation, .nvidia-membership__support strong { color: #0356d6; font-weight: 600; }
.nvidia-membership__support { margin: 0; max-width: 52ch; color: #46506a; font-size: 15px; line-height: 1.5; text-align: center; }
.nvidia-membership__zh-suffix { display: none; }
html:lang(zh-CN) .nvidia-membership__zh-suffix {
  display: inline; position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 760px) {
  .nvidia-membership { padding: 20px 12px; gap: 12px; }
  .nvidia-membership__lockup {
    grid-template-columns: clamp(72px,22vw,92px) minmax(52px,64px) clamp(120px,34vw,140px);
    gap: 10px; font-size: 12px; line-height: 1.35;
  }
  .nvidia-membership__apex, .nvidia-membership__link { width: 100%; }
  .nvidia-membership__support { font-size: 12px; max-width: 38ch; }
}
