/* api.live landing, v3
   One pinned section: the opener (three.js terrain, stars, heartbeat ribbon, split title), then the app
   window rises and fills the stage, then a tour: one real screen per step, running live, with a notes
   column in plain words. Below: numbers, "Not yet", downloads. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0c0b12;
  --sheet: rgba(255, 255, 255, 0.04);
  --sheet-2: rgba(255, 255, 255, 0.07);
  --edge: rgba(255, 255, 255, 0.1);
  --edge-2: rgba(255, 255, 255, 0.18);
  --text: #f4f4f7;
  --text-2: rgba(238, 238, 244, 0.78);
  --muted: rgba(238, 238, 244, 0.52);
  --faint: rgba(238, 238, 244, 0.32);
  --a1: #7060ff;
  --a2: #b44cff;
  --a3: #ff5ca4;
  --grad: linear-gradient(110deg, #7060ff 0%, #b44cff 50%, #ff5ca4 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --violet: #c4b5fd;
  --heart: #ff3b5c;
  --fire: linear-gradient(110deg, #ffd27a 0%, #ff7a2f 35%, #ff3d7f 70%, #b44cff 100%);
  --hand: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --sans: "Archivo", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --r: 18px;
  /* the stage geometry is written by main.js */
  --stage-l: 24px; --stage-t: 76px; --stage-w: 60vw; --stage-h: 80vh;
  --notes-l: 64vw; --notes-t: 76px; --notes-w: 30vw; --notes-h: 80vh;
  --hero-h: 1170vh;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
code { font-family: var(--mono); font-size: 0.86em; }
p code, li code, span code { padding: 0.06em 0.36em; border-radius: 6px; background: var(--sheet-2); border: 1px solid var(--edge); color: var(--text); white-space: nowrap; }
h2 code { padding: 0; border: 0; font-size: 0.82em; font-weight: 500; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.faint { color: var(--faint); }
.small { font-size: 11.5px; }
.top { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: 64px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.75), rgba(5, 5, 7, 0));
  transition: background 0.3s var(--ease);
}
.nav.solid { background: rgba(5, 5, 7, 0.7); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 26px; height: 26px; display: block; }
.word { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.word em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.links a { transition: color 0.18s var(--ease); }
.links a:hover { color: var(--text); }
@media (max-width: 760px) { .links { display: none; } .nav .btn.small { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 15.5px/1 var(--sans); letter-spacing: -0.01em; color: var(--text);
  border: 1px solid var(--edge-2); background: var(--sheet); cursor: pointer; overflow: hidden;
  transition: transform 0.18s var(--spring), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--sheet-2); }
.btn:active { transform: scale(0.97); }
.btn.glass { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 14px 40px -14px rgba(180, 76, 255, 0.8); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 18px 50px -12px rgba(255, 92, 164, 0.8); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); transform: translateX(-110%); }
.btn.primary:hover::after { transition: transform 0.8s var(--ease); transform: translateX(110%); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- the pinned section ---------- */
.hero { position: relative; height: var(--hero-h); }
.anchor { position: absolute; left: 0; top: 230vh; width: 0; height: 0; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px; }
.sky { position: absolute; inset: 0; background: #050507 url("img/sky.jpg") center 40% / cover no-repeat; opacity: 0.9; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0.1) 45%, rgba(5, 5, 7, 0.75) 100%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(5, 5, 7, 0.7) 100%); }
.dim { position: absolute; inset: 0; pointer-events: none; background: #050507; opacity: 0; }

.hero-text > * { max-width: 100%; min-width: 0; }
.hero-text {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 26px;
  padding: 0 var(--gutter-r) 8vh var(--gutter);
  text-align: center;
  will-change: transform, opacity;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--edge); background: rgba(5, 5, 7, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; color: var(--text-2);
  opacity: 0; animation: rise 0.9s var(--ease) 0.2s forwards;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.title {
  font-size: clamp(64px, 15.5vw, 236px);
  line-height: 0.86;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.05em;
  color: var(--text);
  text-shadow: 0 10px 60px rgba(5, 5, 7, 0.6);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.22em;
}
.title .w { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.title .c { display: inline-block; transform: translateY(110%) rotate(4deg); opacity: 0; animation: char 1.1s var(--ease) forwards; }
.title .w:last-child .c { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes char { to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hand { position: relative; display: inline-grid; max-width: 100%; justify-items: center; margin-top: -4px; font: 600 clamp(28px, 3.3vw, 48px)/1.05 var(--hand); color: var(--heart); letter-spacing: 0.005em; transform: rotate(-2deg); text-shadow: 0 0 24px rgba(255, 59, 92, 0.35); }
.hand-text { display: block; padding: 0 0.2em; clip-path: inset(-20% 100% -20% 0); animation: write 1.7s cubic-bezier(0.3, 0, 0.5, 1) 1.5s forwards; }
.hand-line { width: 92%; height: 10px; margin-top: 2px; overflow: visible; }
.hand-line path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 0.9s ease-out 3.1s forwards; }
@keyframes write { to { clip-path: inset(-20% -2% -20% 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 13.5px; color: var(--text-2); letter-spacing: -0.005em; opacity: 0; animation: rise 1s var(--ease) 3.2s forwards; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--a3); margin: 0 12px; box-shadow: 0 0 8px var(--a3); }
.trust svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; opacity: 0; animation: rise 1s var(--ease) 1.25s forwards; }
.inst { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; width: min(720px, 100%); margin-top: 10px; opacity: 0; animation: rise 1s var(--ease) 1.6s forwards; }
.inst > * { max-width: 100%; min-width: 0; }
.inst-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(5, 5, 7, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.inst-tabs button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 12.5px var(--sans); letter-spacing: -0.005em; cursor: pointer; transition: color 0.2s, background 0.2s; }
.inst-tabs button:hover { color: var(--text); }
.inst-tabs button.on { color: var(--text); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.inst-sep { width: 1px; height: 16px; margin: 0 4px; background: var(--edge-2); }
.inst-bar { display: inline-flex; align-items: center; gap: 12px; width: auto; max-width: 100%; height: 46px; padding: 0 6px 0 18px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(5, 5, 7, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px -30px rgba(0, 0, 0, 0.9); }
.inst-prompt { font: 500 13px var(--mono); color: var(--a2); }
.inst-bar code { flex: 0 1 auto; min-width: 0; font-size: 13px; color: var(--text); background: none; border: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.inst-copy { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.05); color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.inst-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.inst-copy:hover { color: var(--text); border-color: var(--edge-2); background: rgba(255, 255, 255, 0.09); }
.inst-copy.copied { color: var(--ok); border-color: rgba(52, 211, 153, 0.6); }
.inst-open { flex: none; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--grad); color: #fff; font: 600 12.5px var(--sans); }
.inst-tag { flex: none; font: 600 10.5px var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.07); border: 1px solid var(--edge); border-radius: 6px; padding: 2px 7px; }
.inst-note { font-size: 12px; color: var(--faint); text-align: center; text-wrap: balance; }
.eb-more { display: inline; } .t-short { display: none; }
.inst-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.inst-note a:hover { color: var(--text); }
.inst-more { font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: .01em; transition: color .15s var(--ease); }
.inst-more span { opacity: .7; transition: transform .15s var(--ease), opacity .15s var(--ease); display: inline-block; }
.inst-more:hover { color: var(--text); }
.inst-more:hover span { transform: translateX(2px); opacity: 1; }
@media (max-height: 820px) { .inst-note { display: none; } }
@media (max-width: 760px) { .inst-tabs button { font-size: 11.5px; padding: 0 9px; height: 26px; } .inst-sep { display: none; } .inst-bar { height: 42px; } .inst-bar code { font-size: 12px; } }
@media (max-height: 820px) { .hero-text { gap: 18px; } .inst { margin-top: 2px; } }
@media (max-width: 760px) { .trust li + li::before { margin: 0 8px; } .trust { font-size: 12.5px; } .eyebrow { font-size: 12px; } }

/* ---------- the scroll gate ----------
   A ring at the bottom of the pinned section. While a step's demo runs, the small circle inside fills up
   and the page refuses to scroll past the step; once full, the ring lights up with a chevron and the
   scroll is free again. */
.gate { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 6; transform: translateX(-50%); display: grid; justify-items: center; gap: 5px; pointer-events: none; opacity: 0; animation: rise 1s var(--ease) 0.6s forwards; }
.gate-ring { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.28); background: rgba(5, 5, 7, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease); }
.gate-fill { --p: 0; position: relative; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); overflow: hidden; transition: transform 0.45s var(--spring), opacity 0.3s var(--ease); }
.gate-fill::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, #ff5ca4, #7060ff); -webkit-mask: linear-gradient(to top, #000 calc(var(--p) * 100%), transparent 0); mask: linear-gradient(to top, #000 calc(var(--p) * 100%), transparent 0); }
.gate-chev { position: absolute; width: 18px; height: 18px; color: #fff; opacity: 0; transform: translateY(-4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.gate-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.4s var(--ease); }
.gate.open .gate-ring { border-color: rgba(180, 76, 255, 0.85); background: rgba(180, 76, 255, 0.14); box-shadow: 0 0 0 4px rgba(180, 76, 255, 0.14), 0 0 26px rgba(180, 76, 255, 0.55); }
.gate.open .gate-fill { opacity: 0; transform: scale(0.3); }
.gate.open .gate-chev { opacity: 1; transform: none; animation: chev 1.5s ease-in-out 0.4s infinite; }
.gate.open .gate-label { opacity: 1; }
.gate.nudge .gate-ring { animation: nudge 0.5s var(--ease); }
.gate.gone { opacity: 0; transition: opacity 0.4s var(--ease); animation: none; }
@keyframes chev { 50% { transform: translateY(3px); } }
@keyframes nudge { 30% { transform: translateY(5px) scale(1.06); } 65% { transform: translateY(-2px); } }

/* ---------- the window ---------- */
.win-wrap {
  position: absolute;
  left: var(--stage-l); top: var(--stage-t); width: var(--stage-w); height: var(--stage-h);
  transform-origin: 50% 50%;
  opacity: 0;
  will-change: transform, opacity;
}
.win {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 18, 32, 0.86), rgba(10, 9, 16, 0.92));
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 60px 160px -40px rgba(112, 96, 255, 0.5), 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.win-bar { flex: 0 0 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--edge); font-size: 13px; color: var(--text-2); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.lights i:first-child { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win-title { font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tag { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.win-body { flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 0; position: relative; }

.rail { display: grid; align-content: start; gap: 3px; padding: 10px 6px; border-right: 1px solid var(--edge); }
.ri { display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 8px; border: 0; background: none; color: var(--muted); font: 500 9.5px/1 var(--sans); cursor: pointer; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.ri svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ri.on { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.ri.on svg { color: var(--a2); filter: drop-shadow(0 0 6px rgba(180, 76, 255, 0.8)); }

.screens { position: relative; min-width: 0; min-height: 0; }
.screen {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 176px minmax(0, 1fr) 276px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.screen.on { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); z-index: 1; }
.screen.full { left: -64px; grid-template-columns: minmax(0, 1fr) 252px; background: rgba(8, 7, 12, 0.98); z-index: 2; }
.screen.full.on { z-index: 3; }

.s-side { display: flex; flex-direction: column; min-width: 0; padding: 12px 10px; border-right: 1px solid var(--edge); font-size: 12.5px; overflow: hidden; }
.s-main { min-width: 0; min-height: 0; overflow: hidden; }
.s-aside { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--edge); overflow: hidden; }
.s-aside > *, .s-side > * { flex: none; }
.pad { padding: 14px 16px; }
.s-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.s-h.top { margin-top: 16px; }
.s-h b { font-size: 10.5px; }
.chip { font: 500 10.5px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--sheet-2); color: var(--text-2); }
.chip.ok { color: var(--ok); background: rgba(52, 211, 153, 0.14); }
.chip.rec { color: var(--a3); background: rgba(255, 92, 164, 0.14); }
.s-list, .s-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.s-list li, .s-tree li { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-list li .faint, .s-tree li .faint { margin-left: auto; font-size: 11px; }
.s-list li.sel, .s-tree li.sel { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.s-list.quiet li { padding: 3px 8px; white-space: normal; }
.s-list.small li { font-size: 11.5px; }
.s-tree .folder { color: var(--muted); font-size: 11.5px; padding: 6px 8px 2px; }
.s-tree .file { padding-left: 16px; }
.s-tree b, .tbl b, .traffic b { font-size: 10px; width: 32px; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex: none; }
.dot.live { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.seg { display: inline-flex; margin: 12px 0 0; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 11px; align-self: start; }
.seg span { padding: 3px 10px; border-radius: 6px; color: var(--muted); }
.seg span.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.s-foot { margin-top: auto; padding-top: 10px; font: 400 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-pill { margin-left: auto; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: rgba(112, 96, 255, 0.18); color: var(--violet); }
.kv { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--text-2); }
.kv > span:first-child { color: var(--muted); }
.kv .mono { font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; }
.s-aside .kv { grid-template-columns: minmax(0, 84px) minmax(0, 1fr); }
.mon-grid .kv { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl td { padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; color: var(--text-2); }
.tbl td:first-child { color: var(--text); }
.tbl tr.th td { color: var(--muted); font-size: 11px; border-top: 0; }
.tbl tr.sel td { background: rgba(255, 255, 255, 0.05); }
.tbl .mono { font-size: 11.5px; }
.tbl.calls td { font-size: 11.5px; }
.tbl.resp-codes td:last-child { white-space: normal; }
.tbl.calls td:first-child { padding-left: 4px; }
.added td { background: rgba(251, 191, 36, 0.07); }
.route-detail { margin-top: 14px; padding: 4px 12px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.rd-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--text-2); }
.rd-row:first-child { border-top: 0; }
.rd-k { color: var(--muted); }
.rd-row .mono { font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; }
.link { color: var(--violet); }
.link.pressed { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.row-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }

/* timed reveals inside a screen: main.js adds .on at data-t ms after the step starts */
.late, .rl, .tl { opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.late { transform: translateY(6px); }
tr.late { transform: none; }
.late.on, .rl.on, .tl.on, .tl:not([data-t]) { opacity: 1; transform: none; }
.set { display: none; }
.gone { display: none !important; }
.hl { opacity: 0; transition: opacity 0.3s; }
.hl.on { opacity: 1; color: var(--a3); }

/* Flows: the code and the readout */
.code { margin: 0; padding: 14px 16px 16px; font: 400 12px/1.6 var(--mono); color: var(--text-2); }
.code code { display: block; }
.ln { display: block; position: relative; min-height: 1.6em; white-space: pre-wrap; transition: opacity 0.3s var(--ease); }
.kw { font-style: normal; color: var(--violet); }
.str { font-style: normal; color: var(--text); }
.num { font-style: normal; color: var(--info); }
.tpl { font-style: normal; color: var(--a3); }
.m-post { font-style: normal; font-weight: 600; color: var(--warn); }
.m-get { font-style: normal; font-weight: 600; color: var(--ok); }
.win.is-playing .ln { opacity: 0.12; }
.win.is-playing .ln.on, .win.is-playing .code.pre .ln { opacity: 1; }
.win.is-playing .ln.cur::after { content: ""; position: absolute; left: -16px; top: 0.3em; width: 3px; height: 1.05em; border-radius: 2px; background: var(--grad); }
.ro-head { display: flex; justify-content: space-between; padding: 12px 16px 10px; border-bottom: 1px solid var(--edge); font-size: 13px; color: var(--text-2); }
.events { list-style: none; margin: 0; padding: 4px 0 0; }
.events li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 9px 16px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ev-k { color: var(--text); }
.ev-v { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.ev-sub { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ev-sub b { color: var(--text); font-weight: 500; }
.st-2 { color: var(--ok); } .st-4 { color: var(--warn); } .st-5 { color: var(--bad); } .st-info { color: var(--info); }
.pass { color: var(--ok); } .warnc { color: var(--warn); } .bad { color: var(--bad); }
.win.is-playing .events li { opacity: 0; transform: translateY(5px); }
.win.is-playing .events li.on { opacity: 1; transform: none; }
.fan { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 20px; margin-top: 4px; }
.fan i { display: block; border-radius: 2px; background: rgba(251, 191, 36, 0.55); transform-origin: bottom; transform: scaleY(0.25); transition: transform 0.4s var(--spring); }
.fan i.ok { background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }
li.on .fan i { transform: scaleY(1); }
li.on .fan i:nth-child(odd) { transition-delay: 0.05s; }
li.on .fan i:nth-child(3n) { transition-delay: 0.1s; }
.spark { grid-column: 1 / -1; width: 100%; height: 40px; display: block; margin-top: 4px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 14px 16px; border-top: 1px solid var(--edge); background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), transparent 60%); transition: opacity 0.4s var(--ease); }
.readout .verdict { margin-top: auto; }
.win.is-playing .readout .verdict { opacity: 0; }
.win.is-playing .readout .verdict.on { opacity: 1; }
.verdict-k { font-weight: 600; font-size: 16px; color: var(--ok); letter-spacing: -0.02em; }
.verdict-v { font-size: 13px; color: var(--text-2); }
.ld-verdict { margin-top: 12px; border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 10px; }

/* Requests */
.req { display: flex; flex-direction: column; }
.urlbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--edge); }
.method { font: 700 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: rgba(251, 191, 36, 0.14); }
.url { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.send { height: 28px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--grad); color: #fff; font: 600 12px var(--sans); transition: opacity 0.3s, filter 0.3s; }
.send.busy { opacity: 0.55; }
.send.done { opacity: 1; }
.tabs { display: flex; gap: 2px; padding: 0 6px; border-bottom: 1px solid var(--edge); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tabs span { position: relative; padding: 8px 9px; }
.tabs span.on { color: var(--text); }
.tabs span.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.tabs b { margin-left: 4px; font-weight: 500; font-size: 10.5px; color: var(--text-2); }
.tabs .right { margin-left: auto; color: var(--violet); }
.tabs.small { font-size: 11.5px; }
.tabs.vert { flex-direction: column; gap: 2px; padding: 0; border-bottom: 0; margin-bottom: 12px; white-space: normal; }
.tabs.vert span { display: flex; padding: 6px 8px; border-radius: 7px; }
.tabs.vert span.on { background: rgba(255, 255, 255, 0.07); }
.tabs.vert span.on::after { display: none; }
.tabs.vert b { margin-left: auto; }
.body { margin: 0; padding: 10px 14px; font: 400 12px/1.6 var(--mono); color: var(--text-2); overflow: hidden; }
.body-wrap { position: relative; }
.val { position: relative; border-radius: 4px; padding: 0 2px; transition: background 0.2s; }
.val.sel { background: rgba(180, 76, 255, 0.35); box-shadow: 0 0 0 1px rgba(180, 76, 255, 0.6); }
.val .swap-to { display: none; }
.val.swapped .num { display: none; }
.val.swapped .swap-to { display: inline; }
.val.swapped { background: rgba(255, 92, 164, 0.18); box-shadow: none; }
.cursor { position: absolute; left: 148px; top: 44px; width: 16px; height: 16px; fill: #fff; stroke: #000; stroke-width: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); z-index: 6; }
.ctx { position: absolute; left: 160px; top: 58px; z-index: 6; min-width: 250px; margin: 0; padding: 5px; list-style: none; border-radius: 10px; background: rgba(18, 16, 28, 0.98); border: 1px solid var(--edge-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); font-size: 12px; color: var(--text-2); }
.ctx li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 9px; border-radius: 6px; }
.ctx li .mono { font-size: 11.5px; color: var(--a3); }
.ctx li.ctx-h { color: var(--muted); font-size: 10.5px; padding-top: 7px; }
.ctx li.hl { background: rgba(180, 76, 255, 0.25); color: var(--text); }
.ctx li.hl .mono { color: var(--text); }
.resp { flex: 1; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--edge); }
.resp-head { min-height: 34px; padding: 9px 14px; font-size: 11.5px; color: var(--text-2); }
.resp-head .wait { display: none; color: var(--muted); }
.resp-head .wait.on { display: inline; }
.resp-head .wait.off { display: none; }
.resp-body { flex: 1; }
.lkg { margin: 0 12px 12px; padding: 8px 12px; border-radius: 8px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.2); font-size: 11.5px; color: var(--text-2); }
.lkg b { color: var(--text); font-weight: 600; }

/* Simulator */
.traffic { list-style: none; margin: 0; padding: 4px 0; font-size: 11.5px; }
.traffic li { display: flex; gap: 8px; align-items: baseline; padding: 7px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-2); white-space: nowrap; overflow: hidden; }
.traffic .pth { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.traffic .ms { margin-left: auto; color: var(--muted); flex: none; }
.aside-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--edge); font-size: 11.5px; }

/* Load */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); min-width: 0; }
.kpi b { font: 600 22px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart { display: block; width: 100%; height: auto; aspect-ratio: 900 / 260; margin-bottom: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--edge); }
.thr { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--text-2); }
.thr .val { color: var(--muted); }
.thr.pass .val { color: var(--ok); }

/* Health */
.banner { margin-bottom: 14px; padding: 9px 12px; border-radius: 9px; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.25); font-size: 12px; color: var(--text-2); }
.banner b { color: var(--bad); }
.runs-h { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 6px; font-size: 12px; color: var(--muted); }
.ticks { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 18px; margin-bottom: 10px; }
.ticks i { border-radius: 2px; background: rgba(52, 211, 153, 0.55); }
.ticks i.warn { background: rgba(251, 191, 36, 0.7); }
.ticks i.now { background: rgba(255, 255, 255, 0.1); animation: pulse 1.2s ease-in-out infinite; }
.ticks i.now.ok { background: var(--ok); animation: none; }
.runs { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.runs li { display: grid; grid-template-columns: 70px 44px 56px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-2); white-space: nowrap; }
.mini { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge); font: 400 11px/1.6 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.toast { margin-top: auto; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(20, 18, 32, 0.96); border: 1px solid var(--edge-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); font-size: 12px; }
.toast b { color: var(--text); }
.toast span { color: var(--muted); font-size: 11.5px; }

/* Capture, Design */
.result { margin-top: 12px; display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(112, 96, 255, 0.1); border: 1px solid rgba(112, 96, 255, 0.3); font-size: 11.5px; color: var(--text-2); }
.result b { color: var(--text); font-size: 12px; }
.result .mono { font-size: 11px; }
.lint { display: flex; gap: 12px; margin-bottom: 6px; font-size: 12px; }

/* CLI */
.term { margin: 0; padding: 18px 22px; font: 400 12.5px/1.75 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.tl { display: block; }
.prompt { color: var(--a2); } .cmt { color: var(--faint); }
.tools { grid-template-columns: 1fr; gap: 0; }
.tools li { padding: 2px 0; }

/* ---------- the notes column ---------- */
.notes {
  position: absolute;
  left: var(--notes-l); top: var(--notes-t); width: var(--notes-w); height: var(--notes-h);
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; pointer-events: none; overflow: hidden auto; scrollbar-width: none;
  padding-bottom: 40px;
  -webkit-mask: linear-gradient(180deg, #000 calc(100% - 56px), transparent); mask: linear-gradient(180deg, #000 calc(100% - 56px), transparent);
  will-change: transform, opacity;
}
.notes::-webkit-scrollbar { display: none; }
.notes > * { flex: none; }
.win.narrow .screen:not(.full) { grid-template-columns: minmax(0, 1fr) 272px; }
.win.narrow .screen:not(.full) .s-side { display: none; }
.notes.live { pointer-events: auto; }
.index { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.index button { font: 500 11.5px var(--sans); color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); border-radius: 999px; padding: 4px 9px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.index button:hover { color: var(--text); }
.index li.done button { color: var(--text-2); }
.index li.on button { color: var(--text); border-color: rgba(180, 76, 255, 0.7); background: rgba(180, 76, 255, 0.14); }
.note { display: none; min-width: 0; }
.note.on { display: grid; gap: 14px; align-content: start; }
.n-k { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0.02em; animation: rise 0.6s var(--ease) both; }
.n-k kbd { font: inherit; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--edge); }
.n-k code { padding: 0; border: 0; background: none; color: var(--text-2); }
.note h2 { font-size: clamp(30px, 2.7vw, 46px); line-height: 1; letter-spacing: -0.04em; font-weight: 750; font-stretch: 106%; }
.note h2 .wd { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); animation: wordin 0.7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
.n-k, .n-lead { animation-name: rise; }
.note h2 .wd { animation-delay: calc(0.1s + var(--i, 0) * 70ms); }
@keyframes wordin { to { opacity: 1; transform: none; } }
.n-lead { font-size: 17px; line-height: 1.5; color: var(--text-2); animation: rise 0.8s var(--ease) 0.45s both; }
.caps { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--edge); }
.caps { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--edge); }
.cap { display: none; grid-template-columns: 18px minmax(0, 1fr); gap: 1px 12px; align-items: start; padding: 5px 11px 5px 10px; border-radius: 12px; border: 1px solid transparent; transition: opacity 0.5s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease); }
.cap.on { display: grid; animation: capin 0.55s var(--ease); }
.cap.on:not(.now) { opacity: 0.72; }
.cap.now { background: rgba(180, 76, 255, 0.1); border-color: rgba(180, 76, 255, 0.35); }
.cap::before { content: ""; grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--edge-2); background: rgba(52, 211, 153, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.3 2.3L11.5 6' fill='none' stroke='%23052e1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: transparent; }
.cap.now::before { background-color: #fff; background-image: none; box-shadow: 0 0 0 4px rgba(180, 76, 255, 0.35), 0 0 18px rgba(180, 76, 255, 0.9); animation: pulse 1.4s ease-in-out infinite; }
.cap b { font: 600 17.5px/1.3 var(--sans); letter-spacing: -0.018em; color: var(--text); }
.cap span { font: 400 14px/1.45 var(--sans); color: var(--text-2); }
.cap code { font: 0.9em var(--mono); background: none; border: 0; padding: 0; color: var(--violet); }
@keyframes capin { from { opacity: 0; transform: translateX(14px); } to { transform: none; } }
.cap code { font-size: 0.8em; white-space: normal; overflow-wrap: anywhere; }
.note code { font-size: 0.85em; white-space: normal; overflow-wrap: anywhere; }

/* Steps builder */
.steps { display: flex; flex-direction: column; }
.steps-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--edge); }
.run { margin-left: auto; height: 28px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--grad); color: #fff; font: 600 12px var(--sans); transition: opacity 0.3s; }
.run.pressed { opacity: 0.6; }
.rows { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 3px; }
.row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; color: var(--text); line-height: 1.6; }
.row:hover { background: rgba(255, 255, 255, 0.04); }
.row.sub { padding-left: 42px; color: var(--text-2); }
.row.new.on { animation: rowflash 1.6s var(--ease); }
@keyframes rowflash { 0% { background: rgba(180, 76, 255, 0.28); } 100% { background: transparent; } }
.rn { width: 18px; flex: none; font: 500 10.5px var(--mono); color: var(--faint); text-align: right; margin-right: 6px; }
.pk { font: 500 11.5px var(--mono); font-style: normal; padding: 2px 7px 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--edge); color: var(--violet); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pk::after { content: " ▾"; font-size: 9px; color: var(--faint); }
.pk.m-post { color: var(--warn); } .pk.st-2 { color: var(--ok); } .pk.mono { color: var(--text-2); }
.row.add { color: var(--muted); }
.row.add .link.pressed { color: var(--text); }
.row.add .link.quiet { color: var(--muted); }
.menu { position: absolute; left: 44px; top: 32px; z-index: 5; min-width: 290px; margin: 0; padding: 6px; list-style: none; border-radius: 10px; background: rgba(18, 16, 28, 0.98); border: 1px solid var(--edge-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); font-size: 12px; color: var(--text-2); }
.menu li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 6px; }
.menu li.hl { background: rgba(180, 76, 255, 0.25); color: var(--text); }
.res { list-style: none; margin: 0; padding: 4px 0; font-size: 12px; }
.res li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text); white-space: nowrap; overflow: hidden; }
.res li .faint { font-size: 11px; }
.s-aside .verdict.late { margin-top: auto; }

/* chips, Discover */
.cloud { display: flex; flex-wrap: wrap; gap: 4px; }
.cloud span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--edge); color: var(--text-2); font-size: 11px; white-space: nowrap; }
.cloud span.faint { color: var(--faint); }
.prog { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12px; }
.prog li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--text); line-height: 1.45; }
.prog li .faint, .prog li .link { margin-left: 6px; }
.gen { border: 1px solid rgba(112, 96, 255, 0.35); border-radius: 10px; background: rgba(112, 96, 255, 0.07); overflow: hidden; position: relative; }
.gen-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--edge); font-size: 12.5px; }
.gen .body { padding: 10px 14px 12px; }
.hl-f { color: var(--violet) !important; }
.fields { margin-top: 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--sheet); overflow: hidden; }
.fld-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12.5px; }
.fld-row:first-child { border-top: 0; }
.fld-row b { color: var(--text); font-weight: 600; }
.fld-row .ty { color: var(--info); font-size: 11.5px; }
.fld-row .rq { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.4); border-radius: 999px; padding: 1px 7px; }
.fld-row .op { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--edge-2); border-radius: 999px; padding: 1px 7px; }
.fld-row .faint { margin-left: auto; }
.fld-foot { padding: 8px 14px; border-top: 1px solid var(--edge); }
.fld-foot b { color: var(--text-2); font-weight: 600; }

@media (max-width: 1500px) {
  .screen[data-screen="flows"], .screen[data-screen="builder"] { grid-template-columns: minmax(0, 1fr) 268px; }
  .screen[data-screen="flows"] .s-side, .screen[data-screen="builder"] .s-side { display: none; }
}
@media (max-height: 820px) {
  .note h2 { font-size: clamp(26px, 2.3vw, 36px); }
  .n-lead { font-size: 15.5px; }
  .cap b { font-size: 16px; } .cap span { font-size: 13px; }
  .code { font-size: 11.5px; }
}
@media (max-width: 999px) {
  .screen { grid-template-columns: minmax(0, 1fr) !important; }
  .s-side, .s-aside { display: none !important; }
  .screen.full { left: 0; }
  .win-body { grid-template-columns: 44px minmax(0, 1fr); }
  .screen.full { left: -44px; }
  .ri span { display: none; }
  .ri { padding: 9px 0; }
  .index button { font-size: 11px; padding: 4px 9px; }
  .note h2 { font-size: 24px; }
  .n-lead { font-size: 13.5px; }
  .cap b { font-size: 14px; } .cap span { display: none; } .cap { padding: 5px 8px; }
  .note.on { gap: 10px; }
  .notes { gap: 10px; overflow-y: auto; -webkit-mask: linear-gradient(180deg, #000 88%, transparent); mask: linear-gradient(180deg, #000 88%, transparent); padding-bottom: 24px; }
  .index { position: relative; flex-wrap: nowrap; overflow-x: auto; flex: none; padding: 2px 0 6px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 90%, transparent); mask: linear-gradient(90deg, #000 90%, transparent); }
  .index::-webkit-scrollbar { display: none; }
  .index li { flex: none; }
  .index button { white-space: nowrap; }
  .win-bar { gap: 10px; padding: 0 12px; }
  .code { font-size: 11px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(n + 4) { display: none; }
  .tbl.steps td:nth-child(4), .tbl.steps td:nth-child(5) { display: none; }
}

@media (max-width: 600px) {
  .screens { zoom: 0.8; }
  .screen.full { left: -55px; }
  .n-k { display: none; }
  .note h2 { font-size: 22px; }
  .n-lead { font-size: 13px; line-height: 1.4; }
  .caps { gap: 2px; padding-top: 8px; }
  .cap { padding: 4px 8px; border-radius: 9px; }
  .cap b { font-size: 13.5px; }
  .cap::before { width: 14px; height: 14px; margin-top: 2px; background-size: 12px; }
}
@media (max-width: 560px) {
  .hand { font-size: clamp(24px, 7vw, 30px); transform: rotate(-1.5deg); }
  .hand-text { white-space: normal; text-wrap: balance; }
  .eb-more, .t-long { display: none; } .t-short { display: inline; }
  .trust { font-size: 12px; gap: 4px 0; }
  .inst-note { font-size: 11.5px; }
  .inst-bar { gap: 8px; padding-left: 12px; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
}

/* ---------- static fallback (reduced motion, no WebGL, old browsers) ---------- */
body.static .hero { height: auto; }
body.static .hero-pin { position: relative; height: auto; min-height: 100vh; overflow: visible; }
body.static .hero-text { position: relative; padding: 140px 20px 40px; }
body.static .win-wrap { position: relative; left: auto; top: auto; width: min(1200px, calc(100vw - 40px)); height: 78vh; margin: 0 auto 32px; transform: none !important; opacity: 1 !important; }
body.static .notes { position: relative; left: auto; top: auto; width: min(1200px, calc(100vw - 40px)); height: auto; margin: 0 auto 80px; opacity: 1 !important; transform: none !important; pointer-events: auto; overflow: visible; }
body.static .note { display: grid; gap: 14px; padding: 28px 0; border-top: 1px solid var(--edge); }
body.static .index, body.static .gate, body.static .dim { display: none; }
body.static .late, body.static .rl, body.static .tl, body.static .hl { opacity: 1; transform: none; }
body.static .sky, body.static .vignette { position: fixed; z-index: -1; }

/* ---------- sections below the tour ---------- */
.sec { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.sec-head { display: grid; gap: 18px; max-width: 64ch; margin-bottom: clamp(36px, 5vw, 64px); }
.sec h2 { font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.045em; line-height: 0.94; font-weight: 700; font-stretch: 104%; }
.sec-head p { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 58ch; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.numbers { padding-bottom: 0; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.stat { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--edge-2); min-width: 0; }
.stat b { font-size: clamp(36px, 4.4vw, 64px); white-space: nowrap; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.marquee { margin-top: clamp(56px, 8vw, 110px); overflow: hidden; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { padding: 22px 34px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--edge); }
@keyframes marquee { to { transform: translateX(-50%); } }

.gaps { margin: 0; padding: 0; list-style: none; max-width: 72ch; }
.gaps li { padding: 14px 0; border-top: 1px solid var(--edge); color: var(--text-2); }
.gaps li:last-child { border-bottom: 1px solid var(--edge); }

.dl-sec { background: radial-gradient(50% 60% at 25% 50%, rgba(255, 92, 164, 0.1), transparent 70%); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.slab { border-radius: 28px; overflow: hidden; filter: drop-shadow(0 60px 90px rgba(112, 96, 255, 0.35)); }
.slab img { display: block; width: 100%; height: auto; max-width: 100%; }
.dl-copy { display: grid; gap: 22px; }
.dl-copy p { color: var(--text-2); font-size: 17px; max-width: 52ch; }
.dl { display: grid; gap: 8px; }
.dl-row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding: 16px 20px; border: 1px solid var(--edge); border-radius: 14px; background: var(--sheet); transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--spring); }
.dl-row::after { content: "Get it"; font-size: 14px; color: var(--a3); }
.dl-row:hover { border-color: var(--edge-2); background: var(--sheet-2); transform: translateX(4px); }
.dl-row.mine { border-color: rgba(180, 76, 255, 0.6); box-shadow: 0 0 0 1px rgba(180, 76, 255, 0.25), 0 20px 60px -30px rgba(180, 76, 255, 0.7); }
.dl-row.mine::after { content: "Get it, this is your system"; }
.dl-os { font-weight: 600; font-size: 18px; letter-spacing: -0.025em; }
.dl-files { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } .slab { max-width: 520px; } }
@media (max-width: 560px) { .dl-row { grid-template-columns: 1fr; gap: 2px; } }

.foot { border-top: 1px solid var(--edge); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot p { flex: 1 1 260px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .title .c { opacity: 1; transform: none; }
  .eyebrow, .sub-line, .cta, .trust, .inst { opacity: 1; }
  .hand-text { clip-path: none; }
  .hand-line path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}
