/* ==========================================================================
   Political Intelligence Platform · design system
   Tokens are the reference brand's exact values (DESIGN.md), with a
   shadcn/ui-style semantic layer on top. One family: Urbanist (free stand-in
   for Mazzard H, same geometry). Telugu: Noto Sans Telugu.
   ========================================================================== */

:root {
  /* ---- reference tokens, exact ---- */
  --color-text-primary: #1a0b54;
  --color-text-secondary: #ffffff;
  --color-text-tertiary: #0000ee;
  --color-text-inverse: #a997ce;
  --color-surface-base: #000000;
  --color-surface-muted: #111114;
  --color-surface-raised: #1c4eff;
  --color-surface-strong: #0e0e11;

  /* ---- reference stylesheet palette, exact ---- */
  --blue: #1c4eff;
  --navy: #1b4dfe;
  --navy-dark: #300681;
  --purple: #ac24ff;
  --violet: #8130ff;
  --lilac: #dd95ff;
  --magenta: #ca45ff;
  --pink: #f79fff;
  --sky: #b997ff;
  --orange: #fe881b;
  --yellow: #ffd600;
  --main-dark-bg: #08080a;
  --secondary-dark: #0c0c0e;
  --darkest: #0b0b0d;
  --black: #0e0e0e;
  --light-grey: #f9f9f9;
  --light-navy: #f2f2ff;
  --grey: #bdbdd3;
  --grey-text-dark: #83799e;

  --grad-text: linear-gradient(90deg, #ca45ff, #fe881b 62%, #ffb340);
  --grad-line: linear-gradient(90deg, #8130ff, #d9650a 70%, #c2560a);
  --grad-warm: linear-gradient(145deg, #ac24ff, #fe881b 73%, #ffd600);
  --grad-cool: linear-gradient(180deg, #300681, #ac24ff 46%, #8130ff 74%, #6d6cff);
  --grad-page: linear-gradient(#030304, #060607 15% 88%, #030304);
  --grad-panel: linear-gradient(#0c0c0e, #0c0c0e 62%, #0a0a0c 70%);
  /* reference gradients, exact (named after where the reference uses them) */
  --ec-button: linear-gradient(90deg, #1c4eff, #ac24ff 50%, #fe881b);
  --ec-gradient-line: linear-gradient(90deg, #ca45ff, #fe881b 62%, #ffb340);
  --ec-card: radial-gradient(circle at 0 100%, #1e1d23, #111114 70%);
  --ec-card-wide: radial-gradient(circle at -30% 200%, #1e1d23, #111114 81%);
  --ec-orb: radial-gradient(circle at 0 0, #1b4dfe 10%, #ac24ff 30%, #f79fff 50%, #ffd600 70%, #fe881b 90%);
  --ec-cool: linear-gradient(160deg, #300681, #ac24ff 46%, #8130ff 74%, #6d6cff);
  --ec-horizon: linear-gradient(180deg, #300681, #ac24ff 46%, #8130ff 74%, #6d6cff);
  --ec-warm: linear-gradient(139deg, #ac24ff, #fe881b 73%, #ffd600);
  --ec-section: linear-gradient(180deg, #08080a, #0b0b0d);
  --ec-body: #060607;

  /* ---- shadcn/ui semantic layer ---- */
  --background: var(--color-surface-base);
  --foreground: var(--color-text-secondary);
  --card: var(--color-surface-muted);
  --card-foreground: var(--color-text-secondary);
  --popover: var(--color-surface-strong);
  --primary: var(--color-surface-raised);
  --primary-foreground: #ffffff;
  --secondary: var(--color-surface-strong);
  --muted: var(--secondary-dark);
  --muted-foreground: var(--color-text-inverse);
  --accent: var(--purple);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --input: rgba(255, 255, 255, 0.16);
  --ring: var(--sky);
  /* functional extensions (status only) */
  --success: #3fbf8a;
  --warning: var(--yellow);
  --destructive: #ff5a6e;

  /* ink on light sheets: text.primary and tints of it */
  --ink: var(--color-text-primary);
  --ink-2: rgba(26, 11, 84, 0.78);
  --ink-3: rgba(26, 11, 84, 0.64);
  --ink-line: rgba(26, 11, 84, 0.10);

  /* data roles */
  --pos: var(--orange);
  --neu: var(--color-text-inverse);
  --neg: var(--blue);
  --pA: var(--yellow);
  --pB: var(--sky);
  --pC: var(--pink);
  --pO: var(--grey-text-dark);
  --pU: #3a2d58;

  /* ---- radius / space / motion (reference tokens) ---- */
  --radius-xs: 9px;
  --radius-sm: 18px;
  --radius-lg: 29px;
  --radius-pill: 999px;
  --s1: 4px;
  --s2: 13px;
  --s3: 26px;
  --s4: 39px;
  --s5: 52px;
  --s6: 78px;
  --s7: 104px;
  --s8: 156px;
  --dur-instant: 350ms;
  --dur-fast: 400ms;
  --dur-normal: 1000ms;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* ---- type (reference scale) ---- */
  --font: "Urbanist", Arial, sans-serif;
  --font-te: "Noto Sans Telugu", "Urbanist", sans-serif;
  --fs-xs: 12.69px;
  --fs-md: 14.52px;
  --fs-lg: 15.43px;
  --fs-xl: 18.17px;
  --fs-2xl: 29.06px;
  --fs-3xl: 41.78px;
  --fs-h2: clamp(34px, 4.444vw, 68px);
  --fs-display: clamp(30px, 6.2vw, 96px);

  --wrap: 1320px;
  --gut: clamp(16px, 3.6vw, 52px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ec-body);
  color: var(--foreground);
  font-family: var(--font);
  font-size: var(--fs-xl);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { background: var(--grad-page); }
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
input::placeholder { color: var(--grey-text-dark); opacity: 1; }
html { scrollbar-color: #3a2d58 #040405; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #040405; }
::-webkit-scrollbar-thumb { background: #3a2d58; border-radius: 12px; border: 3px solid #040405; }
use[href^="#i-"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur-instant) var(--ease); }
.skip:focus { top: 16px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.te { font-family: var(--font-te); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: clamp(104px, 11vw, 176px) 0; }
.sec.tight-top { padding-top: clamp(26px, 3vw, 52px); }

/* ---------- type ---------- */
.display {
  font-weight: 500;
  font-size: clamp(30px, 4.861vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.027em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h3 { font-weight: 500; font-size: clamp(26px, 2.9vw, 41.78px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h4 { font-weight: 600; font-size: clamp(21px, 2vw, 29.06px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted-foreground); margin: 0; max-width: 64ch; text-wrap: pretty; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.sheet .grad { background-image: var(--grad-line); }
.muted { color: var(--muted-foreground); }

.head { text-align: center; display: grid; justify-items: center; gap: var(--s3); margin: 0 auto clamp(52px, 6vw, 78px); max-width: 980px; }
.head .lead { text-align: center; }
.head.left { text-align: left; justify-items: start; margin-left: 0; }
.head.left .lead { text-align: left; }

/* ---------- buttons (shadcn Button, upgraded) ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 40px; border-radius: 14px; border: 0;
  font-weight: 500; font-size: 16px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-position var(--dur-normal) var(--ease), background-color var(--dur-instant), border-color var(--dur-instant), color var(--dur-instant), opacity var(--dur-instant), transform var(--dur-instant) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
.btn-md { --h: 48px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: var(--fs-md); border-radius: 10px; }
.btn-primary { background-color: var(--blue); background-image: var(--ec-button); background-size: 300%; background-position: left; color: var(--primary-foreground); }
.btn-primary:hover, .btn-primary:focus-visible { background-position: right; }
.btn-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--color-text-inverse); }
.btn-secondary:hover { background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
/* on a light sheet the same button needs ink, not white on white */
.sheet .btn-secondary { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26, 11, 84, .24); }
.sheet .btn-secondary:hover, .sheet .btn-secondary:focus-visible { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--light-navy); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn-light.is-loading::after { border-color: rgba(26, 11, 84, 0.2); border-top-color: var(--ink); }
.btn.is-hover.btn-primary { background-position: right; }
.btn.is-focus { outline: 2px solid var(--ring); outline-offset: 3px; }
.btn.is-active { transform: scale(0.97); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: inherit; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-instant) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- segmented tabs (shadcn Tabs, upgraded) ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); }
.seg button {
  height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--muted-foreground); font-weight: 600; font-size: var(--fs-lg);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: background-color var(--dur-instant) var(--ease), color var(--dur-instant) var(--ease);
}
.seg button svg { width: 17px; height: 17px; }
.seg button:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.seg.on-light { background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
.seg.on-light button { color: var(--ink-2); }
.seg.on-light button:hover { color: var(--ink); background: var(--light-navy); }
.seg.on-light button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg.sm button { height: 38px; padding: 0 14px; font-size: var(--fs-md); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--radius-pill); font-size: 12.69px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; background: rgba(255, 255, 255, 0.08); color: var(--muted-foreground); }
.badge.live { background: rgba(61, 220, 151, 0.14); color: var(--success); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
.badge.done { background: rgba(169, 151, 206, 0.14); color: var(--muted-foreground); }
.badge.flag { background: rgba(255, 90, 110, 0.14); color: #ff8b99; }
.badge.warn { background: rgba(255, 214, 0, 0.13); color: var(--yellow); }
.badge.blue { background: rgba(43, 167, 255, 0.14); color: var(--sky); }
.badge.purple { background: rgba(172, 36, 255, 0.16); color: var(--lilac); }
.badge.orange { background: rgba(254, 136, 27, 0.15); color: #ffad61; }
.badge.draft { background: rgba(255, 255, 255, 0.06); color: var(--grey); }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .badge.live::before { animation: none; } }

/* ==========================================================================
   NAV · floating white pill with gradient edge (reference)
   ========================================================================== */
.nav {
  position: fixed; z-index: 60; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(1220px, calc(100% - 24px));
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 20px;
  border-radius: 16px;
  background: #fff;
  border: 0;
  color: var(--ink);
  box-shadow: none;
  transition: transform var(--dur-fast) var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 32px; height: 32px; }
.brand-name { font-weight: 600; font-size: 16.5px; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 500; font-size: 12.69px; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.nav-links { display: flex; gap: 0; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: 11px 14px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--ink-2); text-decoration: none; transition: color var(--dur-instant), background-color var(--dur-instant); }
.nav-links a:hover { color: var(--ink); background: var(--light-navy); }
.nav-links a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ec-gradient-line); }
.nav .btn { --h: 48px; padding: 0 30px; font-size: 15px; }
.nav-menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--light-navy); color: var(--ink); place-items: center; }
.nav-menu svg { width: 20px; height: 20px; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-menu { display: grid; }
  .nav > .btn { display: none; }
  .nav.is-open { border-radius: 16px; flex-wrap: wrap; padding-bottom: 12px; }
  .nav.is-open .nav-links { display: grid; width: 100%; order: 3; padding: 6px 2px 0; }
  .nav.is-open .nav-links a { font-size: 18px; padding: 14px 12px; }
  .nav.is-open > .btn { display: inline-flex; order: 4; width: 100%; margin-top: 6px; }
}
@media (max-width: 420px) { .brand-name small { display: none; } }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .rv { opacity: 0.85; transform: translateY(28px); transition: opacity var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 172px 0 0; overflow: clip; isolation: isolate; }
.hero-top { display: grid; justify-items: center; text-align: center; gap: var(--s3); }
.hero .lead { max-width: 60ch; text-align: center; color: #cfc3ec; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s2); }
.hero-stage { position: relative; margin: clamp(104px, 11vw, 160px) auto 0; max-width: 1320px; perspective: 1800px; }
.hero-stage .browser { transform-origin: 50% 0; will-change: transform; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 60px 120px -40px rgba(9, 9, 10, 0.95); }
.hero-note { text-align: center; color: var(--muted-foreground); font-size: var(--fs-md); margin: var(--s2) auto 0; max-width: 78ch; }

/* dawn horizon: the closing call's horizon turned into the opening. A dark dome
   holds the headline, its rim is lit white-pink, and the violet field below
   carries the product, ending in a rounded band. premium.js (Horizon) fits the
   dome to the content and adds the voice ripples and the light on the rim. */
.hz {
  --cx: 50%; --cy: 60px; --rx: 62vw; --ry: 600px; --edgeY: 400px; --rimY: 660px; --hzH: 1320px;
  position: absolute; z-index: -1; top: 0; left: clamp(8px, 1.2vw, 16px); right: clamp(8px, 1.2vw, 16px);
  height: var(--hzH); overflow: hidden; pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(var(--rx) var(--ry) at var(--cx) var(--cy), #030304 0 93%, rgba(3, 3, 4, 0.6) 98%, rgba(3, 3, 4, 0) 100.6%),
    radial-gradient(var(--rx) var(--ry) at var(--cx) var(--cy), rgba(255, 255, 255, 0) 97.6%, rgba(255, 255, 255, 0.45) 100%, rgba(255, 255, 255, 0) 102.2%),
    radial-gradient(var(--rx) var(--ry) at var(--cx) var(--cy), rgba(247, 159, 255, 0) 93%, rgba(247, 159, 255, 0.9) 100.4%, rgba(247, 159, 255, 0) 112%),
    radial-gradient(46% 420px at 0 calc(var(--edgeY) + 160px), rgba(247, 159, 255, 0.6), rgba(247, 159, 255, 0) 70%),
    radial-gradient(46% 420px at 100% calc(var(--edgeY) + 160px), rgba(247, 159, 255, 0.55), rgba(247, 159, 255, 0) 70%),
    linear-gradient(180deg, #300681 0, #ac24ff var(--edgeY), #8130ff calc(var(--rimY) + 240px), #6d6cff 100%);
}
/* fine grain so the big gradients stay silky, never banded */
.hz::after { content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hz .stars { -webkit-mask-image: radial-gradient(var(--rx) var(--ry) at var(--cx) var(--cy), #000 60%, transparent 90%); mask-image: radial-gradient(var(--rx) var(--ry) at var(--cx) var(--cy), #000 60%, transparent 90%); }
.hz-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hz-rim { fill: none; stroke: url(#hzRimG); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.65, 0, .35, 1) .3s; }
.hz.is-drawn .hz-rim { stroke-dashoffset: 0; }
/* voice ripples: rings leave the rim and fade into the field */
.hz-wave { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: view-box; animation: hz-wave 12s cubic-bezier(.2, .6, .35, 1) calc(var(--k) * -2.4s) infinite paused; }
.hz.is-live .hz-wave { animation-play-state: running; }
@keyframes hz-wave { 0% { transform: scale(1); opacity: 0; } 12% { opacity: 0.3; } 100% { transform: scale(1.5); opacity: 0; } }
/* the light on the rim: drifts on its own, follows a mouse along the horizon */
.hz-sun { position: absolute; left: 0; top: 0; width: 0; height: 0; mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s ease 1.2s; will-change: transform; }
.hz.is-drawn .hz-sun { opacity: 1; }
.hz-sun i { position: absolute; left: -360px; top: -70px; width: 720px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(247, 159, 255, 0.55) 32%, rgba(202, 69, 255, 0.18) 66%, rgba(202, 69, 255, 0)); }
.hz-sun i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 320px; height: 6px; margin: -3px 0 0 -160px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); }
@media (max-width: 700px) { .hz-sun i { left: -200px; top: -44px; width: 400px; height: 88px; } .hz-sun i::after { width: 160px; margin-left: -80px; } }

/* first paint: the horizon dawns, the words settle, the product rises */
.js .hero .h-ln, .js .hero .lead, .js .hero .hero-cta { animation: hero-in 1.1s var(--ease) var(--d, 0ms) both; }
.js .hero .h-ln { display: inline-block; }
.js .hz { animation: hz-in 2.2s cubic-bezier(.22, 1, .36, 1) 0.1s both; }
.js .hero-stage { animation: hero-rise 1.4s var(--ease) 0.45s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
@keyframes hz-in { from { opacity: 0; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(64px); } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .h-ln, .js .hero .lead, .js .hero .hero-cta, .js .hz, .js .hero-stage { animation: none; }
  .hz-rim { transition: none; stroke-dashoffset: 0; }
  .hz-wave { display: none; }
  .hz-sun { transition: none; }
}
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: var(--fs-md); line-height: 1.3;
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.8);
  animation: bob 7s ease-in-out infinite;
}
.float-chip b { display: block; font-size: var(--fs-lg); }
.float-chip span.i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.float-chip span.i svg { width: 20px; height: 20px; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }
@media (max-width: 1100px) { .float-chip { display: none; } }

/* ==========================================================================
   APP CHROME · the product's own UI (dashboards)
   ========================================================================== */
.browser { position: relative; background: var(--darkest); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--border-strong), 0 0 20px 20px #0d0d10; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #040405; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #1c1c20; }
.browser-bar .url { margin: 0 auto; transform: translateX(-24px); font-size: 12.69px; color: var(--grey-text-dark); background: #0e0e10; padding: 4px 16px; border-radius: var(--radius-pill); }

.app {
  --pad: 22px;
  position: relative;
  background: var(--ec-card-wide);
  color: #fff; font-size: var(--fs-md); line-height: 1.4;
  min-width: 0;
}
.app-top { display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); }
.app-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.app-logo svg { width: 28px; height: 28px; }
.app-logo small { display: block; font-weight: 500; font-size: 12.69px; color: var(--grey-text-dark); }
.app-state { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: rgba(172, 36, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.4); font-weight: 600; white-space: nowrap; }
.app-state svg { width: 16px; height: 16px; }
.app-nav { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); }
.app-nav button, .app-nav span {
  height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted-foreground);
  font-weight: 600; font-size: 13.8px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background-color var(--dur-instant), color var(--dur-instant);
}
.app-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.app-nav [aria-selected="true"], .app-nav .on { background: #fff; color: var(--ink); }
.app-nav svg { width: 15px; height: 15px; }
.app-tools { display: flex; align-items: center; gap: 10px; }
.app-tools i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); position: relative; }
.app-tools i svg { width: 16px; height: 16px; color: var(--muted-foreground); }
.app-tools i.dot::after { content: ""; position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.app-body { padding: 4px var(--pad) var(--pad); }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 16px; }
.app-head .ttl { margin: 0; font-weight: 600; font-size: 31px; letter-spacing: -0.02em; line-height: 1.05; }
.app-head p { margin: 5px 0 0; color: var(--muted-foreground); font-size: 13.8px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 0;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border-strong); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background-color var(--dur-instant);
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.1); }
.chip-btn svg { width: 15px; height: 15px; color: var(--muted-foreground); }
.chip-btn.primary { background-color: var(--blue); background-image: var(--ec-button); background-size: 300%; background-position: left; box-shadow: none; transition: background-position var(--dur-normal) var(--ease); }
.chip-btn.primary svg { color: #fff; }
.chip-btn.primary:hover { background-position: right; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--border); }
.kpi .ki { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(169, 151, 206, 0.12); color: var(--lilac); }
.kpi .ki svg { width: 19px; height: 19px; }
.kpi b { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; font-weight: 700; font-size: 12.69px; color: var(--success); }
.kpi em.dn { color: #ff8b99; }

.panel { position: relative; min-width: 0; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--border); }
.panel > .h5 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14.5px; font-weight: 700; }
.panel > .h5 small { font-weight: 600; font-size: 12.69px; color: var(--muted-foreground); }
.panel.lit { background: var(--ec-card); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.35); }
.panel.warm { background: var(--ec-card-wide); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.4); }
.grid { display: grid; gap: 10px; min-width: 0; }

.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: 82px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .tr { position: relative; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.hbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; transition: width var(--dur-normal) var(--ease); }
.hbar .tr i.ghost { background: rgba(255, 255, 255, 0.18) !important; }
.hbar b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted-foreground); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.up { color: var(--success); font-weight: 700; }
.dn { color: #ff8b99; font-weight: 700; }

.donut-row { display: flex; align-items: center; gap: 16px; }
.donut-row svg { flex-shrink: 0; }
.donut-leg { display: grid; gap: 8px; font-size: 13px; flex: 1; min-width: 0; }
.donut-leg div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.donut-leg span { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.donut-leg span i { width: 9px; height: 9px; border-radius: 50%; }
.donut-leg b { font-variant-numeric: tabular-nums; }

.issue-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.issue { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); display: grid; gap: 4px; justify-items: start; }
.issue svg { width: 20px; height: 20px; color: var(--lilac); }
.issue span { font-size: 13px; color: var(--muted-foreground); line-height: 1.25; }
.issue b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.issue em { font-style: normal; font-size: 12.69px; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 10px 12px; font-size: 12.3px; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-instant); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table .tn { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.table .tn i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(172, 36, 255, 0.16); color: var(--lilac); }
.table .tn i svg { width: 15px; height: 15px; }
.pbar { display: inline-block; width: 120px; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); overflow: hidden; vertical-align: middle; margin-right: 10px; }
.pbar i { display: block; height: 100%; border-radius: 7px; background: var(--grad-line); }
.xscroll { overflow-x: auto; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted-foreground); }

/* app map */
.amap { position: relative; display: grid; place-items: center; }
.amap svg { width: 100%; height: auto; overflow: visible; }
.mp-ac, .mp-d { transition: fill var(--dur-fast) var(--ease), opacity var(--dur-instant), stroke var(--dur-instant); }
.mp-ac { stroke-width: 0.6; }
.mp-d { fill: transparent; stroke: #030303; stroke-width: 1.4; cursor: pointer; }
.mp-d:hover { stroke: #fff; stroke-width: 1.8; }
.mp-d.sel { stroke: #fff; stroke-width: 2.6; }
.lvl-ac .mp-ac { cursor: pointer; }
.lvl-ac .mp-ac:hover { stroke: #fff; stroke-width: 1.4; }
.lvl-ac .mp-d { pointer-events: none; stroke: rgba(3, 3, 3, 0.9); stroke-width: 1.6; }
.mp-ac.sel { stroke: #fff; stroke-width: 2.4; }
.mp-ac.dim, .mp-d.dim { opacity: 0.18; }
.mp-label { font-family: var(--font); font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(4, 4, 5, 0.85); stroke-width: 3.2px; stroke-linejoin: round; pointer-events: none; }
.mp-label.big { font-size: 15px; }
.mp-glow { filter: drop-shadow(0 0 18px rgba(172, 36, 255, 0.55)) drop-shadow(0 0 40px rgba(254, 136, 27, 0.25)); }
.map-tip { position: absolute; z-index: 8; pointer-events: none; min-width: 190px; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.35; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(4px); transition: opacity 120ms, transform 120ms; }
.map-tip b { display: block; font-size: 15px; }
.map-tip.show { opacity: 1; transform: none; }
.map-tip .mt-row { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-2); }
.map-tip .mt-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ramp { height: 10px; border-radius: 10px; }
.ramp-ticks { display: flex; justify-content: space-between; font-size: 12.69px; color: var(--muted-foreground); margin-top: 5px; }

/* overview layout (hero + gallery) */
.ov { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 12px; }
.ov-map { position: relative; border-radius: var(--radius-sm); padding: 14px; background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ov-map .amap { flex: 1; }
.ov-map-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.ov-map-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.ov-legend { width: min(300px, 100%); padding: 10px 14px; border-radius: 14px; background: rgba(4, 4, 5, 0.7); box-shadow: inset 0 0 0 1px var(--border); }
.ov-legend b { display: block; font-size: 12.3px; margin-bottom: 7px; }
.dpanel { border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--ec-card-wide); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.4); min-width: 0; }
.dp-head { display: flex; align-items: center; gap: 14px; }
.dp-head .crest { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; }
.dp-head .h5 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.dp-head .h5 span { color: var(--muted-foreground); font-weight: 500; }
.dp-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted-foreground); }
.dp-pick { margin-left: auto; position: relative; }
.dp-pick select { appearance: none; height: 38px; padding: 0 34px 0 14px; border-radius: var(--radius-pill); border: 0; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border-strong); color: #fff; font-weight: 600; font-size: 13px; max-width: 170px; }
.dp-pick select:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.dp-pick select option { background: #0e0e11; color: #fff; }
.dp-pick svg { position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; color: var(--muted-foreground); }
.dp-tabs { display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); overflow-x: auto; scrollbar-width: none; }
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tabs button { flex: 1; height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted-foreground); font-weight: 600; font-size: 13px; white-space: nowrap; }
.dp-tabs button:hover { color: #fff; }
.dp-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.dp-body { display: grid; gap: 10px; min-width: 0; }
.dp-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.trend-pill { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: rgba(61, 220, 151, 0.08); }
.trend-pill b { font-size: 22px; color: var(--success); }
.trend-pill span { font-size: 13px; color: var(--muted-foreground); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted-foreground); }
.vquote { padding: 13px 15px; border-radius: 14px; background: rgba(172, 36, 255, 0.10); display: grid; gap: 6px; }
.vquote .te { font-size: 14.5px; line-height: 1.6; }
.vquote .en { font-size: 13.5px; color: #d9cff3; }
.vquote small { font-size: 12.69px; color: var(--muted-foreground); }
.player { display: flex; align-items: center; gap: 10px; }
.player button { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--ink); }
.player button svg { width: 13px; height: 13px; }
.player .wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.player .wave i { flex: 1; border-radius: 2px; background: rgba(221, 149, 255, 0.4); }
.player .wave i.p { background: var(--lilac); }
.player time { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .ov { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { --pad: 13px; }
  .app-nav, .app-tools .hide-sm, .app-state { display: none; }
  .app-top { justify-content: space-between; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-2 { grid-template-columns: 1fr; }
  .issue-tiles { grid-template-columns: 1fr 1fr 1fr; }
  .app-head .ttl { font-size: 25px; }
  .browser-bar .url { display: none; }
}

/* ==========================================================================
   CONTENTS · "everything you get" (reference: tiles + detail panel)
   ========================================================================== */
.contents { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s3); align-items: stretch; }
/* reference "Vendor Outputs" panel: big title, chips low on a violet glow, borderless tiles,
   thin ring icons; the chosen tile gets a gradient edge, gradient icon and a warm under-glow */
.ct-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 3.2vw, 48px); display: flex; flex-direction: column; gap: var(--s3); min-height: 560px; background: var(--ec-card); }
.ct-panel::after { content: ""; position: absolute; left: -25%; right: 5%; bottom: -60%; height: 95%; background: radial-gradient(closest-side, rgba(129, 48, 255, 0.55), rgba(129, 48, 255, 0)); pointer-events: none; }
.ct-panel > * { position: relative; z-index: 1; }
.ct-panel h3 { font-size: clamp(32px, 3.4vw, 50px); letter-spacing: -0.025em; transition: opacity var(--dur-instant); }
.ct-panel p { margin: 0; color: #d9cff3; font-size: var(--fs-xl); max-width: 42ch; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ct-chips span { height: 46px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.075); font-size: 16px; font-weight: 500; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ct-tile {
  position: relative; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 182px; padding: 20px 12px;
  border: 1.5px solid transparent; border-radius: 24px; background: rgba(255, 255, 255, 0.028); color: var(--muted-foreground); text-align: center;
  font-weight: 500; font-size: 18px; line-height: 1.25;
  transition: background-color var(--dur-instant) var(--ease), color var(--dur-instant);
}
.ct-tile .ring { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; border: 1.2px solid rgba(169, 151, 206, 0.45); }
.ct-tile .ring::before, .ct-tile .ring::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(169, 151, 206, 0.75); }
.ct-tile .ring::before { left: 6.5px; top: 6.5px; }
.ct-tile .ring::after { right: 6.5px; bottom: 6.5px; }
.ct-tile .ring svg { width: 28px; height: 28px; }
.ct-tile .ring use { stroke-width: 1.5; }
.ct-tile:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.ct-tile[aria-pressed="true"] { color: #fff; background: linear-gradient(#070708, #070708) padding-box, linear-gradient(160deg, #8130ff, #ca45ff 60%, #f79fff) border-box; }
.ct-tile[aria-pressed="true"]::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -2px; height: 40px; background: radial-gradient(50% 100% at 50% 100%, rgba(254, 136, 27, 0.9), rgba(202, 69, 255, 0.55) 45%, rgba(129, 48, 255, 0) 80%); filter: blur(5px); pointer-events: none; }
.ct-tile[aria-pressed="true"] .ring { border-color: transparent; background: linear-gradient(#070708, #070708) padding-box, linear-gradient(135deg, #b997ff, #ca45ff 50%, #fe881b) border-box; }
.ct-tile[aria-pressed="true"] .ring::before { background: #b997ff; }
.ct-tile[aria-pressed="true"] .ring::after { background: #fe881b; }
@media (max-width: 960px) {
  .contents { grid-template-columns: 1fr; }
  .ct-panel { min-height: 0; }
  .ct-tile { min-height: 130px; font-size: var(--fs-md); gap: 12px; }
  .ct-tile .ring { width: 50px; height: 50px; }
  .ct-tile .ring svg { width: 22px; height: 22px; }
  .ct-tile .ring::before { left: 4.5px; top: 4.5px; }
  .ct-tile .ring::after { right: 4.5px; bottom: 4.5px; }
}

/* ==========================================================================
   LIGHT SHEETS
   ========================================================================== */
.sheet { position: relative; background: var(--light-grey); color: var(--ink); border-radius: var(--radius-lg); margin: 0 clamp(8px, 1.2vw, 16px); padding: clamp(78px, 9vw, 140px) 0; }
.sheet .lead { color: var(--ink-2); }
.sheet .muted { color: var(--ink-3); }
.sheet a:not(.btn) { color: var(--color-text-tertiary); }
.sheet .badge { background: var(--light-navy); color: var(--ink-2); }

/* problem / solution */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.ps-col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: var(--s3); }
.ps-old { background: #fff; }
.ps-new { background: var(--ink); color: #fff; }
.ps-col h3 { margin: 0; }
.ps-col > p { margin: 0; color: var(--ink-2); }
.ps-new > p { color: #d9cff3; }
.ps-art { height: 210px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.ps-old .ps-art { background: var(--light-navy); }
.ps-new .ps-art { background: rgba(255, 255, 255, 0.05); }
.ps-art svg { width: 100%; height: 100%; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ps-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; font-weight: 600; font-size: 16.5px; }
.ps-old .ps-list li { background: var(--light-grey); }
.ps-new .ps-list li { background: rgba(255, 255, 255, 0.07); }
.ps-list svg { width: 22px; height: 22px; flex-shrink: 0; }
.ps-old .ps-list svg { color: #c03852; }
.ps-new .ps-list svg { color: var(--orange); }
@media (max-width: 900px) { .ps { grid-template-columns: 1fr; } }

/* ==========================================================================
   SCALE
   ========================================================================== */
.zoom { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.zm { position: relative; border-radius: var(--radius-sm); padding: 18px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 10px; min-height: 330px; overflow: hidden; }
.zm canvas, .zm svg { width: 100%; height: 190px; object-fit: contain; }
.zm b { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.zm span { color: var(--muted-foreground); font-size: var(--fs-lg); }
.zm.hot { background: var(--ec-card); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.4); }
.ops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.op { border-radius: var(--radius-sm); padding: 20px 22px; background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.op b { display: block; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.op span { color: var(--muted-foreground); font-size: var(--fs-md); }
@media (max-width: 1000px) { .zoom { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zm:last-child { grid-column: 1 / -1; } .ops { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .zm { min-height: 0; } .zm canvas, .zm svg { height: 140px; } }

.ph-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--light-navy); color: var(--ink-2); }
.ph-pill.ok { background: #dcf8eb; color: #0c7a4b; }
.ph-pill.off { background: #fff1d6; color: #8a5a00; }
@keyframes vw { 50% { transform: scaleY(0.4); } }
@media (prefers-reduced-motion: reduce) { .rec, .mwave i { animation: none; } }

/* ==========================================================================
   SPEECH ENGINE
   ========================================================================== */
.engine { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s3); align-items: stretch; }
.engine-fig { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 640px; background: #f2f2ff; }
.engine-fig iframe { width: 100%; height: 100%; min-height: 640px; border: 0; display: block; }
.engine-side { display: grid; gap: 10px; align-content: start; }
.eng-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border); }
.eng-step i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.eng-step i svg { width: 20px; height: 20px; }
.eng-step b { display: block; font-size: var(--fs-xl); font-weight: 600; }
.eng-step span { color: var(--muted-foreground); font-size: var(--fs-lg); }
@media (max-width: 1000px) { .engine { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .engine-fig, .engine-fig iframe { min-height: 900px; } }

.voice { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: stretch; margin-top: clamp(52px, 6vw, 78px); }
.v-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.v-card .sm { font-size: var(--fs-md); font-weight: 700; color: var(--ink-3); }
.v-card h4 { margin: 0; font-size: 23px; font-weight: 600; }
.v-wave { display: flex; align-items: center; gap: 3px; height: 84px; }
.v-wave i { flex: 1; border-radius: 3px; background: var(--violet); animation: vw 1.4s ease-in-out infinite; }
.v-te { font-family: var(--font-te); font-size: 17px; line-height: 1.75; }
.v-en { font-size: var(--fs-lg); color: var(--ink-2); }
.aspect { display: grid; gap: 8px; }
.aspect div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--light-grey); font-weight: 600; font-size: 15.5px; }
.sent { padding: 4px 11px; border-radius: 999px; font-size: 12.69px; font-weight: 800; white-space: nowrap; }
.sent.n { background: #e1e8ff; color: #1438c9; }
.sent.p { background: #ffe8d3; color: #9a4700; }
.sent.v { background: #f1e3ff; color: #6a14b8; }
.meter { height: 10px; border-radius: 10px; background: var(--light-navy); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--grad-warm); }
.v-arrow { display: grid; place-items: center; }
.v-arrow svg { width: 100%; height: 40px; }
@media (max-width: 1000px) { .voice { grid-template-columns: 1fr; } .v-arrow { height: 54px; transform: rotate(90deg); } }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.fact { border-radius: var(--radius-sm); padding: 22px 24px; background: var(--light-navy); }
.fact b { display: block; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.fact p { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-lg); }
@media (max-width: 800px) { .facts3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   PRODUCTS · PERSONAS · FLOWS · SITEMAP · UX
   ========================================================================== */
.prod-tabs { display: flex; justify-content: center; margin-bottom: var(--s5); }
.prod { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(26px, 4vw, 64px); align-items: center; }
.prod[hidden] { display: none; }
.prod-copy { display: grid; gap: var(--s3); }
.prod-copy > p { margin: 0; color: var(--ink-2); font-size: var(--fs-xl); }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flist li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 10px 0; }
.flist i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: 0 8px 20px -14px rgba(26, 11, 84, 0.45); }
.flist i svg { width: 21px; height: 21px; }
.flist b { display: block; font-size: 17.5px; font-weight: 700; }
.flist span { color: var(--ink-2); font-size: 15.5px; }
.prod-art { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(10px, 1.6vw, 22px); background: radial-gradient(120% 90% at 50% 0%, #1d1d21, #060607 70%); box-shadow: 0 40px 80px -50px rgba(26, 11, 84, 0.7); }
.prod.wide { grid-template-columns: 1fr; gap: var(--s4); }
.prod.wide .prod-copy { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); column-gap: clamp(26px, 4vw, 64px); align-items: center; }
.prod-lead { display: grid; align-content: center; gap: var(--s2); }
.prod-lead > p { margin: 0; color: var(--ink-2); font-size: var(--fs-xl); }
.prod-lead .demo-links { margin-top: 10px; }
.prod.wide .flist { grid-template-columns: 1fr 1fr; gap: 14px; }
.prod.wide .flist li {
  grid-template-columns: 42px 1fr; gap: 13px; align-items: start;
  padding: 17px 19px; border-radius: var(--radius-sm); background: #fff;
  box-shadow: 0 16px 36px -28px rgba(26, 11, 84, .65);
  transition: transform var(--dur-instant) var(--ease), box-shadow var(--dur-instant) var(--ease);
}
.prod.wide .flist li:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -26px rgba(26, 11, 84, .6); }
.prod.wide .flist i { width: 42px; height: 42px; border-radius: 12px; background: var(--light-navy); box-shadow: none; }
.prod.wide .flist i svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .prod { grid-template-columns: 1fr; } .prod.wide .prod-copy { grid-template-columns: 1fr; row-gap: var(--s4); } }
@media (max-width: 560px) { .prod.wide .flist { grid-template-columns: 1fr; } }

/* personas: a dossier with one accent. Greys are white at set strengths, violet marks only
   what is selected or designed with extra care. */
#people { --pa: #8130ff; --pa-t: #b997ff; --pbg: #0f0f11; --pl: rgba(255, 255, 255, 0.08); --p2: rgba(255, 255, 255, 0.76); --p3: rgba(255, 255, 255, 0.58); }
.per-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s4); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.per-head .h2 span { color: var(--p3); }
.per-head .lead { color: var(--p2); max-width: 46ch; }
.per-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p2); }
.per-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--pa); }

.per { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-radius: 28px; background: var(--pbg); box-shadow: inset 0 0 0 1px var(--pl), 0 40px 80px -40px rgba(2, 2, 2, 0.8); overflow: hidden; }
.per-side { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-right: 1px solid var(--pl); background: rgba(0, 0, 0, 0.14); }
.per-side-h { display: flex; justify-content: space-between; padding: 14px 16px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p3); }
.per-index { display: grid; gap: 4px; }
.per-tab { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; padding: 16px 16px; border: 0; border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 200ms var(--ease); }
.per-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 26px; margin-top: -13px; border-radius: 0 3px 3px 0; background: var(--pa); transform: scaleY(0); transition: transform 300ms var(--ease); }
.pt-n { font-size: 13px; font-weight: 600; color: var(--p3); font-variant-numeric: tabular-nums; transition: color 200ms; }
.pt-t b { display: block; font-size: 17px; font-weight: 600; color: #fff; line-height: 1.25; }
.pt-t small { display: block; font-size: 13.5px; color: var(--p3); margin-top: 2px; }
.pt-c { width: 16px; height: 16px; color: var(--p3); transform: rotate(-90deg); opacity: 0; transition: opacity 200ms, transform 300ms var(--ease); }
.per-tab:hover { background: rgba(255, 255, 255, 0.03); }
.per-tab:hover .pt-c { opacity: 1; }
.per-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.06); }
.per-tab[aria-selected="true"]::before { transform: scaleY(1); }
.per-tab[aria-selected="true"] .pt-n { color: var(--pa-t); }
.per-tab[aria-selected="true"] .pt-t small { color: var(--p2); }
.per-tab[aria-selected="true"] .pt-c { opacity: 1; color: #fff; transform: rotate(-90deg) translateY(2px); }
.per-tab:focus-visible { outline: 2px solid var(--pa-t); outline-offset: -2px; }
.per-side-note { margin: auto 0 0; padding: 18px 16px 10px; border-top: 1px solid var(--pl); font-size: 13.5px; line-height: 1.5; color: var(--p3); }

.per-body { min-width: 0; display: grid; align-content: start; }
.per-body > * { opacity: 0; transform: translateY(10px); }
.per-body.in > * { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.per-body.in > :nth-child(2) { transition-delay: 50ms; }
.per-body.in > :nth-child(3) { transition-delay: 100ms; }
.per-body.in > :nth-child(4) { transition-delay: 150ms; }
.per-body.in > :nth-child(5) { transition-delay: 200ms; }
.pb-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(24px, 3vw, 38px) clamp(22px, 3.2vw, 44px) 0; }
.pb-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--pl); color: #fff; }
.pb-mark svg { width: 26px; height: 26px; }
.pb-id h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pb-id h3 span { color: var(--p3); font-weight: 500; }
.pb-id p { margin: 6px 0 0; font-size: 15.5px; color: var(--p2); }
.pb-app { display: grid; justify-items: end; gap: 10px; }
.pb-count { font-size: 13px; font-weight: 600; color: var(--p3); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.pb-badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--pl); font-size: 13.5px; font-weight: 600; color: var(--p2); white-space: nowrap; }
.pb-badge svg { width: 15px; height: 15px; }
.pb-quote { margin: clamp(24px, 2.6vw, 34px) clamp(22px, 3.2vw, 44px); padding-left: 22px; border-left: 2px solid var(--pa); }
.pb-quote p { margin: 0; max-width: 34ch; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.38; font-weight: 500; letter-spacing: -0.012em; color: #fff; text-wrap: balance; }
.pb-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 clamp(22px, 3.2vw, 44px); border-block: 1px solid var(--pl); }
.pb-spec div { padding: 16px 18px; border-left: 1px solid var(--pl); }
.pb-spec div:first-child { padding-left: 0; border-left: 0; }
.pb-spec dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p3); }
.pb-spec dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 600; color: #fff; }
.pb-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); padding: 26px clamp(22px, 3.2vw, 44px) 30px; }
.pb-lists h4 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p3); }
.pb-lists ul { list-style: none; margin: 0; padding: 0; }
.pb-lists li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--pl); font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.pb-lists li:last-child { border-bottom: 0; }
.pb-lists li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.pb-lists .goal svg { color: var(--pa-t); }
.pb-lists .pain svg { color: var(--p3); }

.pb-journey { padding: 28px clamp(22px, 3.2vw, 44px) clamp(30px, 3.4vw, 42px); border-top: 1px solid var(--pl); background: rgba(255, 255, 255, 0.015); }
.pj-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pj-h h4 { margin: 0; font-size: 19px; font-weight: 600; }
.pj-h span { font-size: 13.5px; color: var(--p3); }
.pj-h em { font-style: normal; color: var(--pa-t); font-weight: 700; }
.pj { --node: 44px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.pj::before, .pj::after { content: ""; position: absolute; top: calc(var(--node) / 2); left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 1px; background: rgba(255, 255, 255, 0.14); }
.pj::after { height: 2px; margin-top: -0.5px; background: linear-gradient(90deg, rgba(129, 48, 255, 0.15), var(--pa)); transform: scaleX(0); transform-origin: left; }
.per-body.in .pj::after { transform: scaleX(1); transition: transform 1400ms var(--ease) 250ms; }
.pj li { position: relative; display: grid; align-content: start; justify-items: center; gap: 14px; padding: 0 6px; text-align: center; }
.pj i { position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; background: var(--pbg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.86); }
.pj i svg { width: 18px; height: 18px; }
.pj b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #fff; text-wrap: balance; }
.pj small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--p3); }
.pj em { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(129, 48, 255, 0.16); font-size: 11.5px; font-weight: 700; font-style: normal; color: var(--pa-t); }
.pj li.key i { background: var(--pa); box-shadow: 0 0 0 6px rgba(129, 48, 255, 0.16); color: #fff; }
.pj li { opacity: 0; transform: translateY(8px); }
.per-body.in .pj li { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 600ms var(--ease); transition-delay: calc(250ms + var(--k) * 90ms); }

@media (max-width: 1100px) {
  .per { grid-template-columns: 250px minmax(0, 1fr); }
  .pj { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pj::before, .pj::after { top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); left: calc(var(--node) / 2); right: auto; width: 1px; height: auto; }
  .pj::after { width: 2px; margin: 0 0 0 -0.5px; background: linear-gradient(180deg, rgba(129, 48, 255, 0.15), var(--pa)); transform: scaleY(0); transform-origin: top; }
  .per-body.in .pj::after { transform: scaleY(1); }
  .pj li { grid-template-columns: var(--node) minmax(0, 1fr); justify-items: start; align-items: center; gap: 16px; padding: 7px 0; text-align: left; }
  .pj li em { margin-top: 6px; }
}
@media (max-width: 900px) {
  .per-head { grid-template-columns: 1fr; gap: var(--s2); }
  .per { grid-template-columns: minmax(0, 1fr); }
  .per-side { border-right: 0; border-bottom: 1px solid var(--pl); padding: 10px; }
  .per-side-h, .per-side-note { display: none; }
  .per-index { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .per-index::-webkit-scrollbar { display: none; }
  .per-tab { width: auto; flex: 0 0 auto; grid-template-columns: auto auto; padding: 12px 16px; scroll-snap-align: start; }
  .per-tab::before { left: 16px; right: 16px; top: auto; bottom: 0; width: auto; height: 2px; margin: 0; border-radius: 2px 2px 0 0; transform: scaleX(0); }
  .per-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .pt-c { display: none; }
  .pb-top { grid-template-columns: auto minmax(0, 1fr); }
  .pb-app { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .pb-spec { grid-template-columns: 1fr 1fr; }
  .pb-spec div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pb-spec div:nth-child(n + 3) { border-top: 1px solid var(--pl); }
  .pb-lists { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .per-body > *, .pj li { opacity: 1; transform: none; transition: none !important; }
  .pj::after { transform: none !important; transition: none !important; }
}

/* sitemap */
.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.sm-col { border-radius: var(--radius-lg); padding: 24px; background: #fff; display: grid; gap: 14px; align-content: start; }
.sm-col header { display: flex; align-items: center; gap: 12px; }
.sm-col header i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.sm-col header i svg { width: 21px; height: 21px; }
.sm-col header b { display: block; font-size: 19px; }
.sm-col header small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tree { list-style: none; margin: 0; padding: 0 0 0 10px; display: grid; gap: 6px; }
.tree li { position: relative; padding-left: 20px; }
.tree li::before { content: ""; position: absolute; left: 0; top: -6px; bottom: 50%; width: 14px; border-left: 2px solid var(--ink-line); border-bottom: 2px solid var(--ink-line); border-bottom-left-radius: 9px; }
.tree > li > span, .tree ul li > span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 12px; background: var(--light-navy); font-weight: 600; font-size: 14.5px; }
.tree ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; display: grid; gap: 5px; }
.tree ul li > span { background: var(--light-grey); font-weight: 500; font-size: 13.5px; min-height: 30px; }
.sm-root { display: flex; justify-content: center; margin-bottom: var(--s2); }
.sm-root span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-weight: 600; }
.sm-root svg { width: 24px; height: 24px; }
@media (max-width: 960px) { .smap { grid-template-columns: 1fr; } }

/* UX strategy */
.ux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.ux-p { border-radius: var(--radius-lg); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.ux-p .demo { height: 104px; border-radius: 16px; background: var(--light-navy); display: grid; place-items: center; overflow: hidden; padding: 10px; }
.ux-p h4 { margin: 0; font-size: 19px; font-weight: 700; }
.ux-p p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1100px) { .ux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ux { grid-template-columns: 1fr; } .ux-p { min-height: 0; } }

/* ==========================================================================
   MAP EXPLORER
   ========================================================================== */
.mapx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); gap: var(--s2); }
.mapx-main { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 760px; padding: 20px; border-radius: var(--radius-lg); background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border); }
.mapx-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; z-index: 5; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--input); color: #fff; font-size: var(--fs-lg); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--purple); }
.search > svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.results { position: absolute; top: 54px; left: 0; right: 0; max-height: 320px; overflow: auto; padding: 6px; border-radius: var(--radius-sm); background: var(--popover); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--border-strong); display: none; }
.results.show { display: block; }
.results button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 14.5px; }
.results button:hover, .results button.act { background: rgba(255, 255, 255, 0.08); }
.results small { color: var(--muted-foreground); }
.mapx-svg { position: relative; flex: 1; display: grid; place-items: center; }
.mapx-svg svg { width: 100%; height: auto; max-height: 600px; }
.mapx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; position: relative; z-index: 2; }
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.region-chips button { height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font-size: 13.5px; font-weight: 600; }
.region-chips button:hover { color: #fff; }
.region-chips button[aria-pressed="true"] { background: rgba(172, 36, 255, 0.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.7); }
.mapx .dpanel { border-radius: var(--radius-lg); padding: 22px; }
.mapx .dp-head .h5 { font-size: 28px; }
@media (max-width: 1080px) { .mapx { grid-template-columns: 1fr; } .mapx-main { min-height: 0; } }

/* ==========================================================================
   DASHBOARD GALLERY
   ========================================================================== */
.gal-note { text-align: center; color: var(--muted-foreground); font-size: var(--fs-md); margin: var(--s2) auto 0; max-width: 78ch; }
.feat-survey { position: relative; overflow: hidden; border-radius: var(--radius-sm); padding: 20px; min-height: 210px; display: grid; align-content: space-between; background: var(--ec-warm); }
.feat-survey .h5 { margin: 8px 0 6px; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; max-width: 13ch; }
.feat-survey p { margin: 0; font-size: 13px; color: #efe6ff; display: flex; gap: 14px; flex-wrap: wrap; }
.feat-survey svg.fs-map { position: absolute; right: -10px; bottom: -20px; width: 46%; opacity: 0.95; }
.timeline { display: grid; gap: 4px; }
.tl { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; position: relative; font-size: 13.2px; }
.tl i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.tl i svg { width: 11px; height: 11px; }
.tl.done i { background: var(--success); color: #0b2a1d; }
.tl.now i { background: #fff; box-shadow: 0 0 0 4px rgba(172, 36, 255, 0.5); }
.tl small { color: var(--muted-foreground); font-size: 12.69px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.filters .grow { flex: 1; }
.fchip { height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted-foreground); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.fchip:hover { color: #fff; }
.fchip[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.mini-search { position: relative; }
.mini-search input { height: 40px; width: 240px; max-width: 100%; padding: 0 14px 0 38px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border-strong); color: #fff; font-size: 13.5px; }
.mini-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--purple); }
.mini-search svg { position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted-foreground); }
.heat { display: grid; gap: 4px; font-size: 12px; }
.heat .hc { height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12.3px; font-variant-numeric: tabular-nums; }
.heat .hl { display: flex; align-items: center; color: var(--muted-foreground); font-weight: 600; }
.heat .hh { color: var(--muted-foreground); font-weight: 600; text-align: center; font-size: 12.69px; }
.agent { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.agent:last-child { border-bottom: 0; }
.agent .av2 { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; color: #fff; }
.agent .meta { flex: 1; min-width: 0; }
.agent .meta small { display: block; color: var(--muted-foreground); }
.qc { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.qc:last-child { border-bottom: 0; }
.qc i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 90, 110, 0.12); color: #ff8b99; }
.qc i svg { width: 16px; height: 16px; }
.qc small { display: block; color: var(--muted-foreground); }
.qc-acts { display: flex; gap: 6px; }
.qc-acts button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); font-weight: 700; font-size: 12px; background: rgba(255, 255, 255, 0.07); color: #fff; }
.qc-acts button.ok { background: rgba(61, 220, 151, 0.16); color: var(--success); }
.qc.resolved { opacity: 0.45; }
.paper { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.paper .h6 { margin: 0; font-size: 20px; line-height: 1.15; }
.paper .pp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paper .pp-row div { background: var(--light-navy); border-radius: 10px; padding: 10px; }
.paper .pp-row b { display: block; font-size: 20px; }
.paper .pp-row span { font-size: 11.5px; color: var(--ink-3); }
.paper .method { font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--ink-line); padding-top: 10px; }
.rep { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 0; background: transparent; color: #fff; text-align: left; width: 100%; font-size: 13.5px; transition: background-color var(--dur-instant); }
.rep:hover { background: rgba(255, 255, 255, 0.04); }
.rep[aria-pressed="true"] { background: rgba(172, 36, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.5); }
.rep i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(43, 167, 255, 0.14); color: var(--sky); }
.rep i svg { width: 17px; height: 17px; }
.rep small { display: block; color: var(--muted-foreground); }
.rep > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
.rep b { display: block; font-weight: 600; }
.ai-hero { position: relative; overflow: hidden; border-radius: var(--radius-sm); padding: 26px 22px 20px; display: grid; justify-items: center; gap: 14px; text-align: center; background: var(--ec-card-wide); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.4); }
.ai-hero .spark { width: 50px; height: 50px; border-radius: 16px; }
.ai-hero .h5 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; max-width: 24ch; }
.ai-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ai-sugg button { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border-strong); color: #fff; font-size: 13px; font-weight: 600; text-align: left; transition: background-color var(--dur-instant); }
.ai-sugg button:hover { background: rgba(172, 36, 255, 0.18); }
.ai-sugg svg { width: 16px; height: 16px; color: var(--lilac); flex-shrink: 0; }
.qlist { display: grid; gap: 6px; }
.qlist button { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--border); color: #fff; font-size: 13px; font-weight: 600; text-align: left; }
.qlist button:hover { background: rgba(255, 255, 255, 0.08); }
.qlist svg { width: 15px; height: 15px; color: var(--muted-foreground); flex-shrink: 0; }
.src-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.src-row:last-of-type { border-bottom: 0; }
.src-row span { color: var(--muted-foreground); display: flex; gap: 8px; align-items: center; }
.src-row span svg { width: 15px; height: 15px; }
.src-row b { font-variant-numeric: tabular-nums; }
.insights { display: grid; gap: 8px; counter-reset: ins; }
.insights div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); font-size: 13.5px; line-height: 1.4; }
.insights div::before { counter-increment: ins; content: counter(ins); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(254, 136, 27, 0.16); color: #ffad61; }
.ai-answer { min-height: 300px; }
.ai-answer .think { display: grid; gap: 8px; padding: 6px 0; }
@media (max-width: 1100px) { .ai-sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ai-sugg { grid-template-columns: 1fr; } }

/* ==========================================================================
   ASK THE DATA (chat)
   ========================================================================== */
#ask { overflow: clip; }
#ask .wrap { position: relative; z-index: 1; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: var(--s2); }
.chat { display: flex; flex-direction: column; min-height: 760px; max-height: 900px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(14, 14, 17, 0.92); box-shadow: inset 0 0 0 1px var(--border-strong), 0 50px 100px -50px rgba(0, 0, 0, 1); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: rgba(255, 255, 255, 0.03); }
.chat-head b { display: block; font-size: 16.5px; }
.chat-head small { color: var(--muted-foreground); font-size: 13px; }
.chat-head .badge { margin-left: auto; }
.spark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--grad-warm); color: #fff; }
.spark svg { width: 21px; height: 21px; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.chat-empty { margin: auto; max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 14px 0; }
.chat-empty .spark { width: 68px; height: 68px; border-radius: 22px; box-shadow: 0 0 60px -10px rgba(172, 36, 255, 0.9); }
.chat-empty .spark svg { width: 32px; height: 32px; }
.chat-empty h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.chat-empty p { margin: 0; color: var(--muted-foreground); }
.msg-q { align-self: flex-end; max-width: 80%; padding: 13px 18px; border-radius: 22px 22px 6px 22px; background: var(--primary); color: #fff; font-weight: 600; }
.msg-a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
.msg-a .spark { width: 38px; height: 38px; border-radius: 12px; }
.msg-a .spark svg { width: 18px; height: 18px; }
.a-body { display: grid; gap: 12px; min-width: 0; }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.a-text { font-size: 16.5px; line-height: 1.6; }
.a-text b { color: #ffbf85; font-weight: 700; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.a-steps { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted-foreground); }
.a-steps div { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-instant), transform var(--dur-instant) var(--ease); }
.a-steps div.show { opacity: 1; transform: none; }
.a-steps svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
.a-steps .spin { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--lilac); animation: spin 0.8s linear infinite; }
.a-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.a-foot button { height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.a-foot button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.a-foot svg { width: 14px; height: 14px; }
.sql { display: none; margin: 0; padding: 13px 15px; border-radius: 14px; background: #040405; color: #d7c8ff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }
.sql.show { display: block; }
.refuse { padding: 14px 16px; border-radius: 14px; background: rgba(255, 214, 0, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 214, 0, 0.3); color: #fff2b0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 14px; }
.chips button { height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border-strong); color: #fff; font-weight: 600; font-size: 14px; transition: background-color var(--dur-instant), transform var(--dur-instant) var(--ease); }
.chips button:hover { background: rgba(172, 36, 255, 0.22); transform: translateY(-1px); }
.chat-input { display: flex; align-items: center; gap: 8px; margin: 0 22px 22px; padding: 7px 7px 7px 20px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--input); transition: box-shadow var(--dur-instant); }
.chat-input:focus-within { box-shadow: inset 0 0 0 2px var(--purple); }
.chat-input.err { box-shadow: inset 0 0 0 2px var(--destructive); }
.chat-input input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font-size: 16.5px; }
.chat-input input:focus { outline: none; }
.chat-input .mic { width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: var(--muted-foreground); display: grid; place-items: center; }
.chat-input .mic:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.chat-input .send { width: 54px; height: 46px; border: 0; border-radius: var(--radius-pill); background: var(--primary); color: #fff; display: grid; place-items: center; transition: background-color var(--dur-instant), opacity var(--dur-instant); }
.chat-input .send:hover { background: var(--navy); }
.chat-input .send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-input svg { width: 20px; height: 20px; }
.input-err { margin: -14px 22px 18px; color: #ff8b99; font-size: 13.5px; min-height: 0; }
.ask-side { display: grid; gap: var(--s2); align-content: start; }
.side-card { border-radius: var(--radius-lg); padding: 22px; background: rgba(14, 14, 17, 0.92); box-shadow: inset 0 0 0 1px var(--border); }
.side-card h4 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-size: 16.5px; }
.side-card h4 svg { width: 18px; height: 18px; color: var(--lilac); }
.uses { display: grid; gap: 8px; }
.uses button { display: grid; grid-template-columns: 38px 1fr 16px; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.04); color: #fff; text-align: left; transition: background-color var(--dur-instant); }
.uses button:hover { background: rgba(255, 255, 255, 0.09); }
.uses i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(172, 36, 255, 0.18); color: var(--pink); }
.uses i svg { width: 17px; height: 17px; }
.uses b { display: block; font-size: 14.5px; }
.uses small { color: var(--muted-foreground); font-size: 12.69px; }
.uses > button > svg { width: 16px; height: 16px; color: var(--muted-foreground); }
.how-ai { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.how-ai li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted-foreground); }
.how-ai li i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #fff; }
.how-ai li i svg { width: 16px; height: 16px; }
.how-ai b { color: #fff; }
@media (max-width: 1080px) { .ask-grid { grid-template-columns: 1fr; } .chat { min-height: 640px; } }

/* ==========================================================================
   BEYOND THE BRIEF
   ========================================================================== */
.cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.cmp-col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.cmp-col.theirs { background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.cmp-col.ours { background: var(--ec-card-wide); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.5); }
.cmp-col h3 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.cmp-col > p { margin: -8px 0 0; color: var(--muted-foreground); }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 16px; }
.clist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted-foreground); }
.ours .clist svg { color: var(--orange); }
.ours .clist li.new::after { content: "Added"; margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(254, 136, 27, 0.16); color: #ffad61; }
@media (max-width: 900px) { .cmp2 { grid-template-columns: 1fr; } }

.swing-card { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: 14px; align-content: start; max-width: 760px; margin: clamp(64px, 7vw, 104px) auto 0; }
.swing-card h4 { margin: 0; font-size: 23px; font-weight: 600; }
.swing-card p { margin: 0; color: var(--muted-foreground); font-size: var(--fs-lg); }
.swing-card svg { width: 100%; height: auto; }

/* ==========================================================================
   SAVINGS
   ========================================================================== */
/* ========================= SAVINGS CONSOLE (one screen) ========================= */
#savings .sheet { padding: clamp(22px, min(4.4vw, 4.4vh), 64px) 0; }
@media (min-width: 1001px) { #savings .sheet { min-height: 100svh; display: grid; align-content: center; } }

.cx {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg); padding: clamp(16px, min(2vw, 3.3vh), 30px);
  background: var(--ec-card-wide);
  box-shadow: inset 0 0 0 1px var(--border-strong), 0 46px 100px -58px rgba(26, 11, 84, 0.75);
  display: grid; gap: clamp(12px, min(1.5vw, 2.45vh), 22px);
}
.cx-glow { position: absolute; z-index: -1; inset: 18% -6% -24% -6%; pointer-events: none;
  background: radial-gradient(34% 52% at 86% 64%, rgba(254, 136, 27, 0.40), rgba(254, 136, 27, 0) 72%),
              radial-gradient(34% 52% at 12% 70%, rgba(129, 48, 255, 0.46), rgba(129, 48, 255, 0) 72%);
  filter: blur(16px); }

.cx-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(14px, 2vw, 44px); align-items: end; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 12.3px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #c3b0ef; }
.cx-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(254, 136, 27, 0.18); }
.cx-head .h2 { margin: 0; font-size: clamp(24px, min(2.45vw, 4.2vh), 40px); line-height: 1.07; letter-spacing: -0.025em; }
.cx-lead { margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; color: #b7aad6; max-width: 54ch; }
.cx .grad { background-image: linear-gradient(96deg, #b98bff, #fe881b 68%, #ffb25e); }

.cx-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(10px, min(1.2vw, 2vh), 18px); }
.cx-in, .cx-out { position: relative; border-radius: var(--radius-sm); padding: clamp(13px, min(1.5vw, 2.45vh), 22px); }
.cx-in { background: rgba(13, 12, 18, 0.66); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: clamp(7px, min(0.95vw, 1.55vh), 14px); align-content: start; }
.cx-in h3 { margin: 0; font-size: 12.3px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #a398c6; }

.cx .rng { display: grid; gap: 3px; }
.cx .rng-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cx .rng-top label, .cx .rng-top .lbl { font-weight: 600; font-size: 14px; color: #e9e4f7; }
.cx .rng-top output { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.cx .rng small { font-size: 11.8px; line-height: 1.4; color: #8e82ae; }
.cx input[type="range"] { height: 24px; }
.cx input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, #8130ff 0 var(--p, 50%), rgba(255, 255, 255, 0.13) var(--p, 50%)); }
.cx input[type="range"]::-moz-range-track { height: 6px; background: rgba(255, 255, 255, 0.13); }
.cx input[type="range"]::-webkit-slider-thumb { border-radius: 50%; background: #fff; width: 19px; height: 19px; margin-top: -6.5px; box-shadow: inset 0 0 0 5px var(--violet), 0 4px 12px -2px rgba(0, 0, 0, 0.75); }
.cx input[type="range"]::-moz-range-thumb { width: 19px; height: 19px; border-width: 5px; }
.cx input[type="range"]:hover::-webkit-slider-thumb { box-shadow: inset 0 0 0 5px #a259ff, 0 0 0 5px rgba(172, 36, 255, 0.22); }
.cx .rng-rate { gap: 7px; }
.cx .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cx .presets button { height: 32px; padding: 0 13px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border); color: #cfc5e8; font-weight: 600; font-size: 12.3px; cursor: pointer; transition: background-color var(--dur-instant), color var(--dur-instant); }
.cx .presets button:hover { color: #fff; background: rgba(255, 255, 255, 0.13); }
.cx .presets button[aria-pressed="true"] { background: linear-gradient(96deg, #8130ff, #b65bff); color: #fff; box-shadow: 0 8px 20px -10px rgba(129, 48, 255, 1); }

.cx-out { background: rgba(13, 12, 18, 0.72); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: clamp(8px, min(1vw, 1.78vh), 16px); }
.cx-out > * { flex: 0 0 auto; }
.cx-out::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg, rgba(129, 48, 255, 0), #a259ff 28%, #fe881b 74%, rgba(254, 136, 27, 0)); }
.cx-hero { display: grid; gap: 1px; }
.cx-hero b { font-size: clamp(34px, min(4.5vw, 7.6vh), 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-hero > span { font-size: 12.3px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c3b0ef; }
.cx-hero p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: #ab9ecb; }

.cx .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx .vs > div { border-radius: 14px; padding: 11px 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); }
.cx .vs b { display: block; margin: 0 0 2px; font-size: clamp(19px, 1.85vw, 27px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx .vs small { display: block; font-weight: 600; font-size: 12.3px; color: #cdbff0; }
.cx .vs span { font-size: 11.5px; color: #8e82ae; }
.cx .vs .ours-c { background: rgba(254, 136, 27, 0.14); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.45); }
.cx .vs .ours-c b { color: #ffb978; }
.cx .vs .ours-c small { color: #f0c69e; }
.cx .vs .ours-c span { color: #c09a78; }

.cx-meter { display: grid; gap: 6px; }
.cx-mtop, .cx-mfoot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cx-mtop span { font-size: 11.3px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #a398c6; }
.cx-mtop b { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-tr { position: relative; height: 22px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.cx-tr i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 8px; transition: width var(--dur-fast) var(--ease); }
.cx-tr #bPaid { width: 100%; background: linear-gradient(90deg, #6625d8, #a259ff); }
.cx-tr #bOurs { min-width: 5px; background: linear-gradient(90deg, #fe881b, #ffb45e); box-shadow: 0 0 24px rgba(254, 136, 27, 0.85); }
.cx-mfoot { font-size: 12.3px; }
.cx-mfoot .mo { color: #ffb978; font-weight: 600; }
.cx-mfoot .mo b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-mfoot .mk { color: #8e82ae; }

.cx .cum { margin-top: auto; }
.cx .cum svg { display: block; width: 100%; height: clamp(52px, 7.4vh, 92px); }
.cx .cum-leg { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 7px 0 0; font-size: 11.3px; color: #8e82ae; }
.cx .cum-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cx .cum-leg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.cx-foot { display: grid; gap: 8px; }
.cx-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cx-chip { display: flex; align-items: center; border-radius: 14px; padding: 10px 15px; background: rgba(13, 12, 18, 0.62); box-shadow: inset 0 0 0 1px var(--border); }
.cx-chip > b { font-size: clamp(16px, 1.35vw, 20px); font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.cx-chip > b span { font-size: 0.62em; font-weight: 600; color: #a398c6; }
.cx-chip > div { min-width: 0; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.cx-chip .who { display: block; font-size: 12.3px; font-weight: 600; color: #cdbff0; }
.cx-chip p { margin: 1px 0 0; font-size: 11.5px; line-height: 1.35; color: #8e82ae; }
.cx .src { margin: 0; font-size: 11.5px; line-height: 1.45; color: #8e82ae; }
.cx-chip.ours { background: rgba(254, 136, 27, 0.12); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.42); }
.cx-chip.ours > b { color: #ffb978; }
.cx-chip.ours > b span { color: #c09a78; }
.cx-chip.ours .who { color: #f0c69e; }
.cx-chip.ours > div { border-left-color: rgba(254, 136, 27, 0.3); }
.cx-chip.ours p { color: #bb9475; }
.sheet .cx a { color: #dcccff; text-decoration: underline; text-underline-offset: 2px; }
.sheet .cx a:hover { color: #fff; }

@media (min-width: 1001px) and (max-height: 860px) {
  .cx-eyebrow { margin-bottom: 7px; }
  .cx-head .h2 { font-size: clamp(22px, min(2.3vw, 3.7vh), 34px); }
  .cx .cum svg { height: clamp(46px, 6.4vh, 80px); }
  .cx .rng-top output { font-size: 19px; }
  .cx .rng small { font-size: 11.2px; }
  .cx input[type="range"] { height: 21px; }
  .cx .vs > div { padding: 9px 13px; }
  .cx-chip { padding: 8px 13px; }
  .cx-tr { height: 20px; }
}
@media (max-width: 1100px) {
  .cx-head { grid-template-columns: 1fr; align-items: start; }
  .cx-grid { grid-template-columns: 1fr; }
  .cx-rates { grid-template-columns: 1fr; }
  .cx .cum svg { height: 110px; }
}
@media (max-width: 560px) {
  .cx .vs { grid-template-columns: 1fr; }
  .cx .vs b { font-size: 24px; }
}

/* ==========================================================================
   MONTHLY COSTS
   ========================================================================== */
.monthly { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s2); }
.mc-table { border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 30px); background: var(--color-surface-muted); box-shadow: inset 0 0 0 1px var(--border); }
.mc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mc-rows { display: grid; gap: 8px; }
.mc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 44px; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); transition: opacity var(--dur-instant); }
.mc-row.off { opacity: 0.45; }
.mc-row .nm input { width: 100%; padding: 4px 0; border: 0; background: none; font-weight: 700; font-size: 15.5px; }
.mc-row .nm input:focus { outline: none; box-shadow: 0 2px 0 var(--purple); }
.mc-row .nm small { display: block; color: var(--muted-foreground); font-size: 12.69px; }
.sw { width: 44px; height: 26px; border: 0; border-radius: 999px; background: #3a2d58; position: relative; transition: background-color var(--dur-instant); flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur-instant) var(--ease); }
.sw[aria-checked="true"] { background: var(--primary); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }
.amt { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--input); }
.amt:focus-within { box-shadow: inset 0 0 0 2px var(--purple); }
.amt.err { box-shadow: inset 0 0 0 2px var(--destructive); }
.amt span { color: var(--muted-foreground); font-weight: 700; }
.amt input { width: 100%; min-width: 0; border: 0; background: none; text-align: right; font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.amt input:focus { outline: none; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); color: var(--muted-foreground); }
.icon-btn:hover { background: rgba(255, 90, 110, 0.15); color: #ff8b99; }
.icon-btn svg { width: 18px; height: 18px; }
.mc-add { width: 100%; height: 54px; margin-top: 12px; border: 2px dashed var(--border-strong); border-radius: 16px; background: none; color: var(--muted-foreground); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mc-add:hover { border-color: var(--purple); color: #fff; }
.mc-add svg { width: 18px; height: 18px; }
.mc-sum { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--ec-card); box-shadow: inset 0 0 0 1px rgba(172, 36, 255, 0.4); display: grid; gap: 18px; align-content: start; }
.mc-sum .tot small { color: var(--muted-foreground); font-weight: 700; }
.mc-sum .tot b { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.dwrap { display: flex; align-items: center; gap: 18px; }
.dwrap svg { width: 130px; height: 130px; flex-shrink: 0; }
.mlegend { display: grid; gap: 6px; font-size: 13px; color: var(--muted-foreground); }
.mlegend div { display: flex; align-items: center; gap: 8px; }
.mlegend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mc-note { padding: 15px 17px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); font-size: 14.5px; color: var(--muted-foreground); }
.mc-note b { color: #fff; }
@media (max-width: 1000px) { .monthly { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mc-row { grid-template-columns: 44px minmax(0, 1fr) 44px; } .mc-row .amt { grid-column: 2 / 3; } }

/* ==========================================================================
   ENGAGEMENT
   ========================================================================== */
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); }
.pkg-inc { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 38px); background: #fff; }
.pkg-inc h3, .pkg-fees h3 { margin: 0 0 6px; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.inc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.inc div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--light-grey); font-weight: 600; font-size: 15px; }
.inc svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--violet); }
.pkg-fees { display: grid; gap: var(--s2); align-content: start; }
.fee { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.fee .fi { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.fee .fi svg { width: 24px; height: 24px; color: #fff; }
.fee h4 { margin: 0; font-size: 20px; font-weight: 600; }
.fee p { margin: 4px 0 12px; font-size: 15px; color: #d9cff3; }
.fee-in { display: flex; align-items: center; gap: 8px; max-width: 340px; height: 54px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.fee-in:focus-within { box-shadow: inset 0 0 0 2px var(--sky); }
.fee-in.err { box-shadow: inset 0 0 0 2px var(--destructive); }
.fee-in span { color: #c3b6e6; font-weight: 700; white-space: nowrap; }
.fee-in input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.fee-in input:focus { outline: none; }
.fee-in input::placeholder { color: #9d90c6; font-weight: 600; font-size: 15.5px; }
.fee .hint { display: block; margin-top: 6px; font-size: 13px; color: #ff9aa7; min-height: 0; }
.ppi { display: flex; flex-wrap: wrap; gap: 8px; }
.ppi button { height: 46px; min-width: 58px; padding: 0 14px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 800; font-size: 15px; }
.ppi button:hover { background: rgba(255, 255, 255, 0.16); }
.ppi button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.est { border-radius: var(--radius-lg); padding: 22px 24px; background: var(--light-navy); }
.est h4 { margin: 0 0 4px; font-size: 18px; }
.est p { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.est .row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 0 -14px; border-radius: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.est .row:nth-child(odd) { background: rgba(255, 255, 255, 0.55); }
.est .row:last-child { margin-top: 8px; background: var(--ink); color: #fff; font-size: 19px; }
@media (max-width: 1000px) { .pkg { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .inc { grid-template-columns: 1fr; } }

/* ==========================================================================
   DELIVERY
   ========================================================================== */
/* delivery: one accent (launch orange). Greys are white at set strengths; orange marks only the
   selected discipline, the current week, the hardest problems and the launch. */
#delivery { --da: #fe881b; --da-t: #ffc08a; --dbg: #0f0f11; --dl-line: rgba(255, 255, 255, 0.08); --dl-2: rgba(255, 255, 255, 0.66); --dl-3: rgba(255, 255, 255, 0.46); }
.dl-soft { color: rgba(255, 255, 255, 0.46); }
.dl-h { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.dl-p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--dl-2); max-width: 50ch; text-wrap: pretty; }
.dl-team, .dl-road, .dl-arch { position: relative; border-radius: 28px; background: var(--dbg); box-shadow: inset 0 0 0 1px var(--dl-line), 0 40px 80px -40px rgba(2, 2, 2, 0.8); }
.dl-bh { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s3) var(--s4); align-items: end; margin: clamp(96px, 10vw, 150px) 0 clamp(26px, 3vw, 40px); }

/* team: a hemicycle of seats beside the roster */
.dl-team { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding: clamp(26px, 3.6vw, 56px); overflow: hidden; }
.dl-hemi { margin: 0; display: grid; gap: 20px; justify-items: center; }
.dl-hemi svg { display: block; width: 100%; height: auto; overflow: visible; }
.dl-hemi figcaption { max-width: 40ch; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--dl-3); }
.dl-hemi figcaption b { color: #fff; font-weight: 600; }
.dl-arc { fill: none; stroke: rgba(255, 255, 255, 0.07); }
.dl-floor { stroke: rgba(255, 255, 255, 0.12); }
.dl-num { fill: #fff; font: 600 108px var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transform-box: fill-box; transform-origin: center; }
.dl-pop { transform-box: fill-box; transform-origin: center; }
.js .dl-pop { opacity: 0; transform: scale(0.6); }
.js .dl-team.in .dl-pop { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 900ms var(--ease); transition-delay: calc(200ms + var(--k) * 70ms); }
.dl-seat { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.dl-disc { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.24); stroke-width: 1.2; transition: fill 300ms var(--ease), stroke 300ms var(--ease); }
.dl-halo { fill: none; stroke: var(--da); stroke-width: 1.2; opacity: 0; transition: opacity 300ms var(--ease); }
.dl-seat use { color: rgba(255, 255, 255, 0.92); transition: color 300ms var(--ease); }
.dl-seat.opt .dl-disc { fill: transparent; stroke-dasharray: 5 5; }
.dl-seat.opt use { color: rgba(255, 255, 255, 0.5); }
.dl-has .dl-seat { opacity: 0.26; }
.dl-has .dl-seat.on { opacity: 1; }
.dl-seat.on .dl-disc { fill: var(--da); stroke: var(--da); }
.dl-seat.on .dl-halo { opacity: 0.5; }
.dl-seat.on use { color: #1a0b54; }
.dl-seat.on.opt .dl-disc { fill: rgba(254, 136, 27, 0.16); }
.dl-seat.on.opt use { color: var(--da-t); }
@media (hover: hover) { .dl-seat:hover { transform: scale(1.06); } }

.dl-roster { display: grid; gap: 16px; align-content: center; min-width: 0; }
.dl-roles { display: grid; gap: 4px; margin-top: 12px; }
.dl-role { position: relative; border-radius: 16px; transition: background-color 250ms var(--ease); }
.dl-role::before { content: ""; position: absolute; left: 0; top: 22px; width: 3px; height: 26px; border-radius: 0 3px 3px 0; background: var(--da); transform: scaleY(0); transition: transform 300ms var(--ease); }
.dl-role button { display: grid; grid-template-columns: 50px minmax(0, 1fr) 18px; gap: 12px; align-items: center; width: 100%; min-height: 70px; padding: 12px 16px; border: 0; border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dl-role button:focus-visible { outline: 2px solid var(--da-t); outline-offset: -2px; }
.dl-n { font-size: 27px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: #fff; transition: color 250ms var(--ease); }
.dl-rt b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.dl-rt small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--dl-3); }
.dl-cv { width: 16px; height: 16px; color: var(--dl-3); transition: transform 300ms var(--ease), color 250ms; }
.dl-role:hover { background: rgba(255, 255, 255, 0.03); }
.dl-role.on { background: rgba(255, 255, 255, 0.06); }
.dl-role.on::before { transform: scaleY(1); }
.dl-role.on .dl-n { color: var(--da); }
.dl-role.on .dl-cv { color: #fff; transform: rotate(180deg); }
.dl-own { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 400ms var(--ease), visibility 0s 400ms; }
.dl-role.on .dl-own { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 400ms var(--ease); }
.dl-own > div { min-height: 0; overflow: hidden; }
.dl-own ul { list-style: none; margin: 0; padding: 0 16px 12px 78px; }
.dl-own li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--dl-line); font-size: 14.5px; color: rgba(255, 255, 255, 0.86); }
.dl-own li small { flex-shrink: 0; font-size: 13.5px; color: var(--da-t); font-variant-numeric: tabular-nums; }

/* roadmap: twelve weeks, a week marker scrubbed by scroll */
.dl-road { padding: clamp(20px, 2.8vw, 36px); }
.dl-road-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dl-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dl-sum { margin: 0; font-size: 14.5px; color: var(--dl-3); }
.dl-sum b { color: #fff; font-weight: 600; }
.dl-chart { --lw: 250px; --cg: 28px; --msh: 54px; --p: 12; position: relative; }
.dl-stripes, .dl-lines, .dl-play { position: absolute; top: 0; bottom: 0; left: calc(var(--lw) + var(--cg)); right: 0; pointer-events: none; }
.dl-stripes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dl-stripes i { border-radius: 16px; background: rgba(255, 255, 255, 0.022); transition: background-color 400ms var(--ease); }
.dl-stripes i.now { background: rgba(255, 255, 255, 0.045); }
.dl-phases, .dl-weeks, .dl-ws, .dl-ms { position: relative; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); column-gap: var(--cg); }
.dl-phases > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dl-ph { padding: 16px 18px 6px; }
.dl-ph b { display: block; font-size: 16px; font-weight: 600; color: var(--dl-2); transition: color 300ms var(--ease); }
.dl-ph small { display: block; margin-top: 2px; font-size: 13px; color: var(--dl-3); transition: color 300ms var(--ease); }
.dl-ph.now b { color: #fff; }
.dl-ph.now small { color: var(--da-t); }
.dl-body { position: relative; }
.dl-weeks { height: 40px; align-items: center; }
.dl-weeks > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.dl-weeks > div span { text-align: center; font-size: 12.69px; font-weight: 600; color: var(--dl-3); font-variant-numeric: tabular-nums; }
.dl-rows { list-style: none; margin: 0; padding: 0; }
.dl-ws { align-items: center; min-height: 60px; transition: opacity 300ms var(--ease); }
.dl-wl { min-width: 0; }
.dl-wl b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.dl-wl small { display: block; margin-top: 2px; font-size: 13px; color: var(--dl-3); }
.dl-ww { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-track { position: relative; height: 42px; }
.dl-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 12 * 100% + 3px); width: calc(var(--len) / 12 * 100% - 6px); display: flex; align-items: center; padding: 0 14px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11); transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.dl-ws.live .dl-bar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }
.dl-bar.short { justify-content: center; padding: 0 4px; }
.dl-bar i { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.15); transform-origin: left; transform: scaleX(clamp(0, (var(--p) - var(--a)) / var(--len), 1)); transition: background-color 300ms var(--ease); }
.dl-bar em { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-style: normal; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.dl-bar.short em { font-size: 12.69px; }
.dl-has .dl-ws { opacity: 0.32; }
.dl-has .dl-ws.on { opacity: 1; }
.dl-ws.on .dl-bar { background: rgba(254, 136, 27, 0.08); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.75); }
.dl-ws.on .dl-bar i { background: rgba(254, 136, 27, 0.42); }
.dl-lines i { position: absolute; top: 40px; bottom: 24px; left: calc(var(--x) / 12 * 100%); border-left: 1px dashed rgba(255, 255, 255, 0.2); }
.dl-lines i.end { border-left-color: rgba(254, 136, 27, 0.7); }
.dl-ms { height: var(--msh); }
.dl-ms > div { position: relative; }
.dl-ms > div > span { position: absolute; top: 20px; left: calc(var(--x) / 12 * 100%); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--dl-2); }
.dl-ms > div > span.end { flex-direction: row-reverse; transform: translateX(calc(-100% + 4.5px)); color: var(--da-t); }
.dl-ms i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.72); transform: rotate(45deg); }
.dl-ms .end i { background: var(--da); }
.dl-play { bottom: var(--msh); z-index: 2; }
.dl-play > div { position: absolute; inset: 0; transform: translateX(calc(var(--p) / 12 * 100%)); }
.dl-play > div::before { content: ""; position: absolute; left: -1px; top: 34px; bottom: 0; width: 2px; border-radius: 2px; background: var(--da); box-shadow: 0 0 14px rgba(254, 136, 27, 0.55); }
.dl-play b { position: absolute; left: 0; top: 7px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--da); color: #1a0b54; font-size: 12.69px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-chart.still .dl-play { display: none; }

/* why it is hard: an editorial list beside a sticky heading */
.dl-hard { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(96px, 10vw, 150px); }
.dl-hard-h { position: sticky; top: 120px; display: grid; gap: 16px; }
.dl-hl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dl-line); }
.dl-hl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--dl-line); }
.dl-hl b { display: block; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.dl-hl p { margin: 6px 0 0; max-width: 46ch; font-size: 15.5px; line-height: 1.5; color: var(--dl-2); }
.dl-lv { display: grid; justify-items: end; gap: 8px; }
.dl-lv span { display: flex; gap: 4px; }
.dl-lv i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); transform-origin: left; }
.dl-lv i.on { background: rgba(255, 255, 255, 0.78); }
.dl-hl li.top .dl-lv i.on { background: var(--da); }
.dl-lv small { font-size: 13px; font-weight: 600; color: var(--dl-3); }
.dl-hl li.top .dl-lv small { color: var(--da-t); }
.js .dl-hl li .dl-lv i.on { transform: scaleX(0); }
.js .dl-hl li.in .dl-lv i.on { transform: none; transition: transform 500ms var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms + var(--k) * 70ms); }

/* architecture: four layers joined by wires the packets travel along */
.dl-arch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(36px, 4.6vw, 72px); padding: clamp(24px, 3vw, 44px); }
.dl-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dl-wires path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.dl-wires .pk circle { fill: var(--da); }
.dl-wires .pk .pk-h { opacity: 0.22; }
.dl-col { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.dl-col h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--dl-3); }
.dl-col > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 14px; }
.dl-node { position: relative; z-index: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: #17171a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
@media (hover: hover) { .dl-node:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transform: translateY(-2px); } }
.dl-ni { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; }
.dl-ni svg { width: 19px; height: 19px; }
.dl-nt { min-width: 0; }
.dl-nt b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.dl-nt small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--dl-3); }
.dl-node.dl-hub { grid-template-columns: 1fr; align-content: center; gap: 14px; padding: 24px 22px; background: #19191d; box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.5), 0 0 0 6px rgba(254, 136, 27, 0.05); }
@media (hover: hover) { .dl-node.dl-hub:hover { box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.8), 0 0 0 6px rgba(254, 136, 27, 0.08); } }
.dl-hub .dl-ni { width: 48px; height: 48px; border-radius: 14px; background: var(--da); color: #1a0b54; }
.dl-hub .dl-nt b { font-size: 19px; }
.dl-hubl { list-style: none; margin: 4px 0 0; padding: 14px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--dl-line); }
.dl-hubl li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.dl-hubl svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--da-t); }
.dl-perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.dl-perf div { padding: 20px 24px; border-left: 1px solid var(--dl-line); }
.dl-perf div:first-child { padding-left: 6px; border-left: 0; }
.dl-perf b { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.dl-perf b svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--dl-2); }
.dl-perf span { font-size: 14.5px; line-height: 1.5; color: var(--dl-2); }

@media (max-width: 1100px) {
  .dl-team { grid-template-columns: 1fr; }
  .dl-hemi { max-width: 560px; width: 100%; justify-self: center; }
  .dl-perf { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .dl-perf div:nth-child(3) { padding-left: 6px; border-left: 0; }
}
@media (max-width: 900px) {
  .dl-bh, .dl-hard { grid-template-columns: 1fr; }
  .dl-hard-h { position: static; }
  .dl-road { padding: 18px; }
  .dl-chart { --lw: 0px; --cg: 0px; }
  .dl-weeks, .dl-lines, .dl-ms, .dl-play { display: none; }
  .dl-ph { padding: 12px 10px 8px; }
  .dl-ph b { font-size: 13.5px; line-height: 1.25; }
  .dl-ph small { font-size: 12px; }
  .dl-phm { display: none; }
  .dl-stripes i { border-radius: 12px; }
  .dl-rows { padding: 4px 0 6px; }
  .dl-ws { grid-template-columns: 1fr; row-gap: 10px; min-height: 0; padding: 12px 0; }
  .dl-wl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 0 10px; }
  .dl-wl small { grid-column: 1; }
  .dl-ww { position: static; grid-column: 2; grid-row: 1; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; font-weight: 600; color: var(--dl-3); }
  .dl-ws.on .dl-ww { color: var(--da-t); }
  .dl-track { height: 10px; }
  .dl-bar { left: calc(var(--a) / 12 * 100% + 2px); width: calc(var(--len) / 12 * 100% - 4px); padding: 0; border-radius: 5px; }
  .dl-bar em { display: none; }
  .dl-bar i { background: rgba(255, 255, 255, 0.55); }
  .dl-ws.on .dl-bar i { background: var(--da); }
  .dl-arch { grid-template-columns: 1fr; row-gap: 40px; padding: 20px; }
  .dl-wires { display: none; }
  .dl-col + .dl-col::before { content: ""; position: absolute; left: 34px; top: -32px; width: 1px; height: 24px; background: rgba(255, 255, 255, 0.22); }
  .dl-col > ul { grid-auto-rows: auto; gap: 8px; }
  .dl-hubl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dl-team { padding: 22px 16px; }
  .dl-role button { grid-template-columns: 46px minmax(0, 1fr) 16px; padding: 12px; }
  .dl-n { font-size: 23px; }
  .dl-own ul { padding: 0 12px 12px 70px; }
  .dl-hl li { grid-template-columns: 1fr; gap: 14px; }
  .dl-lv { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
  .dl-perf { grid-template-columns: 1fr; }
  .dl-perf div, .dl-perf div:nth-child(3) { padding: 16px 6px; border-left: 0; border-top: 1px solid var(--dl-line); }
  .dl-perf div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .dl-pop { opacity: 1; transform: none; }
  .js .dl-hl li .dl-lv i.on { transform: none; }
  .dl-own, .dl-role.on .dl-own { transition: none; }
}

/* ==========================================================================
   RESEARCH
   ========================================================================== */
.research { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s2); }
.rs { border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 34px); background: #fff; display: grid; gap: 16px; align-content: start; }
.rs h3 { margin: 0; font-size: 24px; font-weight: 600; }
.rs > p { margin: -6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.pred { display: grid; gap: 10px; }
.pred-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 600; }
.pred-row .tr { position: relative; height: 26px; border-radius: 8px; background: var(--light-grey); }
.pred-row .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--violet); transition: width var(--dur-normal) var(--ease); }
.pred-row .tr i.near { background: var(--grad-line); }
.pred-row .tr .act { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--orange); }
.pred-row b { text-align: right; font-variant-numeric: tabular-nums; }
.agency { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: var(--light-grey); }
.agency b { font-size: 16px; }
.agency small { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.lessons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.lesson { border-radius: var(--radius-sm); padding: 20px 22px; background: var(--light-navy); }
.lesson b { display: block; font-size: 18.5px; margin-bottom: 4px; }
.lesson p { margin: 0; color: var(--ink-2); font-size: 15px; }
.qblocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.qb { border-radius: var(--radius-sm); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.qb .l { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.qb b { font-size: 16.5px; }
.qb p { margin: 0; color: var(--ink-2); font-size: 14px; }
.qb .rec-tag { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12.69px; font-weight: 700; color: #9a4700; }
.qb .rec-tag svg { width: 14px; height: 14px; }
.sampling { margin-top: 10px; border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); background: var(--ink); color: #fff; }
.sampling svg { width: 100%; height: auto; }
@media (max-width: 1100px) { .research { grid-template-columns: 1fr; } .lessons { grid-template-columns: 1fr 1fr; } .qblocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lessons, .qblocks { grid-template-columns: 1fr; } .pred-row { grid-template-columns: 104px 1fr 38px; } .sampling { overflow-x: auto; } .sampling svg { min-width: 640px; } }

/* ==========================================================================
   COMPETITORS
   ========================================================================== */
.comp {
  border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--border); overflow-x: auto;
  /* the two inner shadows ride the content (local) and the two covers stay put (scroll),
     so a shadow shows only on the side that still has table to reach */
  background:
    linear-gradient(90deg, var(--color-surface-muted) 40%, rgba(17, 17, 20, 0)) left center / 44px 100% no-repeat local,
    linear-gradient(270deg, var(--color-surface-muted) 40%, rgba(17, 17, 20, 0)) right center / 44px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) left center / 22px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) right center / 22px 100% no-repeat scroll,
    var(--color-surface-muted);
}
.comp table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
.comp th, .comp td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.comp th:first-child, .comp td:first-child { text-align: left; font-weight: 600; }
.comp thead th { vertical-align: bottom; font-size: 14px; font-weight: 700; color: var(--muted-foreground); }
.comp .us { background: rgba(172, 36, 255, 0.13); color: #fff; }
.comp thead th.us { color: #fff; font-size: 15px; }
.comp tr:last-child td { border-bottom: 0; }
.comp .y { color: var(--orange); }
.comp .y svg, .comp .n svg { width: 20px; height: 20px; margin: 0 auto; }
.comp .n { color: #5d5478; }
.comp .m { color: var(--muted-foreground); font-size: 13.5px; }
.edge { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s2); margin-top: var(--s2); }
.edge-q { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 44px); background: var(--ec-cool); }
.edge-q p { margin: 0; max-width: 30ch; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.edge-l { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.edge-l h4 { margin: 0 0 12px; font-size: 18px; }
@media (max-width: 900px) { .edge { grid-template-columns: 1fr; } }

/* ==========================================================================
   TRUST · SECURITY & LAW
   ========================================================================== */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.shield { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 38px); background: #fff; display: grid; gap: 16px; align-content: start; }
.shield h3 { margin: 0; font-size: 24px; font-weight: 600; }
.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--light-grey); }
.layer i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.layer i svg { width: 20px; height: 20px; }
.layer b { display: block; font-size: 16px; }
.layer span { color: var(--ink-2); font-size: 14.5px; }
.laws { display: grid; gap: var(--s2); align-content: start; }
.law { border-radius: var(--radius-sm); padding: 20px 22px; background: #fff; }
.law b { display: block; font-size: 17px; margin-bottom: 4px; }
.law p { margin: 0; color: var(--ink-2); font-size: 15px; }
.silence { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; }
.toggle { position: relative; width: 66px; height: 38px; flex-shrink: 0; border: 0; border-radius: 999px; background: #3a2d58; transition: background-color var(--dur-instant); }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: transform var(--dur-instant) var(--ease); }
.toggle[aria-checked="true"] { background: var(--primary); }
.toggle[aria-checked="true"]::after { transform: translateX(28px); }
.silence b { display: block; }
.silence p { margin: 2px 0 0; color: #d9cff3; font-size: 14.5px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* ==========================================================================
   RISKS · matrix
   ========================================================================== */
.risk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); }
.matrix { position: relative; border-radius: var(--radius-lg); padding: 26px 26px 54px 64px; background: var(--color-surface-muted); box-shadow: inset 0 0 0 1px var(--border); }
.mx-grid { position: relative; aspect-ratio: 1 / 0.86; border-radius: var(--radius-sm); overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.mx-grid > span { background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 0.5px var(--border); }
.mx-grid > span.h1 { background: rgba(254, 136, 27, 0.07); }
.mx-grid > span.h2 { background: rgba(254, 136, 27, 0.15); }
.mx-grid > span.h3 { background: rgba(254, 136, 27, 0.26); }
.mx-dot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.8); transition: transform var(--dur-instant) var(--ease), background-color var(--dur-instant), color var(--dur-instant); }
.mx-dot svg { width: 19px; height: 19px; }
.mx-dot:hover { transform: scale(1.1); }
.mx-dot[aria-pressed="true"] { background: var(--orange); color: #1d0b00; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(254, 136, 27, 0.25); }
.mx-y, .mx-x { position: absolute; font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.mx-y { left: 14px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; white-space: nowrap; }
.mx-x { bottom: 18px; left: 50%; transform: translateX(-30%); }
.risk-detail { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 38px); background: var(--color-surface-strong); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: 16px; align-content: start; }
.risk-detail h3 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.risk-detail .lvls { display: flex; gap: 8px; flex-wrap: wrap; }
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixes li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: rgba(61, 220, 151, 0.07); font-size: 15.5px; }
.fixes svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.risk-list { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-list button { height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font-weight: 600; font-size: 13.5px; }
.risk-list button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; }
@media (max-width: 960px) { .risk { grid-template-columns: 1fr; } .matrix { padding: 20px 18px 50px 50px; } }

/* ==========================================================================
   DESIGN SYSTEM
   ========================================================================== */
/* form field (shared) */
.field { display: grid; gap: 6px; width: 100%; max-width: 280px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input { height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--input); color: #fff; font-size: 15px; }
.field input:focus, .field input.is-focus { outline: none; box-shadow: inset 0 0 0 2px var(--purple); }
.field input.is-error { box-shadow: inset 0 0 0 2px var(--destructive); }
.field input:disabled { opacity: 0.45; cursor: not-allowed; }
.field small { font-size: 12.69px; color: var(--muted-foreground); }
.field small.e { color: #ff8b99; }

/* Its own panel: the darkest canvas under a blueprint grid. Sky (the focus-ring token) is the
   one accent for the panel's own chrome; every other colour appears only inside a specimen. */
#system {
  --dx: var(--sky); --dx-l: rgba(255, 255, 255, 0.08); --dx-2: rgba(255, 255, 255, 0.68); --dx-3: rgba(255, 255, 255, 0.56);
  --bleed: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  position: relative; isolation: isolate; overflow: clip;
  margin: 0 clamp(6px, 1vw, 16px);
  padding: clamp(96px, 10vw, 160px) 0 clamp(80px, 8vw, 128px);
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--darkest);
  box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.12);
}
#system::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(43, 167, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 167, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px; background-position: 50% -1px;
  -webkit-mask-image: radial-gradient(130% 70% at 50% 0, #000 15%, transparent 70%); mask-image: radial-gradient(130% 70% at 50% 0, #000 15%, transparent 70%);
}
#system::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1200px, 140%); height: 560px; translate: -50% -58%; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(27, 77, 254, 0.36), rgba(43, 167, 255, 0.08) 62%, transparent);
}
.dsx-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s4); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.dsx-head .h2 { margin: 0; }
.dsx-head .lead { color: var(--dx-2); max-width: 46ch; }

/* the strip: every token, darkest to lightest. Hover or focus opens a slice; selecting it finds the chip. */
.ds-strip { position: relative; display: flex; height: clamp(150px, 15vw, 220px); border-radius: 22px; overflow: hidden; }
.ds-strip::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); pointer-events: none; }
.ds-sl + .ds-sl { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06); }
.ds-sl { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: var(--c); color: var(--fg); cursor: pointer; transform-origin: 50% 100%; transition: flex-grow 600ms var(--ease); }
.ds-sl span { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 2px; text-align: left; font-size: var(--fs-md); font-weight: 600; line-height: 1.25; white-space: nowrap; opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity 200ms var(--ease), translate var(--dur-fast) var(--ease); }
.ds-sl em { font-style: normal; font-weight: 500; font-size: var(--fs-xs); opacity: 0.82; font-variant-numeric: tabular-nums; }
.ds-sl:hover, .ds-sl:focus-visible { flex-grow: 6; }
.ds-sl:hover span, .ds-sl:focus-visible span { opacity: 1; translate: 0 0; transition-delay: 120ms; }
.ds-sl:focus-visible { outline: 2px solid var(--ring); outline-offset: -5px; z-index: 1; }
.js .ds-strip:not(.drawn) .ds-sl { transform: scaleY(0); }
.ds-strip.drawn .ds-sl { animation: dsSlice 1100ms var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes dsSlice { from { transform: scaleY(0); } }
.ds-parts { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 18px; }
.ds-parts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 500; color: var(--dx-2); text-decoration: none; transition: color var(--dur-instant) var(--ease); }
.ds-parts a span { font-size: var(--fs-xs); font-weight: 700; color: var(--dx); font-variant-numeric: tabular-nums; }
.ds-parts a:hover { color: #fff; }
.ds-parts a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

/* rails: content lines up with the page column and runs out to the panel's right edge */
.rail { margin-top: clamp(72px, 8vw, 120px); }
.rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.rail-head h3 { margin: 0; font-size: clamp(28px, 2.7vw, 41.78px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.rail-head p { margin: 10px 0 0; max-width: 58ch; color: var(--dx-2); font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.rail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--color-text-inverse); cursor: pointer; transition: background-color var(--dur-instant) var(--ease), box-shadow var(--dur-instant) var(--ease), opacity var(--dur-instant); }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn[data-dir="-1"] svg { rotate: 180deg; }
.rail-btn:hover:not(:disabled) { background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.rail-btn:active:not(:disabled) { transform: scale(0.97); }
.rail-btn:disabled { opacity: 0.32; cursor: default; }
.rail-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.rail.no-scroll .rail-nav { display: none; }
.ds-groups { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ds-groups::-webkit-scrollbar { display: none; }
.ds-groups button { white-space: nowrap; flex: none; }
.ds-try input { width: min(300px, 100%); height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--input); color: #fff; font: inherit; font-size: 15px; }
.ds-try input::placeholder { color: var(--dx-3); }
.ds-try input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--purple); }

.rail-track {
  display: flex; align-items: stretch; gap: 14px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed);
  padding: 28px var(--bleed) 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--bleed) - 24px)), #000 calc(100% - max(44px, calc(var(--bleed) * 0.7))), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--bleed) - 24px)), #000 calc(100% - max(44px, calc(var(--bleed) * 0.7))), transparent);
}
.rail.at-end .rail-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--bleed) - 24px))); mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--bleed) - 24px))); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { flex: none; scroll-snap-align: start; }
.rail-track:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; border-radius: 14px; }
@media (pointer: fine) { .rail-track { cursor: grab; } }
.rail-track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.rail-track.is-drag > * { pointer-events: none; }
.rail-bar { display: block; height: 2px; border-radius: 2px; background: var(--dx-l); overflow: hidden; }
.rail-bar[hidden] { display: none; }
.rail-bar i { display: block; height: 100%; border-radius: inherit; background: var(--dx); }
/* cards settle in as they come in from the right edge (browsers with scroll-driven animation) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail-track > * { animation: dsEnter linear both; animation-timeline: view(inline); animation-range: entry 0% entry 90%; }
  }
}
@keyframes dsEnter { from { opacity: 0.3; scale: 0.94; } }

/* colour chips */
.chip-sep { display: flex; flex-direction: column-reverse; justify-content: space-between; width: 62px; padding: 12px 0 14px 16px; border-left: 1px solid var(--dx-l); }
.chip-sep:first-child { width: 46px; padding-left: 0; border-left: 0; }
.chip-sep b { writing-mode: vertical-rl; rotate: 180deg; font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; }
.chip-sep span { font-size: var(--fs-xs); font-weight: 700; color: var(--dx); font-variant-numeric: tabular-nums; }
.chip { position: relative; display: grid; grid-template-rows: auto 1fr; width: 196px; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--dx-l); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: translate var(--dur-fast) var(--ease), box-shadow var(--dur-instant) var(--ease); }
.chip-face { position: relative; display: block; height: 188px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); border-radius: 20px 20px 0 0; }
.chip-aa { position: absolute; left: 16px; top: 12px; font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.chip-dot { position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg) 30%, transparent); }
.chip-cr { position: absolute; left: 16px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-cr b { padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 14%, transparent); font-weight: 700; white-space: nowrap; }
.chip-meta { display: grid; gap: 1px; align-content: start; padding: 14px 16px 16px; }
.chip-meta b { font-size: var(--fs-lg); font-weight: 600; }
.chip-hex { font-size: var(--fs-md); color: var(--dx-2); font-variant-numeric: tabular-nums; }
.chip-meta small { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--dx-3); }
.chip-ok { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-xs); font-weight: 700; opacity: 0; translate: 0 -6px; transition: opacity 200ms var(--ease), translate var(--dur-fast) var(--ease); }
.chip-ok svg { width: 14px; height: 14px; }
.chip:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.chip:active { scale: 0.98; }
.chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.chip.is-copied .chip-ok { opacity: 1; translate: 0 0; }
.chip.is-flash { animation: dsFlash 1600ms var(--ease); }
@keyframes dsFlash { 0%, 40% { box-shadow: inset 0 0 0 2px var(--dx); } }

/* shared specimen card: a stage on top, words below */
.dcard { display: grid; grid-template-rows: var(--sh, 220px) 1fr; width: 330px; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--dx-l); transition: box-shadow var(--dur-instant) var(--ease); }
.dcard:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.dcard-stage { position: relative; display: grid; place-items: center; padding: 22px; overflow: hidden; background: rgba(0, 0, 0, 0.22); border-bottom: 1px solid var(--dx-l); }
.fcard .dcard-stage, .ccard .dcard-stage { background-image: linear-gradient(rgba(43, 167, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 167, 255, 0.055) 1px, transparent 1px); background-size: 13px 13px; background-position: -1px -1px; }
.dcard-meta { display: grid; gap: 8px; align-content: start; padding: 18px 22px 22px; }
.dcard-meta h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: var(--fs-xl); font-weight: 600; }
.dcard-meta h4 small { font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); white-space: nowrap; }
.dcard-meta p { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--dx-2); }

/* gradients */
.gk-tdark .dcard-stage { background: #050506; }
.gk-tlight .dcard-stage { background: var(--light-grey); }
.g-word { font-size: 46px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; padding-bottom: 0.06em; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.gk-sweep .dcard-stage { grid-template-rows: 1fr auto; gap: 16px; }
.gk-sweep:hover .g-btn, .gk-sweep.is-on .g-btn { background-position: right; }
.g-win { position: relative; width: 100%; height: 10px; border-radius: 10px; background: var(--g); }
.g-win i { position: absolute; top: -5px; bottom: -5px; left: 0; width: 33.333%; border-radius: 8px; box-shadow: 0 0 0 2px #fff; transition: translate var(--dur-normal) var(--ease); }
.gk-sweep:hover .g-win i, .gk-sweep.is-on .g-win i { translate: 200% 0; }
.g-nav { display: flex; gap: 18px; padding: 13px 20px; border-radius: 16px; background: #fff; color: var(--ink-2); font-size: var(--fs-md); white-space: nowrap; }
.g-nav .on { position: relative; color: var(--ink); font-weight: 500; }
.g-nav .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--g); }
.gk-card .dcard-stage { background: #060607; }
.g-mini { display: grid; gap: 4px; width: 100%; max-width: 240px; padding: 20px 22px; border-radius: 18px; background: var(--g); box-shadow: inset 0 0 0 1px var(--border); }
.g-mini small { font-size: 13px; color: var(--muted-foreground); }
.g-mini b { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.g-mini em { font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--success); }
.g-orb { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--g); filter: blur(34px); opacity: 0.55; }
.g-ring { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--g); }
.g-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--darkest); }
.g-ring svg { position: relative; width: 28px; height: 28px; color: #fff; }
.gk-cool .dcard-stage, .gk-warm .dcard-stage { place-items: end start; background: var(--g); }
.g-say { display: grid; gap: 4px; color: #fff; font-size: 15px; font-weight: 500; }
.g-say b { font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.g-say em { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-style: normal; font-size: 13px; font-weight: 700; }
.g-say em i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease-in-out infinite; }
.g-bar { display: block; height: 8px; margin-top: 6px; border-radius: 8px; }
.g-stops { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); font-variant-numeric: tabular-nums; }
.g-stops span { display: inline-flex; align-items: center; gap: 6px; }
.g-stops i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* type: open specimen columns, no boxes */
.tcard { display: grid; grid-template-rows: auto 1fr auto; gap: 22px; width: min(var(--w, 340px), 84vw); min-height: 320px; padding: 4px clamp(24px, 2.4vw, 36px); border-left: 1px solid var(--dx-l); }
.rail-track > .tcard:first-child { padding-left: 0; border-left: 0; }
.tcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-md); color: var(--dx-3); }
.tcard header b { color: #fff; font-size: var(--fs-lg); font-weight: 600; }
.t-sample { align-self: center; margin: 0; font-size: min(var(--fs), 12vw); color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-spec { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding-top: 16px; border-top: 1px solid var(--dx-l); }
.t-spec div { display: grid; gap: 2px; }
.t-spec dt { font-size: var(--fs-xs); color: var(--dx-3); }
.t-spec dd { margin: 0; font-size: var(--fs-md); font-weight: 600; font-variant-numeric: tabular-nums; }
.t-aa { align-self: center; margin: 0; font-size: 150px; font-weight: 500; line-height: 0.9; letter-spacing: -0.04em; }
.t-weights { display: flex; gap: 18px; }
.t-weights span { display: grid; gap: 2px; font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); font-variant-numeric: tabular-nums; }
.t-weights b { font-size: 28px; color: #fff; }
.t-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--dx-3); }
.t-te { align-self: center; display: grid; gap: 10px; }
.t-te p { margin: 0; font-family: var(--font-te); font-size: 30px; font-weight: 500; line-height: 1.6; }
.t-te small { font-size: var(--fs-md); color: var(--dx-3); }
.t-num { align-self: center; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.t-num b { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.t-num span { font-size: var(--fs-xl); color: var(--dx-2); }
.t-num em { font-style: normal; font-weight: 700; color: #fff; }

/* foundations */
.fcard { --sh: 252px; }
.fcard .dcard-stage { place-items: stretch; align-content: center; }
.f-space { display: grid; grid-template-columns: 30px 1fr; gap: 7px 12px; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); font-variant-numeric: tabular-nums; }
.f-space i { display: block; width: calc(var(--v) / 156 * 100%); min-width: 4px; height: 8px; border-radius: 4px; background: var(--dx); }
.f-rad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.f-rad span { display: grid; gap: 1px; font-size: var(--fs-xs); color: var(--dx-3); }
.f-rad i { display: block; height: 50px; margin-bottom: 6px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.f-rad b { font-size: 13.5px; font-weight: 600; color: #fff; }
.f-depth { position: relative; height: 172px; }
.f-depth span { position: absolute; display: flex; padding: 10px 12px; border-radius: 18px; font-size: var(--fs-xs); font-weight: 600; }
.f-depth .fd1 { inset: 0 64px 46px 0; background: var(--ec-body); box-shadow: inset 0 0 0 1px var(--dx-l); color: var(--dx-3); }
.f-depth .fd2 { inset: 34px 26px 16px 30px; background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border); color: var(--dx-2); }
.f-depth .fd3 { right: 0; bottom: 0; align-items: center; height: 54px; border-radius: 999px; padding: 0 18px; background: #fff; color: var(--ink); box-shadow: 0 0 20px 20px #0d0d10; }
.f-ease { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.f-ease svg { width: 104px; height: 104px; overflow: visible; fill: none; }
.f-ease .ax { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.f-ease .hd { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 3 3; }
.f-ease .hd-d { fill: #fff; }
.f-ease .cv { stroke: var(--dx); stroke-width: 2.5; stroke-linecap: round; }
.f-ease code { font: 600 13.5px/1.45 var(--font); color: var(--dx-2); }
.f-lanes { display: grid; gap: 18px; }
.f-lane { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 12px; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); }
.f-lane b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.f-track { position: relative; height: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--dx-l); }
.f-run { position: absolute; top: 0; bottom: 0; left: 1px; right: 13px; }
.f-run i { position: absolute; left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--dx); }
.go .f-run { transform: translateX(100%); transition: transform var(--t) var(--ease); }
.f-touch { display: flex; justify-content: space-around; align-items: flex-end; gap: 12px; }
.f-touch span { display: grid; justify-items: center; gap: 1px; font-size: var(--fs-xs); color: var(--dx-3); }
.f-touch i { position: relative; width: var(--v); height: var(--v); margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.f-touch i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; border: 1.5px dashed var(--dx); }
.f-touch b { font-size: 13.5px; font-weight: 600; color: #fff; }
.f-focus { display: grid; justify-items: center; gap: 22px; }
.f-key { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dx-3); }
.f-key kbd { display: inline-grid; place-items: center; min-width: 52px; height: 32px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--dx-l); color: #fff; font: 600 13px var(--font); }
.f-replay { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 6px; padding: 0 16px 0 13px; border: 0; border-radius: 10px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--color-text-inverse); font: 600 14px var(--font); cursor: pointer; transition: background-color var(--dur-instant) var(--ease), box-shadow var(--dur-instant) var(--ease); }
.f-replay svg { width: 16px; height: 16px; }
.f-replay:hover { background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.f-replay:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

/* components */
.ccard { --sh: 300px; width: 400px; }
.c-states { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 12px; justify-content: center; }
.c-states > span { display: grid; justify-items: center; gap: 6px; }
.c-states small { font-size: var(--fs-xs); font-weight: 600; color: var(--dx-3); }
.c-col { display: grid; justify-items: center; gap: 14px; width: 100%; }
.c-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.c-light { padding: 14px 18px; border-radius: 18px; background: var(--ec-cool); }
.c-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; align-items: start; }
.c-fields .field { max-width: none; }
.c-out { font-size: var(--fs-lg); font-weight: 600; color: var(--dx-2); font-variant-numeric: tabular-nums; }
.c-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 320px; }
.c-ctl { justify-items: stretch; max-width: 300px; gap: 22px; }
.c-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: var(--fs-lg); font-weight: 600; cursor: pointer; }
.c-sl { display: grid; gap: 8px; font-size: var(--fs-lg); font-weight: 600; }
.c-sl > span { display: flex; justify-content: space-between; }
.c-sl output { font-variant-numeric: tabular-nums; }
.ccard .kpi { width: 100%; max-width: 300px; }
.c-est { display: grid; justify-items: start; gap: 6px; width: 100%; max-width: 300px; }
.c-est > b { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.c-est > span:not(.c-meta) { font-size: var(--fs-lg); color: var(--dx-2); }
.c-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ccard .toast { bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .ds-strip.drawn .ds-sl, .chip.is-flash { animation: none; }
  .ds-sl, .chip, .g-win i { transition: none; }
}
@media (max-width: 900px) {
  .dsx-head { grid-template-columns: 1fr; gap: var(--s3); }
  .ds-sl span { left: 8px; bottom: 10px; writing-mode: vertical-rl; rotate: 180deg; }
}
@media (max-width: 640px) {
  .rail-nav { display: none; }
  .rail-tools { width: 100%; }
  .ds-try { width: 100%; }
  .ds-try input { width: 100%; }
  .ds-parts { gap: 0 20px; }
  .rail-track { gap: 12px; padding-top: 22px; }
  .chip { width: 168px; }
  .chip-face { height: 158px; }
  .gcard, .fcard { width: 290px; }
  .ccard { width: 316px; }
  .c-states .btn { padding: 0 18px; }
  .t-aa { font-size: 120px; }
}

/* ==========================================================================
   ROADMAP · CLOSE · FOOTER
   ========================================================================== */
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.rm { border-radius: var(--radius-lg); padding: 28px; min-height: 280px; display: flex; flex-direction: column; gap: 12px; }
.rm:nth-child(1) { background: var(--primary); }
.rm:nth-child(2) { background: var(--ec-cool); }
.rm:nth-child(3) { background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border); }
.rm h4 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.rm p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: var(--fs-lg); }
.rm ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rm li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 13.5px; font-weight: 700; }
@media (max-width: 900px) { .road { grid-template-columns: 1fr; } .rm { min-height: 0; } }

/* closing call: light fountain into the ring, then the reference's big horizon,
   a dark dome over a violet field that ends the page in a rounded band */
.close {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  margin: 0 clamp(8px, 1.2vw, 16px); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: clamp(40px, 5vw, 72px) 0 clamp(230px, 26vw, 400px);
  background:
    linear-gradient(180deg, #030304 0%, rgba(3, 3, 4, 0) 30%),
    radial-gradient(ellipse var(--dome), #060607 0 80%, rgba(6, 6, 7, 0.55) 85%, rgba(6, 6, 7, 0) 89%),
    radial-gradient(ellipse var(--dome), rgba(255, 255, 255, 0) 85.5%, rgba(255, 255, 255, 0.6) 87.6%, rgba(255, 255, 255, 0) 90%),
    radial-gradient(ellipse var(--dome), rgba(247, 159, 255, 0) 81%, rgba(247, 159, 255, 0.95) 88%, rgba(247, 159, 255, 0) 97%),
    radial-gradient(ellipse 46% 42% at 0% 80%, rgba(247, 159, 255, 0.7), rgba(247, 159, 255, 0) 70%),
    radial-gradient(ellipse 46% 42% at 100% 80%, rgba(247, 159, 255, 0.65), rgba(247, 159, 255, 0) 70%),
    linear-gradient(180deg, #300681 0%, #ac24ff 52%, #8130ff 80%, #6d6cff 100%);
}
.close { --dome: 74% 62% at 50% 28%; }
@media (max-width: 700px) { .close { --dome: 135% 58% at 50% 30%; } }
.close .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s3); }
.close .lead { text-align: center; color: #e9e0ff; }
.fountain { position: relative; z-index: 1; width: min(820px, 100%); aspect-ratio: 760 / 560; margin: 0 auto; }
.fountain svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fn-l { fill: none; stroke-width: 1.3; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--k) * 110ms); }
.fountain.in .fn-l { stroke-dashoffset: 0; }
.close-ring { width: 64px; height: 64px; filter: drop-shadow(0 0 8px rgba(202, 69, 255, 0.35)); }
@media (max-width: 700px) { .fn-l { stroke-width: 2.6; } }
@media (prefers-reduced-motion: reduce) { .fn-l { transition: none; stroke-dashoffset: 0; } }
.footer { position: relative; isolation: isolate; overflow: clip; padding: clamp(78px, 9vw, 120px) 0 30px; background: transparent; color: var(--muted-foreground); font-size: var(--fs-md); }

/* ==========================================================================
   ADDITIONS · pieces created by the scripts
   ========================================================================== */
.toast { position: absolute; z-index: 30; left: 50%; bottom: 22px; transform: translate(-50%, 12px); max-width: min(440px, calc(100% - 32px)); padding: 13px 20px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; text-align: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); opacity: 0; pointer-events: none; transition: opacity var(--dur-instant) var(--ease), transform var(--dur-instant) var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.chat, .prod-art { position: relative; }

.seatlist { display: grid; gap: 6px; font-size: 13px; }
.seatlist > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.04); }
.seatlist span { display: flex; align-items: center; gap: 8px; min-width: 0; line-height: 1.25; }
.seatlist span i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.seatlist b { font-weight: 700; white-space: nowrap; }
.seatlist small { grid-column: 1 / -1; padding-left: 17px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

.outlook { display: grid; gap: 12px; }
.ol-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.ol-row > span small { display: block; color: var(--muted-foreground); font-size: 11.5px; }
.ol-bar { display: flex; gap: 3px; height: 30px; }
.ol-bar i { display: grid; place-items: center; min-width: 22px; border-radius: 8px; font-style: normal; font-weight: 800; font-size: 12px; color: #1d0b00; }

.ai-q { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-q .spark { width: 34px; height: 34px; border-radius: 11px; }
.ai-q .spark svg { width: 16px; height: 16px; }
.ai-q b { font-size: 15px; }
.ai-form.err { box-shadow: inset 0 0 0 2px var(--destructive); }

.mini-map { min-height: 150px; }
.panel.map-card .mini-map svg { max-height: 220px; }

.mp-dots circle { pointer-events: none; }
.mp-dots circle.blink { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .mp-dots circle.blink { animation: none; } }


.beam { animation: beam 9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes beam { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .beam { animation: none; } }

.app-top { flex-wrap: wrap; }
@media (max-width: 1240px) { .app-state { display: none; } }
@media (max-width: 1100px) {
  .sv-top, .ai-top, .ai-bottom, .fo-grid, .rp-grid, .an-grid, .an-row2, .an-row3 { grid-template-columns: 1fr !important; }
  .an-map-p { grid-row: auto !important; }
  .app .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .app-nav { display: flex !important; order: 3; width: 100%; margin: 4px 0 0; overflow-x: auto; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .app-actions { width: 100%; }
}


/* fixes after first review */
@media (max-width: 760px) {
  .dp-head { flex-wrap: wrap; }
  .dp-pick { margin-left: 0; width: 100%; }
  .dp-pick select { max-width: none; width: 100%; }
}
.st-facts .who-chip { background: rgba(172, 36, 255, 0.16); color: var(--lilac); gap: 8px; }
.st-facts .who-chip svg { width: 16px; height: 16px; }
.v-card .sm { margin-top: -8px; }
.pkg > *, .pkg-fees > * { min-width: 0; }
.fee { grid-template-columns: 54px minmax(0, 1fr); }
.fee-in input, .amt input, .chat-input input, .field input { width: 100%; min-width: 0; }
@media (max-width: 420px) { .fee { grid-template-columns: 1fr; } }

/* region photo band */
.regions { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; grid-template-rows: 230px 230px; gap: 10px; }
.rg:last-child { grid-row: span 2; }
.rg { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-surface-muted); }
.rg:first-child { grid-row: span 2; }
.rg img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-normal) var(--ease); }
.rg:hover img { transform: scale(1.04); }
.rg:first-child img { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.09) translate(-1.5%, -1%); } }
.rg figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 15px; background: linear-gradient(rgba(3, 3, 3, 0), rgba(3, 3, 3, 0.85)); color: #fff; font-size: 14.5px; line-height: 1.35; }
.rg figcaption b { display: block; font-size: 17px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rg:first-child img { animation: none; } }
@media (max-width: 860px) { .regions { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 180px; } .rg:first-child, .rg:last-child { grid-row: span 1; grid-column: span 2; } }
.footer .credits { margin: 34px 0 0; font-size: 13px; color: var(--grey-text-dark); line-height: 1.6; max-width: 120ch; }
.footer .credits a { color: var(--muted-foreground); }

/* number-first stats */
.mc-sum .tot b { margin-bottom: 6px; }

/* phone versions of wide diagrams */
.sampling-m { display: none; }
@media (max-width: 900px) {
  .sampling { display: none; }
  .sampling-m { display: grid; gap: 8px; margin: 10px 0 0; padding: 18px; list-style: none; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
  .sampling-m li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
  .sampling-m li i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2a1468; }
  .sampling-m li i svg { width: 20px; height: 20px; }
  .sampling-m b { display: block; font-size: 15.5px; }
  .sampling-m small { color: #cfc3ec; font-size: 13.5px; }
  .comp th:first-child, .comp td:first-child { position: sticky; left: 0; z-index: 1; background: var(--color-surface-muted); }
}

main { overflow-x: clip; }
@media (max-width: 760px) {
  .seg { border-radius: 18px; }
  .seg button { flex: 1 1 auto; justify-content: center; border-radius: 14px; }
  .prod-tabs .seg button { padding: 0 14px; }
}

/* ==========================================================================
   PREMIUM LAYER · the reference brand's signature components, rebuilt in CSS/SVG
   with its exact palette: stars, planet horizons, torus lines, glowing path,
   voice ribbons, eclipse ring, seam glows, gradient-outline button, footer garden
   ========================================================================== */

/* gradient line icons + reference gradient-outline button (1px, 322deg navy → purple → yellow) */
.ct-tile[aria-pressed="true"] .ring use, .fp-item.lit .fp-node use, .ft-tiles .ti use[href^="#i-"] { stroke: url(#gIcon); }
.btn-gradline { color: #fff; border: 1px solid transparent; background: linear-gradient(var(--ec-body), var(--ec-body)) padding-box, linear-gradient(322deg, #1b4dfe, #ac24ff 53%, #ffd600) border-box; }
.btn-gradline:hover, .btn-gradline:focus-visible { background: linear-gradient(var(--navy), var(--navy)) padding-box, linear-gradient(322deg, #1b4dfe, #ac24ff 53%, #ffd600) border-box; }
.gradient-div { width: 100%; height: 1px; background: linear-gradient(90deg, #fe881b, #ca45ff 30%, #b997ff 60%, #111114); }

/* twinkling stars (parent must isolate) */
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7), 0 0 16px 3px rgba(202, 69, 255, 0.35); opacity: 0.15; animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.95; } }

/* planet horizon: a huge dark circle with a lit rim and atmosphere above it */
#platform, #delivery { isolation: isolate; overflow: clip; }
#platform { padding-top: clamp(150px, 15vw, 240px); }
.planet { position: absolute; left: 0; right: 0; top: 0; height: min(130vw, 1900px); z-index: -1; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 var(--fade, 0px)); mask-image: linear-gradient(transparent 0, #000 var(--fade, 0px)); }
.planet::before, .planet::after { content: ""; position: absolute; left: 50%; top: var(--rim, 56px); width: max(1280px, 168vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; }
.planet::before { box-shadow: 0 0 22px 0 rgba(202, 69, 255, 0.55), -22vw -5vw 13vw -3vw rgba(27, 77, 254, 0.55), 22vw -5vw 13vw -3vw rgba(172, 36, 255, 0.5), 0 -2vw 9vw -2vw rgba(202, 69, 255, 0.4); }
.planet::after { padding: 1.5px; background: linear-gradient(90deg, #b997ff, #8130ff 34%, #ca45ff 54%, #f79fff 70%, #fe881b); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.planet.bright { --rim: clamp(180px, 19vw, 290px); --fade: clamp(60px, 7vw, 110px); }
.planet.bright::before { box-shadow: 0 0 34px 4px rgba(242, 242, 255, 0.75), 0 -2vw 7vw 0 rgba(221, 149, 255, 0.7), 0 -5vw 12vw 1vw rgba(172, 36, 255, 0.55), -26vw -6vw 15vw -2vw rgba(27, 77, 254, 0.6), 26vw -6vw 15vw -2vw rgba(129, 48, 255, 0.55); }
.planet.bright::after { padding: 2px; background: linear-gradient(90deg, #b997ff, #dd95ff 38%, #fff 50%, #dd95ff 62%, #ca45ff); }
#delivery { padding-top: calc(clamp(180px, 19vw, 290px) + clamp(70px, 7vw, 110px)); }

/* election cycle: four stage cards over a slowly turning torus of light lines */
.cycle { isolation: isolate; overflow: clip; }
/* the card row breaks out of the wrap and runs wider than the torus, so the torus's
   side loops sit behind the cards: only the fans of arcs above and below show, fading out to the sides */
.cy { position: relative; left: 50%; translate: -50% 0; width: min(1680px, calc(100vw - 2 * var(--gut))); padding: clamp(90px, 10vw, 150px) 0; }
.cy-torus { position: absolute; left: 6%; width: 88%; max-width: none; top: 0; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
.cy-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cy-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px; min-height: 480px; padding: clamp(26px, 2.2vw, 44px) clamp(26px, 2.2vw, 44px) clamp(30px, 2.4vw, 46px); border-radius: 24px; background: linear-gradient(#111114, #070708); box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.09); }
.cy-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; background: radial-gradient(75% 100% at 50% 0%, rgba(202, 69, 255, 0.6), rgba(129, 48, 255, 0.24) 45%, rgba(129, 48, 255, 0) 78%); opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.cy-card::after { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1.5px; background: linear-gradient(90deg, rgba(247, 159, 255, 0), #f79fff, rgba(247, 159, 255, 0)); opacity: 0; transition: opacity 0.6s; }
.cy-card.is-on::before, .cy-card.is-on::after { opacity: 1; }
.cy-tag { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.065); font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; }
.cy-tag i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #ca45ff; display: grid; place-items: center; }
.cy-tag i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ca45ff; }
.cy-body { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 14px; }
.cy-body h3 { margin: 0; max-width: 14ch; font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.cy-check { margin: 0; max-width: 15em; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted-foreground); font-size: var(--fs-lg); line-height: 1.4; }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1b4dfe, #ac24ff); color: #fff; margin-top: 0; }
.ck svg { width: 13px; height: 13px; }
.ck use { stroke-width: 3; }
.cy-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.cy-more > div { min-height: 0; overflow: hidden; overflow: clip; overflow-clip-margin: 8px; }
.cy-more .btn { margin-top: 10px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.55s var(--ease), background-position var(--dur-normal) var(--ease); }
.cy-card.is-on .cy-more { grid-template-rows: 1fr; }
.cy-card.is-on .cy-more .btn { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .cy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cy-card { min-height: 340px; }
  .cy-card .cy-more { grid-template-rows: 1fr; }
  .cy-card .cy-more .btn { opacity: 1; transform: none; }
}
@media (max-width: 1100px) { .cy-torus { height: 640px; } }
@media (max-width: 640px) { .cy-cards { grid-template-columns: 1fr; } .cy-card { min-height: 0; gap: 56px; } .cy-torus { left: -40%; width: 180%; height: 520px; } }

/* add-ons on a glowing path that draws itself as you scroll */
.fp-h { text-align: center; margin: clamp(90px, 9vw, 140px) 0 clamp(44px, 5vw, 70px); }
.feat-path { position: relative; max-width: 1180px; margin: 0 auto; }
.fp-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.fp-base { fill: none; stroke: rgba(169, 151, 206, 0.26); stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.fp-glow { fill: none; stroke-width: 8; opacity: 0.7; }
.fp-line { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.fp-head { fill: #fff; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px #ca45ff); transition: opacity 0.3s; }
.fp-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 220px; row-gap: 16px; grid-auto-rows: minmax(54px, auto); }
.fp-item { position: relative; display: flex; align-items: center; }
.fp-item.l { grid-column: 1; }
.fp-item.r { grid-column: 2; }
.fp-card { position: relative; width: 100%; padding: 22px 26px; border-radius: 20px; background: linear-gradient(#121215, #070708); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.6s var(--ease); }
.fp-card b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; padding-right: 96px; }
.fp-card span { display: block; color: var(--muted-foreground); font-size: var(--fs-lg); line-height: 1.45; }
.fp-card em { position: absolute; top: 20px; right: 22px; font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--lilac); }
.fp-node { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: #070708; color: var(--muted-foreground); box-shadow: inset 0 0 0 1.5px rgba(169, 151, 206, 0.35), 0 0 0 7px #060607; transition: box-shadow 0.6s var(--ease), color 0.6s; }
.fp-item.l .fp-node { right: -96px; }
.fp-item.r .fp-node { left: -96px; }
.fp-node svg { width: 22px; height: 22px; }
.fp-node use { stroke-width: 1.7; }
.fp-item.lit .fp-node { color: #fff; box-shadow: inset 0 0 0 1.5px #ca45ff, 0 0 0 7px #060607, 0 0 28px 3px rgba(202, 69, 255, 0.55); }
.fp-item.lit .fp-card { box-shadow: inset 0 0 0 1px rgba(202, 69, 255, 0.4); }
@media (max-width: 1100px) { .fp-list { column-gap: 180px; } .fp-item.l .fp-node { right: -76px; } .fp-item.r .fp-node { left: -76px; } }
@media (max-width: 860px) {
  .fp-list { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 14px; grid-auto-rows: auto; }
  .fp-item, .fp-item.l, .fp-item.r { grid-row: auto !important; grid-column: 1; padding-left: 62px; }
  .fp-item.l .fp-node, .fp-item.r .fp-node { left: 0; right: auto; width: 44px; height: 44px; margin-top: -22px; }
  .fp-card { padding: 18px 20px; }
  .fp-card b { font-size: 17px; padding-right: 0; }
  .fp-card em { position: static; display: block; margin-top: 8px; }
}

/* voice ribbons at the foot of the engine section */
#engine { padding-bottom: clamp(30px, 4vw, 60px); }
.ribbons-head { text-align: center; display: grid; justify-items: center; gap: var(--s3); margin-top: clamp(90px, 10vw, 150px); }
.ribbons-head .h2 { margin: 0; }
.ribbons-head .lead { text-align: center; max-width: 52ch; }
.ribbons { position: relative; isolation: isolate; height: clamp(320px, 38vw, 600px); margin-top: clamp(10px, 2vw, 30px); pointer-events: none; }
.ribbons svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbons::after { content: ""; position: absolute; left: 20%; right: 20%; top: 40%; height: 70%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(129, 48, 255, 0.22), rgba(129, 48, 255, 0) 72%); }
.rb-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rb-chips li { position: absolute; transform: translate(-50%, -50%); padding: 13px 24px; border-radius: 14px; white-space: nowrap; font-size: clamp(14px, 1.15vw, 18px); font-weight: 600; color: #fff; background: rgba(24, 24, 28, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(3, 3, 3, 0.45); }
@media (max-width: 720px) {
  .rb-chips li { padding: 9px 14px; }
  .rb-chips li:not(:nth-child(1), :nth-child(4), :nth-child(6)) { display: none; }
}

/* AI analyst: eclipse ring with a lit crown and a side glow */
.eclipse { position: absolute; z-index: 0; left: 50%; top: clamp(40px, 4.5vw, 70px); width: min(1060px, 135vw); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
.eclipse::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(129, 48, 255, 0) 76%, rgba(129, 48, 255, 0.3) 84%, rgba(202, 69, 255, 0.75) 89.3%, rgba(247, 159, 255, 0.28) 92%, rgba(247, 159, 255, 0) 100%); -webkit-mask-image: linear-gradient(180deg, #000 4%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 70%); mask-image: linear-gradient(180deg, #000 4%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 70%); }
.eclipse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: linear-gradient(180deg, #f79fff, #ca45ff 16%, #8130ff 38%, rgba(129, 48, 255, 0) 66%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.eclipse i { position: absolute; right: -16%; top: 6%; width: 24%; height: 80%; border-radius: 50%; background: linear-gradient(180deg, #ffd600, #fe881b 22%, #ac24ff 52%, #1b4dfe 82%); filter: blur(70px); opacity: 0.32; }
#ask { padding-top: clamp(150px, 14vw, 220px); }

/* glowing seam where the dashboards end and the analyst begins */
.seam { position: absolute; left: 0; right: 0; bottom: -340px; height: 680px; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 34% 50% at 0% 50%, rgba(129, 48, 255, 0.45), rgba(129, 48, 255, 0) 72%), radial-gradient(ellipse 34% 50% at 100% 50%, rgba(202, 69, 255, 0.38), rgba(202, 69, 255, 0) 72%); }
#dashboards .wrap { position: relative; z-index: 1; }

/* footer: sitemap and fine print first, then the closing promise standing in a garden of
   draggable speech bubbles that ends the page. Built lazily and painted only near the viewport. */
.footer { content-visibility: auto; contain-intrinsic-size: auto 1200px; padding-bottom: 0; }
.ft-stage { position: relative; isolation: isolate; margin-top: clamp(90px, 10vw, 150px); padding-bottom: clamp(190px, 18vw, 280px); }
.ft-stage::before { content: ""; position: absolute; inset: auto 0 0; height: 70%; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(129, 48, 255, 0.3), rgba(129, 48, 255, 0) 70%), radial-gradient(ellipse 30% 40% at 50% 100%, rgba(254, 136, 27, 0.16), rgba(254, 136, 27, 0) 70%); }
.garden { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(300px, 36vw, 540px); z-index: -1; pointer-events: none; }
.garden svg { position: absolute; bottom: 0; height: 100%; width: auto; max-width: 37%; overflow: visible; }
.garden svg.l { left: 0; }
.garden svg.r { right: 0; transform: scaleX(-1); }
.garden .pl { animation: sway 8s ease-in-out infinite alternate; animation-play-state: paused; }
.garden .pd { animation: float 7s ease-in-out infinite; animation-play-state: paused; }
.garden.is-live .pl, .garden.is-live .pd { animation-play-state: running; }
.garden .pl.is-held { animation-play-state: paused; }
.garden .bh { pointer-events: auto; cursor: grab; touch-action: none; }
.garden .bh:active { cursor: grabbing; }
.garden .bi { transform-box: fill-box; transform-origin: 30% 100%; transition: transform 0.45s var(--ease), filter 0.45s var(--ease); }
.garden .bh:hover .bi { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(202, 69, 255, 0.55)); }
.garden .pl.is-held .bi { transform: scale(1.14); filter: drop-shadow(0 0 22px rgba(254, 136, 27, 0.6)); }
.garden .pl.is-heard .bi { filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.35)); }
@keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
@keyframes float { 50% { transform: translateY(-10px); opacity: 0.55; } }

.ft { position: relative; display: grid; justify-items: center; gap: var(--s3); text-align: center; pointer-events: none; }
.ft > * { pointer-events: auto; }
.ft-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: #e9e0ff; font-size: var(--fs-md); font-weight: 600; }
.ft-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.ft-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.ft-word { margin: 0; font-size: clamp(46px, 7.4vw, 120px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.ft-sub { margin: -6px 0 0; max-width: 46ch; color: var(--muted-foreground); font-size: var(--fs-xl); line-height: 1.5; text-wrap: balance; }

/* voice card: what the pulled bubble is saying */
.ft-voice { display: flex; align-items: center; gap: 16px; width: min(600px, 100%); padding: 14px 14px 14px 20px; border-radius: 22px; background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border), 0 30px 60px -30px rgba(129, 48, 255, 0.55); text-align: left; transition: box-shadow var(--dur-fast) var(--ease); }
.ft-voice.is-on { box-shadow: inset 0 0 0 1px rgba(202, 69, 255, 0.5), 0 30px 70px -26px rgba(172, 36, 255, 0.75); }
.fv-wave { flex: none; display: flex; align-items: center; gap: 3px; height: 34px; }
.fv-wave i { width: 3.5px; height: 30%; border-radius: 2px; background: linear-gradient(#b997ff, #ca45ff 55%, #fe881b); transition: height 0.4s var(--ease); }
.ft-voice.is-on .fv-wave i { animation: talk 0.9s ease-in-out infinite alternate; }
.fv-wave i:nth-child(2) { animation-delay: -0.3s; } .fv-wave i:nth-child(3) { animation-delay: -0.6s; } .fv-wave i:nth-child(4) { animation-delay: -0.15s; }
.fv-wave i:nth-child(5) { animation-delay: -0.45s; } .fv-wave i:nth-child(6) { animation-delay: -0.75s; } .fv-wave i:nth-child(7) { animation-delay: -0.2s; }
@keyframes talk { from { height: 20%; } to { height: 100%; } }
.fv-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.fv-q { margin: 0; color: #fff; font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.fv-q.swap { animation: fvIn 0.5s var(--ease); }
@keyframes fvIn { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.fv-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); color: var(--muted-foreground); }
.fv-tag { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); color: #e9e0ff; font-weight: 700; }
.fv-tag[data-s="pos"] { background: rgba(254, 136, 27, 0.18); color: #ffb36b; }
.fv-tag[data-s="neg"] { background: rgba(43, 167, 255, 0.16); color: #7cc8ff; }
.fv-tag[data-s="mix"] { background: rgba(221, 149, 255, 0.16); color: var(--lilac); }
.fv-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.fv-next { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.07); color: #fff; cursor: pointer; transition: background-color var(--dur-instant), transform 0.2s var(--ease); }
.fv-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease); }
.fv-next:hover, .fv-next:focus-visible { background: var(--navy); }
.fv-next:hover svg { transform: rotate(180deg); }
.fv-next:active { transform: scale(0.94); }
.ft-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.ft-up { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border); transition: background-color var(--dur-instant), box-shadow var(--dur-instant); }
.ft-up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); transition: transform 0.4s var(--ease); }
.ft-up:hover, .ft-up:focus-visible { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(202, 69, 255, 0.5); }
.ft-up:hover svg { transform: rotate(-90deg) translateX(3px); }

/* sitemap and fine print */
.ft-base { display: grid; gap: clamp(30px, 3.4vw, 46px); }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 80px); }
.ft-brand { display: grid; gap: 16px; align-content: start; }
.ft-brand .brand { color: #fff; }
.ft-brand .brand-name small { color: var(--muted-foreground); }
.ft-brand p { margin: 0; max-width: 40ch; color: var(--muted-foreground); font-size: var(--fs-lg); line-height: 1.55; }
.ft-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chips li { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font-size: 13px; }
.ft-chips b { color: #fff; font-weight: 700; }
.ft-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ft-nav h3 { margin: 0 0 14px; color: #fff; font-size: var(--fs-md); font-weight: 700; letter-spacing: 0.02em; }
.ft-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ft-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); text-decoration: none; font-size: var(--fs-lg); transition: color var(--dur-instant); }
.ft-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--grad-text); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.ft-nav a:hover, .ft-nav a:focus-visible { color: #fff; }
.ft-nav a:hover::after, .ft-nav a:focus-visible::after { transform: scaleX(1); }
.ft-new { padding: 1px 7px; border-radius: 6px; background: linear-gradient(90deg, #1b4dfe, #ac24ff); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; }
.ft-bottom { position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding-top: 22px; border-top: 1px solid var(--border); text-align: left; font-size: var(--fs-md); }
.ft-credits { font-size: 13px; color: var(--grey-text-dark); }
.ft-credits-pop { position: absolute; z-index: 5; right: 0; top: calc(100% + 12px); width: min(720px, 100%); padding: 18px 20px; border-radius: var(--radius-sm); background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border), 0 30px 60px -20px rgba(0, 0, 0, 0.8); animation: fvIn 0.4s var(--ease); }
.ft-credits-pop p:first-child { margin-top: 0; }
.ft-credits summary { width: fit-content; cursor: pointer; color: #fff; font-weight: 600; list-style: none; }
.ft-credits summary::-webkit-details-marker { display: none; }
.ft-credits summary::after { content: " +"; }
.ft-credits[open] summary::after { content: " –"; }
.ft-credits p { margin: 10px 0 0; line-height: 1.6; }
.ft-base .credits { margin: 10px 0 0; }
@media (max-width: 900px) { .ft-cols { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .garden { height: 300px; }
  .ft-stage { padding-bottom: 275px; }
  .garden svg { max-width: 78%; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .ft-voice { padding: 12px 12px 12px 16px; gap: 12px; }
  .fv-q { font-size: 15px; }
}
@media (max-width: 520px) { .ft-nav { grid-template-columns: 1fr 1fr; } .fv-wave { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .stars i, .garden .pl, .garden .pd, .ft-live::after, .ft-voice.is-on .fv-wave i { animation: none; }
  .stars i { opacity: 0.6; }
  .cy-card::before, .cy-card::after, .cy-more, .cy-more .btn { transition: none; }
}

/* ==========================================================================
   JOURNEY + THE THREE ROLE APPS (journey.js)
   Screens are drawn at a fixed design size and scaled as one picture.
   Motion follows the house curves: strong ease-out to enter, ease-in-out to move.
   ========================================================================== */
.fit { position: relative; width: 100%; }
.fit-c, .jr-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.jr-canvas { width: 760px; height: 600px; }

/* ---------- devices ---------- */
.dv-phone { position: absolute; width: 268px; height: 552px; border-radius: 48px; padding: 10px; background: linear-gradient(150deg, #2c2c33 0%, #121215 26%, #050506 60%, #1c1c20 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 4px #030303, 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 30px 70px -36px rgba(129, 48, 255, 0.5); }
.dv-phone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.22)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.dv-k { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #222227, #111114); }
.dv-k.k1 { left: -2px; top: 118px; height: 30px; }
.dv-k.k2 { left: -2px; top: 160px; height: 52px; }
.dv-k.k3 { right: -2px; top: 146px; height: 74px; }
.dv-scr { position: relative; height: 100%; border-radius: 38px; overflow: hidden; isolation: isolate; }
.dv-isl { position: absolute; z-index: 5; top: 11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; }
.dv-phone.droid .dv-isl { width: 12px; height: 12px; margin-left: -6px; top: 15px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12); }
.dv-glare { position: absolute; z-index: 6; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 30%); pointer-events: none; }
.dv-win { position: absolute; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #050506; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 60px 100px -50px rgba(0, 0, 0, 0.95), 0 30px 80px -44px rgba(129, 48, 255, 0.55); }
.dv-bar { height: 36px; flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: linear-gradient(#151518, #0a0a0c); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.dv-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; opacity: 0.75; }
.dv-bar > i:nth-child(2) { background: #ffbd2e; }
.dv-bar > i:nth-child(3) { background: #28c840; }
.dv-bar > span { margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); font-size: 10.5px; color: #a997ce; }
.dv-bar > span svg { width: 10px; height: 10px; }
.dv-body { flex: 1; min-height: 0; }

/* ---------- app screens, shared ---------- */
.ap { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.35; letter-spacing: -0.003em; }
.ap.lt { background: #f4f3f9; color: #1a0b54; --ink2: rgba(26, 11, 84, 0.62); --line: rgba(26, 11, 84, 0.08); --card: #fff; }
.ap.dk { background: radial-gradient(130% 55% at 50% 0%, #1b1b1f, #040405 62%); color: #fff; --ink2: #a997ce; --line: rgba(169, 151, 206, 0.15); --card: rgba(255, 255, 255, 0.055); }
.ap::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 92px; height: 4px; margin-left: -46px; border-radius: 4px; background: currentColor; opacity: 0.22; }
.sb { height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0 26px; font-size: 12px; font-weight: 700; }
.sb > span { display: flex; align-items: center; gap: 5px; }
.sb em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink2); }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sig u { width: 3px; border-radius: 1px; background: currentColor; opacity: 0.22; }
.sig u:nth-child(1) { height: 4px; }
.sig u:nth-child(2) { height: 6px; }
.sig u:nth-child(3) { height: 8px; }
.sig u:nth-child(4) { height: 10px; }
.sig u.on { opacity: 1; }
.bat { position: relative; width: 21px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1px currentColor; padding: 2px; display: flex; opacity: 0.9; }
.bat::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 1px; background: currentColor; }
.bat u { width: 72%; border-radius: 1.5px; background: currentColor; }
.ap-top { display: flex; align-items: center; gap: 10px; padding: 4px 16px 12px; }
.ap-top > div { flex: 1; min-width: 0; }
.ap-top small { display: block; font-size: 10.5px; color: var(--ink2); font-weight: 600; }
.ap-top b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ap-top.sm b { font-size: 14px; letter-spacing: -0.01em; }
.ap-av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8130ff, #ac24ff); }
.ap-av.g { background: linear-gradient(135deg, #ac24ff, #fe881b); }
.ap-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ap-ic svg { width: 15px; height: 15px; }
.ap-ic.bk svg { transform: rotate(90deg); }
.ap-ic.sp { background: linear-gradient(135deg, #ac24ff, #fe881b); box-shadow: none; color: #fff; }
.ap-st { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.ap-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-st.off { background: #fff1d6; color: #8a5a00; }
.ap-st.on { background: #dcf8eb; color: #0c7a4b; }
.ap-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.ap-body:last-child { padding-bottom: 20px; }
.ap-h { font-size: 11px; font-weight: 700; color: var(--ink2); margin: 2px 4px -2px; }
.ap-cta { flex-shrink: 0; padding: 10px 12px 12px; }
.ap-btn { height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #8130ff; color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 12px 24px -14px rgba(129, 48, 255, 0.9); }
.ap-btn svg { width: 15px; height: 15px; }
.ap-btn.ink { background: #1a0b54; box-shadow: 0 12px 24px -14px rgba(26, 11, 84, 0.8); }
.ap-tabs { flex-shrink: 0; display: flex; justify-content: space-around; padding: 9px 10px 20px; border-top: 1px solid var(--line); }
.ap-tabs span { display: grid; justify-items: center; gap: 3px; color: var(--ink2); }
.ap-tabs em { font-style: normal; font-size: 9.5px; font-weight: 600; }
.ap-tabs svg { width: 18px; height: 18px; }
.ap.lt .ap-tabs span.on { color: #8130ff; }
.ap.dk .ap-tabs span.on { color: #fff; }
.ap .te { font-family: var(--font-te); }
.wv { display: flex; align-items: center; gap: 2px; height: 30px; }
.wv i { flex: 1; min-width: 2px; border-radius: 3px; background: linear-gradient(#f79fff, #ac24ff); transform-origin: 50% 50%; animation: wvb 1.25s ease-in-out infinite; }
@keyframes wvb { 50% { transform: scaleY(0.38); } }
.pl { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1a0b54; }
.pl svg { width: 11px; height: 11px; margin-left: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 9.5px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: #e6dcff; white-space: nowrap; }
.pill.warm { background: rgba(254, 136, 27, 0.16); color: #ffb36b; }
.tick { width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%; background: rgba(61, 220, 151, 0.16); }
.tick path { fill: none; stroke: #3fbf8a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rg { transform: rotate(-90deg); flex-shrink: 0; }
.rg circle { fill: none; stroke-linecap: round; }
.rg-t { stroke: rgba(255, 255, 255, 0.18); }

/* Field App: Today */
.td-hero { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 20px; color: #fff; background: var(--ec-warm); box-shadow: 0 16px 30px -20px rgba(81, 40, 255, 0.95); }
.td-hero small { display: block; font-size: 10.5px; opacity: 0.85; font-weight: 600; }
.td-hero b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.td-hero b span { font-size: 15px; opacity: 0.7; }
.td-hero em { font-style: normal; font-size: 10.5px; font-weight: 600; opacity: 0.92; }
.td-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.td-stats div { background: var(--card); border-radius: 14px; padding: 9px 10px; box-shadow: 0 0 0 1px var(--line); }
.td-stats b { display: block; font-size: 16px; font-weight: 700; }
.td-stats span { font-size: 9.5px; color: var(--ink2); font-weight: 600; }
.td-b { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 9px 11px; box-shadow: 0 0 0 1px var(--line); }
.td-b.now { box-shadow: 0 0 0 1.5px #8130ff, 0 10px 20px -16px rgba(129, 48, 255, 0.8); }
.td-n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #f3edff; color: #8130ff; }
.td-b > div { flex: 1; min-width: 0; }
.td-b b { display: block; font-size: 12px; }
.td-b small { display: block; font-size: 10px; color: var(--ink2); }
.mini { width: 46px; height: 6px; border-radius: 6px; background: rgba(26, 11, 84, 0.08); overflow: hidden; }
.mini i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8130ff, #ac24ff); }

/* Field App: recording an open answer */
.rc-prog { padding: 0 16px 10px; display: grid; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink2); }
.rc-prog .seg { display: flex; gap: 2px; }
.rc-prog .seg i { flex: 1; height: 4px; border-radius: 4px; background: rgba(26, 11, 84, 0.1); }
.rc-prog .seg i.on { background: #5b3bff; }
.rc-q { background: var(--card); border-radius: 18px; padding: 12px 13px; box-shadow: 0 0 0 1px var(--line); }
.rc-q p { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.rc-q span { font-size: 11px; color: var(--ink2); }
.rc-rec { border-radius: 20px; padding: 12px; color: #fff; background: radial-gradient(120% 100% at 50% 0%, #2c1e57, #070708); display: grid; gap: 9px; box-shadow: 0 18px 30px -22px rgba(26, 11, 84, 0.95); }
.rc-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.rc-top b { margin-left: auto; font-size: 19px; font-variant-numeric: tabular-nums; }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a6e; box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.22); animation: blink 1.2s ease-in-out infinite; }
.rc-rec .wv { height: 38px; }
.rc-ctl { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #cfc3ec; font-weight: 600; padding: 0 8px; }
.rc-stop { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ac24ff, #fe881b); box-shadow: 0 0 0 6px rgba(172, 36, 255, 0.24), 0 12px 24px -8px rgba(254, 136, 27, 0.75); }
.rc-stop i { width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.rc-ok { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rc-ok span { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 12px; background: #e3f7ee; color: #0b6b42; font-size: 10.5px; font-weight: 700; }
.rc-ok svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Field App: sync */
.sy-card { border-radius: 20px; padding: 12px 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; }
.sy-top { display: flex; align-items: baseline; gap: 6px; }
.sy-top b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sy-top b em { font-style: normal; font-size: 15px; color: var(--ink2); }
.sy-top > span { font-size: 11px; color: var(--ink2); font-weight: 600; }
.sy-bar { height: 8px; border-radius: 8px; background: rgba(26, 11, 84, 0.08); overflow: hidden; }
.sy-bar i { display: block; height: 100%; border-radius: 8px; transform-origin: 0 50%; transform: scaleX(0.66); background: linear-gradient(90deg, #8130ff, #ac24ff 60%, #fe881b); }
.sy-card small { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink2); font-weight: 600; }
.sy-card small svg { width: 12px; height: 12px; }
.sy-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.sy-row > div { flex: 1; min-width: 0; }
.sy-row b { display: block; font-size: 11.5px; }
.sy-row small { display: block; font-size: 9.5px; color: var(--ink2); }
.sy-row em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ink2); }
.sy-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(26, 11, 84, 0.06); color: var(--ink2); }
.sy-ic svg { width: 13px; height: 13px; }
.sy-row.s2 .sy-ic { background: #dcf8eb; color: #0c7a4b; }
.sy-row.s2 em { color: #0c7a4b; }
.sy-row.s1 .sy-ic { background: #e6ecff; }
.sy-row.s1 em { color: #8130ff; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(129, 48, 255, 0.22); border-top-color: #8130ff; animation: spin 0.9s linear infinite; }

/* Field App: secret ballot */
.bl-head { margin: 0 12px 10px; padding: 14px; border-radius: 20px; background: #1a0b54; color: #fff; display: grid; gap: 4px; justify-items: start; }
.bl-lock { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); margin-bottom: 4px; }
.bl-lock svg { width: 15px; height: 15px; }
.bl-head b { font-size: 16px; }
.bl-head > span:last-child { font-size: 10.5px; color: #cfc3ec; line-height: 1.45; }
.bl-q p { margin: 0 4px 2px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.bl-q span { display: block; margin: 0 4px; font-size: 10.5px; color: var(--ink2); }
.bl-opt { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 37px; flex-shrink: 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; }
.bl-opt i { width: 12px; height: 12px; border-radius: 4px; }
.bl-r { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(26, 11, 84, 0.22); }
.bl-opt.sel { background: #f3edff; box-shadow: 0 0 0 2px #8130ff; }
.bl-opt.sel .bl-r { box-shadow: inset 0 0 0 5.5px #8130ff; }

/* Client Portal */
.po-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 14px 14px 0; background: linear-gradient(139deg, #1b4dfe, #8130ff 40%, #ac24ff 72%, #dd95ff); display: grid; box-shadow: 0 18px 34px -22px rgba(129, 48, 255, 0.95); }
.po-hero small { font-size: 10.5px; font-weight: 600; opacity: 0.92; }
.po-hero b { font-size: 38px; font-weight: 700; line-height: 1; margin-top: 4px; letter-spacing: -0.03em; }
.po-hero em { font-style: normal; font-size: 10.5px; font-weight: 600; margin-top: 2px; }
.spk { width: calc(100% + 28px); height: 44px; margin: 6px -14px 0; display: block; }
.ap-card { flex-shrink: 0; border-radius: 18px; padding: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 7px; }
.ap-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-ch b { font-size: 12.5px; }
.vi { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; font-size: 11px; }
.vi > span:first-child { display: flex; align-items: center; gap: 6px; color: #e6dcff; }
.vi i { width: 8px; height: 8px; border-radius: 3px; }
.vi b { font-variant-numeric: tabular-nums; }
.vb { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.vb u { display: block; height: 100%; border-radius: 5px; }
.po-alert { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: rgba(254, 136, 27, 0.12); box-shadow: inset 0 0 0 1px rgba(254, 136, 27, 0.26); }
.po-alert > svg { width: 17px; height: 17px; color: #ffb36b; flex-shrink: 0; }
.po-alert > div { flex: 1; min-width: 0; }
.po-alert b { display: block; font-size: 11.5px; }
.po-alert small { display: block; font-size: 10px; color: #f3c9a0; }
.po-alert .chev svg { width: 14px; height: 14px; transform: rotate(-90deg); color: #f3c9a0; }
.se-top { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.se-top small, .cs-top small { display: block; font-size: 10.5px; color: var(--ink2); font-weight: 600; }
.se-top b { display: block; font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.se-top em { font-style: normal; font-size: 10.5px; color: #3fbf8a; font-weight: 700; }
.d3 { transform: rotate(-90deg); flex-shrink: 0; }
.se-voice { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.se-voice p { margin: 0 0 3px; font-size: 11px; line-height: 1.45; color: #e6dcff; }
.se-voice small { font-size: 9.5px; color: var(--ink2); }
.ch { gap: 10px; }
.ch-q { align-self: flex-end; max-width: 86%; padding: 10px 13px; border-radius: 18px 18px 6px 18px; background: #8130ff; font-size: 12px; font-weight: 600; line-height: 1.4; }
.ch-steps { display: grid; gap: 6px; padding: 2px 4px; }
.ch-steps span { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink2); font-weight: 600; }
.ch-a { border-radius: 6px 18px 18px 18px; padding: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 9px; }
.ch-a p { margin: 0; font-size: 11.5px; line-height: 1.55; color: #f1ecff; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-meta span { height: 21px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 9.5px; font-weight: 700; color: #e6dcff; }
.ch-clip { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.ch-clip .wv { flex: 1; height: 22px; }
.ch-clip time, .ev-p time { font-size: 10px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ch-sug { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.ch-sug span { height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; font-weight: 600; color: #e6dcff; }
.ch-in { flex-shrink: 0; margin: 0 12px 18px; height: 44px; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; color: var(--ink2); }
.ch-in i { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #8130ff, #ac24ff); color: #fff; }
.ch-in svg { width: 14px; height: 14px; }

/* Command Center */
.cc { height: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); font-size: 11px; color: #fff; }
.cc-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; background: #030303; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.cc-side .cc-logo svg { width: 24px; height: 24px; margin-bottom: 8px; }
.cc-side > span:not(.cc-logo) { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #6f6593; }
.cc-side > span svg { width: 16px; height: 16px; }
.cc-side > span.on { background: rgba(172, 36, 255, 0.18); color: #fff; }
.cc-main { min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(90% 60% at 100% 0%, rgba(129, 48, 255, 0.14), rgba(129, 48, 255, 0) 60%); }
.cc-head { display: flex; align-items: center; gap: 10px; }
.cc-head > div { flex: 1; min-width: 0; }
.cc-head small { display: block; font-size: 10px; color: #a997ce; font-weight: 600; }
.cc-head b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cc-btn { height: 30px; padding: 0 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; background: linear-gradient(90deg, #8130ff, #ac24ff); white-space: nowrap; }
.cc-btn svg { width: 13px; height: 13px; }
.cc-btn.ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.2); }
.cc-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(61, 220, 151, 0.12); color: #3fbf8a; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.cc-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.cc-steps { display: flex; align-items: center; gap: 6px; }
.cc-steps > span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: #a997ce; font-size: 10.5px; font-weight: 600; }
.cc-steps > span svg { width: 11px; height: 11px; }
.cc-steps > span.done { color: #3fbf8a; }
.cc-steps > span.on { background: #fff; color: #1a0b54; }
.cc-steps > b { flex: 1; max-width: 22px; height: 1px; background: rgba(169, 151, 206, 0.25); }
.cc-g2 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; }
.cc-g2.ov { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.cc-g3 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; }
.cc-card { min-width: 0; min-height: 0; overflow: hidden; border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.12); display: flex; flex-direction: column; gap: 8px; }
.cc-card > .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; }
.cc-card > .h small { color: #a997ce; font-weight: 500; font-size: 10px; }
.mm { width: 100%; flex: 1 1 0; min-height: 0; display: block; }
.mm .gd { fill: #3a2b66; stroke: #060607; stroke-width: 0.5; }
.mm .gw { fill: #ac24ff; stroke: #fff; stroke-width: 0.6; filter: drop-shadow(0 0 4px rgba(202, 69, 255, 0.9)); }
.mm .bt { fill: #fff; stroke: #fe881b; stroke-width: 0.7; }
.mm .gwsel { fill: none; stroke: #fff; stroke-width: 3; }
.mm .gwdot { fill: #fff; stroke: #1a0b54; stroke-width: 3; }
.mm .pulse { fill: none; stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: mpulse 2.2s ease-out infinite; }
.mm .pulse.p2 { animation-delay: -1.1s; }
@keyframes mpulse { 0% { transform: scale(0.4); opacity: 0.95; } 100% { transform: scale(3); opacity: 0; } }
.mm .ag circle { stroke: #050506; stroke-width: 2; }
.mm .ag .a { fill: #3fbf8a; }
.mm .ag .s { fill: #b997ff; }
.mm .ag .o { fill: #ffbd2e; }
.mm-l, .mm-k { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 9.5px; color: #a997ce; }
.mm-l span { display: inline-flex; align-items: center; gap: 5px; }
.mm-l i { width: 8px; height: 8px; border-radius: 3px; }
.mm-l .l1 { background: #3a2b66; }
.mm-l .l2 { background: #ac24ff; }
.mm-l .l3 { background: #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px #fe881b; }
.mm-l .la { background: #3fbf8a; border-radius: 50%; }
.mm-l .ls { background: #b997ff; border-radius: 50%; }
.mm-l .lo { background: #ffbd2e; border-radius: 50%; }
.mm-k { align-items: center; flex-wrap: nowrap; }
.mm-k i { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #300681, #8130ff, #ca45ff, #fe881b, #ffd600); }
.qrow { display: grid; grid-template-columns: 58px 1fr 30px; align-items: center; gap: 8px; font-size: 10.5px; }
.qrow > span:first-child { color: #cfc3ec; }
.qbar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.qbar i { display: block; height: 100%; border-radius: 7px; }
.qrow b { text-align: right; font-variant-numeric: tabular-nums; }
.q-note { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; color: #a997ce; }
.q-note svg { width: 12px; height: 12px; flex-shrink: 0; }
.cc-chips { display: flex; gap: 8px; }
.cc-chips span { flex: 1; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.1); }
.cc-chips b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-chips small { font-size: 9.5px; color: #a997ce; }
.cc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kp { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(169, 151, 206, 0.1); display: grid; gap: 2px; }
.kp small { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #a997ce; font-weight: 600; }
.kp small svg { width: 11px; height: 11px; }
.kp b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kp em { font-style: normal; font-size: 9.5px; color: #3fbf8a; font-weight: 700; }
.cs-top { display: flex; align-items: center; gap: 12px; }
.cs-top b { display: block; font-size: 24px; font-weight: 600; }
.ag-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(169, 151, 206, 0.08); }
.ag-row .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; background: linear-gradient(135deg, #8130ff, #8130ff); }
.ag-row b { display: block; font-size: 11px; }
.ag-row small { display: block; font-size: 9px; color: #a997ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-p { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ag-p i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #8130ff, #ac24ff); }
.ag-row em { font-style: normal; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.st-a { background: rgba(61, 220, 151, 0.12); color: #3fbf8a; }
.st-s { background: rgba(43, 167, 255, 0.14); color: #7cc8ff; }
.st-o { background: rgba(255, 189, 46, 0.14); color: #ffd36b; }
.st-w { background: rgba(255, 90, 110, 0.14); color: #ff8b99; }
.qc-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 3px 0 0 #ff5a6e; }
.qc-row.warn { box-shadow: inset 3px 0 0 #ffbd2e; }
.qc-row > div { flex: 1; min-width: 0; }
.qc-row b { display: block; font-size: 10.5px; font-weight: 600; }
.qc-row small { font-size: 9.5px; color: #a997ce; }
.qc-a { display: flex; gap: 4px; }
.qc-a > span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #cfc3ec; }
.qc-a > span.no { background: rgba(255, 90, 110, 0.14); color: #ff8b99; }
.qc-a > span.yes { background: rgba(61, 220, 151, 0.14); color: #3fbf8a; }
.qc-a svg { width: 11px; height: 11px; }

/* ---------- the journey: pinned on wide screens, stacked otherwise ---------- */
#how { position: relative; }
#how .head { margin-bottom: clamp(26px, 3.6vw, 48px); }
.journey { position: relative; }
.jr-pin { display: none; }
.journey.is-pinned .jr-pin { display: flex; }
.journey.is-pinned .jr-list { display: none; }

/* the nav stays put through the pinned story, so the story leaves room for it */

.jr-pin {
  --wrap: 1560px;
  --acc-rgb: 202 69 255;
  position: relative;
  height: 100vh;
  min-height: 640px;
  flex-direction: column;
  padding: clamp(84px, 11vh, 106px) 0 clamp(14px, 2.2vh, 28px);
  isolation: isolate;
}
@supports (height: 100svh) { .jr-pin { height: 100svh; } }

/* ---- the room the story is told in: one drifting light per step, a faint mesh, a vignette ---- */
.jr-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.jr-sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #060607 0%, rgba(6, 6, 7, 0) 14%),
    radial-gradient(130% 80% at 54% 44%, rgba(0, 0, 0, 0) 40%, rgba(4, 4, 5, .7) 82%, #040405 100%);
}
.jr-mesh {
  position: absolute; inset: -12%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, rgba(0, 0, 0, 0) 1.5px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(62% 54% at 64% 46%, #000 0%, rgba(0, 0, 0, .35) 54%, transparent 80%);
  mask-image: radial-gradient(62% 54% at 64% 46%, #000 0%, rgba(0, 0, 0, .35) 54%, transparent 80%);
}
.jr-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.jr-orb.brand {
  width: 1240px; height: 1240px; right: -16%; top: -38%;
  background: radial-gradient(closest-side, rgba(129, 48, 255, .13), rgba(0, 0, 0, 0) 72%);
  animation: jrDriftA 28s ease-in-out infinite alternate;
}
.jr-acc {
  position: absolute; width: 1060px; height: 1060px; left: -18%; top: 6%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgb(var(--c, 202 69 255) / .17), rgba(0, 0, 0, 0) 72%);
  animation: jrDriftB 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes jrDriftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-54px, 44px, 0) scale(1.07); } }
@keyframes jrDriftB { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(60px, -40px, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .jr-orb, .jr-acc { animation: none !important; } }

.jr-in {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: clamp(300px, 25vw, 452px) minmax(0, 1fr);
  gap: clamp(28px, 4.2vw, 88px);
  align-items: center;
}

/* ---- the copy column: one full-height editorial column, top to bottom ---- */
.jr-copy { position: relative; align-self: stretch; }
.jr-copy .jr-t { position: absolute; inset: 0; }
.jr-t {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; gap: clamp(20px, 3vh, 40px);
  padding: clamp(6px, 2.4vh, 34px) 0;
}
.jr-meta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.jr-meta::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: rgb(var(--acc-rgb) / .9); }
.jr-ix { display: inline-flex; align-items: baseline; gap: 4px; font: 700 15px/1 var(--font); letter-spacing: .03em; color: #fff; font-variant-numeric: tabular-nums; }
.jr-ix em { font-style: normal; font-weight: 600; font-size: 12.5px; color: #6e6786; }
.jr-who {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 5px; border-radius: 999px;
  background: rgb(var(--acc-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / .28);
  color: #f1e7ff; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.jr-who i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.jr-who svg { width: 13px; height: 13px; }
.jr-who use { stroke: url(#gIcon); }
.jr-say { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(13px, 1.7vh, 21px); }
.jr-say .jr-meta { margin-bottom: clamp(2px, .8vh, 9px); }
.jr-t h3 { margin: 0; font-size: clamp(34px, 3.8vw, 62px); font-weight: 500; letter-spacing: -.034em; line-height: 1.015; text-wrap: balance; color: #fff; }
.jr-t p { margin: 0; font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.58; color: #bfb4dc; max-width: 37ch; text-wrap: pretty; }
.jr-facts {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; border-top: 1px solid rgba(255, 255, 255, .1);
}
.jr-facts li {
  display: flex; align-items: center; gap: 11px;
  padding: clamp(8px, 1.3vh, 13px) 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 14.5px; font-weight: 600; color: #ded7f0; font-variant-numeric: tabular-nums;
}
.jr-facts li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--acc-rgb)); }

/* ---- the stage: the mockups stand on a lit plate ---- */
.jr-stage {
  position: relative; width: 100%; aspect-ratio: 760 / 600;
  max-width: min(100%, calc((100vh - 160px) * 760 / 600));
  justify-self: center; align-self: center;
}
@supports (height: 100svh) { .jr-stage { max-width: min(100%, calc((100svh - 160px) * 760 / 600)); } }
.jr-stage .jr-canvas { z-index: 2; }
.jr-plate {
  position: absolute; inset: -3.6% -4.6% -7.5%; z-index: 0; border-radius: 40px; pointer-events: none;
  background: rgba(255, 255, 255, .022);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .055),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 70px 130px -70px rgba(0, 0, 0, .95);
}
.jr-rim {
  position: absolute; z-index: 1; left: 12%; right: 12%; top: -3.6%; height: 1px; pointer-events: none;
  background: rgb(var(--acc-rgb) / .42);
}

/* ---- the chapter rail ---- */
.jr-bar { --jrpt: clamp(10px, 1.9vh, 22px); position: relative; flex-shrink: 0; padding-top: var(--jrpt); }
.jr-track {
  position: absolute; left: calc(var(--gut) + (100% - 2 * var(--gut)) / 16); right: calc(var(--gut) + (100% - 2 * var(--gut)) / 16);
  top: calc(var(--jrpt) + 6px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .075); overflow: hidden;
}
.jr-fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: rgb(var(--acc-rgb) / .85); transition: background-color .6s var(--ease); }
.jr-chap { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.jr-chap button {
  width: 100%; display: grid; justify-items: center; gap: 11px; padding: 0 2px 2px; border: 0; background: none;
  color: #7a7294; font: 600 13px/1.2 var(--font); letter-spacing: .005em; cursor: pointer;
  transition: color .4s var(--ease);
}
.jr-cd {
  position: relative; width: 13px; height: 13px; border-radius: 50%; background: #121216;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15), 0 0 0 5px var(--ec-body);
  transition: box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.jr-cd::after {
  content: ""; position: absolute; inset: 3.2px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.35);
  transition: opacity .4s var(--ease), transform .5s var(--ease), background-color .45s var(--ease);
}
.jr-chap button.done { color: #b0a5cd; }
.jr-chap button.done .jr-cd { background: #121216; box-shadow: inset 0 0 0 1.5px rgb(var(--acc-rgb) / .5), 0 0 0 5px var(--ec-body); }
.jr-chap button.done .jr-cd::after { opacity: 1; transform: scale(.7); background: rgb(var(--acc-rgb)); }
.jr-chap button.on { color: #fff; }
.jr-chap button.on .jr-cd { background: #fff; box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 5px var(--ec-body); }
.jr-chap button.on .jr-cd::after { opacity: 1; transform: scale(1); background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .jr-chap button:hover { color: #fff; }
  .jr-chap button:hover .jr-cd { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 0 0 5px var(--ec-body); }
}
.jr-chap button:focus-visible { outline: 2px solid rgb(var(--acc-rgb)); outline-offset: 5px; border-radius: 10px; }

/* ---- stacked: phones, tablets, reduced motion ---- */
.jr-list { display: grid; gap: clamp(64px, 9vw, 120px); }
.jm { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.jm .jr-t { gap: clamp(16px, 2.4vw, 26px); padding: 0; justify-content: flex-start; }
.jm .jr-facts { margin-top: 4px; }
.jm-stage { position: relative; width: 100%; aspect-ratio: 760 / 600; }
.jm-stage .jr-canvas { z-index: 2; }
@media (max-width: 760px) {
  .jm { grid-template-columns: 1fr; gap: 18px; }
  .jr-t { gap: 14px; }
  .jm .jr-plate { inset: -2% -3% -5%; border-radius: 26px; }
  .jm .jr-rim { display: none; }
}

/* ---------- scenes ---------- */
.sc { position: absolute; inset: 0; }
.sc-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(closest-side, var(--g), rgba(0, 0, 0, 0)); pointer-events: none; }
.co { position: absolute; display: flex; align-items: center; gap: 11px; padding: 10px 15px 10px 10px; border-radius: 16px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 50px -24px rgba(0, 0, 0, 0.95); white-space: nowrap; }
.co .ci { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.co .ci svg { width: 18px; height: 18px; }
.co b { display: block; font-size: 13.5px; font-weight: 600; }
.co small { display: block; font-size: 11.5px; color: #a997ce; }
.co.ok .ci { background: rgba(61, 220, 151, 0.14); color: #3fbf8a; }
.co.warn .ci { background: rgba(255, 189, 46, 0.14); color: #ffd36b; }
.co.pu .ci use { stroke: url(#gIcon); }
.sc-lines { position: absolute; left: 0; top: 0; width: 760px; height: 600px; overflow: visible; pointer-events: none; }
.sc-lines .ld { fill: none; stroke: rgba(202, 69, 255, 0.55); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sc-lines .ldot { fill: #fff; filter: drop-shadow(0 0 4px #ca45ff); }
/* sync */
.sy-path .ld { stroke: rgba(43, 167, 255, 0.55); stroke-dasharray: 0.02 0.012; }
.pk { position: absolute; left: 509px; top: 257px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px #b997ff; animation: pk 1.8s linear infinite; animation-delay: var(--d); opacity: 0; }
@keyframes pk { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(52px, 14px); } 88% { opacity: 1; } 100% { transform: translate(98px, 38px); opacity: 0; } }
.sv { position: absolute; left: 592px; top: 236px; width: 160px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.sv-o { width: 110px; height: 110px; border-radius: 34px; display: grid; place-items: center; color: #fff; background: linear-gradient(139deg, #1b4dfe, #8130ff 40%, #ac24ff 70%, #dd95ff); box-shadow: 0 0 0 10px rgba(129, 48, 255, 0.12), 0 0 70px -6px rgba(129, 48, 255, 0.85); }
.sv-o svg { width: 46px; height: 46px; }
.sv b { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sv small { font-size: 11.5px; color: #a997ce; }
/* verify */
.rd { position: absolute; left: 22px; top: 96px; width: 400px; height: 400px; }
.rd-r { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.18); }
.rd-r.r1 { inset: 0; }
.rd-r.r2 { inset: 17%; }
.rd-r.r3 { inset: 34%; }
.rd-f { position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(61, 220, 151, 0.75); background: radial-gradient(closest-side, rgba(61, 220, 151, 0.11), rgba(61, 220, 151, 0.02)); }
.rd-sw { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(61, 220, 151, 0) 0deg, rgba(61, 220, 151, 0) 318deg, rgba(61, 220, 151, 0.16) 356deg, rgba(61, 220, 151, 0.55) 359.5deg, rgba(61, 220, 151, 0) 360deg); animation: rdsw 4.5s linear infinite; }
@keyframes rdsw { to { transform: rotate(360deg); } }
.rd-hub { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: rgba(61, 220, 151, 0.16); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.5), 0 0 30px rgba(61, 220, 151, 0.35); }
.rd-hub svg { width: 24px; height: 24px; }
.rd-pt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.rd-pt.in { background: #3fbf8a; box-shadow: 0 0 0 6px rgba(61, 220, 151, 0.2), 0 0 22px #3fbf8a; }
.rd-pt.out { background: #ff5a6e; box-shadow: 0 0 0 6px rgba(255, 90, 110, 0.2), 0 0 22px rgba(255, 90, 110, 0.8); }
.rd-lb { position: absolute; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(7, 7, 8, 0.92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); white-space: nowrap; }
.rd-lb.in { color: #3fbf8a; }
.rd-lb.out { color: #ff8b99; }
.rd-cap { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 12.5px; font-weight: 600; color: #a997ce; }
.vc { position: absolute; left: 438px; top: 104px; width: 306px; padding: 16px; border-radius: 22px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.95); display: grid; gap: 8px; }
.vc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; font-size: 14px; font-weight: 600; }
.vc-pass { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(61, 220, 151, 0.14); color: #3fbf8a; font-size: 11.5px; font-weight: 700; }
.vc-pass svg { width: 13px; height: 13px; }
.vc-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 12.5px; }
.vc-row > svg:first-child { width: 16px; height: 16px; color: #3fbf8a; }
.vc-row b { font-variant-numeric: tabular-nums; }
.vc-row .tick { width: 16px; height: 16px; }
.vc-f { text-align: center; font-size: 11.5px; color: #a997ce; padding-top: 2px; }
/* transcribe */
.tx { position: absolute; left: 30px; top: 92px; width: 700px; padding: 22px 24px; border-radius: 26px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 70px -36px rgba(0, 0, 0, 0.95); display: grid; gap: 16px; }
.tx-h { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tx-h b { font-weight: 600; }
.tx-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #8130ff, #ca45ff); }
.tx-ic svg { width: 16px; height: 16px; }
.tx-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #7cc8ff; }
.tx-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.tx-w { position: relative; height: 92px; }
.tx-w .wv { position: absolute; inset: 0; height: 100%; gap: 3px; }
.tx-w .wv i { animation: none; }
.tx-w .wv.base i { background: rgba(221, 149, 255, 0.18); }
.tx-w .wv.lit i { background: linear-gradient(#b997ff, #ca45ff 55%, #fe881b); }
.tx-head { position: absolute; left: 0; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.8); }
.tx-te { margin: 0; font-size: 24px; line-height: 1.75; font-weight: 500; }
.tx-te .w { display: inline-block; }
.tx-en { margin: -6px 0 0; font-size: 15.5px; color: #a997ce; }
.tx-s { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-s span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #cfc3ec; }
.tx-s svg { width: 14px; height: 14px; color: #3fbf8a; }
.tx-s b { color: #fff; font-variant-numeric: tabular-nums; }
/* analyse */
.an-q { position: absolute; left: 20px; top: 104px; width: 380px; padding: 20px; border-radius: 24px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.95); display: grid; gap: 12px; }
.an-q small { font-size: 11.5px; color: #a997ce; font-weight: 600; }
.an-q p { position: relative; z-index: 0; margin: 0; font-size: 20px; line-height: 1.6; font-weight: 500; }
.hl { background: linear-gradient(var(--hc), var(--hc)) no-repeat 0 90% / 100% 0.42em; }
.hl.n { --hc: rgba(129, 48, 255, 0.62); }
.hl.p { --hc: rgba(254, 136, 27, 0.55); }
.an-q .an-te { font-size: 13px; line-height: 1.6; color: #cfc3ec; font-weight: 400; }
.an-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #a997ce; }
.an-who svg { width: 13px; height: 13px; }
.an-r { position: absolute; left: 420px; top: 76px; width: 320px; padding: 18px; border-radius: 24px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.95); display: grid; gap: 9px; }
.an-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.an-i { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.an-i > i { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.an-i > i svg { width: 15px; height: 15px; }
.an-i b { font-size: 13.5px; }
.an-i em { font-style: normal; font-size: 11.5px; font-weight: 700; }
.an-m { grid-column: 2 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.an-m u { display: block; height: 100%; border-radius: 5px; transform-origin: 0 50%; }
.an-i.n > i { background: rgba(43, 167, 255, 0.14); color: #7cc8ff; }
.an-i.n em { color: #7cc8ff; }
.an-i.n .an-m u { background: linear-gradient(90deg, #8130ff, #b997ff); }
.an-i.p > i { background: rgba(254, 136, 27, 0.14); color: #ffb36b; }
.an-i.p em { color: #ffb36b; }
.an-i.p .an-m u { background: linear-gradient(90deg, #ac24ff, #fe881b); }
.an-e { display: flex; flex-wrap: wrap; gap: 6px; }
.an-e span { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; font-weight: 600; color: #e6dcff; }
.an-c { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.an-c b { display: block; font-size: 13.5px; }
.an-c small { display: block; font-size: 11px; color: #a997ce; }
.an-c .rg-v { stroke-dashoffset: 0; }
/* ask */
.ev { position: absolute; left: 24px; top: 132px; width: 336px; padding: 18px; border-radius: 22px; background: rgba(20, 20, 23, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.95); display: grid; gap: 10px; }
.ev-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ev-h > svg { width: 14px; height: 14px; color: #ca45ff; }
.ev-h .pill { margin-left: auto; }
.ev p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.ev p.te { font-size: 12.5px; color: #cfc3ec; line-height: 1.6; }
.ev-p { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.ev-p .wv { flex: 1; height: 26px; }
.ev small { font-size: 11px; color: #a997ce; }
/* loops run only on the live scene */
.journey .sc:not(.is-live) *, .journey .sc:not(.is-live) *::before, .journey .sc:not(.is-live) *::after { animation-play-state: paused !important; }

/* ---------- three apps ---------- */
.trio .pw { position: absolute; top: 24px; }
.trio .p1 { left: 36px; top: 64px; transform: rotate(-6deg) scale(0.88); z-index: 1; }
.trio .p2 { left: 246px; z-index: 3; }
.trio .p3 { left: 456px; top: 64px; transform: rotate(6deg) scale(0.88); z-index: 2; }
.trio .dv-phone { position: relative; }
#p-cmd .prod-art, #p-field .prod-art, #p-portal .prod-art { padding: clamp(8px, 1.2vw, 16px); }
.fit.scrollx { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.crop .co, .crop .sc-lines, .crop .pk, .crop .sv, .crop .ev { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wv i, .rc-dot, .spin, .pk, .rd-sw, .mm .pulse, .cc-live i, .tx-live i { animation: none; }
  .pk { opacity: 0; }
}


/* ==========================================================================
   Touch sizing. On a mouse these controls are fine at their drawn size; on a
   finger they were 21 to 38 px tall, under the 44 px minimum. Only the hit
   area grows, so nothing moves on the desktop layout.
   ========================================================================== */
@media (pointer: coarse) {
  /* tap targets */
  .link-arrow { min-height: 44px; }
  .brand { min-height: 44px; }
  .seg.sm button { height: 44px; }
  .gl-pips button, .gl-lang button, .dp-tabs button, .region-chips button, .a-foot button { height: 44px; }
  .dp-pick select, .mx select, select { min-height: 44px; }
  .mc-row input, input[type="text"], input[inputmode="numeric"], input[type="number"], input:not([type]) { min-height: 44px; }
  input[type="range"], .cx input[type="range"] { height: 44px; }
  .sw { position: relative; }
  .sw::before { content: ""; position: absolute; inset: -9px -4px; }
  .ds-sl { min-width: 28px; }
}
