/* =============================================================================
   CPQ Platform — Public pages (Platform / Pricing / Providers / Docs)
   Built on the SSOT token system (design-system.md). Dark-first.
   Three themes = the app's common.js THEMES: night (default) · sunset · morning
   (data-theme values match the app so a theme set in /quote round-trips here).
   No number appears here that the live product did not produce (armor).
   ============================================================================= */

/* S1 (2026-07-12): scale + theme tokens moved to tokens.css (SSOT), which every
   marketing page now loads BEFORE this file. Components only below. */

/* ---- Reset + base -------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-page);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background var(--duration-base) var(--ease), color var(--duration-base) var(--ease);
}
/* S11 (Igor 2026-07-12): the corner-glow orb layer was removed product-wide —
   flat page background; no template glows. */

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; color: var(--text-strong); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: var(--fw-semibold); color: var(--text-strong); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }

.wrap { width: min(var(--container, 1180px), calc(100% - 2 * var(--gutter, 32px))); margin: 0 auto; }
.wrap-wide { width: min(var(--container-wide, 1280px), calc(100% - 2 * var(--gutter, 32px))); margin: 0 auto; }
[hidden] { display: none !important; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(var(--blur-backdrop));
  -webkit-backdrop-filter: blur(var(--blur-backdrop));
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.brand {
  font-weight: var(--fw-extrabold);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-4);
}
.nav a {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav a:hover { color: var(--text); background: var(--bg-elevated); }
.nav a.active { color: var(--text-strong); }
.nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.header-tools { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }

/* Language toggle — single RU/EN button, unified with the app header (common.js) */
.lang-toggle {
  font-family: inherit;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-elevated); }

/* ThemeOrb — single cycling button (day→evening→night), unified with the app header */
.theme-orb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  padding: 0;
  line-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.theme-orb-btn:hover { border-color: var(--border-strong); background: var(--bg-elevated); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.btn-primary { background: var(--gradient-cta); color: var(--accent-text); }
.btn-primary:hover { background: var(--gradient-cta-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-emphasis); background: var(--bg-elevated); }
.btn-lg { padding: 13px 26px; font-size: var(--fs-base); border-radius: var(--radius-lg); }
.btn-link {
  color: var(--accent-soft);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.btn-link:hover { color: var(--accent-faint); text-decoration: underline; text-underline-offset: 3px; }
.header-cta { padding: 8px 15px; }
@media (max-width: 1080px) { .header-cta { display: none; } }

/* ---- Pills / badges ------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  background: var(--bg-surface);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--accent-faint); border-color: var(--accent); background: var(--accent-bg); }
.pill-live .dot { background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
.pill-roadmap { color: var(--text-subtle); border-style: dashed; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: var(--space-20) 0 var(--space-14); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: var(--space-5);
}
.eyebrow .rule { width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, var(--fs-3xl));
  line-height: var(--lh-tight);
  font-weight: var(--fw-extrabold);
  max-width: 15ch;
}
.hero .sub {
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); align-items: center; }
.hero-note { font-size: var(--fs-xs); color: var(--text-subtle); }

/* ---- Section rhythm + numbered heads ------------------------------------ */
.section { padding: var(--space-14) 0; border-top: 1px solid var(--border-subtle); }
.section:first-of-type { border-top: none; }
.sec-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.sec-head .ix {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent-faint);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: var(--fw-bold);
}
.sec-head h2 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.sec-head .hint { margin-left: auto; font-size: var(--fs-xs); color: var(--text-subtle); }
.sec-lead { color: var(--text-muted); font-size: var(--fs-md); line-height: var(--lh-relaxed); max-width: 62ch; margin: calc(-1 * var(--space-4)) 0 var(--space-8); }

/* ---- Panels / cards ------------------------------------------------------ */
.panel {
  background: var(--gradient-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--gradient-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-base) var(--ease);
}
.card:hover { border-color: var(--border-strong); }
/* AR8 — a card may be an anchor (the /docs legal cards link to the documents).
   Strip the default link styling so a linked card is visually identical to a
   static one; the hover border is the affordance. */
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover h3 { color: var(--accent-faint); }
.card h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.card .kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--space-3);
}

/* ---- Steps (numbered) ---------------------------------------------------- */
.steps { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative;
  padding: var(--space-6);
  background: var(--gradient-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.step .n {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--accent-bg);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}
.step h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* ---- Regions diagram (structure only — no synthetic numbers) ------------- */
.regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.region-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
  overflow: hidden;
}
.region-col .rc-head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}
.region-col .rc-head .flag { width: 8px; height: 8px; border-radius: 2px; }
.region-col.usa .rc-head { color: var(--region-usa); } .region-col.usa .flag { background: var(--region-usa); }
.region-col.eu .rc-head { color: var(--region-eu); } .region-col.eu .flag { background: var(--region-eu); }
.region-col.china .rc-head { color: var(--region-china); } .region-col.china .flag { background: var(--region-china); }
.region-col.ru .rc-head { color: var(--region-ru); } .region-col.ru .flag { background: var(--region-ru); }
.region-col .rc-body { padding: var(--space-3); display: grid; gap: var(--space-2); }
.rc-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-mid);
}
.rc-line .v { font-family: var(--font-mono); color: var(--text-subtle); letter-spacing: 0.1em; }
.rc-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3);
  margin-top: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg-soft);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.rc-total .v { font-family: var(--font-mono); color: var(--text-muted); }
.diagram-note { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-subtle); display: flex; align-items: center; gap: var(--space-2); }

/* ---- Technology slots ---------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.tech {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  display: grid;
  gap: var(--space-3);
}
.tech.live { border-color: var(--accent); background: var(--accent-bg-soft); }
.tech.roadmap { border-style: dashed; }
.tech .t-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.tech.roadmap .t-name { color: var(--text-muted); }

/* ---- Callout (honest boundary) ------------------------------------------- */
.callout {
  position: relative;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--gradient-panel);
  display: grid;
  gap: var(--space-3);
}
.callout .mark {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.callout p { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-mid); max-width: 68ch; }
.callout p strong { color: var(--text-strong); }

/* ---- Checklists / definition rows ---------------------------------------- */
.checks { display: grid; gap: var(--space-3); }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: var(--lh-relaxed);
}
.check .ic { color: var(--accent); margin-top: 2px; }
.check strong { color: var(--text-strong); }

.dl { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.dl .row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}
.dl .row:first-child { border-top: none; }
.dl dt { font-weight: var(--fw-semibold); color: var(--text-strong); font-size: var(--fs-sm); }
.dl dd { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* ---- Build diagram (inputs -> price) ------------------------------------- */
.build { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 0.9fr; gap: var(--space-3); align-items: stretch; }
.build .node {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.build .node .kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.build .node h4 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.build .node ul { margin: var(--space-1) 0 0; padding-left: 16px; color: var(--text-muted); font-size: var(--fs-xs); line-height: var(--lh-relaxed); }
.build .node.result { border-color: var(--accent); background: var(--accent-bg-soft); }
.build .op { display: grid; place-items: center; color: var(--text-subtle); font-size: var(--fs-lg); }

/* ---- Reserved presentation embed slot (ships hidden) --------------------- */
/* AR11/G#17 — the HTML + i18n copy both promise this slot "ships hidden until
   the recording exists", but the hide was never wired, so a dashed RESERVED
   placeholder rendered live on all 4 marketing pages. Honor the stated intent:
   hide the whole slot. To un-hide once a walkthrough exists, drop this rule (or
   scope it to slots without a populated player). */
[data-embed-slot] { display: none !important; }
.embed-reserved {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-2xl);
  background: var(--bg-sunken);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.embed-reserved .badge-slot {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.embed-reserved .er-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-mid); }
.embed-reserved .er-sub { font-size: var(--fs-xs); color: var(--text-subtle); max-width: 46ch; }
.embed-reserved .play {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-subtle);
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  margin: var(--space-16) 0 0;
  padding: var(--space-14) var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  background: var(--gradient-panel);
  text-align: center;
  display: grid;
  gap: var(--space-5);
  justify-items: center;
}
.cta-band h2 { font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); }
.cta-band p { color: var(--text-muted); font-size: var(--fs-md); max-width: 54ch; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-20);
  padding: var(--space-14) 0 var(--space-16);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.footer-brand .brand { font-size: 1.05rem; }
.footer-brand p { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-sm); max-width: 40ch; line-height: var(--lh-relaxed); }
.footer-col h4 {
  font-size: var(--fs-3xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-col .soon {
  color: var(--text-subtle);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  cursor: default;
}
.footer-col .soon .tag {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  white-space: nowrap;
}
.footer-legal {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}

/* ---- Utility spacing ----------------------------------------------------- */
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.stack-4 { display: grid; gap: var(--space-4); }
.stack-6 { display: grid; gap: var(--space-6); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .build { grid-template-columns: 1fr; }
  .build .op { transform: rotate(90deg); padding: var(--space-1) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .hero { padding: var(--space-14) 0 var(--space-10); }
}
@media (max-width: 560px) {
  .regions { grid-template-columns: 1fr; }
  .dl .row { grid-template-columns: 1fr; gap: var(--space-2); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-10) var(--space-5); }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Entrance (gated; safe for print/PDF/reduced-motion) ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); }
  body.ready .reveal { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  body.ready .reveal.d1 { transition-delay: 0.06s; }
  body.ready .reveal.d2 { transition-delay: 0.12s; }
  body.ready .reveal.d3 { transition-delay: 0.18s; }
}


/* ---- S7 figures (theme-aware, token-driven; no synthetic numbers) --------- */
/* Decomposition bar — same segment set in every region column: it shows the
   STRUCTURE of the output (which components exist), never regional proportions. */
.fd-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.fd-bar i { display: block; height: 100%; }
.fd-c1 { background: var(--chart-1); } .fd-c2 { background: var(--chart-2); }
.fd-c3 { background: var(--chart-3); } .fd-c4 { background: var(--chart-4); }
.fd-c5 { background: var(--chart-5); } .fd-c6 { background: var(--chart-6); }
.fd-c7 { background: var(--chart-7); }
.fig-legend {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--fs-2xs); color: var(--text-muted);
}
.fig-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.fig-legend .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* Feature chips — what the analyzer extracts (names only, no counts). */
.feat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.feat-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  background: var(--bg-surface);
  white-space: nowrap;
}

/* Orientation-invariance figure — same glyph, rotated; same price. */
.fig-orient {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
}
.fig-part {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
  color: var(--text-muted);
}
.fig-part svg { width: 72%; height: auto; }
.fig-eq {
  display: grid; place-items: center; gap: 4px;
  color: var(--accent-soft);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
}
.fig-eq .cap { font-size: var(--fs-3xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); white-space: nowrap; }

/* Performance strip — the §40 allowed facts only. */
.perf-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.perf {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--gradient-panel);
  display: grid;
  gap: 4px;
  align-content: start;
}
.perf .pv {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.perf .pk { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-relaxed); }

/* Flow chain — upload → read → … (docs). */
.fig-flow { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fig-flow .ff {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: var(--fs-xs);
  color: var(--text-mid);
  white-space: nowrap;
}
.fig-flow .ff.hot { border-color: var(--accent); background: var(--accent-bg-soft); color: var(--text-strong); }
.fig-flow .fa { color: var(--text-subtle); flex: none; }
@media (max-width: 640px) { .fig-orient { grid-template-columns: 1fr; } .fig-eq { transform: rotate(90deg); } }
