/* Bud Decision Studio product page.
 * The page is a dark ink ground tinted toward Bud violet (the app icon's ground). Bud's three logo violets are the
 * only data colors; amber means "ask a human" and green "act automatically", as in the app. The replay of the app in
 * the hero uses the app's own light theme tokens (DESIGN.md), so it reads as the real product on a lit screen. */

@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0F0C17;
  --ink-2: #140F1E;
  --plate: #19142A;
  --plate-2: #211A34;
  --line: rgba(230, 218, 255, 0.10);
  --line-2: rgba(230, 218, 255, 0.06);
  --paper: #F4F1FA;
  --mist: #ADA6C0;
  --dim: #8C85A2;
  --lav: #D9BAF9;
  --orchid: #B785F4;
  --violet: #8C33EF;
  --violet-hi: #7D24E2;
  --amber: #FFB547;
  --green: #5BD98A;

  /* the app's light theme, for the replay */
  --a-ground: #F5F5F7; --a-surface: #FFFFFF; --a-sidebar: #EEEDF3; --a-fill: #EDEDF1; --a-line: rgba(22, 18, 40, 0.11);
  --a-line-2: rgba(22, 18, 40, 0.065); --a-text: #1D1D1F; --a-text-2: #636368; --a-text-3: #69696E;
  --a-accent: #8C33EF; --a-accent-text: #7A22E0; --a-tint: #F3EBFE; --a-tint-2: #E8D9FD;
  --a-d1: #DCC7FB; --a-d2: #B98AF5; --a-d3: #8C33EF;
  --a-orange: #F08C00; --a-orange-text: #A84B00; --a-orange-tint: #FFF1DC; --a-green-text: #0F6E36; --a-green-tint: #E3F6EA;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 24px;
  --r-plate: 16px;
  --r-ctl: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.55 var(--font); letter-spacing: -0.006em;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
::selection { background: rgba(140, 51, 239, .55); color: #fff; }
html { scrollbar-color: #3A2F55 var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3A2F55; border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #4E3F74; }
input, textarea { caret-color: var(--lav); }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ph { display: inline-block; flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1224px; margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .25s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16.5px; }
.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -8px rgba(0, 0, 0, .55);
}
.btn-primary:hover { background: var(--violet-hi); }
.btn-ghost { background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--paper); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-ico { display: inline-flex; width: 20px; height: 20px; }
.btn-ico:empty { display: none; }
.btn-ico svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------ navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 12, 23, .9); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1224px; margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; white-space: nowrap; letter-spacing: -0.02em; color: var(--mist); }
.brand b { color: var(--paper); font-weight: 600; }
.nav-links { display: flex; gap: 2px; justify-self: center; }
.nav-links a { text-decoration: none; color: var(--mist); font-size: 14px; padding: 7px 11px; border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--paper); background: rgba(255, 255, 255, .05); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--mist); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { display: grid; padding: 8px var(--gutter) 20px; background: rgba(15, 12, 23, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-2); }
.menu[hidden] { display: none; }
.menu a { text-decoration: none; padding: 13px 0; font-size: 18px; border-bottom: 1px solid var(--line-2); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 64px 0 72px; isolation: isolate; overflow: hidden; }
.hero::before { /* light falling from the top, the same violet as the mark */
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 44% at 50% 18%, rgba(140, 51, 239, .30), transparent 70%),
    radial-gradient(30% 30% at 22% 8%, rgba(183, 133, 244, .10), transparent 70%),
    radial-gradient(30% 30% at 80% 12%, rgba(183, 133, 244, .08), transparent 70%);
}
.hero::after { /* the pool of light under the app window */
  content: ""; position: absolute; left: 50%; bottom: 40px; width: min(1300px, 110vw); height: 520px; transform: translateX(-50%); z-index: -2;
  background: radial-gradient(50% 50% at 50% 50%, rgba(140, 51, 239, .26), transparent 70%); pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0 0 auto; width: 100%; height: 1000px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-grid { /* the figure grid: 0, 25, 50, 75, 100 percent */
  position: absolute; inset: 0 0 auto; height: 980px; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 25% 100%; background-position: 12.5% 0;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%);
}
.hero-copy { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hero-mark { position: relative; width: 168px; height: 168px; margin: 0 auto 30px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-mark img { display: none; width: 100%; height: 100%; }
.no-field .hero-mark { cursor: default; }
.no-field .hero-mark img { display: block; }
.release-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 14px; color: var(--mist);
  transition: background .2s, color .2s;
}
.release-pill:hover { background: rgba(255, 255, 255, .08); color: var(--paper); }
.release-pill .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--orchid); }
.hero-title {
  margin: 0 auto; max-width: 1120px; font-size: clamp(44px, 7.4vw, 104px); line-height: .96; letter-spacing: -0.05em; font-weight: 650;
  font-variation-settings: "opsz" 32; text-wrap: balance;
}
.hero-title .w { display: inline-block; }
.hero-lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(18px, 1.75vw, 21px); line-height: 1.5; color: var(--mist); text-wrap: balance; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 14px; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hero-meta a { color: var(--mist); text-decoration-color: rgba(173, 166, 192, .45); }
.hero-meta a:hover { color: var(--paper); }

/* intro choreography: hidden until the particles release them */
.js .hero-title .w, .js .hero-lede, .js .hero-cta, .js .hero-meta, .js .release-pill, .js .stage { opacity: 0; }
.hero.ready .release-pill { animation: rise .9s var(--ease-out) both; }
.hero.ready .hero-title .w { animation: word 1.1s var(--ease-out) both; }
.hero.ready .hero-title .w:nth-child(2) { animation-delay: .06s; }
.hero.ready .hero-title .w:nth-child(3) { animation-delay: .12s; }
.hero.ready .hero-title .w:nth-child(4) { animation-delay: .18s; }
.hero.ready .hero-title .w:nth-child(5) { animation-delay: .24s; }
.hero.ready .hero-title .w:nth-child(6) { animation-delay: .30s; }
.hero.ready .hero-lede { animation: rise 1s .28s var(--ease-out) both; }
.hero.ready .hero-cta { animation: rise 1s .38s var(--ease-out) both; }
.hero.ready .hero-meta { animation: rise 1s .46s var(--ease-out) both; }
.hero.ready .stage { animation: fadein 1.2s .45s var(--ease-out) both; }
@keyframes word { from { opacity: 0; transform: translateY(.35em) scale(.96); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ stage: the replay of the app */
.stage { position: relative; margin: 72px auto 0; padding: 0 var(--gutter); max-width: 1248px; }
.scenarios { display: flex; justify-content: center; gap: 6px; margin: 0 auto 18px; padding: 5px; width: max-content; max-width: 100%;
  background: rgba(25, 20, 42, .7); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); overflow-x: auto; }
.scn { position: relative; border: 0; background: transparent; color: var(--mist); font-size: 14px; font-weight: 550; padding: 9px 16px; border-radius: 10px; cursor: pointer; overflow: hidden; white-space: nowrap; transition: color .2s, background .2s; }
.scn:hover { color: var(--paper); }
.scn[aria-selected="true"] { color: var(--paper); background: rgba(255, 255, 255, .08); }
.scn i { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--orchid); transform-origin: left; transform: scaleX(0); opacity: 0; }
.scn[aria-selected="true"] i { opacity: 1; }

.mock-wrap { position: relative; perspective: 2200px; }
.mock {
  --tilt: 0;
  position: relative; margin: 0 auto; width: 100%; max-width: 1200px; height: 668px; border-radius: 14px; overflow: hidden;
  background: var(--a-ground); color: var(--a-text); font-size: 13px; line-height: 1.4; letter-spacing: -0.005em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 0 1px rgba(255, 255, 255, .05) inset, 0 50px 120px -30px rgba(66, 20, 140, .85), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform: rotateX(calc(var(--tilt) * 1deg)) translateZ(0); transform-origin: 50% 0; will-change: transform;
  display: grid; grid-template-rows: 44px 1fr 28px;
}
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--a-surface); border-bottom: 1px solid var(--a-line-2); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.mock-title { font-size: 13.5px; color: var(--a-text-2); margin-left: 8px; }
.mock-title b { color: var(--a-text); font-weight: 650; margin-right: 6px; }
.mock-bar-end { margin-left: auto; display: flex; gap: 14px; color: var(--a-text-3); }
.mock-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; }
.mock-status { display: flex; align-items: center; gap: 22px; padding: 0 14px; background: var(--a-surface); border-top: 1px solid var(--a-line-2); color: var(--a-text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.mock-status span { display: inline-flex; align-items: center; gap: 6px; }
.mock-status .mem i { display: inline-block; width: 90px; height: 5px; border-radius: 3px; background: var(--a-fill); overflow: hidden; }
.mock-status .mem b { display: block; height: 100%; width: 50%; background: var(--a-d2); }
.mock-status .api { margin-left: auto; }
.mock-status code { background: var(--a-fill); padding: 1px 6px; border-radius: 4px; color: var(--a-text); font-size: 11px; }

.m-side { background: var(--a-sidebar); border-right: 1px solid var(--a-line-2); padding: 12px 10px; font-size: 13px; }
.m-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; font-size: 13px; color: var(--a-text-2); white-space: nowrap; }
.m-brand b { color: var(--a-text); }
.m-side ul { list-style: none; margin: 0; padding: 0; }
.m-side li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--a-text); }
.m-side li.on { background: rgba(120, 110, 150, .17); font-weight: 600; }
.m-side li svg { width: 16px; height: 16px; color: var(--a-accent-text); }
.m-side li em { margin-left: auto; font-style: normal; color: var(--a-text-3); font-size: 12px; }
.m-sec { margin: 16px 8px 4px; font-size: 11.5px; color: var(--a-text-3); font-weight: 600; }
.m-loaded { display: flex; align-items: center; gap: 7px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.m-loaded i { width: 7px; height: 7px; border-radius: 50%; background: #1FA055; flex: none; }
.m-loaded span { margin-left: auto; color: var(--a-text-3); }

.m-build { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; background: var(--a-surface); border-right: 1px solid var(--a-line-2); min-width: 0; min-height: 0; }
.m-model { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 10px; }
.m-model-ico img { border-radius: 6px; }
.m-model-txt { display: grid; line-height: 1.25; margin-right: auto; min-width: 0; }
.m-model-txt b { font-size: 13.5px; }
.m-model-txt small { color: var(--a-text-2); font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.dots { width: 26px; height: 5px; background: radial-gradient(circle, var(--a-accent) 2.2px, transparent 2.6px) 0 50% / 6.5px 5px repeat-x; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--a-fill); color: var(--a-text-2); font-size: 11px; }
.m-label { margin-top: 4px; font-size: 12px; color: var(--a-text-2); }
.m-label b { color: var(--a-text); font-size: 13.5px; margin-right: 6px; }
.m-label span { float: right; color: var(--a-text-3); }
.m-state { min-height: 92px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--a-text); }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--a-accent); animation: blink 1s steps(1) infinite; }
.m-state.done .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.m-questions { display: grid; gap: 7px; align-content: start; min-height: 0; overflow: hidden; }
.mq { border: 1px solid var(--a-line); border-radius: 10px; padding: 8px 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.mq.in { opacity: 1; transform: none; }
.mq-h { display: flex; align-items: center; gap: 8px; }
.qt { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--a-tint); color: var(--a-accent-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.qt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.qt[data-t="score"]::before { border-radius: 2px; }
.qt[data-t="noul"]::before { border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mq-q { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-o { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 6px; }
.mq-o span { padding: 1px 7px; border: 1px solid var(--a-line); border-radius: 6px; font-size: 11.5px; color: var(--a-text); white-space: nowrap; }
.mq-o .sep { border: 0; padding: 0; color: var(--a-text-3); }
.m-decide-row { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 8px; }
.m-decide {
  flex: 1; height: 38px; border: 0; border-radius: 10px; background: var(--a-accent); color: #fff; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; cursor: default;
  transition: transform .15s var(--ease), filter .2s;
}
.m-decide.press { transform: scale(.97); filter: brightness(1.12); }
.m-decide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) 50%, rgba(255, 255, 255, .55), transparent 40%); opacity: 0; }
.m-decide.press::after { animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(2.4); } }

.m-answers { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-ground); }
.m-tabs { display: flex; gap: 22px; padding: 0 18px; height: 42px; align-items: stretch; border-bottom: 1px solid var(--a-line-2); background: var(--a-surface); font-size: 13.5px; color: var(--a-text-2); }
.m-tabs span { display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.m-tabs .on { color: var(--a-text); font-weight: 600; border-color: var(--a-accent); }
.m-meta { padding: 10px 18px 8px; font-size: 12.5px; color: var(--a-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; min-height: 36px; }
.m-meta b { color: var(--a-text); font-weight: 600; }
.m-meta .ms { color: var(--a-accent-text); font-weight: 650; }
.m-figs { display: grid; gap: 9px; padding: 0 14px 14px; align-content: start; min-height: 0; overflow: hidden; }

/* a figure: one answer */
.fig { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; padding: 10px 14px 10px; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.fig.in { opacity: 1; transform: none; }
.fig-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--a-text-2); }
.fig-no { color: var(--a-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a-text); }
.sure { margin-left: auto; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--a-tint); color: var(--a-accent-text); }
.sure.amber { background: var(--a-orange-tint); color: var(--a-orange-text); }
.sure.plain { background: var(--a-fill); color: var(--a-text-2); }
.fig-a { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 6px; }
.fig-a b { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }
.fig-a span { font-size: 14px; color: var(--a-text-2); font-variant-numeric: tabular-nums; }
.hrows { display: grid; gap: 4px; }
.hrow { display: grid; grid-template-columns: minmax(70px, 34%) 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
.hrow .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a-text-2); }
.hrow.top .l { color: var(--a-text); font-weight: 600; }
.track { position: relative; height: 9px; border-radius: 5px; background: linear-gradient(90deg, transparent calc(25% - .5px), var(--a-line-2) calc(25% - .5px), var(--a-line-2) calc(25% + .5px), transparent calc(25% + .5px), transparent calc(50% - .5px), var(--a-line-2) calc(50% - .5px), var(--a-line-2) calc(50% + .5px), transparent calc(50% + .5px), transparent calc(75% - .5px), var(--a-line-2) calc(75% - .5px), var(--a-line-2) calc(75% + .5px), transparent calc(75% + .5px)), var(--a-fill); }
.bar { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 5px; background: var(--a-d1); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease-out); }
.hrow.top .bar { background: var(--a-d3); }
.hrow .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--a-text-2); }
.hrow.top .v { color: var(--a-text); font-weight: 600; }
.thr { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--a-text-3); left: 90%; opacity: .7; }
.cols { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; height: 62px; align-items: end; padding: 0 4px; border-bottom: 1px solid var(--a-line); }
.col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col i { display: block; width: 70%; max-width: 46px; height: 100%; border-radius: 4px 4px 0 0; background: var(--a-d1); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-out); }
.col.top i { background: var(--a-orange); }
.col.top.v i { background: var(--a-d3); }
.ring { position: absolute; bottom: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 2.5px solid var(--a-accent); background: var(--a-surface); left: 0; opacity: 0; transition: left 1.1s var(--ease-out), opacity .3s; }
.ring.on { opacity: 1; }
.clabels { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; padding: 5px 4px 0; font-size: 11px; text-align: center; color: var(--a-text-2); line-height: 1.25; }
.clabels span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.clabels b { display: block; font-weight: 500; color: var(--a-text-3); font-variant-numeric: tabular-nums; }
.clabels .top { color: var(--a-text); font-weight: 600; }
.clabels .top b { color: var(--a-text); font-weight: 600; }
.split { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--a-fill); font-size: 11.5px; font-weight: 600; }
.split em { font-style: normal; padding: 0 8px; }
.split .y, .split .n { display: flex; align-items: center; min-width: 0; white-space: nowrap; transition: flex-basis 1s var(--ease-out); flex: 0 0 50%; overflow: hidden; }
.split .y { background: var(--a-d3); color: #fff; }
.split .n { background: var(--a-d1); color: var(--a-accent-text); justify-content: flex-end; }
.split.no-wins .y { background: var(--a-d1); color: var(--a-accent-text); }
.split.no-wins .n { background: var(--a-d3); color: #fff; }
.gate { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 12px; color: var(--a-text-2); white-space: nowrap; overflow: hidden; }
.gate .act { color: var(--a-green-text); font-weight: 650; display: inline-flex; gap: 5px; align-items: center; }
.gate .ask { color: var(--a-orange-text); font-weight: 650; display: inline-flex; gap: 5px; align-items: center; }
.gate .faint { color: var(--a-text-3); overflow: hidden; text-overflow: ellipsis; }
.gate svg { width: 13px; height: 13px; }

.cursor { position: absolute; left: 70%; top: 110%; z-index: 5; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); transition: left .75s var(--ease), top .75s var(--ease), transform .12s; opacity: 0; }
.cursor.show { opacity: 1; }
.cursor.click { transform: scale(.85); }
.fx-canvas { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none; z-index: 4; }
.stage-note { margin: 22px auto 0; max-width: 640px; text-align: center; font-size: 13.5px; color: var(--dim); text-wrap: balance; }

/* The app window leans back and straightens as it scrolls into view (scroll-driven; static where unsupported). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mock { animation: mock-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 48%; }
  }
}
@keyframes mock-tilt { from { transform: rotateX(16deg); } to { transform: rotateX(0deg); } }
.dl-os-ico svg { width: 30px; height: 30px; }
.dl-col h3 svg { width: 17px; height: 17px; color: var(--mist); }

/* ------------------------------------------------------------ makers */
.makers { padding: 64px 0 8px; }
.makers-h { text-align: center; font-size: 15px; font-weight: 500; color: var(--mist); letter-spacing: -0.005em; padding: 0 var(--gutter); }
.marquee { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.maker { display: inline-flex; align-items: center; gap: 12px; margin-right: 56px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--mist); white-space: nowrap; }
.maker img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ shared section parts */
.sec { padding-top: 152px; }
.head { max-width: 800px; margin-bottom: 52px; }
.head h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.04; letter-spacing: -0.036em; font-weight: 620; text-wrap: balance; }
.head p { margin-top: 18px; max-width: 60ch; font-size: 18.5px; line-height: 1.55; color: var(--mist); text-wrap: pretty; }
.head p code { color: var(--lav); font-size: .86em; }
.head p a { color: var(--lav); }
.head.center { margin-inline: auto; text-align: center; }
.head.center p { margin-inline: auto; }
.plate { background: var(--ink-2); border-radius: var(--r-plate); box-shadow: inset 0 0 0 1px var(--line); }
.cap { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--mist); max-width: 76ch; }
.fig-n { color: var(--dim); font-variant-numeric: tabular-nums; margin-right: 12px; white-space: nowrap; font-weight: 500; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--dim); max-width: 76ch; }
.frame { border-radius: 14px; overflow: hidden; background: #F5F5F7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 36px 80px -36px rgba(0, 0, 0, .95); }
.frame img { width: 100%; height: auto; }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #F5F5F7; color: #636368; font-size: 12.5px; font-weight: 550; border-bottom: 1px solid rgba(22, 18, 40, .08); }
.frame-bar .lights i { width: 10px; height: 10px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--mist); font-size: 14.5px; font-weight: 550; padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: var(--paper); }
.seg-sm { padding: 3px; border-radius: 10px; }
.seg-sm button { font-size: 13px; padding: 5px 11px; border-radius: 7px; }
.copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: rgba(255, 255, 255, .06); color: var(--mist); font-size: 13px; padding: 6px 11px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.copy:hover { background: rgba(255, 255, 255, .1); color: var(--paper); }
.copy.ok { color: var(--green); }

/* ------------------------------------------------------------ why: figure with margin notes */
.why-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.cmp { margin: 0; }
.cmp-plate { overflow: hidden; }
.cmp-q { padding: 22px 26px 20px; border-bottom: 1px solid var(--line-2); display: grid; gap: 8px; }
.cmp-q q { color: var(--dim); font-size: 14.5px; line-height: 1.5; quotes: "\201C" "\201D"; }
.cmp-q b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-col { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 318px; }
.cmp-col + .cmp-col { border-left: 1px solid var(--line-2); }
.cmp-col h3 { font-size: 15px; font-weight: 600; color: var(--paper); }
.cmp-col.dec { background: rgba(140, 51, 239, .07); }
.stream { font-size: 15.5px; line-height: 1.6; color: var(--mist); min-height: 7.6em; }
.stream::after { content: ""; display: inline-block; width: .45em; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--mist); opacity: .6; animation: blink 1s steps(1) infinite; }
.stream.done::after { display: none; }
.vbars { display: grid; gap: 12px; }
.vbar { display: grid; grid-template-columns: 84px 1fr 48px; gap: 12px; align-items: center; font-size: 14.5px; }
.vbar .l { color: var(--mist); }
.vbar.top .l { color: var(--paper); font-weight: 600; }
.vbar .t { height: 12px; border-radius: 3px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, transparent calc(25% - .5px), var(--line) calc(25% - .5px), var(--line) calc(25% + .5px), transparent calc(25% + .5px), transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px), transparent calc(75% - .5px), var(--line) calc(75% - .5px), var(--line) calc(75% + .5px), transparent calc(75% + .5px)), rgba(255, 255, 255, .04); }
.vbar .t i { position: absolute; inset: 0; border-radius: 3px; background: rgba(183, 133, 244, .5); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.vbar.top .t i { background: var(--violet); }
.vbar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--mist); }
.vbar.top .v { color: var(--paper); font-weight: 600; }
.cmp-verdict { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.cmp-verdict b { color: var(--lav); font-weight: 650; font-variant-numeric: tabular-nums; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 24px 0; border-top: 1px solid var(--line); }
.notes li:first-child { padding-top: 4px; border-top: 0; }
.notes h3 { font-size: 19px; letter-spacing: -0.02em; }
.notes p { margin-top: 8px; color: var(--mist); font-size: 15.5px; line-height: 1.55; }

/* ------------------------------------------------------------ how it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: start; }
.how-visual { position: sticky; top: 108px; }
.hv { display: grid; gap: 10px; }
.hv > * { transition: opacity .6s var(--ease), filter .6s; }
.hv[data-at="0"] .hv-qs, .hv[data-at="0"] .hv-pass, .hv[data-at="0"] .hv-out,
.hv[data-at="1"] .hv-pass, .hv[data-at="1"] .hv-out,
.hv[data-at="2"] .hv-out { opacity: .2; filter: saturate(.3); }
.hv-state, .hv-q, .hv-pass, .hv-out { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.hv-state { padding: 16px 18px; border-radius: 12px; }
.hv-k { font-size: 13px; color: var(--dim); font-weight: 550; }
.hv-state p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; }
.hv-media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hv-media span { font-size: 12px; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); }
.hv-media span:first-child { background: rgba(183, 133, 244, .16); color: var(--lav); box-shadow: none; }
.hv-qs { display: grid; gap: 8px; }
.hv-q { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 15px; }
.hv-q .qt { background: rgba(183, 133, 244, .16); color: var(--lav); font-size: 12px; }
.hv-pass { position: relative; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.hv-pass-t { position: relative; font-size: 13.5px; color: var(--mist); font-variant-numeric: tabular-nums; }
.hv-beam { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(140, 51, 239, .5), rgba(217, 186, 249, .7), rgba(140, 51, 239, .5), transparent); transform: translateX(-110%); }
.hv[data-at="2"] .hv-beam, .hv[data-at="3"] .hv-beam { animation: beam 2.4s var(--ease) infinite; }
@keyframes beam { to { transform: translateX(260%); } }
.hv-out { padding: 16px 18px; border-radius: 12px; }
.hv-th { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--mist); margin-bottom: 12px; }
.hv-th output { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.hv-rows { display: grid; gap: 10px; }
.grow { display: grid; grid-template-columns: 70px 1fr 42px 150px; gap: 12px; align-items: center; font-size: 14px; }
.grow .l { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow .t { position: relative; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.grow .t i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--violet); }
.grow .t u { position: absolute; top: -5px; bottom: -5px; border-left: 1.5px dashed var(--paper); opacity: .6; transition: left .25s var(--ease); }
.grow .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--mist); }
.grow .g { font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .2s; display: inline-flex; gap: 6px; align-items: center; }
.grow .g.act { color: var(--green); }
.grow .g.ask { color: var(--amber); }
.grow.ask .t i { background: var(--amber); opacity: .85; }
.hv-sum { margin-top: 14px; font-size: 13.5px; color: var(--mist); }
.hv-sum b { color: var(--paper); }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 0 60px; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .5s var(--ease); }
.step:first-child { min-height: 42vh; justify-content: flex-start; padding-top: 30px; }
.step.on { opacity: 1; }
.step::before { content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: var(--r-ctl); display: grid; place-items: center; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); transition: background .4s, color .4s; }
.step:first-child::before { top: 30px; transform: none; }
.step.on::before { background: var(--violet); color: #fff; box-shadow: none; }
.step h3 { font-size: 27px; letter-spacing: -0.03em; font-weight: 620; }
.step p { margin-top: 10px; color: var(--mist); font-size: 17px; max-width: 440px; }
.step-slider { margin-top: 22px; max-width: 420px; }
.step-slider label { display: flex; justify-content: space-between; font-size: 14px; color: var(--mist); margin-bottom: 8px; }
.step-slider output { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) var(--p, 82%), rgba(255, 255, 255, .1) var(--p, 82%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--violet); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(140, 51, 239, .35), 0 3px 8px rgba(0, 0, 0, .45); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(140, 51, 239, .35); }

/* ------------------------------------------------------------ question types: small multiples on one plate */
.multiples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r-plate); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.mult { margin: 0; background: var(--ink-2); padding: 26px 28px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mult-h { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; }
.mult-h h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.mult-h .origin { margin-left: auto; padding-left: 12px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.mult-h .origin.native { color: var(--lav); }
.mult-q { font-size: 13.5px; color: var(--dim); margin-bottom: -4px; }
.mult-fig { min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; }
.mult figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.mult figcaption b { color: var(--paper); font-weight: 550; }
.tb { display: grid; grid-template-columns: 96px 1fr 42px; gap: 10px; align-items: center; font-size: 13px; color: var(--mist); }
.tb + .tb { margin-top: 8px; }
.tb .t { position: relative; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .05); }
.tb .t i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: rgba(183, 133, 244, .5); width: 100%; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.tb.top { color: var(--paper); font-weight: 600; }
.tb.top .t i { background: var(--violet); }
.tb .v { text-align: right; font-variant-numeric: tabular-nums; }
.tb .cut { position: absolute; left: 50%; top: -6px; bottom: -6px; border-left: 1.5px dashed var(--lav); opacity: .7; }
.tb.rank .n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--plate-2); color: var(--lav); font-size: 11.5px; font-weight: 650; margin-right: 8px; font-variant-numeric: tabular-nums; }
.tcols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 88px; align-items: end; border-bottom: 1px solid var(--line); position: relative; }
.tcols i { display: block; border-radius: 3px 3px 0 0; background: rgba(183, 133, 244, .45); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out); }
.tcols i.top { background: var(--violet); }
.tcols .ring { position: absolute; bottom: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 2.5px solid var(--lav); background: var(--ink-2); opacity: 0; transition: opacity .4s .6s; }
.tcl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 7px; font-size: 11.5px; color: var(--dim); text-align: center; }
.tyn { display: flex; height: 32px; border-radius: 6px; overflow: hidden; font-size: 13px; font-weight: 600; }
.tyn span { display: flex; align-items: center; padding: 0 12px; flex: 0 0 50%; min-width: 0; overflow: hidden; white-space: nowrap; transition: flex-basis 1.1s var(--ease-out); }
.tyn .y { background: var(--violet); }
.tyn .n { background: rgba(183, 133, 244, .18); padding: 0; }
.tyn-l { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tnum svg { width: 100%; height: 96px; overflow: visible; }
.tnum .area { fill: rgba(140, 51, 239, .22); }
.tnum .line { fill: none; stroke: var(--orchid); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease-out); }
.tnum .range { fill: rgba(217, 186, 249, .08); }
.tnum .best { stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tnum-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tnum-l b { color: var(--paper); font-weight: 600; }
.drawn .tb .t i { transform: scaleX(var(--s)); }
.drawn .tcols i { transform: scaleY(var(--s)); }
.drawn .tcols .ring { opacity: 1; }
.drawn .tyn .y { flex-basis: var(--yes); }
.drawn .tyn .n { flex-basis: var(--no); }
.drawn .tnum .line { stroke-dashoffset: 0; }

/* ------------------------------------------------------------ tour: one frame, one control */
.tour-bar { display: flex; justify-content: center; margin-bottom: 22px; }
.tour-fig { margin: 0 auto; max-width: 1120px; }
.frame-media { position: relative; aspect-ratio: 16 / 10; background: #F5F5F7; }
.frame-media > img, .frame-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.frame-media > .on { opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(29, 22, 44, .82); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); transition: transform .3s var(--ease), opacity .3s, background .2s; }
.video-play svg { margin-left: 3px; }
.video-play:hover { transform: scale(1.05); background: var(--violet); }
.video-play[hidden] { display: none; }
.frame-media.playing .video-play { opacity: 0; transform: scale(.85); }
.frame-media.playing:hover .video-play, .frame-media.playing .video-play:focus-visible { opacity: 1; transform: none; }
.frame-media.playing .video-play svg { margin-left: 0; }
.tour-cap { text-align: center; margin: 18px auto 0; min-height: 3em; text-wrap: balance; }

/* ------------------------------------------------------------ private: the machine */
.machine { margin: 0; }
.mframe { position: relative; border-radius: var(--r-plate); border: 1px dashed rgba(183, 133, 244, .4); padding: 44px 30px 30px; }
.mframe-l { position: absolute; top: -12px; left: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--ink); font-size: 14px; font-weight: 600; color: var(--lav); }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; }
.node { position: relative; z-index: 1; min-width: 0; }
.node-box { position: relative; padding: 16px 18px 18px; border-radius: 12px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 3px; height: 128px; align-content: start; }
.node-box .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(183, 133, 244, .14); color: var(--lav); margin-bottom: 10px; }
.node-box b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.node-box small { font-size: 13px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-box code { font-size: 12.5px; color: var(--lav); }
.node:not(:last-child) .node-box::after { content: ""; position: absolute; left: 100%; top: 64px; width: 40px; height: 1.5px; background: rgba(183, 133, 244, .45); }
.node:not(:last-child) .node-box::before { content: ""; position: absolute; left: calc(100% + 33px); top: 59.5px; width: 7px; height: 10px; background: rgba(183, 133, 244, .8); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.node-note { padding: 20px 2px 0; }
.node-note h3 { font-size: 17px; letter-spacing: -0.02em; }
.node-note p { margin-top: 6px; color: var(--mist); font-size: 15px; line-height: 1.5; }
.packet { position: absolute; z-index: 0; top: 108px; left: 44px; width: 7px; height: 7px; border-radius: 1.5px; background: var(--lav); opacity: 0; }
.machine.live .packet { animation: packet 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes packet {
  0% { left: 12%; opacity: 0; }
  8% { opacity: 1; }
  45% { left: 86%; opacity: 1; background: var(--lav); }
  50% { left: 86%; opacity: 0; }
  55% { left: 86%; opacity: 1; background: var(--violet); }
  92% { opacity: 1; }
  100% { left: 12%; opacity: 0; background: var(--violet); }
}
.edges { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.edge { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; line-height: 1.5; color: var(--mist); }
.edge svg { color: var(--lav); margin-top: 1px; }
.edge b { color: var(--paper); font-weight: 600; }

/* ------------------------------------------------------------ models: table and inspector */
.mtools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--paper); }
.chip.on { background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 600; }
.fit { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.fit-l { font-size: 13.5px; color: var(--dim); padding: 0 10px 0 8px; }
.fit button { border: 0; background: transparent; color: var(--mist); font-size: 13.5px; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.fit button:hover { color: var(--paper); }
.fit button.on { background: rgba(255, 255, 255, .1); color: var(--paper); font-weight: 600; }
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.mtable { border-radius: var(--r-plate); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; --cap: 100%; }
.mrow { display: grid; grid-template-columns: minmax(0, 2.2fr) 58px 76px minmax(0, 1.6fr) 84px; gap: 18px; align-items: center; width: 100%; min-height: 60px; padding: 0 20px; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.mrow:hover { background: rgba(255, 255, 255, .03); }
.mrow[aria-selected="true"] { background: rgba(140, 51, 239, .16); }
.mrow[hidden] { display: none; }
.mhead { min-height: 42px; border-top: 0; cursor: default; font-size: 12.5px; color: var(--dim); }
.mhead:hover { background: none; }
.mhead em { font-style: normal; color: var(--lav); }
.mname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mname img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: #fff; flex: none; }
.mname span { min-width: 0; }
.mname b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mname small { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--mist); text-align: right; }
.mmem { position: relative; align-self: stretch; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--mist); }
.mmem .mbar { position: relative; flex: 1; align-self: stretch; display: flex; align-items: center; }
.mmem .mbar i { display: block; height: 6px; border-radius: 2px; background: var(--orchid); min-width: 3px; transition: background .3s; }
.mmem .mbar::after { content: ""; position: absolute; top: 0; bottom: -1px; left: var(--cap); border-left: 1.5px dashed rgba(244, 241, 250, .55); }
.mtable[data-cap-off] .mmem .mbar::after { display: none; }
.mmem .val { width: 58px; flex: none; text-align: right; white-space: nowrap; }
.mrow.nofit .mname b, .mrow.nofit .mname img, .mrow.nofit .num { opacity: .45; }
.mrow.nofit .mmem .mbar i { background: rgba(255, 181, 71, .75); }
.mrow.nofit .mmem .val { color: var(--amber); }
.mreads { display: flex; gap: 6px; color: var(--dim); }
.mreads .m { color: var(--lav); }
.insp { position: sticky; top: 96px; padding: 24px 24px 22px; border-radius: var(--r-plate); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.insp-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mist); }
.insp-top img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; }
.badge { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(183, 133, 244, .16); color: var(--lav); white-space: nowrap; }
.insp h3 { margin-top: 16px; font-size: 27px; letter-spacing: -0.03em; font-weight: 620; }
.insp .tag { margin-top: 4px; color: var(--paper); font-size: 15.5px; }
.insp .sum { margin-top: 10px; color: var(--mist); font-size: 14.5px; line-height: 1.55; }
.insp dl { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.insp dl div { padding: 10px 0; border-top: 1px solid var(--line-2); min-width: 0; }
.insp dt { font-size: 12px; color: var(--dim); }
.insp dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp .claim { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.5; }
.insp .claim span { display: block; font-size: 12.5px; color: var(--mist); margin-bottom: 4px; }
.insp .fitnote { margin-top: 14px; font-size: 13.5px; color: var(--mist); }
.insp .fitnote.no { color: var(--amber); }
.insp a.card-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--lav); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.insp a.card-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ hardware */
.hw-fig { margin: 0 auto; max-width: 1040px; }
.hw-strip { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hw-strip li { position: relative; padding: 22px 22px 22px; border-top: 1px solid var(--line); min-width: 0; transition: background .3s; }
.hw-strip li + li { border-left: 1px solid var(--line-2); }
.hw-strip h3 { font-size: 17px; letter-spacing: -0.015em; }
.hw-strip p { margin-top: 6px; font-size: 14px; color: var(--mist); line-height: 1.5; }
.hw-strip .run { display: block; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--lav); }
.hw-strip li.you { background: rgba(140, 51, 239, .1); border-top-color: var(--violet); }
.hw-strip li.you::before { content: "This computer"; position: absolute; top: -11px; left: 22px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--violet); color: #fff; }

/* ------------------------------------------------------------ developers */
.dev-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.dev-side .head { margin-bottom: 32px; }
.eps { margin: 0; }
.eps div { padding: 16px 0; border-top: 1px solid var(--line-2); }
.eps dt { font-size: 15.5px; font-weight: 600; }
.eps dd { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eps dd > code { font-size: 12.5px; padding: 4px 9px; border-radius: 6px; background: var(--plate); color: var(--lav); }
.eps dd span { flex-basis: 100%; color: var(--mist); font-size: 14px; margin-top: 4px; }
.eps dd span code { color: var(--paper); font-size: 13px; }
.dev-ext { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--mist); font-size: 14.5px; line-height: 1.55; }
.dev-ext code { color: var(--lav); font-size: 13px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 15px; font-weight: 550; }
.dev-links a { color: var(--lav); text-decoration: underline; text-decoration-color: rgba(217, 186, 249, .35); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.dev-links a:hover { color: var(--paper); text-decoration-color: var(--paper); }
.tested { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.tested svg { color: var(--green); margin-top: 1px; }
.console { position: sticky; top: 96px; border-radius: var(--r-plate); background: #0B0911; box-shadow: inset 0 0 0 1px var(--line), 0 36px 80px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.console-bar button[role="tab"] { border: 0; background: transparent; color: var(--mist); font-size: 14px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.console-bar button[role="tab"]:hover { color: var(--paper); }
.console-bar button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--paper); font-weight: 600; }
.console-split { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 13px; color: var(--mist); }
.console-split span:first-child { color: var(--paper); font-weight: 600; }
.code { margin: 0; padding: 18px 20px 20px; overflow: auto; font: 13px/1.7 var(--mono); color: #D8D2E6; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.code.resp { max-height: 330px; }
.code .s { color: #F0B3FF; } .code .k { color: #9ED0FF; } .code .n { color: #FFD68A; } .code .c { color: #857E99; font-style: italic; } .code .w { color: #C49CFF; } .code .f { color: #8BE0C8; }

/* ------------------------------------------------------------ download */
.dl-card { max-width: 880px; margin: 0 auto; padding: 36px 40px 34px; border-radius: 20px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(183, 133, 244, .3), 0 40px 90px -50px rgba(0, 0, 0, .95); }
.dl-you { display: flex; gap: 18px; align-items: center; }
.dl-os-ico { width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); }
.dl-you h3 { font-size: 27px; letter-spacing: -0.03em; font-weight: 620; line-height: 1.15; }
.dl-you p { color: var(--mist); font-size: 15px; margin-top: 4px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.dl-file { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-alt { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); align-items: center; }
.dl-alt:empty { display: none; }
.dl-alt a { color: var(--lav); text-decoration: none; padding: 4px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.dl-alt a:hover { background: rgba(255, 255, 255, .05); }
.oneline { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.ol-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.ol-cmd { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 12px; background: #0B0911; box-shadow: inset 0 0 0 1px var(--line); }
.ol-cmd code { flex: 1; min-width: 0; font-size: 13px; color: #E6DFF5; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ol-cmd code::before { content: "$ "; color: var(--orchid); }
.ol-cmd .copy { margin-left: 0; flex: none; }
.ol-note { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.dl-matrix { margin: 44px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-none { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); font-size: 15px; line-height: 1.55; }
.dl-none a { color: var(--lav); text-underline-offset: 3px; }
.dl-none a:hover { color: var(--paper); }
.dl-col { padding: 0 22px; min-width: 0; }
.dl-col + .dl-col { border-left: 1px solid var(--line-2); }
.dl-col:first-child { padding-left: 0; }
.dl-col:last-child { padding-right: 0; }
.dl-col h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dl-col h3 small { font-weight: 500; color: var(--dim); font-size: 13px; }
.dl-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.dl-row:hover { background: rgba(255, 255, 255, .05); }
.dl-row.you { background: rgba(140, 51, 239, .16); }
.dl-row b { font-size: 14.5px; font-weight: 600; display: block; }
.dl-row small { display: block; color: var(--dim); font-size: 12.5px; }
.dl-row .sz { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.dl-row svg { color: var(--lav); }
.dl-after { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.dl-after h3 { font-size: 17px; letter-spacing: -0.015em; }
.dl-after ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: after; display: grid; gap: 12px; }
.dl-after ol li { counter-increment: after; position: relative; padding-left: 38px; color: var(--mist); font-size: 15px; line-height: 1.55; }
.dl-after ol li::before { content: counter(after); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--lav); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dl-after code { color: var(--lav); font-size: 13px; }
.reqs { margin: 14px 0 0; padding-left: 18px; color: var(--mist); font-size: 14.5px; line-height: 1.5; display: grid; gap: 6px; }
.reqs li::marker { color: var(--dim); }
.dl-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: 14.5px; }
.dl-links a { color: var(--lav); text-decoration: none; }
.dl-links a:hover { text-decoration: underline; }
.dl-links span { color: var(--dim); }

/* ------------------------------------------------------------ FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq-grid .head { position: sticky; top: 108px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--lav); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--mist), var(--mist)) center / 14px 1.6px no-repeat, linear-gradient(var(--mist), var(--mist)) center / 1.6px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--mist); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.faq details p code { color: var(--lav); font-size: .88em; }

/* ------------------------------------------------------------ final */
.final { position: relative; margin-top: 150px; padding: 300px var(--gutter) 150px; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line-2); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(46% 56% at 50% 30%, rgba(140, 51, 239, .2), transparent 70%); }
.final-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; }
.final-in { position: relative; }
.final h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 640; max-width: 900px; margin: 0 auto; text-wrap: balance; }
.final p { margin: 20px auto 34px; color: var(--mist); font-size: 19px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line-2); padding: 56px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand img { width: 200px; height: auto; }
.foot-brand p { margin-top: 16px; color: var(--dim); font-size: 14.5px; max-width: 320px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-h { font-size: 14.5px; font-weight: 600; color: var(--paper); }
.foot-cols a { color: var(--mist); text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--paper); }
.foot-fine { margin-top: 44px; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: #211A34; box-shadow: inset 0 0 0 1px rgba(183, 133, 244, .3), 0 20px 50px -10px rgba(0, 0, 0, .7);
  font-size: 14.5px; color: var(--mist); transition: opacity .3s, transform .4s var(--ease); overflow-wrap: anywhere; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast b { color: var(--paper); font-weight: 600; }
.toast a { color: var(--lav); margin-left: 6px; }

/* ------------------------------------------------------------ the replay's pages: one grid cell, one visible at a time */
.m-pages { display: grid; min-width: 0; min-height: 0; }
.m-page { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .35s; }
.m-page.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.m-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.m-side li { transition: background .2s; }
.m-side li.press { background: rgba(120, 110, 150, .26); }
.m-tools { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.m-tools .m-model { flex: 1; min-width: 0; }
.m-tools .kbd { display: none; }
.m-model-txt b, .m-model-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 30px; border-radius: 8px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .15s; }
.m-tools .m-btn { height: auto; }
.m-btn svg { color: var(--a-text-2); }
.m-btn.press { background: var(--a-fill); transform: scale(.96); }
.m-save { height: 38px; margin-left: 2px; }
span.m-decide { cursor: default; }
.m-decide.sm { flex: none; height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.m-meta .saved { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; color: var(--a-accent-text); font-weight: 500; opacity: 0; transition: opacity .4s; }
.m-meta .saved.on { opacity: 1; }
.m-meta .saved svg { width: 12px; height: 12px; }

/* templates */
.m-tpl { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: var(--a-ground); }
.tp-list { background: var(--a-surface); border-right: 1px solid var(--a-line-2); padding: 12px 10px; overflow: hidden; }
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px; }
.tp-head b { font-weight: 600; color: var(--a-text); font-size: 12.5px; }
.tp-head .m-btn { height: 26px; padding: 0 8px; font-size: 12px; }
.tp-head-2 { margin-top: 12px; }
.tp-head-2 b { color: var(--a-text-2); font-weight: 500; font-size: 12px; }
.tp-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.tp-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.tp-list li > span:first-child { display: grid; min-width: 0; }
.tp-list li b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-list li code { font: 11px var(--mono); color: var(--a-text-3); }
.tp-list li.on { background: var(--a-tint); }
.tp-list li.flash { animation: tpflash 1.4s var(--ease); }
@keyframes tpflash { from { background: var(--a-tint-2); transform: translateX(4px); } }
.tp-v { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--a-surface); color: var(--a-accent-text); font-size: 11px; font-weight: 600; }
.tp-detail { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; }
.tp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tp-title .ttl { font-size: 20px; color: var(--a-text); margin: 0; letter-spacing: -0.02em; font-weight: 650; }
.tp-title p:not(.ttl) { font-size: 12.5px; color: var(--a-text-2); margin-top: 2px; }
.tp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-tags > * { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--a-fill); color: var(--a-text-2); }
.tp-tags code { font-family: var(--mono); }
.tp-tags .vl { background: var(--a-tint); color: var(--a-accent-text); font-weight: 600; }
.tp-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--a-line-2); font-size: 12.5px; color: var(--a-text-2); overflow: hidden; }
.tp-tabs span { padding: 6px 0 8px; white-space: nowrap; }
.tp-tabs .on { color: var(--a-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--a-accent); }
.tp-sec { font-size: 13px; font-weight: 650; margin-top: 2px; }
.tp-vars { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; }
.tp-vars div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 12px; color: var(--a-text-2); }
.tp-vars div + div { border-top: 1px solid var(--a-line-2); }
.tp-vars code { font: 11.5px var(--mono); color: var(--a-text); }
.tp-vars i { font-style: normal; color: var(--a-text-3); }
.tp-code { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--a-surface); border: 1px solid var(--a-line); font: 11.5px/1.6 var(--mono); color: var(--a-text); white-space: pre; overflow: hidden; }
.tp-code .c1 { color: #326D74; } .tp-code .c2 { color: #0F68A0; } .tp-code .c3 { color: #C41A16; }

/* train */
.m-trn { background: var(--a-ground); padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.tn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tn-head .ttl { color: var(--a-text); margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.tn-head p:not(.ttl) { font-size: 13px; color: var(--a-text-2); margin-top: 2px; }
.m-link { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: var(--a-text); white-space: nowrap; }
.tn-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; padding: 14px 18px; max-width: 660px; display: flex; flex-direction: column; gap: 8px; }
.tn-big { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--a-accent); font-variant-numeric: tabular-nums; }
.tn-sub { font-size: 13px; color: var(--a-text-2); margin-top: -2px; }
.tn-row { display: grid; grid-template-columns: 104px 1fr 38px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--a-text-2); }
.tn-row.on { color: var(--a-text); font-weight: 600; }
.tn-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tn-track { position: relative; height: 8px; border-radius: 4px; background: var(--a-fill); overflow: hidden; }
.tn-track i { position: absolute; inset: 0; border-radius: 4px; transform-origin: left; }
.tn-b { background: var(--a-d1); transform: scaleX(.76); }
.tn-a { background: var(--a-accent); transform: scaleX(.76); transition: transform 1.2s var(--ease-out); }
.m-trn.go .tn-a { transform: scaleX(1); }
.tn-gen { font-size: 12.5px; }
.tn-wrong { background: #FAFAFC; border: 1px solid var(--a-line-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.tn-k { font-size: 11.5px; color: var(--a-text-2); }
.tn-wrong p { font-size: 12.5px; }
.tn-t { display: grid; grid-template-columns: 1.6fr 1fr 1fr; font-size: 12px; }
.tn-t span { display: inline-flex; gap: 4px; align-items: center; padding: 5px 0; border-top: 1px solid var(--a-line-2); }
.tn-t .h { color: var(--a-text-2); border-top: 0; padding-top: 0; }
.tn-t .x svg { color: #E0352B; } .tn-t .ok svg { color: #1FA055; }
.tn-foot { font-size: 12px; color: var(--a-text-2); }
.tn-btns { display: flex; gap: 8px; align-items: center; }

/* history */
.m-hist { background: var(--a-ground); padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.hi-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.hi-live { display: inline-flex; align-items: center; gap: 6px; color: var(--a-text-2); }
.hi-live i { width: 7px; height: 7px; border-radius: 50%; background: #1FA055; }
.hi-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--a-fill); border-radius: 8px; }
.hi-seg span { padding: 3px 8px; border-radius: 6px; color: var(--a-text-2); }
.hi-seg .on { background: var(--a-surface); color: var(--a-text); box-shadow: 0 0 0 .5px var(--a-line); }
.hi-sel { padding: 4px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-surface); color: var(--a-text); }
.hi-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; }
.hi-stats div { padding: 10px 14px; display: grid; gap: 1px; min-width: 0; }
.hi-stats div + div { border-left: 1px solid var(--a-line-2); }
.hi-stats span { font-size: 11.5px; color: var(--a-text-2); white-space: nowrap; }
.hi-stats b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hi-stats small { font-size: 11px; color: var(--a-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-table { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; }
.hi-row { display: grid; grid-template-columns: 70px 118px minmax(0, 1.4fr) minmax(0, 1fr) 62px; gap: 10px; align-items: center; padding: 8px 14px; font-size: 12.5px; border-top: 1px solid var(--a-line-2); }
.hi-h { border-top: 0; color: var(--a-text-2); font-size: 11.5px; padding: 8px 14px 6px; }
.hi-row > span { min-width: 0; }
.hi-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hi-row b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-row small { display: block; color: var(--a-text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-row i { font-style: normal; color: var(--a-text-2); }
.hi-row em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.hi-row em.ask { background: var(--a-orange-tint); color: var(--a-orange-text); }
.hi-row em.act { background: var(--a-green-tint); color: var(--a-green-text); }
.hi-row.new { background: var(--a-tint); animation: hirow .7s var(--ease-out); }
@keyframes hirow { from { opacity: 0; transform: translateY(-10px); } }

/* ------------------------------------------------------------ features: a bento of real screens */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-cell { position: relative; overflow: hidden; border-radius: var(--r-plate); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; min-height: 320px; min-width: 0; }
.b-infer { grid-column: span 7; grid-row: span 2; }
.b-serve, .b-registry { grid-column: span 5; }
.b-templates, .b-train, .b-observe { grid-column: span 4; }
.b-evaluate { grid-column: span 7; }
.b-learn { grid-column: span 5; }
.bc-text { padding: 24px 26px 0; }
.bc-text h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.bc-text h3 svg { color: var(--lav); }
.bc-text h3 span { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.bc-text p { margin-top: 10px; color: var(--mist); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.bc-text a { display: inline-block; margin-top: 10px; color: var(--lav); font-size: 14px; text-decoration: none; }
.bc-text a:hover { text-decoration: underline; }
.bc-shot { margin-top: auto; padding: 22px 0 0 26px; max-height: 250px; overflow: hidden; }
.bc-shot img { display: block; width: 118%; max-width: none; height: auto; border-radius: 10px 0 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 -12px 36px -16px rgba(0, 0, 0, .7); }
.b-infer .bc-shot { max-height: none; padding-left: 40px; }
.b-infer .bc-shot img { width: 100%; }
.b-evaluate .bc-shot { max-height: 300px; }
.bc-code { margin: 22px 0 0 26px; margin-top: auto; padding: 18px 20px 20px; border-radius: 10px 0 0 0; background: #0B0911; box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.8 var(--mono); color: #D8D2E6; white-space: pre; overflow: hidden; }
.bc-code .c1 { color: #C49CFF; } .bc-code .c3 { color: #F0B3FF; } .bc-code .c4 { color: var(--dim); }
.bc-learn { margin: auto 26px 24px; padding: 18px 0 0; list-style: none; counter-reset: lesson; }
.bc-learn li { counter-increment: lesson; display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.bc-learn li::before { content: counter(lesson); width: 14px; color: var(--lav); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-in { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 1080px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .m-play { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-cell, .b-infer, .b-serve, .b-registry, .b-templates, .b-train, .b-observe, .b-evaluate, .b-learn { grid-column: span 1; grid-row: auto; }
  .b-infer, .b-learn { grid-column: span 2; }
  .b-infer .bc-shot { max-height: 380px; }
  .m-side { display: none; }
  .how-grid { gap: 44px; }
  .grow { grid-template-columns: 62px 1fr 40px 128px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .notes li, .notes li:first-child { padding: 18px 0 0; border-top: 1px solid var(--line); }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .insp { position: static; }
  .pipe { gap: 28px; }
  .node:not(:last-child) .node-box::after { width: 28px; }
  .node:not(:last-child) .node-box::before { left: calc(100% + 21px); }
  .hw-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hw-strip li:nth-child(4) { border-left: 0; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .console { position: static; }
  .dl-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .dl-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .dl-col:nth-child(2) { padding-right: 0; }
}
@media (max-width: 900px) {
  .nav-end .icon-link { display: none; }
  .sec { padding-top: 104px; }
  .head { margin-bottom: 36px; }
  .head p { font-size: 17px; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .notes li, .notes li:first-child { padding: 20px 0; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-visual { position: relative; top: 0; }
  .step, .step:first-child { min-height: 0; padding-top: 0; padding-bottom: 28px; opacity: 1; }
  .step::before, .step:first-child::before { top: 0; transform: none; }
  .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .node { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .node-box { height: auto; }
  .node-note { padding-top: 4px; }
  .node:not(:last-child) .node-box::after { left: 34px; top: 100%; width: 1.5px; height: 20px; }
  .node:not(:last-child) .node-box::before { left: 30px; top: calc(100% + 13px); width: 10px; height: 7px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .packet { display: none; }
  .edges { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-grid .head { position: static; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand { font-size: 15px; gap: 8px; }
  .hero { padding-top: 40px; }
  .hero-mark { width: 124px; height: 124px; margin-bottom: 24px; }
  .m-play, .m-tpl { grid-template-columns: minmax(0, 1fr); }
  .tp-list, .m-btn-new, .m-save, .hi-sel, .tn-head .m-link { display: none; }
  .hi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-stats div:nth-child(3) { border-left: 0; }
  .hi-stats div:nth-child(n+3) { border-top: 1px solid var(--a-line-2); }
  .hi-row { grid-template-columns: 64px 108px minmax(0, 1fr); }
  .hi-row > span:nth-child(3), .hi-row > span:nth-child(5) { display: none; }
  .tp-tabs span:nth-child(n+4) { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-infer, .b-learn { grid-column: span 1; }
  .bento-cell { min-height: 0; }
  .bc-text { padding: 20px 20px 0; }
  .bc-shot { padding-left: 20px; }
  .bc-code { margin-left: 20px; font-size: 11.5px; }
  .hero-title { letter-spacing: -0.05em; }
  .hero-cta .btn { width: 100%; }
  .stage { margin-top: 52px; }
  .mock { height: auto; grid-template-rows: 40px auto 26px; border-radius: 12px; font-size: 12.5px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .m-build { border-right: 0; border-bottom: 1px solid var(--a-line-2); }
  .m-questions, .m-label-q, .m-model .kbd, .m-decide-row .kbd { display: none; }
  .m-state { min-height: 0; }
  .m-figs { overflow: visible; }
  .mock-title span, .mock-bar-end, .mock-status .mem { display: none; }
  .fx-canvas { inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); }
  .scenarios { width: 100%; justify-content: flex-start; }
  .scn { padding: 8px 12px; font-size: 13.5px; }
  .maker { margin-right: 36px; font-size: 16px; }
  .maker img { width: 28px; height: 28px; }
  .cmp-cols { grid-template-columns: minmax(0, 1fr); }
  .cmp-col { min-height: 0; padding: 20px; }
  .cmp-col + .cmp-col { border-left: 0; border-top: 1px solid var(--line-2); }
  .cmp-q { padding: 20px; }
  .vbar { grid-template-columns: 78px 1fr 46px; gap: 10px; font-size: 14px; }
  .grow { grid-template-columns: 58px 1fr 38px; }
  .grow .g { grid-column: 1 / -1; margin-top: -4px; }
  .hv { padding: 14px; }
  .multiples { grid-template-columns: minmax(0, 1fr); }
  .mult { padding: 22px 20px; }
  .tour-bar { justify-content: flex-start; }
  .mframe { padding: 36px 16px 18px; }
  .node { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .node:not(:last-child) .node-box::after, .node:not(:last-child) .node-box::before { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; padding: 0 14px; }
  .mrow > .num, .mrow > .mreads, .mhead > span:nth-child(2), .mhead > span:nth-child(3), .mhead > span:nth-child(5) { display: none; }
  .mmem .val { width: 42px; }
  .fit { flex-wrap: wrap; }
  .insp { padding: 20px 18px; }
  .hw-strip { grid-template-columns: minmax(0, 1fr); }
  .hw-strip li + li { border-left: 0; }
  .hw-strip li { padding: 20px 4px; }
  .hw-strip li.you { padding-left: 14px; padding-right: 14px; }
  .dl-card { padding: 24px 20px; border-radius: 16px; }
  .dl-you h3 { font-size: 23px; }
  .dl-actions .btn { width: 100%; }
  .dl-matrix { grid-template-columns: minmax(0, 1fr); }
  .dl-col, .dl-col:first-child, .dl-col:nth-child(2) { padding: 0; border-left: 0 !important; }
  .dl-after { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .final { padding: 240px var(--gutter) 110px; margin-top: 100px; }
  .faq summary { font-size: 17px; }
  .foot-cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track .dup { display: none; }
  .machine.live .packet { animation: none; }
}

/* training: before and after on held-out examples, one row per model */
.tr-fig { margin: 0; }
.tr-head, .tr-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2.2fr) 112px 64px; gap: 18px; align-items: center; }
.tr-head { padding: 0 0 10px; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.tr-head span:last-child, .tr-g { text-align: right; }
.tr-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 5px 0 12px; vertical-align: -1px; }
.tr-list { list-style: none; margin: 0; padding: 0; }
.tr-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-name { display: grid; gap: 2px; min-width: 0; }
.tr-name b { font-weight: 600; font-size: 15px; }
.tr-name small { color: var(--dim); font-size: 13px; }
.tr-bars { position: relative; height: 18px; border-radius: 5px; background: rgba(230, 218, 255, .06); overflow: hidden; }
.tr-b { background: rgba(173, 166, 192, .38); }
.tr-a { background: var(--violet); }
.tr-bars i { position: absolute; left: 0; border-radius: 5px; }
.tr-bars .tr-b { top: 0; bottom: 0; }
.tr-bars .tr-a { bottom: 0; height: 8px; }
.tr-num { font-variant-numeric: tabular-nums; color: var(--mist); font-size: 14px; white-space: nowrap; }
.tr-num b { color: var(--paper); font-weight: 600; }
.tr-g { font-variant-numeric: tabular-nums; color: var(--mist); font-size: 14px; }
.tr-notes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.tr-notes li { padding: 22px 22px 0 0; border-top: 1px solid var(--line); }
.tr-notes li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.tr-notes h3 { font-size: 16px; font-weight: 600; }
.tr-notes p { margin-top: 8px; color: var(--mist); font-size: 15px; line-height: 1.55; }
.tr-more { margin-top: 28px; color: var(--mist); font-size: 15px; }
.tr-more a { color: var(--lav); }
@media (max-width: 760px) {
  .tr-head { display: none; }
  .tr-row { grid-template-columns: 1fr auto; grid-template-areas: "name num" "bars bars"; gap: 8px 12px; }
  .tr-name { grid-area: name; } .tr-num { grid-area: num; } .tr-bars { grid-area: bars; } .tr-g { display: none; }
  .tr-notes { grid-template-columns: 1fr; }
  .tr-notes li + li { padding-left: 0; border-left: 0; }
}
