/* Ember landing — plain CSS, no build step.
   Palette is Ember's house look: violet-night grounds, ember-orange accent. */

:root {
  --bg: #120d1c;
  --bg-2: #171126;
  --surface: #1f1731;
  --surface-2: #281e3e;
  --line: rgba(217, 210, 234, 0.1);
  --line-2: rgba(217, 210, 234, 0.18);
  --text: #d9d2ea;
  --muted: #a99fc0;      /* 7.6:1 on --bg */
  --dim: #8d81a8;        /* 5.1:1 on --bg, for fine print only */
  --accent: #ff9a63;
  --accent-2: #d77757;
  --accent-ink: #1c0f0a;
  --amber: #ffc857;
  --green: #6ee2b3;
  --cyan: #7de3e6;
  --pink: #e08bff;
  --yellow: #ffd98a;

  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --gutter: 16px;
  --max: 1180px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --s-section: clamp(64px, 9vw, 120px);
  --spring: cubic-bezier(.2, 1.25, .3, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
code, .mono { font-family: var(--font-mono); }
code { font-size: 0.88em; color: var(--yellow); background: rgba(255, 217, 138, 0.07); padding: 0.08em 0.35em; border-radius: 4px; }
b { font-weight: 600; color: #efe9fa; }
::selection { background: rgba(255, 154, 99, 0.35); color: #fff; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

kbd {
  display: inline-block;
  font: 500 0.78em/1 var(--font-mono);
  padding: 0.32em 0.5em 0.28em;
  margin: 0 0.12em;
  min-width: 1.9em;
  text-align: center;
  color: var(--text);
  background: linear-gradient(#2c2244, #221a36);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
  vertical-align: 0.08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(.2,.9,.3,1.3), background-color 0.18s, box-shadow 0.25s, border-color 0.18s;
}
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 154, 99, 0.4), 0 10px 40px -8px rgba(255, 120, 60, 0.55);
}
.btn--primary:hover { background: #ffab7e; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 154, 99, 0.6), 0 16px 50px -8px rgba(255, 120, 60, 0.7); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(217, 210, 234, 0.03); }
.btn--ghost:hover { border-color: rgba(255, 154, 99, 0.55); color: #fff; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; background: rgba(255, 154, 99, 0.12); color: var(--accent); border-color: rgba(255, 154, 99, 0.35); }
.btn--small:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 13, 28, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; padding: 10px 0; }
.topnav a:hover { color: var(--text); }
@media (max-width: 719px) { .topnav { display: none; } .topbar__inner .btn { margin-left: auto; } }

/* ---------- section scaffolding ---------- */
section { position: relative; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 22px; text-wrap: balance; }
section p { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 5.5vw, 72px); overflow: clip; }
.hero::before { /* faint dot field, masked toward the top */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(217, 210, 234, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 45% at 30% 12%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 45% at 30% 12%, #000 20%, transparent 75%);
}
.hero__text { position: relative; display: grid; gap: 26px; }
@media (min-width: 1040px) {
  .hero__text { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; column-gap: 56px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.85rem/1.3 var(--font-mono); color: var(--muted); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 154, 99, 0.7); flex: none; }
.hero__title {
  position: relative;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.96; letter-spacing: -0.04em;
  margin: 0;
}
.hero__title .hl {
  background: linear-gradient(95deg, #ffc38f 0%, var(--accent) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__pitch { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); margin-bottom: 18px; }
.hero__pitch strong { color: #fff; font-weight: 600; }
.nowrap { white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__meta { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; margin: 0; }
.hero__meta i { font-style: normal; color: var(--accent); padding: 0 0.3em; }
.hero__meta [data-version].has-version::after { content: "·"; color: var(--accent); padding: 0 0.9em; }
.dl-alt { margin: 6px 0 0; font-size: 0.78rem; color: var(--dim); letter-spacing: 0.02em; }
.dl-alt i { font-style: normal; color: var(--accent); padding: 0 0.3em; }
.dl-alt a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 154, 99, 0.4); text-underline-offset: 3px; }
.dl-alt a:hover, .dl-alt a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
@media (max-width: 479px) { .hero__cta .btn--primary { flex: 1 1 auto; } }

/* travelling caret in the headline (positioned by main.js) */
.tcaret {
  position: absolute; left: 0; top: 0;
  height: 0.8em; width: 0.09em; min-width: 5px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px rgba(255, 140, 80, 0.75);
  pointer-events: none;
  will-change: transform, width;
}

.hero__stage { position: relative; margin-top: clamp(32px, 4.5vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 120%); height: 72%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 120, 60, 0.26), rgba(140, 60, 200, 0.14) 55%, transparent);
  filter: blur(20px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.04); } }

/* =====================================================================================
   THE FILM — a 1200x720 Ember window, scaled into .film__view by film.js
   ===================================================================================== */
.film { position: relative; }
.film__view {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1200 / 720;
  border-radius: 14px;
  background: #1d1530;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 154, 99, 0.06);
}
.film--demo:not(.is-small) .film__view { aspect-ratio: 960 / 680; }
.film.is-small .film__view { aspect-ratio: 10 / 8.4; border-radius: 12px; }

.win {
  /* the window's own palette; themes swap these */
  --w-bg: #1d1530; --w-bar: #271d3b; --w-side: #171027; --w-term: #1f1730; --w-panel: #1a1228;
  --w-node: #2b2143; --w-line: rgba(217, 210, 234, 0.09); --w-line2: rgba(217, 210, 234, 0.17);
  --w-text: #ded7ee; --w-mut: #a99fc0; --w-dim: #8d81a8;
  --w-acc: #ff9a63; --w-rgb: 255, 154, 99;
  --w-cy: #7de3e6; --w-pk: #e08bff; --w-yl: #ffd98a; --w-gr: #6ee2b3; --w-rd: #ff8a9a;
  position: absolute; left: 0; top: 0; width: 1200px; height: 720px;
  transform-origin: 0 0;
  background: var(--w-bg); color: var(--w-text);
  font: 400 14px/1.5 var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.win[data-theme="tokyo"] { --w-bg: #1a1b26; --w-bar: #16161e; --w-side: #16161e; --w-term: #1a1b26; --w-panel: #1f2335; --w-node: #24283b; --w-text: #c0caf5; --w-mut: #a9b1d6; --w-dim: #6b739c; --w-acc: #7aa2f7; --w-rgb: 122, 162, 247; --w-cy: #7dcfff; --w-pk: #bb9af7; --w-yl: #e0af68; --w-gr: #9ece6a; }
.win[data-theme="cat"] { --w-bg: #1e1e2e; --w-bar: #181825; --w-side: #181825; --w-term: #1e1e2e; --w-panel: #232336; --w-node: #313244; --w-text: #cdd6f4; --w-mut: #bac2de; --w-dim: #7f849c; --w-acc: #cba6f7; --w-rgb: 203, 166, 247; --w-cy: #89dceb; --w-pk: #f5c2e7; --w-yl: #f9e2af; --w-gr: #a6e3a1; }
.win[data-theme="gruv"] { --w-bg: #282828; --w-bar: #1d2021; --w-side: #1d2021; --w-term: #282828; --w-panel: #32302f; --w-node: #3c3836; --w-text: #ebdbb2; --w-mut: #d5c4a1; --w-dim: #928374; --w-acc: #fe8019; --w-rgb: 254, 128, 25; --w-cy: #8ec07c; --w-pk: #d3869b; --w-yl: #fabd2f; --w-gr: #b8bb26; }
.win[data-theme="nord"] { --w-bg: #2e3440; --w-bar: #272c36; --w-side: #272c36; --w-term: #2e3440; --w-panel: #353c4a; --w-node: #3b4252; --w-text: #d8dee9; --w-mut: #c2c9d6; --w-dim: #7b88a1; --w-acc: #88c0d0; --w-rgb: 136, 192, 208; --w-cy: #8fbcbb; --w-pk: #b48ead; --w-yl: #ebcb8b; --w-gr: #a3be8c; }
.win, .win__bar, .side, .main, .crumb, .pnl, .notes, .pick, .pal, .scard, .sp__b, .sp__b2 { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease; }
.win p { margin: 0; color: inherit; }
.win b { color: inherit; }

/* scene bookkeeping */
.win .no-tr, .win .no-tr * { transition: none !important; animation: none !important; }
.film.is-js :where([data-at]:not(.flip)) { transition: opacity 0.35s ease, transform 0.5s var(--out); }
.film.is-js :where([data-at]:not(.on):not(.flip)) { opacity: 0; }
.film.is-js :where([data-until].gone:not(.flip)) { opacity: 0; }
.typing::after {
  content: ""; display: inline-block; width: 0.55em; height: 1.15em; margin-left: 2px; vertical-align: -0.22em;
  background: var(--w-acc); border-radius: 2px; box-shadow: 0 0 8px rgba(var(--w-rgb), 0.7);
}
.bump { animation: bump 0.5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- chrome ---------- */
.win__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; background: var(--w-bar); border-bottom: 1px solid var(--w-line); }
.win__menu { width: 14px; height: 10px; border-top: 2px solid var(--w-dim); border-bottom: 2px solid var(--w-dim); position: relative; }
.win__menu::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid var(--w-dim); }
.win__title { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-mono); }
.glowdot { width: 9px; height: 9px; border-radius: 50%; background: var(--w-acc); box-shadow: 0 0 8px var(--w-acc); }
.win__usage { margin-left: auto; font-size: 11px; color: var(--w-dim); padding: 4px 8px; border: 1px solid var(--w-line2); border-radius: 6px; }
.win__ctl { display: flex; gap: 22px; margin-left: 10px; }
.win__ctl b { width: 11px; height: 11px; border: 1.5px solid var(--w-dim); border-radius: 2px; }
.win__ctl b:first-child { height: 0; border-width: 1.5px 0 0; align-self: center; }
.win__ctl b:last-child { border: 0; position: relative; }
.win__ctl b:last-child::before, .win__ctl b:last-child::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 1.5px solid var(--w-dim); transform: rotate(45deg); }
.win__ctl b:last-child::after { transform: rotate(-45deg); }
.win__body { position: relative; display: grid; grid-template-columns: 240px 960px; height: 680px; }

/* ---------- sidebar ---------- */
.side { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; background: var(--w-side); border-right: 1px solid var(--w-line); }
.side__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.14em; color: var(--w-dim); padding: 4px 8px 8px; }
.side__foot { margin-top: auto !important; font-size: 11px; color: var(--w-dim); padding: 0 8px; }
.scard { position: relative; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; }
.scard canvas { width: 38px; height: 38px; flex: none; image-rendering: pixelated; }
.scard__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.scard__t b { font: 600 14px/1.3 var(--font-mono); }
.scard__t small { font-size: 11.5px; color: var(--w-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.scard__br { margin-left: auto; align-self: flex-start; margin-top: 12px; font-style: normal; font-size: 10.5px; color: var(--w-dim); }
.scard.is-sel { background: rgba(var(--w-rgb), 0.08); border-color: rgba(var(--w-rgb), 0.2); }
.scard[data-mood="working"] small { color: var(--w-acc); }
.scard[data-mood="ask"] { background: rgba(255, 200, 87, 0.08); border-color: rgba(255, 200, 87, 0.32); }
.scard[data-mood="ask"] small { color: #ffc857; }
.scard[data-mood="done"] { border-color: rgba(110, 226, 179, 0.32); }
.scard[data-mood="done"] small { color: var(--w-gr); }

/* orchestrator pane, under the cards */
.orch { position: absolute; left: 10px; right: 10px; top: 314px; bottom: 36px; z-index: 3; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.orch.is-active { opacity: 1; }
.orch__in { display: flex; flex-direction: column; height: 100%; background: var(--w-panel); border: 1px solid rgba(var(--w-rgb), 0.32); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 0 30px -12px rgba(var(--w-rgb), 0.45); overflow: hidden; }
.film.is-js .orch__in:not(.on) { transform: translateY(26px); }
.orch__in { transition: opacity 0.4s, transform 0.6s var(--spring) !important; }
.orch__h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--w-line); }
.orch__h b { font: 600 13px/1 var(--font-body); }
.orch__pill { font-size: 10px; color: var(--w-dim); border: 1px solid var(--w-line2); border-radius: 5px; padding: 2px 6px; }
.orch__x { margin-left: auto; color: var(--w-dim); font-size: 11px; }
.orch__log { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; overflow: hidden; }
.bub { font: 400 12.5px/1.42 var(--font-body); padding: 7px 10px; border-radius: 10px; max-width: 94%; }
.bub--you { align-self: flex-end; background: rgba(var(--w-rgb), 0.16); border-bottom-right-radius: 3px; }
.bub--ai { background: rgba(255, 255, 255, 0.05); border-bottom-left-radius: 3px; color: var(--w-text); }
.bub--ai b { color: var(--w-acc); font-weight: 600; }
.film.is-js .bub:not(.on) { transform: translateY(8px); }
.did { font-size: 11px; color: var(--w-acc); padding-left: 4px; }
.did i { font-style: normal; }
.film.is-js .did:not(.on) { transform: translateX(-6px); }
.orch__box { margin: 0 10px 10px !important; min-height: 38px; padding: 9px 10px; border: 1px solid var(--w-line2); border-radius: 8px; background: rgba(0, 0, 0, 0.2); font-size: 12.5px; line-height: 1.4; }
.orch__ph { color: var(--w-dim); }
.orch__ph.gone, .orch__box [data-type].gone { display: none; }

/* hand-off wires + toast + cursor */
.wires { position: absolute; left: 0; top: 0; width: 1200px; height: 680px; overflow: visible; pointer-events: none; z-index: 8; opacity: 0; transition: opacity 0.4s; }
.wires.is-active { opacity: 1; }
.wire { fill: none; stroke: rgba(var(--w-rgb), 0.5); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wire.on { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s ease, opacity 0.3s !important; }
.wire-p, .mp { fill: none; stroke: #fff4e6; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.16 2; opacity: 0; filter: drop-shadow(0 0 5px var(--w-acc)); }
.toast { position: absolute; top: 54px; left: 560px; z-index: 20; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.is-active { opacity: 1; }
.toast span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; background: var(--w-panel); border: 1px solid rgba(110, 226, 179, 0.45); font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--w-gr); box-shadow: 0 0 10px var(--w-gr); }
.toast b { font-family: var(--font-mono); font-weight: 600; }
.film.is-js .toast span:not(.on), .film.is-js .toast span.gone { transform: translateY(-12px); }
.toast span { transition: opacity 0.3s, transform 0.5s var(--spring) !important; }
.cursor { position: absolute; left: 0; top: 0; z-index: 30; opacity: 0; transition: opacity 0.25s; pointer-events: none; margin: -2px 0 0 -2px; }
.cursor.on { opacity: 1; }
.cursor svg { display: block; overflow: visible; transition: transform 0.12s; transform-origin: 2px 2px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)); }
.cursor path { fill: #fff; stroke: #1a1028; stroke-width: 1.4; stroke-linejoin: round; }
.cursor.click svg { transform: scale(0.84); }
.cursor i { position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--w-acc); opacity: 0; transform: scale(0.3); }
.cursor.click i { animation: ripple 0.45s ease-out; }
@keyframes ripple { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* ---------- main area ---------- */
.main { position: relative; display: flex; flex-direction: column; background: var(--w-term); overflow: hidden; }
.crumb { position: relative; height: 36px; flex: none; border-bottom: 1px solid var(--w-line); background: rgba(0, 0, 0, 0.14); }
.crumb__i { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 18px; font: 12px/1 var(--font-mono); color: var(--w-dim); opacity: 0; transition: opacity 0.45s; }
.crumb__i.is-active { opacity: 1; }
.crumb__i b { color: var(--w-text); font-weight: 600; }
.crumb__i em { margin-left: auto; font-style: normal; font-size: 11px; }
.scenes { position: relative; flex: 1; overflow: hidden; }
.scene { position: absolute; inset: 0; z-index: 0; background: var(--w-term); opacity: 0; transform: scale(1.012); transition: opacity 0.3s ease 0.5s, transform 0.9s var(--out), background-color 0.5s; }
.scene.is-active { z-index: 1; opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.9s var(--out), background-color 0.5s; }
.win.is-out .scene.is-active, .win.is-out .orch.is-active, .win.is-out .toast.is-active, .win.is-out .wires.is-active { opacity: 0; transition-duration: 0.3s; }

/* terminal text */
.term { position: absolute; inset: 0; padding: 20px 24px; font: 400 13.5px/1.72 var(--font-mono); color: var(--w-text); }
.term p { white-space: pre-wrap; overflow-wrap: anywhere; }
.film.is-js .term p[data-at]:not(.on) { transform: translateY(5px); }
.t-gap { height: 0.9em; }
.t-dim, .term .t-dim { color: var(--w-dim); }
.t-say { padding-left: 1.6ch; max-width: 52ch; color: var(--w-text); }
.t-ok { color: var(--w-gr); }
.c-cy { color: var(--w-cy); } .c-pk { color: var(--w-pk); } .c-yl { color: var(--w-yl); }
.c-acc { color: var(--w-acc); } .c-gr { color: var(--w-gr); } .c-rd { color: var(--w-rd); }

/* beat 1: the panel */
.scene--panel .term { right: 440px; }
.pnl { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; display: flex; flex-direction: column; background: var(--w-panel); border-left: 1px solid var(--w-line); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6); }
.film.is-js .pnl:not(.on) { transform: translateX(80px); }
.scene .pnl { transition: opacity 0.35s, transform 0.75s var(--spring), background-color 0.5s; }
.pnl__bar { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 12px; color: var(--w-mut); border-bottom: 1px solid var(--w-line); background: rgba(255, 255, 255, 0.03); }
.pnl__bar span { color: var(--w-dim); letter-spacing: 0.3em; }
.diag { width: 400px; height: 300px; margin: 44px 20px 10px; overflow: visible; }
.dn { transform-box: fill-box; transform-origin: center; }
.film.is-js .dn:not(.on) { transform: scale(0.6); }
.dn { transition: opacity 0.3s, transform 0.55s var(--spring) !important; }
.dn rect { fill: var(--w-node); stroke: rgba(180, 140, 255, 0.5); stroke-width: 1.2; }
.dn text { font: 500 13px var(--font-mono); fill: var(--w-text); text-anchor: middle; }
.dn--hot rect { fill: rgba(var(--w-rgb), 0.15); stroke: var(--w-acc); stroke-width: 1.6; }
.dn--hot text { fill: var(--w-acc); }
.de { fill: none; stroke: rgba(217, 210, 234, 0.4); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.de.on { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s ease, opacity 0.2s !important; }
.de--hot { stroke: #ffc857; stroke-width: 1.8; }
.ahead { fill: rgba(217, 210, 234, 0.6); }
.dlabel { font: 600 11px var(--font-mono); fill: #ffc857; text-anchor: middle; }
.pnl__note { padding: 0 20px; font-size: 14px; color: var(--w-mut) !important; }
.pnl__note code { color: var(--w-acc); background: rgba(var(--w-rgb), 0.1); }
.film.is-js .pnl__note:not(.on) { transform: translateY(6px); }
.pnl__btns { display: flex; gap: 10px; padding: 22px 20px 24px; }
.film.is-js .pnl__btns:not(.on) { transform: translateY(10px); }
.chip { font: 500 13.5px/1 var(--font-body); padding: 11px 15px; border-radius: 8px; border: 1px solid var(--w-line2); background: rgba(255, 255, 255, 0.04); transition: transform 0.15s, background-color 0.15s, color 0.15s; }
.chip--go { border-color: rgba(var(--w-rgb), 0.6); color: var(--w-acc); background: rgba(var(--w-rgb), 0.1); }
.chip--go.on:not(.gone) { transform: scale(0.94); background: var(--w-acc); color: #1c0f0a; }

/* beat 2: the orchestrator's sessions, split */
.split2 { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.pane { position: relative; border-right: 1px solid var(--w-line); }
.pane:last-child { border-right: 0; }
.pane__h { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 18px; font-size: 12px; color: var(--w-mut); border-bottom: 1px solid var(--w-line); }
.pane__h i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-acc); box-shadow: 0 0 8px var(--w-acc); }
.term--sm { top: 32px; padding: 16px 18px; font-size: 12.5px; }
.from { font-size: 10px; color: var(--w-acc); border: 1px solid rgba(var(--w-rgb), 0.4); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 0.1em; white-space: nowrap; }

/* beat 3: todo & notes */
.todo { position: absolute; left: 0; top: 0; bottom: 0; width: 600px; padding: 26px 32px; }
.todo__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.todo__head h4 { font: 800 24px/1 var(--font-display); letter-spacing: -0.02em; }
.todo__count { font-size: 12px; color: var(--w-dim); display: inline-block; }
.todo__status { flex: 1; min-width: 0; font-size: 11.5px; color: var(--w-acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo__check { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(var(--w-rgb), 0.5); border-radius: 8px; color: var(--w-acc); background: rgba(var(--w-rgb), 0.08); font: 600 13px/1 var(--font-body); transition: transform 0.15s, background-color 0.15s, color 0.15s; }
.todo__check i { font-style: normal; }
.todo__check.on:not(.gone) { transform: scale(0.94); background: var(--w-acc); color: #1c0f0a; }
.todo__scan { position: relative; height: 2px; margin-bottom: 8px; background: var(--w-line); overflow: hidden; border-radius: 2px; opacity: 0; transition: opacity 0.3s; }
.todo__scan.on:not(.gone) { opacity: 1; }
.todo__scan i { position: absolute; top: 0; left: 0; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--w-acc), transparent); animation: scan 1.1s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.todo__list { list-style: none; margin: 0; padding: 0; }
.ti { display: grid; grid-template-rows: 1fr; }
.film.is-js .ti { transition: grid-template-rows 0.5s var(--out), opacity 0.35s ease !important; }
.film.is-js .ti[data-at]:not(.on), .film.is-js .ti.gone { grid-template-rows: 0fr; opacity: 0; }
.ti__in { display: flex; align-items: center; gap: 12px; min-height: 0; overflow: hidden; box-shadow: inset 0 -1px 0 var(--w-line); border-radius: 6px; }
.ti--new.on .ti__in { animation: newrow 1.8s ease-out; }
@keyframes newrow { 0% { background: rgba(var(--w-rgb), 0.18); } 100% { background: transparent; } }
.ti__box { position: relative; width: 17px; height: 17px; flex: none; border: 1.5px solid var(--w-dim); border-radius: 4px; margin-left: 4px; transition: background-color 0.2s, border-color 0.2s, transform 0.35s var(--spring); }
.ti__box.on { background: var(--w-gr); border-color: var(--w-gr); transform: scale(1.12); }
.ti__box.on::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #10261c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ti__txt { flex: 1; min-width: 0; padding: 11px 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.ti__box.on + .ti__txt { color: var(--w-dim); text-decoration: line-through; text-decoration-color: rgba(217, 210, 234, 0.4); }
.src { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 10.5px; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--w-line2); color: var(--w-mut); }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.src--mail { color: #9cc4ff; border-color: rgba(156, 196, 255, 0.35); }
.src--gh { color: #e6e1f2; border-color: rgba(230, 225, 242, 0.3); }
.src--jira { color: #6aa6ff; border-color: rgba(106, 166, 255, 0.4); }
.src--slack { color: #f08bc8; border-color: rgba(240, 139, 200, 0.4); }
.ti__why { flex: none; font-size: 10.5px; color: var(--w-gr); padding: 3px 7px; border-radius: 5px; background: rgba(110, 226, 179, 0.1); margin-right: 4px; }
.film.is-js .ti__why:not(.on) { transform: translateX(8px); }
.todo__arch { margin-top: 12px !important; font-size: 12px; color: var(--w-dim); transition: color 0.4s; }
.todo__arch span { display: inline-block; }
.todo__arch.on { color: var(--w-acc); }
.notes { position: absolute; right: 0; top: 0; bottom: 0; width: 360px; padding: 24px 22px; background: var(--w-panel); border-left: 1px solid var(--w-line); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6); }
.film.is-js .notes:not(.on) { transform: translateX(60px); }
.scene .notes { transition: opacity 0.35s, transform 0.7s var(--spring), background-color 0.5s; }
.notes__h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px !important; }
.notes__h b { font: 800 20px/1 var(--font-display); }
.notes__h span { font-size: 12px; color: var(--w-dim); }
.notes__list { list-style: none; margin: 0; padding: 0; }
.notes__list li { padding: 9px 10px; border-radius: 7px; font-size: 14px; color: var(--w-mut); }
.notes__list li.notes__new { color: var(--w-text); background: rgba(var(--w-rgb), 0.1); box-shadow: inset 2px 0 0 var(--w-acc); }
.notes__new em { font-style: normal; font-size: 10.5px; color: var(--w-acc); margin-left: 8px; }
.film.is-js .notes__new:not(.on) { transform: translateY(-8px); }
.notes__body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--w-line); }
.nb-h { font-size: 13px; color: var(--w-acc); margin-bottom: 6px !important; }
.nb-p { font-size: 14px; line-height: 1.6; }

/* beat 4: the map */
.map {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 55% 40%, rgba(140, 90, 220, 0.12), transparent 60%),
    radial-gradient(rgba(217, 210, 234, 0.07) 1px, transparent 1.2px) 0 0 / 22px 22px;
}
.map__in { position: absolute; left: 0; right: 0; top: 34px; height: 480px; }
.mz { position: absolute; border: 1px dashed rgba(180, 140, 255, 0.3); background: rgba(140, 90, 220, 0.06); border-radius: 14px; }
.mz span { position: absolute; left: 14px; top: 9px; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-dim); }
.mz--b { border-color: rgba(125, 227, 230, 0.28); background: rgba(80, 180, 200, 0.05); }
.mz--x { border-color: rgba(224, 139, 255, 0.28); background: transparent; }
.mz--i { border-color: rgba(255, 200, 87, 0.22); background: rgba(255, 200, 87, 0.03); }
.film.is-js .mz:not(.on) { transform: scale(0.97); }
.medges { position: absolute; left: 0; top: 0; width: 960px; height: 470px; overflow: visible; }
.me { fill: none; stroke: rgba(217, 210, 234, 0.34); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.me.on { stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s ease, opacity 0.2s !important; }
.me--dash, .me--dash.on { stroke-dasharray: 5 5; stroke-dashoffset: 0; stroke: rgba(255, 200, 87, 0.3); }
.mn {
  position: absolute; height: 50px; display: flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--font-mono); color: var(--w-text);
  background: var(--w-node); border: 1px solid rgba(217, 210, 234, 0.28); border-radius: 9px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
}
.film.is-js .mn { transition: opacity 0.5s ease, transform 1s cubic-bezier(.2, .9, .25, 1) !important; }
.film.is-js .mn:not(.on) { transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.35); }
.mn--x { background: rgba(43, 33, 67, 0.5); border-style: dashed; }
.mn--i { border-color: rgba(255, 200, 87, 0.3); }
.mn--db { border-radius: 9px 9px 16px 16px; }
.mflash { position: absolute; height: 50px; border-radius: 9px; box-shadow: 0 0 0 2px var(--w-acc), 0 0 30px var(--w-acc); opacity: 0; transition: opacity 0.2s; }
.mflash.on:not(.gone) { opacity: 1; }
.mring { position: absolute; height: 50px; }
.mring::before, .mring::after { content: ""; position: absolute; inset: -7px; border-radius: 14px; border: 2px solid var(--w-acc); }
.mring::before { box-shadow: 0 0 22px -4px var(--w-acc); }
.mring.on::after { animation: ringout 1.8s ease-out infinite; }
@keyframes ringout { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.22, 1.6); opacity: 0; } }
.mchip { position: absolute; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--w-rgb), 0.16); border: 1px solid rgba(var(--w-rgb), 0.5); color: var(--w-acc); white-space: nowrap; }
.mchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-acc); box-shadow: 0 0 8px var(--w-acc); }
.film.is-js .mchip:not(.on) { transform: translateY(6px); }
.mchanged { position: absolute; height: 50px; border-radius: 9px 9px 16px 16px; box-shadow: 0 0 0 2px #ffc857, 0 0 28px rgba(255, 200, 87, 0.5); opacity: 0; transition: opacity 0.35s; }
.mchanged.on { opacity: 1; }
.mbadge { position: absolute; font: 700 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: #ffc857; color: #2a1a05; box-shadow: 0 6px 16px -6px rgba(255, 200, 87, 0.8); }
.film.is-js .mbadge { transition: opacity 0.2s, transform 0.5s var(--spring) !important; }
.film.is-js .mbadge:not(.on) { transform: scale(0.3); }
.mtl { position: absolute; left: 28px; right: 28px; bottom: 46px; height: 46px; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--w-line); border-radius: 10px; }
.mtl__lab { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-dim); }
.mtl__track { position: relative; flex: 1; height: 2px; background: var(--w-line2); }
.mtl__track > i { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--w-node); border: 1.5px solid var(--w-dim); }
.mtl__track > i.mtl__now { border-color: var(--w-acc); }
.mtl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--w-acc); transform-origin: left; transform: scaleX(0.75); transition: transform 0.8s var(--out); }
.mtl__fill.on { transform: scaleX(1); }
.mtl__knob { position: absolute; left: 0; top: 0; width: 100%; height: 2px; transform: translateX(75%); transition: transform 0.8s var(--out); pointer-events: none; }
.mtl__knob.on { transform: translateX(100%); }
.mtl__knob::before { content: ""; position: absolute; left: -9px; top: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--w-acc); box-shadow: 0 0 14px var(--w-acc); }
.mtl__v { min-width: 200px; text-align: right; font-size: 11.5px; color: var(--w-mut); }

/* extra scene: pick a CLI */
.pick { position: absolute; left: 50%; top: 50%; width: 480px; margin: -215px 0 0 -240px; padding: 8px; background: var(--w-panel); border: 1px solid var(--w-line2); border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.pick__h { padding: 12px 14px 10px; font-size: 14px; color: var(--w-mut); }
.pick__list { list-style: none; margin: 0; padding: 0; }
.pr { position: relative; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.pr b { flex: 1; font-weight: 500; font-size: 15px; }
.pr--a.on:not(.gone), .pr--b.on { background: rgba(var(--w-rgb), 0.09); border-color: rgba(var(--w-rgb), 0.32); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--w-dim); flex: none; transition: border-color 0.2s, background 0.2s; }
.pr--a.on:not(.gone) .radio, .pr--b.on .radio { border-color: var(--w-acc); background: radial-gradient(circle, var(--w-acc) 0 40%, transparent 45%); }
.tag { font-size: 11.5px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--w-line2); color: var(--w-mut); white-space: nowrap; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.tag--ok, .pr:has(.tag__ok.on) .tag { color: var(--w-gr); border-color: rgba(110, 226, 179, 0.38); background: rgba(110, 226, 179, 0.06); }
.tag__ok { display: none; }
.tag__bar { position: absolute; left: 46px; right: 14px; bottom: 5px; height: 2px; background: var(--w-line); opacity: 0; transition: opacity 0.3s; overflow: hidden; }
.tag__bar.on:not(.gone) { opacity: 1; }
.tag__bar i { display: block; height: 100%; background: var(--w-acc); transform-origin: left; transform: scaleX(0); }
.tag__bar.on i { transform: scaleX(1); transition: transform 1.35s linear; }
.pick__foot { margin: 8px 0 0 !important; padding: 12px 14px; border-top: 1px solid var(--w-line); font-size: 12.5px; background: rgba(110, 226, 179, 0.06); border-radius: 0 0 8px 8px; }
.film.is-js .pick__foot:not(.on) { transform: translateY(6px); }

/* extra scenes: splits, themes, command line */
.sp { position: absolute; inset: 0; }
.sp__b { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: var(--w-term); border-left: 1px solid rgba(var(--w-rgb), 0.45); box-shadow: -20px 0 40px -24px rgba(0, 0, 0, 0.7); overflow: hidden; }
.film.is-js .sp__b:not(.on) { transform: translateX(100%); opacity: 1; }
.scene .sp__b { transition: transform 0.7s cubic-bezier(.2, .9, .25, 1), background-color 0.5s, border-color 0.5s !important; }
.sp__b2 { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; background: var(--w-term); border-top: 1px solid rgba(var(--w-rgb), 0.45); }
.film.is-js .sp__b2:not(.on) { transform: translateY(100%); opacity: 1; }
.scene .sp__b2 { transition: transform 0.7s cubic-bezier(.2, .9, .25, 1), background-color 0.5s !important; }
.keycap { position: absolute; top: 20px; right: 24px; z-index: 5; display: flex; gap: 4px; padding: 10px 12px; background: rgba(10, 6, 18, 0.7); border: 1px solid var(--w-line2); border-radius: 10px; font-size: 17px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.film.is-js .keycap:not(.on), .film.is-js .keycap.gone { transform: translateY(-8px) scale(0.96); }
.themechip { position: absolute; right: 24px; bottom: 22px; padding: 9px 14px; border-radius: 8px; font-size: 13px; color: var(--w-acc); background: var(--w-panel); border: 1px solid rgba(var(--w-rgb), 0.45); transition: color 0.5s, border-color 0.5s, background-color 0.5s, opacity 0.3s !important; }
.pal { position: absolute; top: 44px; left: 50%; width: 540px; margin-left: -270px; z-index: 6; background: var(--w-panel); border: 1px solid var(--w-line2); border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85); overflow: hidden; }
.film.is-js .pal:not(.on), .film.is-js .pal.gone { transform: translateY(-12px) scale(0.98); }
.pal__in { padding: 15px 16px; font-size: 16px; border-bottom: 1px solid var(--w-line); }
.pal__list { list-style: none; margin: 0; padding: 6px; }
.pal__list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 7px; font-size: 14px; }
.pal__list li span { font: 11.5px var(--font-mono); color: var(--w-dim); }
.pal__list li.is-sel { background: rgba(var(--w-rgb), 0.13); transition: background-color 0.15s; }
.pal__list li.is-sel.on:not(.gone) { background: rgba(var(--w-rgb), 0.34); }

/* ---------- chapter buttons under the hero film ---------- */
.film__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 48px; gap: 8px; margin: 16px auto 0; max-width: 760px; }
.beat {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 12px; overflow: hidden;
  font: 600 0.92rem/1.15 var(--font-body); color: var(--muted);
  background: rgba(217, 210, 234, 0.03); border: 1px solid var(--line-2); border-radius: 9px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.beat:hover { color: var(--text); border-color: rgba(255, 154, 99, 0.45); }
.beat__n { font-size: 0.75rem; color: var(--dim); }
.beat.is-on { color: #fff; border-color: rgba(255, 154, 99, 0.55); background: rgba(255, 154, 99, 0.08); }
.beat.is-on .beat__n { color: var(--accent); }
.beat__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.beat__bar b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px var(--accent); }
.film__pause { display: grid; place-items: center; min-height: 46px; background: rgba(217, 210, 234, 0.03); border: 1px solid var(--line-2); border-radius: 9px; color: var(--muted); cursor: pointer; }
.film__pause:hover { color: var(--text); border-color: rgba(255, 154, 99, 0.45); }
.film__pause path { fill: currentColor; }
.film__pause .i-play, .film.is-paused .film__pause .i-pause { display: none; }
.film.is-paused .film__pause .i-play { display: block; }
@media (max-width: 559px) {
  .film__nav { grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 6px; }
  .beat { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 0.8rem; min-height: 50px; text-align: center; }
  .beat__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 560px) { .beat__short { display: none; } }
@media (prefers-reduced-motion: reduce) { .film__pause { display: none; } .film__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- no API keys ---------- */
.nokey { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.nokey__in { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .nokey__in { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.nokey h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.nokey h2 span { display: block; margin-top: 14px; font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.clis { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clis li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 0.92rem; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(217, 210, 234, 0.03); }
.clis li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); }

/* ---------- see it work ---------- */
.see { padding: var(--s-section) 0; border-top: 1px solid var(--line); }
.see h2 { margin-bottom: 24px; }
.see__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stab {
  min-height: 44px; padding: 0 16px; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body); color: var(--muted);
  background: rgba(217, 210, 234, 0.03); border: 1px solid var(--line-2); border-radius: 8px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.stab:hover { color: var(--text); border-color: rgba(255, 154, 99, 0.5); }
.stab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
@media (max-width: 719px) {
  .see__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .see__tabs::-webkit-scrollbar { display: none; }
  .stab { flex: none; scroll-snap-align: start; }
}
.see__mount { max-width: 980px; }
.see__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; font-size: 1.08rem; color: var(--text) !important; }
.see__keys { display: inline-flex; }
.see__keys kbd:first-child { margin-left: 0; }
.see__nokey { font-size: 0.8rem; padding: 5px 10px; border-radius: 6px; color: var(--green); border: 1px solid rgba(110, 226, 179, 0.4); background: rgba(110, 226, 179, 0.06); }

/* ---------- how it works ---------- */
.how { padding: var(--s-section) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; position: relative; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps::before { content: ""; position: absolute; top: 23px; left: 48px; right: 16%; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(255, 154, 99, 0.1)); }
}
.steps li { position: relative; }
.steps__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg); border: 1px solid rgba(255, 154, 99, 0.45); color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; box-shadow: 0 0 24px -6px rgba(255, 140, 80, 0.6); }
.steps h3 { font-size: 1.5rem; margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---------- faq ---------- */
.faq { padding: var(--s-section) 0; }
.faq__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1fr 1.6fr; gap: 80px; } .faq__grid > div:first-child { position: sticky; top: 100px; align-self: start; } }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list details:first-child { border-top: 1px solid var(--line-2); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 0;
  font: 600 1.15rem/1.35 var(--font-body); color: var(--text);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s;
}
.faq__list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__list summary:hover { color: #fff; }
.faq__list details p { margin: 0 0 22px; max-width: 42rem; }

/* ---------- closer ---------- */
.closer { padding: var(--s-section) 0; overflow: clip; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 120, 60, 0.16), transparent 70%); }
.closer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.closer .hero__meta, .closer .dl-alt { margin: 0; }
.closer .dl-alt { margin-top: -14px; }
.closer h2 { margin: 0; max-width: 16ch; }
.closer__cinder { width: 120px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 0 28px rgba(255, 120, 60, 0.45)); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.95rem; }
.foot__inner { display: grid; gap: 14px; }
@media (min-width: 720px) { .foot__inner { grid-template-columns: 1fr auto; } .foot__fine { grid-column: 1 / -1; } }
.foot p { margin: 0; color: var(--muted); }
.foot a { color: var(--text); text-decoration-color: rgba(255, 154, 99, 0.6); text-underline-offset: 3px; }
.foot a:hover { color: var(--accent); }
.foot__links { display: flex; gap: 20px; }
.foot__fine { font-size: 0.82rem; color: var(--dim) !important; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
