@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  color-scheme: only dark;
  --bg: #0b0b0d;
  --bg-raise: #111114;
  --bg-sunk: #08080a;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #ececef;
  --muted: #a3a3ad;
  --faint: #81818b;
  --silver-hi: #e6e7ea;
  --silver: #b9bbc2;
  --silver-lo: #7d8088;
  --amber: #ffb547;
  --amber-hot: #ff9d2e;
  --amber-ink: #2a1600;
  --fail: #ff6b5e;
  --sans: "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --section: clamp(110px, 15vh, 170px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #2a2a30 var(--bg); background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 100% 7%, #15151a 0%, transparent 31%),
    radial-gradient(ellipse at 0% 69%, #131318 0%, transparent 29%),
    linear-gradient(160deg, #101014, var(--bg) 38%, #0e0e12 83%, var(--bg)) var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--amber-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 10px; border: 2px solid var(--bg); }
a { color: inherit; text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, pre, kbd { font-family: var(--mono); }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main, .nav, .foot { position: relative; z-index: 1; }
main { overflow-x: clip; }
.wrap, .hero, .hacks, .auto, .menubar, .price, .install, .faq, .foot, .doc { margin-left: auto; margin-right: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  padding-bottom: 30px; margin-bottom: -16px;
  background: linear-gradient(rgb(11 11 13 / 0.94), rgb(11 11 13 / 0.72) 48%, rgb(11 11 13 / 0));
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -0.01em; }
.logo { width: 32px; height: 32px; border-radius: 7px; }
.mark { width: 28px; height: 28px; color: var(--silver-hi); }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; }

/* Buttons */
.btn {
  --px: 50%; --py: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  font: 500 15px/1 var(--sans); color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--bg-raise); overflow: hidden; isolation: isolate;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), background 0.25s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(120px circle at var(--px) var(--py), rgb(255 181 71 / 0.28), transparent 70%);
}
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: rgb(255 255 255 / 0.24); }
.btn:active { transform: translateY(1px); }
.btn--quiet { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--silver-hi); color: #111; border-color: transparent; font-weight: 600; }
.btn--primary::before { background: radial-gradient(140px circle at var(--px) var(--py), rgb(255 181 71 / 0.55), transparent 70%); }
.btn--primary:hover { background: #fff; border-color: transparent; }

/* Command block */
/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  padding: clamp(24px, 5vh, 64px) var(--gutter) 24px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "top scene" "cta scene";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hero::before {
  content: ""; position: absolute; top: -12%; bottom: 0; left: 30%; right: calc(50% - 50vw); pointer-events: none;
  background: radial-gradient(ellipse 46% 52% at 52% 34%, rgb(202 210 229 / 0.05), rgb(202 210 229 / 0.018) 55%, transparent);
}
/* Barely-there silver light: large, faint, eased toward the pointer by main.js. */
.hero__reflection {
  position: absolute; top: 0; left: 0; width: 760px; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(206 216 244 / 0.04), rgb(206 216 244 / 0.016) 50%, transparent);
  transform: translate3d(calc(var(--light-x, 0px) - 50%), calc(var(--light-y, 0px) - 50%), 0);
  opacity: 0; transition: opacity 0.9s ease-out;
}
.hero__reflection.is-tracking { opacity: 1; }
/* Sparks drift over the whole hero, full bleed, and dissolve before its bottom edge. */
.sparks {
  position: absolute; top: -80px; bottom: 0; left: 50%; width: 100vw;
  transform: translateX(-50%); pointer-events: none; z-index: 2;
  -webkit-mask-image: linear-gradient(transparent, #000 140px, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 140px, #000 82%, transparent);
}
.hero__top { grid-area: top; position: relative; z-index: 1; align-self: end; padding-top: clamp(16px, 6vh, 72px); }
.hero__cta { grid-area: cta; position: relative; z-index: 1; padding-top: 26px; }
.hero .scene { grid-area: scene; position: relative; z-index: 1; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 { font-size: clamp(40px, 4.4vw, 66px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
.hero__lead { margin-top: 22px; max-width: 34ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); }
.hero__meta { margin-top: 14px; font-size: 14px; color: var(--faint); max-width: 44ch; }
.hero__cta .btn[disabled] { color: var(--muted); background: var(--bg-raise); border-color: var(--line-strong); cursor: default; }
.hero__cta .btn[disabled]::before { display: none; }
.hero__setup { display: inline-block; margin-top: 10px; font-size: 14px; }

.perks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--text);
  background: rgb(17 17 20 / 0.7);
}
.perks svg { width: 18px; height: 18px; fill: none; stroke: var(--silver); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.perks .perks__x { stroke: var(--amber); }
.perks .perks__fill { fill: var(--amber); stroke: none; }

/* Mode switch */
.switch {
  position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; width: min(380px, 100%); margin: 0 auto;
  padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raise);
}
.switch button {
  position: relative; z-index: 1; height: 36px; border: 0; background: transparent; border-radius: 999px;
  font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; transition: color 0.3s;
}
.switch button[aria-pressed="true"] { color: var(--text); }
.switch button:hover { color: var(--text); }
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: rgb(255 255 255 / 0.09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  transition: transform 0.45s var(--ease-out), background 0.45s;
}
.scene[data-mode="on"] .switch__thumb { transform: translateX(100%); background: rgb(255 181 71 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.4); }
.scene[data-mode="off"] .switch__thumb { background: rgb(255 107 94 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 107 94 / 0.32); }

/* Stage */
.scene { margin: 0; display: grid; justify-items: center; gap: 14px; }
.stage {
  position: relative; width: 100%; container-type: inline-size; aspect-ratio: 1 / 0.80;
}
.scene__glow {
  position: absolute; left: 0; right: 0; top: var(--seam-y, 83%); height: 24cqw;
  transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(255 174 73 / 0.27), rgb(255 165 68 / 0.065) 47%, transparent 74%);
  opacity: 0; transition: opacity 0.55s var(--ease-out);
}
.scene[data-state="working"] .scene__glow { opacity: 1; transition-delay: 0.58s; }
.scene[data-state="done"] .scene__glow { opacity: 0.42; }

.laptop-hit {
  position: absolute; left: 15%; right: 15%; top: 8%; bottom: 8%; z-index: 3;
  border: 0; background: transparent; cursor: pointer; border-radius: 18px;
}
.laptop-hit:focus-visible { outline-offset: -2px; }

.laptop {
  --w: 73cqw; --d: 47cqw; --tb: 1.8cqw; --tl: 0.76cqw; --seam: 0.26cqw; --corner: 2.2cqw; --lid: 111deg;
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d;
  transform: perspective(205cqw) translateY(18.8cqw) rotateX(53deg);
  pointer-events: none;
}
.laptop__shadow {
  position: absolute; inset: 1% -10% -16%; transform: translateZ(-2.5cqw);
  background: radial-gradient(50% 50% at 50% 55%, rgb(0 0 0 / 0.75), transparent 72%);

}
[data-chassis], [data-lid-shell] { display: contents; }
.laptop__layer {
  position: absolute; inset: 0; border-radius: var(--corner); background: var(--metal);
  transform: translateZ(calc(-1 * var(--tb) * var(--depth)));
}
[data-lid-shell] .laptop__layer {
  inset-inline: 0.28cqw;
  transform: translateZ(calc(var(--tl) * (1 - var(--depth))));
  backface-visibility: hidden;
}
.laptop__base {
  position: absolute; inset: 0; border-radius: var(--corner);
  transform: translateZ(0.025cqw);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.18) 50%, rgb(255 255 255 / 0) 100%),
    linear-gradient(155deg, #dce0e6 3%, #adb2bd 66%, #838b98 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4), inset 0 -0.4cqw 0.8cqw rgb(0 0 0 / 0.12);
}
.laptop__deck {
  position: absolute; left: 9%; right: 9%; top: 8%; height: 51%; border-radius: 1cqw;
  background: #373a42; padding: 0.65cqw;
  box-shadow: inset 0 0.2cqw 0.4cqw rgb(0 0 0 / 0.28);
}
.laptop__keys { height: 100%; display: grid; grid-template-rows: 0.6fr repeat(5, 1fr); gap: 0.4cqw; }
.laptop__keys > div { display: flex; gap: 0.4cqw; }
.laptop__keys span {
  flex: var(--key-width) 1 0; min-width: 0; display: grid; place-items: center; border-radius: 0.35cqw;
  background: linear-gradient(#30323b, #17181e); color: #d1d4dd;
  box-shadow: inset 0 0.11cqw 0 rgb(255 255 255 / 0.22), 0 0.14cqw 0 #0b0c10;
  font: 500 0.96cqw/1 var(--sans);
}
.laptop__keys > div:first-child span { font-size: 0.73cqw; color: #a9afbd; }
.laptop__base::before, .laptop__base::after {
  content: ""; position: absolute; top: 10%; bottom: 43%; width: 4.1%;
  background: radial-gradient(circle, rgb(39 44 53 / 0.46) 20%, transparent 47%) 0 0 / 0.59cqw 0.59cqw;
}
.laptop__base::before { left: 3%; }
.laptop__base::after { right: 3%; }
.laptop__pad {
  position: absolute; left: 31%; right: 31%; top: 65%; bottom: 5%; border-radius: 1.1cqw;
  background: linear-gradient(180deg, #c6c9cf, #b3b6bd); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.laptop__lip {
  position: absolute; left: 45%; right: 45%; top: 100%; height: 0.48cqw;
  transform-origin: top; transform: translateY(0.015cqw) rotateX(-90deg);
  border-radius: 0 0 0.7cqw 0.7cqw; background: rgb(29 31 39 / 0.22);
}
.laptop__gap {
  position: absolute; left: 2.1cqw; right: 2.1cqw;
  top: calc(100% + 0.02cqw); height: max(1.35px, 0.27cqw); opacity: 0;
  transform-origin: top; transform: translateZ(calc(var(--seam) + 0.03cqw)) rotateX(-90deg);
  border-radius: 999px;
}
.laptop__gap::before, .laptop__gap::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgb(255 173 85 / 0.1) 1.5%, #ffd58f 8%, #fff3cf 28% 72%, #ffd58f 92%, rgb(255 173 85 / 0.1) 98.5%, transparent);
  opacity: var(--seam-light, 0); transition: opacity 0.35s var(--ease-out) var(--seam-delay, 0s);
}
.laptop__gap::before { inset: -0.4cqw -0.8cqw; filter: blur(0.55cqw); }
.laptop__lid {
  position: absolute; inset: 0; transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--seam)) rotateX(var(--lid));
  transition: transform 0.78s var(--ease-io);
}
.laptop__outer {
  position: absolute; inset: 0 0.28cqw; border-radius: var(--corner);
  transform: translateZ(var(--tl)); backface-visibility: hidden;
  background:
    linear-gradient(113deg, transparent 18%, rgb(255 255 255 / 0.34) 44%, transparent 74%),
    linear-gradient(155deg, #eff0f3 3%, #c3c8d2 49%, #9ca3af 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55), inset 0 0 2cqw rgb(0 0 0 / 0.06);
}
.laptop__screen {
  position: absolute; inset: 0 0.28cqw; border-radius: var(--corner); padding: 1.1cqw;
  transform: rotateX(180deg); backface-visibility: hidden;
  background: #0b0b0e; box-shadow: inset 0 0 0 0.3cqw #1b1b20;
}

/* What the screen shows */
.desktop {
  position: relative; height: 100%; border-radius: 0.8cqw; overflow: hidden;
  background:
    radial-gradient(90% 70% at 12% 105%, #ff9a3c 0%, rgb(255 120 50 / 0.55) 30%, transparent 62%),
    radial-gradient(80% 70% at 95% -5%, #8a5cf0 0%, rgb(110 70 220 / 0.5) 35%, transparent 65%),
    linear-gradient(160deg, #3a2466 0%, #1d1433 55%, #2a1626 100%);
}
.laptop__camera {
  position: absolute; z-index: 2; left: 42%; right: 42%; top: 0; height: 1.45cqw;
  border-radius: 0 0 0.55cqw 0.55cqw; background: #0b0b0e;
}
.laptop__camera::after {
  content: ""; position: absolute; inset: 22% auto auto 50%; width: 0.43cqw; height: 0.43cqw;
  transform: translateX(-50%); border-radius: 50%; background: #303544;
}
.desktop__off { position: absolute; inset: 0; background: #050506; opacity: 0; transition: opacity 0.6s; }
.win {
  --wbg: #262624; --wfg: #e8e6e1; --wdim: #8f8c86; --wacc: #d97757; --wbar: #2f2f2c;
  position: absolute; inset: 7% 3% 4%; border-radius: 0.9cqw; overflow: hidden;
  background: var(--wbg); color: var(--wfg);
  box-shadow: 0 1.2cqw 3cqw rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.08);
  display: grid; grid-template-rows: auto 1fr;
}
.win__bar { display: flex; align-items: center; gap: 0.55cqw; height: 3cqw; padding: 0 1.2cqw; background: var(--wbar); font: 1.35cqw/1 var(--mono); color: var(--wdim); }
.win__bar i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; } .win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { flex: 1; text-align: center; margin-right: 3cqw; }
.win__body { position: relative; padding: 1.4cqw 1.8cqw; font: 1.62cqw/1.5 var(--mono); overflow: hidden; display: flex; flex-direction: column; }
.win__body p { white-space: pre-wrap; }
.win__body .l-dim { color: var(--wdim); }
.win__body .l-acc { color: var(--wacc); font-weight: 600; }
.win__body .l-ok { color: #8fd19e; }
.win__body .l-fail { color: var(--fail); font-weight: 600; }
.win__body .l-user { color: var(--wfg); }
.win__body .t-head { display: grid; gap: 0.2cqw; padding: 0.9cqw 1.2cqw; border: 1px solid var(--wacc); border-radius: 0.6cqw; margin-bottom: 1cqw; }
.win__body .t-band { background: rgb(255 255 255 / 0.07); padding: 0.5cqw 1cqw; margin: 0.3cqw -1.8cqw; padding-left: 1.8cqw; }
.win__body .t-bar { border-left: 0.35cqw solid var(--wacc); background: rgb(255 255 255 / 0.05); padding: 0.7cqw 1.2cqw; margin: 0.3cqw 0 0.6cqw; }
.win__body .t-foot { margin-top: auto; padding-top: 0.8cqw; color: var(--wdim); font-size: 1.35cqw; }
.win__body .t-input { border-top: 1px solid rgb(255 255 255 / 0.12); border-bottom: 1px solid rgb(255 255 255 / 0.12); padding: 0.6cqw 0; margin-top: auto; color: var(--wdim); }
.win__body .t-input + .t-foot { margin-top: 0; }
.win__body .cur { display: inline-block; width: 0.7cqw; height: 1.4cqw; background: var(--wfg); vertical-align: -0.2cqw; }
.win__body .spin { color: var(--wacc); }
.win[data-theme="codex"] { --wbg: #1d1e21; --wfg: #e4e5e9; --wdim: #8a8d96; --wacc: #7cc6ff; --wbar: #27282c; }
.win[data-theme="opencode"] { --wbg: #0b0b0c; --wfg: #e9e9ea; --wdim: #7c7c84; --wacc: #6d8bff; --wbar: #18181a; }

/* States: open, closing, working (lid closed, awake), done, asleep, dead (lid closed, slept), fail */
.scene[data-state="working"] .laptop, .scene[data-state="done"] .laptop,
.scene[data-state="asleep"] .laptop, .scene[data-state="dead"] .laptop { --lid: 0deg; }
.scene[data-state="working"] .laptop__gap, .scene[data-state="done"] .laptop__gap,
.scene[data-state="asleep"] .laptop__gap, .scene[data-state="dead"] .laptop__gap { opacity: 1; }
.scene[data-state="working"] .laptop__gap { --seam-light: 1; --seam-delay: 0.61s; }
.scene[data-state="done"] .laptop__gap { --seam-light: 0.65; }
.scene[data-state="dead"] .desktop__off, .scene[data-state="asleep"] .desktop__off { opacity: 1; }

.hint {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 2; margin: 0;
  font: 12px/1 var(--mono); color: var(--faint); opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.laptop-hit:focus-visible ~ .hint { opacity: 1; }
@media (hover: hover) { .laptop-hit:hover ~ .hint { opacity: 1; } }

/* Status pill and chips */
.status {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  font: 13px/1.35 var(--mono); color: var(--muted); text-align: center;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgb(11 11 13 / 0.75);
}
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); transition: background 0.4s; }
.scene[data-state="asleep"] .dot, .scene[data-state="dead"] .dot { background: #4a4a52; }
.scene[data-state="fail"] .dot { background: var(--fail); }
.scene[data-state="fail"] .status { color: var(--text); border-color: rgb(255 107 94 / 0.35); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chip:hover { color: var(--text); border-color: rgb(255 255 255 / 0.26); }
.chip[aria-pressed="true"] { color: var(--text); border-color: rgb(255 181 71 / 0.5); background: rgb(255 181 71 / 0.06); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: #3a3a42; transition: background 0.3s; }
.chip[aria-pressed="true"] .chip__dot { background: var(--amber); }
.scene__pause {
  justify-self: center; border: 0; background: transparent; color: var(--faint);
  font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: color 0.2s;
}
.scene__pause:hover { color: var(--text); }

/* ---------- Sections ---------- */
section > h2, .sec-head h2, .price h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; }
.sec-head p { color: var(--muted); max-width: 46ch; }

/* Hacks */
.hacks { max-width: calc(var(--max) + 2 * var(--gutter)); padding: clamp(38px, 6vh, 72px) var(--gutter) 0; }
.exhibits { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exhibit h3 { margin-top: 18px; font-size: 21px; letter-spacing: -0.015em; }
.exhibit p { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 32ch; }
.exhibit__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-raise);
}
.exhibit__media img { width: 100%; height: 100%; object-fit: cover; transition: filter 1s var(--ease-out); }
.exhibit.is-seen .exhibit__media img { filter: saturate(0.85) brightness(0.72); }
.cross { position: absolute; inset: 9% 9%; width: 82%; height: 82%; pointer-events: none; overflow: visible; }
.cross path {
  fill: none; stroke: var(--amber); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5));
  transition: stroke-dashoffset 0.55s var(--ease-out);
}
.exhibit.is-seen .cross path:first-child { stroke-dashoffset: 0; transition-delay: 0.5s; }
.exhibit.is-seen .cross path:last-child { stroke-dashoffset: 0; transition-delay: 0.85s; }
.exhibit__media--term { background: #111114; }
.diy {
  margin: 0; height: 100%; padding: 22px 20px; font-size: 13px; line-height: 1.75; color: #c9cad1;
  white-space: pre-wrap; overflow: hidden; transition: filter 1s, opacity 1s;
}
.diy .p { color: var(--amber); }
.diy .c { color: #6c6c76; }
.diy .w { color: #e9d27a; }
.exhibit.is-seen .diy { opacity: 0.55; }

/* Comparison */
.compare { margin-top: 56px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { border-top: 0; font: 500 13px/1.3 var(--sans); color: var(--faint); vertical-align: bottom; }
.compare tbody th { font-weight: 500; color: var(--text); white-space: nowrap; }
.compare tbody th code { font-size: 0.9em; }
.compare td { color: var(--muted); }
.compare td::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.compare td.yes { color: var(--text); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.compare td.no { color: var(--faint); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.compare td.part { color: var(--muted); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.compare tr.ours th { color: var(--amber); font-weight: 600; }
.compare tr.ours td.yes { color: var(--text); }
.compare tr.ours td.yes::before { background: var(--amber); }
.compare tr.ours th, .compare tr.ours td { background: rgb(255 181 71 / 0.05); border-top-color: rgb(255 181 71 / 0.25); }

/* Auto */
.auto { max-width: calc(var(--max) + 2 * var(--gutter)); padding: var(--section) var(--gutter) 0; }
.agents { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.agent { padding: 26px 28px 26px 0; }
.agent + .agent { padding-left: 28px; border-left: 1px solid var(--line); }
.agent h3 { font-size: 21px; letter-spacing: -0.015em; }
.agent p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.auto__note { padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

.fuses { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 56px; }
.fuses h3 { font-size: 21px; letter-spacing: -0.015em; }
.fuses ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.fuses li { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.fuses svg { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: var(--silver); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fuses .f-amber { stroke: var(--amber); fill: var(--amber); }
.fuses b { font-weight: 500; font-size: 15.5px; }
.fuses span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.nosudo {
  margin-top: 72px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 56px; align-items: center;
  padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise);
}
.nosudo h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -0.02em; }
.nosudo p { margin-top: 12px; color: var(--muted); max-width: 46ch; font-size: 16px; }
.login { border: 1px solid var(--line-strong); border-radius: 12px; background: #17171b; padding: 14px; }
.login__title { font-size: 13px; color: var(--muted); padding: 2px 4px 12px; }
.login__row { display: flex; align-items: center; gap: 12px; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
.login__row img { border-radius: 6px; }
.login__row div { flex: 1; display: grid; }
.login__row b { font-size: 14px; font-weight: 500; }
.login__row small { font-size: 12px; color: var(--muted); }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 22px; background: #3a3a40; transition: background 0.35s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #f1f1f3; box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); transition: transform 0.35s var(--ease-out); }
.toggle.is-on { background: #30d158; }
.toggle.is-on::after { transform: translateX(16px); }

/* Menu bar replica */
.menubar { max-width: calc(var(--max) + 2 * var(--gutter)); padding: var(--section) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; }
.menubar__text p { margin-top: 20px; color: var(--muted); max-width: 42ch; }
.menubar__text .menubar__hint { font-size: 14px; color: var(--faint); }
.desk {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; background: #0e0e11;
}
.desk__bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; height: 32px; padding: 0 14px; background: rgb(255 255 255 / 0.06); border-bottom: 1px solid var(--line); font: 500 13px/1 var(--sans); color: var(--silver-hi); }
.desk__icon { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 6px; background: rgb(255 255 255 / 0.16); color: var(--silver-hi); }
.desk__icon .ic { grid-area: 1 / 1; width: 17px; height: 17px; opacity: 0; transition: opacity 0.25s; }
.desk[data-mode="auto"] .ic--cup, .desk[data-mode="pause"] .ic--pause, .desk[data-mode="force"] .ic--sun { opacity: 1; }
.desk__batt { position: relative; width: 24px; height: 11px; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 3px; }
.desk__batt i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 62%; border-radius: 1px; background: var(--silver-hi); }
.dmenu {
  position: relative; z-index: 2; width: min(336px, calc(100% - 32px));
  margin: 8px 16px 0 auto; padding: 5px;
  border: 1px solid rgb(255 255 255 / 0.12); border-radius: 10px;
  background: #2a2a2e; box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.72);
  font-size: 13px;
}
.dmenu__head { display: grid; gap: 4px; padding: 6px 10px; color: #9d9da5; font-size: 13px; }
.dmenu__sep { height: 1px; margin: 5px 10px; background: rgb(255 255 255 / 0.1); }
.dmenu__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; gap: 8px;
  padding: 5px 10px 5px 24px; position: relative;
  border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 400 13px/1.35 var(--sans); cursor: pointer;
}
.dmenu__item:not(.dmenu__item--static):hover, .dmenu__item[aria-expanded="true"] { background: #2f62d8; color: #fff; }
.dmenu__item[aria-pressed="true"]::before, .dmenu__item.is-selected::before { content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 6px; margin-top: -5px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); }
.dmenu__item--static { cursor: default; color: #aaaab3; }
.dmenu__item kbd { color: #9d9da5; font: 400 12px/1 var(--sans); }
.dmenu__item--sub::after {
  content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-right: 4px;
}
.dmenu__item--sub[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.dmenu__submenu {
  margin: 3px 7px 4px 24px; padding: 4px; border-radius: 7px; background: #222226;
}
.dmenu__submenu[hidden] { display: none; }
.desk__mac { position: relative; width: min(220px, 68%); margin: 41px auto 0; }
.desk__mac::before {
  content: ""; position: absolute; inset: -44px -45% -38px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(255 170 65 / 0.16), transparent 69%);
  transition: opacity 0.35s;
}
.desk__lid, .desk__base, .desk__line { position: relative; display: block; }
.desk__lid { height: 8px; border-radius: 5px 5px 1px 1px; background: linear-gradient(#edf0f4, #9ea4ae); }
.desk__base { height: 10px; border-radius: 1px 1px 5px 5px; background: linear-gradient(#bcc1c9, #717682); }
.desk__line { margin: 0 1px; height: 2px; border-radius: 2px; background: #1a1a1f; }
.desk__line::after {
  content: ""; position: absolute; inset: 0 3px; border-radius: inherit;
  background: linear-gradient(90deg, #ffb46b, #ffedc5 24% 76%, #ffb46b);
  box-shadow: 0 0 9px 2px rgb(255 170 60 / 0.65); transition: opacity 0.35s;
}
.desk[data-mode="pause"] .desk__line::after, .desk[data-mode="pause"] .desk__mac::before { opacity: 0; }
.desk__cap { position: relative; margin: 20px 16px 24px; text-align: center; font: 12.5px/1.4 var(--mono); color: var(--muted); }

/* Price */
.price {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-top: var(--section); padding: 0 var(--gutter);
}
.price__main { padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.price h2 { max-width: 14ch; }
.price__note { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Install */
.install { max-width: calc(var(--max) + 2 * var(--gutter)); padding: var(--section) var(--gutter) 0; }
.install__intro { margin-top: 14px; max-width: 61ch; color: var(--muted); }
.tabs { margin-top: 36px; max-width: 860px; }
.tabs__list { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tabs__list button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.tabs__list button[aria-selected="true"] { background: rgb(255 255 255 / 0.09); color: var(--text); }
.tabs__pane { margin-top: 28px; }
.istep { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.istep > li { position: relative; counter-increment: s; padding: 22px 0 22px 52px; border-top: 1px solid var(--line); }
.istep > li::before { content: counter(s); position: absolute; left: 0; top: 20px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--muted); }
.istep p { color: var(--muted); max-width: 62ch; }
.istep p a { color: var(--text); }
.gk { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #17171b; max-width: 560px; }
.gk__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #ffd60a 0 40%, transparent 42%), #3a3a1a; }
.gk p { font-size: 13px; color: var(--muted); }
.gk__btn { flex: none; font-size: 13px; padding: 7px 12px; border-radius: 8px; background: #3a3a40; color: var(--text); box-shadow: 0 0 0 2px rgb(255 181 71 / 0.7); }
.install__req { margin-top: 24px; font-size: 14px; color: var(--faint); }

/* FAQ */
.faq { max-width: calc(var(--max) + 2 * var(--gutter)); padding: var(--section) var(--gutter) 0; }
.faq__list { margin-top: 36px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); border-color: var(--amber); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }
.faq details p a { color: var(--text); }

/* Footer */
.foot { max-width: calc(var(--max) + 2 * var(--gutter)); margin-top: clamp(120px, 18vh, 200px); padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 56px; font-size: 14px; color: var(--muted); }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.foot__brand .logo { width: 28px; height: 28px; border-radius: 6px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; line-height: 1.7; }
.foot__legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--faint); max-width: 96ch; }

/* Legal documents */
.doc { max-width: calc(760px + 2 * var(--gutter)); padding: 48px var(--gutter) 0; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
.doc__date { margin-top: 14px; font-size: 14px; color: var(--faint); }
.doc h2 { margin-top: 44px; font-size: 21px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 70ch; }
.doc p { margin-top: 12px; }
.doc ol, .doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--faint); }
.doc b { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); }
.doc__back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--faint); text-decoration: none; }
.doc__back:hover { color: var(--text); }

/* Responsive */
@media (min-width: 961px) and (max-width: 1170px) {
  .hero h1 { font-size: 4.05vw; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "scene" "cta"; grid-template-rows: auto; min-height: 0; padding-top: 16px; row-gap: 28px; }
  .hero__top { padding-top: 12px; }
  .hero__cta { padding-top: 0; }
  .hero .scene { max-width: 680px; width: 100%; justify-self: center; }
  .sec-head, .foot, .menubar, .fuses, .nosudo { grid-template-columns: 1fr; }
  .exhibits { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding-bottom: 8px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .exhibits::-webkit-scrollbar { display: none; }
  .exhibit { scroll-snap-align: start; }
  .agents { grid-template-columns: 1fr; }
  .agent, .agent + .agent { padding: 22px 0; border-left: 0; }
  .agent + .agent { border-top: 1px solid var(--line); }
  .fuses ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { row-gap: 18px; }
  .hero h1 { font-size: clamp(31px, 10.4vw, 46px); }
  .hero__lead { margin-top: 16px; }
  .hero::before { inset: -1% -8% 3% 12%; }
  .perks li { height: 32px; font-size: 13.5px; }
  .stage { aspect-ratio: 1 / 0.84; }
  .laptop { --w: 86cqw; --d: 48cqw; --seam: 0.34cqw; transform: perspective(205cqw) translateY(19.8cqw) rotateX(52deg); }
  .win__body { padding: 1.4cqw 1.8cqw; font-size: 2.42cqw; line-height: 1.32; }
  .win__bar { height: 4.3cqw; font-size: 2.15cqw; }
  .win__body .t-head { display: flex; justify-content: space-between; padding-block: 0.55cqw; margin-bottom: 0.7cqw; }
  .win__body .t-input { padding-block: 0.36cqw; }
  .win__body .t-foot { font-size: 1.98cqw; }
  .chips { gap: 6px; }
  .chip { padding-inline: 11px; font-size: 13px; }
  .status { font-size: 12px; border-radius: 14px; }
  .switch button { font-size: 13px; }
  .fuses ul { grid-template-columns: 1fr; }
  .compare { overflow: visible; border: 0; background: transparent; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
  .compare tbody th { grid-column: 1 / -1; padding: 0; border: 0; white-space: normal; font-size: 16px; }
  .compare td { padding: 0; border: 0; font-size: 14px; line-height: 1.35; }
  .compare td::after { content: attr(data-label); display: block; margin: 3px 0 0 23px; font-size: 12px; color: var(--faint); }
  .compare tr.ours { border-color: rgb(255 181 71 / 0.35); }
  .compare tr.ours th, .compare tr.ours td { background: transparent; }
  .nosudo { padding: 24px; }
  .price__main { padding: 28px; }
  .foot__cols { grid-template-columns: 1fr; }
  .dmenu { width: auto; margin-inline: 11px; }
  .dmenu__item:not(.dmenu__item--static) { min-height: 36px; }
  .dmenu__item--static { min-height: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* .js-reveal is set by main.js, so without JS everything stays visible. */
  .js-reveal :is([data-reveal], .exhibit, .desk) {
    transition: opacity 0.75s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--stagger, 0) * 80ms);
  }
  .js-reveal :is([data-reveal], .exhibit, .desk):not(.is-seen) { opacity: 0; transform: translate3d(0, 20px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.is-capture *, .is-capture *::before, .is-capture *::after { transition: none !important; animation: none !important; }
