:root {
  --bg: #0a0910; --ink: #f2f2f3; --mute: #a3a3ab; --dim: #55555d; --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.16);
  --grad: linear-gradient(90deg, #46e3ff, #4f7bff 30%, #8b5cff 55%, #ff5a4e 80%, #ffb340);
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif; --mono: "Roboto Mono", ui-monospace, Consolas, monospace;
  --c1: 17.1vw; --c2: 50vw; --c3: 83.4vw; --top: 30px; --navh: 50px; --bot: 14vh;
  --ease: cubic-bezier(.7, 0, .2, 1); --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }

/* ---------- the hairline grid ---------- */
.grid i { position: fixed; background: var(--line); z-index: 1; pointer-events: none; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.grid .v { top: calc(var(--top) + var(--navh)); bottom: 0; width: 1px; }
.grid .v1 { left: var(--c1); } .grid .v2 { left: var(--c2); } .grid .v3 { left: var(--c3); }
.grid .h { left: 0; right: 0; height: 1px; }
.grid .h1 { top: calc(var(--top) + var(--navh)); }
.grid .h2 { bottom: var(--bot); }
body[data-s="product"] .grid .v2 { transform: scaleY(0); transform-origin: top; }
body[data-s="product"] .grid .h2 { opacity: 0; }
body[data-s="protocol"] .grid .h2 { bottom: 22vh; }
body[data-s="protocol"] .grid .v2 { transform: scaleY(0); transform-origin: top; }

/* ---------- announcement + nav ---------- */
.announce { position: fixed; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font: 400 11.5px var(--sans); color: var(--mute); border-bottom: 1px solid var(--line); z-index: 5; transition: transform .7s var(--ease), opacity .5s; background: var(--bg); }
.announce svg { width: 9px; height: 9px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; vertical-align: 0; }
.announce button { font-size: 15px; color: var(--mute); }
body.noann { --top: 0px; } body.noann .announce { transform: translateY(-100%); opacity: 0; }
body:not([data-s="intro"]) { --top: 0px; } body:not([data-s="intro"]) .announce { transform: translateY(-100%); opacity: 0; }

.nav { position: fixed; top: var(--top); left: 0; right: 0; height: var(--navh); display: flex; align-items: stretch; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); transition: top .7s var(--ease); }
.brand { width: var(--c1); display: flex; align-items: center; gap: 9px; padding-left: 22px; font: 500 17px var(--sans); letter-spacing: -.01em; border-right: 1px solid var(--line); }
.brand img { width: 24px; height: 24px; }
.menu { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 2.6vw 0 2vw; font: 400 10.5px var(--mono); color: #d9d9de; }
.menu a:hover, .pad:hover { color: #fff; }
.menu i { font-style: normal; font-size: 7px; margin-left: 3px; vertical-align: 1px; }
.pad { width: calc(var(--c3) - 77vw); min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 16px; font: 400 10.5px var(--mono); color: #d9d9de; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pad svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.launch { margin: auto 22px auto auto; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 12px; font: 500 10px var(--mono); letter-spacing: .03em; position: relative; border-radius: 3px; }
.launch::before { content: ""; position: absolute; inset: 0; border-radius: 3px; padding: 1px; background: linear-gradient(135deg, #ff5a4e, #8b5cff 35%, rgba(255,255,255,.35) 60%, rgba(255,255,255,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.launch b { font-size: 9px; letter-spacing: -1px; }

/* ---------- right rail ---------- */
.rail { position: fixed; right: 14px; top: calc(var(--top) + var(--navh) + 20vh); bottom: 28vh; width: 46px; display: flex; flex-direction: column; align-items: center; z-index: 4; transition: top .7s var(--ease); }
.rl { position: relative; font: 500 8.5px var(--mono); letter-spacing: .03em; text-align: center; }
.rl em { position: absolute; top: -14px; left: 50%; width: 9px; height: 9px; margin-left: 2px; border: 1px solid var(--line2); border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.rl em::after { content: ""; position: absolute; left: -3px; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.rl span { display: block; transition: opacity .3s; }
.dots { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 8px 0; }
.dots i { width: 2px; height: 2px; border-radius: 50%; background: #4a4a52; }
.rm { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 500 8.5px var(--mono); }
.rm svg { width: 12px; height: 7px; fill: none; stroke: #ddd; stroke-width: 1; margin-left: 6px; }

/* ---------- sections: all fixed, the active one is shown ---------- */
/* sections are absolute without z-index (no stacking context), so each panel can sit in front of or behind the robot canvas */
.sec { position: absolute; inset: 0; pointer-events: none; }
.sec > * { pointer-events: auto; z-index: 3; }
.sec > .prompt, .sec > .feats { z-index: 1; }
.c { position: absolute; width: 7px; height: 7px; border: 1px solid #6a6a72; }
.c.tl { left: -9px; top: -9px; border-right: 0; border-bottom: 0; } .c.bl { left: -9px; bottom: -9px; border-right: 0; border-top: 0; }
.c.tr { right: -9px; top: -9px; border-left: 0; border-bottom: 0; } .c.br { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }

/* reveal helpers: [data-in] children animate when their section is active */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--out), transform .9s var(--out); }
.on .rv { opacity: 1; transform: none; }
.leave .rv { opacity: 0; transform: translateY(-30px); transition-duration: .45s, .6s; transition-timing-function: var(--ease); }

/* hero */
.prompt { position: absolute; left: var(--c1); top: calc(var(--top) + var(--navh) + 14.4vh); width: 23.4vw; min-width: 260px; }
.prompt .q { width: 42px; height: 42px; border: 1px solid #d8d8dc; border-bottom: 0; display: grid; place-items: center; font: 500 28px/1 var(--sans); padding-top: 12px; }
.pbox { position: relative; border: 1px solid #d8d8dc; padding: 16px 16px 14px; min-height: 64px; }
.pbox p, .pnext { font: 400 11.5px/1.45 var(--mono); letter-spacing: .02em; }
.pbox p::after { content: ""; display: inline-block; width: 6px; height: 11px; margin-left: 2px; background: #ddd; vertical-align: -1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pbox .c { border-color: #8a8a92; }
.pnext { color: #4b4b52; margin: 14px 16px 0; }
.feats { position: absolute; left: var(--c2); right: calc(100vw - var(--c3)); top: calc(var(--top) + var(--navh) + 20.6vh); list-style: none; }
.feats li { display: flex; align-items: center; justify-content: flex-end; height: 21px; border-top: 1px solid var(--line); font: 400 9px var(--mono); letter-spacing: .04em; color: #d6d6db; padding-right: 12px; position: relative; }
.feats li i { position: absolute; left: 38%; width: 3px; height: 3px; border-radius: 50%; background: #66666e; }
.feats li.more { border-top: 0; color: #8b8b93; }
.htitle { position: absolute; left: 24px; bottom: 4.6vh; }
.kick { font: 400 12px var(--mono); letter-spacing: .06em; margin-bottom: 2.2vh; }
.htitle h1 { font: 400 clamp(38px, min(5.1vw, 8.2vh), 74px)/1 var(--sans); letter-spacing: -.02em; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.w { position: relative; display: inline-block; padding: .06em .22em .12em .2em; }
.w b { font-weight: 400; display: inline-block; }
.w::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 3px 14px 3px 3px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.w1::before { background: linear-gradient(90deg, #46e3ff, #8b5cff 45%, #8b5cff 60%, transparent 61%) top/100% 2px no-repeat, linear-gradient(90deg, transparent 38%, #ffb340 40%, #ff5a4e) bottom/100% 2px no-repeat, linear-gradient(#46e3ff, #2f9fb0) left/2px 70% no-repeat, linear-gradient(#ff5a4e, #ff5a4e) right bottom/2px 30% no-repeat; -webkit-mask: none; mask: none; padding: 0; border-radius: 0; }
.w2::before { background: linear-gradient(#46e3ff, #ffd34a) left/2px 100% no-repeat, linear-gradient(90deg, #ffd34a, #ffb340) bottom/100% 2px no-repeat, linear-gradient(90deg, transparent 60%, #ff5a4e) top/100% 2px no-repeat, linear-gradient(#ff5a4e, #ffb340) right/2px 100% no-repeat; -webkit-mask: none; mask: none; padding: 0; border-radius: 0; }
.hsub { position: absolute; left: calc(var(--c2) + 1.6vw); bottom: 4.6vh; font: 400 13.5px/1.55 var(--sans); color: #e6e6ea; }
.scroll { position: absolute; right: 24px; bottom: 4vh; display: flex; align-items: center; gap: 22px; font: 400 9px var(--mono); color: #8d8d95; }
.scroll b { width: 46px; height: 46px; display: grid; place-items: center; position: relative; }
.scroll b::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 8px; border: 1px solid #77777f; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.scroll svg { width: 22px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.4; }

/* product */
.tabs { position: absolute; left: var(--c1); right: 0; top: calc(var(--top) + var(--navh) + 7.6vh); height: 10.2vh; min-height: 60px; overflow: visible; }
.tabs .c { border-color: #8a8a92; }
.tabs .c.tr, .tabs .c.br { right: auto; left: calc(var(--c2) - var(--c1) - 2px); }
.track { position: absolute; inset: 0; overflow: hidden; }
.track > div { position: absolute; top: 0; bottom: 0; width: calc(var(--c2) - var(--c1)); display: flex; transition: transform 1s var(--ease); }
.track span { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); font: 400 11px var(--mono); letter-spacing: .04em; color: #5e5e66; transition: color .6s, border-color .6s; }
.track span.n { width: 18%; border-right: 0; } .track span.t { flex: 1; }
.track > div.act span { color: #f2f2f3; border-color: #d8d8dc; }
.gtitle { position: absolute; left: 24px; bottom: 4.4vh; }
.dd { font: 500 12px var(--mono); margin-bottom: 1.8vh; letter-spacing: .1em; }
.gtitle h2 { font: 400 clamp(30px, min(3.5vw, 5.6vh), 50px)/1.12 var(--sans); letter-spacing: -.02em; display: flex; flex-direction: column; align-items: flex-start; }
.gtitle .box { border: 1px solid var(--line2); border-radius: 2px 10px 2px 2px; padding: .04em .3em .06em .3em; margin-left: -.02em; }
.gtitle span:last-child { padding-left: 0; }

/* reviews */
.rtop { position: absolute; left: 0; right: calc(100vw - var(--c3)); top: calc(var(--navh) + 2vh); height: 8.4vh; display: flex; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid transparent; }
.tag { font: 400 10.5px var(--mono); letter-spacing: .04em; padding-left: 24px; width: var(--c1); }
.tag em { font-style: normal; margin-left: 18px; padding: 3px 6px; border-radius: 3px 6px 3px 3px; border: 1px solid #55555d; border-top-color: transparent; border-left-color: transparent; }
.who { display: flex; align-items: center; gap: 12px; font: 400 14px var(--sans); width: calc(var(--c2) - var(--c1)); }
.av { width: 56px; height: 56px; display: grid; place-items: center; font: 500 13px var(--mono); font-style: normal; color: #ddd; background: linear-gradient(135deg, #3a3a42, #17171b); filter: grayscale(1); }
.who b { font-weight: 400; font-size: 8px; color: #999; }
.role { font: 400 10.5px var(--mono); letter-spacing: .05em; color: #8f8f97; padding-left: 2vw; }
.rq { position: absolute; left: 24px; top: calc(var(--navh) + 16.6vh); width: 23vw; min-width: 280px; font: 400 clamp(19px, min(2.15vw, 3.5vh), 31px)/1.24 var(--sans); letter-spacing: -.01em; }
.try { position: absolute; left: 24px; top: calc(var(--navh) + 59vh); font: 400 12.5px var(--sans); color: #e3e3e7; border-left: 1px solid #aaa; padding-left: 18px; }
.try a { text-decoration: underline; }
.arrows { position: absolute; left: 24px; bottom: 9vh; display: flex; gap: 10px; }
.arrows button { width: 42px; height: 26px; }
.arrows svg { width: 40px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.4; }
.arrows #prev svg { stroke: #66666e; }
.rnext { position: absolute; left: calc(var(--c3) + 2vw); right: 0; top: calc(var(--navh) + 2.6vh); color: #222228; overflow: hidden; white-space: nowrap; }
.rnext .tag { padding-left: 0; color: #2e2e35; }
.rnext .tag em { border-color: #2e2e35; border-top-color: transparent; border-left-color: transparent; }
.rnext p { margin-top: 8vh; font: 400 clamp(19px, min(2.15vw, 3.5vh), 31px)/1.24 var(--sans); white-space: normal; width: 23vw; }
.rnext small { display: block; margin-top: 6vh; padding-left: 16px; border-left: 1px solid #2e2e35; font: 400 11.5px/1.6 var(--sans); white-space: normal; width: 15vw; }
.swap { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.swap.out { opacity: 0; transform: translateY(-18px); }
.swap.pre { opacity: 0; transform: translateY(18px); transition: none; }

/* section visibility */
.sec { visibility: hidden; }
.sec.on, .sec.leave { visibility: visible; }

@media (max-width: 860px) {
  :root { --c1: 0px; --c2: 50vw; --c3: 100vw; }
  .menu, .pad, .rail, .feats, .grid .v1, .grid .v3 { display: none; }
  .brand { width: auto; border: 0; }
  .prompt { left: 20px; width: calc(100vw - 40px); }
  .hsub { left: 24px; bottom: auto; top: calc(var(--top) + var(--navh) + 40vh); }
  .htitle h1 { font-size: 46px; }
  .tabs { left: 20px; } .track > div { width: calc(100vw - 40px); }
  .tabs .c.tr, .tabs .c.br { left: auto; right: 11px; }
  .rq { width: calc(100vw - 48px); font-size: 22px; }
  .rnext { display: none; }
  .who { width: auto; flex: 1; } .role { display: none; } .tag { width: auto; padding-right: 16px; }
}
@media (max-width: 860px) { .hsub { display: none; } .prompt { top: calc(var(--top) + var(--navh) + 6vh); } .rq { font-size: 19px; } }

/* ================= Excelsior content blocks ================= */
/* hero CA pill (shown once the token is saved in /studio) */
.ca { position: absolute; left: calc(var(--c2) + 1.6vw); bottom: calc(var(--bot) + 2.4vh); display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px 0 4px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10,9,16,.7); font: 400 11px var(--mono); }
.ca[hidden] { display: none; }
.ca .k { height: 26px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 500; }
.ca button, .ca a { height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); display: grid; place-items: center; font: 400 10.5px var(--mono); }
.ca a { background: #fff; color: #000; border-color: #fff; }

/* how it works: the active step's line, and the CLI card */
.tabtext { position: absolute; left: 24px; top: calc(var(--navh) + 7.6vh + max(10.2vh, 60px) + 6vh); width: calc(var(--c1) + 9vw); min-width: 240px; transition: opacity .3s, transform .4s var(--ease); }
.tabtext.swapping { opacity: 0; transform: translateY(8px); }
.tabtext .tk { font: 500 10.5px var(--mono); letter-spacing: .08em; color: #8f8f97; margin-bottom: 12px; }
.tabtext .tt { font: 400 clamp(14px, min(1.2vw, 2vh), 17px)/1.55 var(--sans); color: #d9d9de; }
.cli { position: absolute; right: 72px; bottom: 6vh; width: min(27vw, 410px); border-radius: 10px; background: linear-gradient(180deg, rgba(22,22,28,.92), rgba(10,10,14,.94)); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; }
.cli .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.cli .bar i { width: 7px; height: 7px; border-radius: 50%; background: #3b3b42; }
.cli .bar b { margin: 0 auto; transform: translateX(-12px); font: 400 10px var(--mono); color: #7d7d86; }
.cli pre { margin: 0; padding: 12px 14px 14px; height: 158px; font: 400 clamp(9.5px, .74vw, 11.5px)/1.75 var(--mono); color: #cfd0d6; white-space: pre; overflow: hidden; }
.cli .p { color: #7d7d86; } .cli .ok { color: #7fe0cf; } .cli .warm { color: #f0b48c; } .cli .dim { color: #5f5f68; } .cli .wt { color: #f4f4f5; }
.cli .cur { display: inline-block; width: 6px; height: 12px; vertical-align: -2px; background: #cfd0d6; animation: blink 1s steps(1) infinite; }

/* get started */
.start { position: absolute; left: 24px; top: calc(var(--navh) + 9vh); width: min(44vw, 620px); }
.stitle { font: 400 clamp(32px, min(4.4vw, 7vh), 64px)/1.08 var(--sans); letter-spacing: -.02em; display: flex; flex-direction: column; align-items: flex-start; margin-top: 2vh; }
.stitle .box { border: 1px solid var(--line2); border-radius: 2px 12px 2px 2px; padding: .02em .28em .06em; margin-left: -.02em; }
.slead { margin-top: 3vh; max-width: 470px; font: 400 clamp(13px, min(1.1vw, 1.9vh), 15.5px)/1.6 var(--sans); color: #b9b9c0; }
.inst { margin-top: 3.4vh; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 16px; border: 1px solid var(--line2); border-radius: 4px 14px 4px 4px; background: rgba(255,255,255,.03); font: 400 12.5px var(--mono); }
.inst span { color: #7d7d86; } .inst code { color: #f2f2f3; }
.inst button { height: 34px; padding: 0 14px; border-radius: 3px 10px 3px 3px; border: 1px solid var(--line2); font: 400 10.5px var(--mono); }
.sbtns { display: flex; gap: 10px; margin-top: 2.6vh; flex-wrap: wrap; }
.sbtn { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 3px 12px 3px 3px; font: 500 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.sbtn.solid { background: #f2f2f3; color: #0a0910; border-color: #f2f2f3; }
.sbtn:hover { border-color: #d8d8dc; }
.receipt { position: absolute; left: 24px; bottom: calc(6vh + 40px); width: min(34vw, 460px); border-radius: 10px; border: 1px solid var(--line2); background: rgba(10,10,14,.9); overflow: hidden; }
.receipt .bar { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); font: 400 10px var(--mono); color: #7d7d86; }
.receipt .bar span { color: #7fe0cf; }
.receipt pre { margin: 0; padding: 10px 14px; max-height: 24vh; overflow: hidden; font: 400 clamp(9px, .68vw, 10.5px)/1.6 var(--mono); color: #b9b9c0; }
.receipt .k { color: #9aa4ff; } .receipt .s { color: #e6c07b; } .receipt .n { color: #9fd49f; }
.foot { position: absolute; left: 24px; right: calc(100vw - var(--c3) + 24px); bottom: 2.4vh; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 400 10.5px var(--mono); color: #6a6a72; border-top: 1px solid var(--line); padding-top: 1.6vh; }
.foot nav { display: flex; gap: 22px; } .foot a:hover { color: #fff; } .foot a[hidden] { display: none; }
body[data-s="start"] .grid .v2 { transform: scaleY(0); transform-origin: top; }
body[data-s="start"] .grid .h2 { opacity: 0; }

@media (max-width: 860px) {
  .cli, .receipt, .tabtext { display: none; }
  .ca { left: 24px; bottom: auto; top: calc(var(--top) + var(--navh) + 30vh); }
  .start { width: calc(100vw - 48px); top: calc(var(--navh) + 4vh); }
  .foot { flex-direction: column; align-items: flex-start; right: 24px; }
}

/* ================= grid discipline: every block sits inside a column; lines that would cut content are hidden per section ================= */
.grid i { transition: opacity .6s var(--ease), transform .9s var(--ease), top .9s var(--ease); }
/* product: only the left column line stays; the step text lives in that column, the CLI card in the open right side */
body[data-s="product"] .grid .v3 { opacity: 0; }
.tabtext { left: 24px; width: calc(var(--c1) - 48px); min-width: 0; }
.tabtext .tt { font-size: clamp(12.5px, min(.95vw, 1.9vh), 15px); }
.cli { right: 72px; width: min(26vw, 400px); }
/* protocol: like the reference, the left line only runs through the bottom row */
body[data-s="protocol"] .grid .v1 { top: 78vh; }
body[data-s="protocol"] .grid .v3 { top: calc(var(--navh) + 2vh); }
/* get started: no column lines through the copy */
body[data-s="start"] .grid .v1 { opacity: 0; }
body[data-s="start"] .grid .v3 { opacity: 0; }
.receipt { position: relative; left: auto; bottom: auto; margin-top: 3vh; width: min(100%, 460px); }
.receipt pre { max-height: 18vh; }
@media (max-height: 820px) { .receipt { display: none; } }

/* ================= sections added: how / pricing / faq ================= */
body[data-s="how"] .grid .v1, body[data-s="how"] .grid .v2, body[data-s="how"] .grid .v3,
body[data-s="pricing"] .grid .v1, body[data-s="pricing"] .grid .v2, body[data-s="pricing"] .grid .v3,
body[data-s="faq"] .grid .v1, body[data-s="faq"] .grid .v2, body[data-s="faq"] .grid .v3 { opacity: 0; }
body[data-s="how"] .grid .h2, body[data-s="pricing"] .grid .h2, body[data-s="faq"] .grid .h2 { opacity: 0; }
.dots i { transition: background .3s, transform .3s; }
.dots i.on { background: #fff; transform: scale(1.8); }

.lhead { position: absolute; left: 24px; top: calc(var(--navh) + 7vh); }
.rhead { position: absolute; left: 46vw; top: calc(var(--navh) + 7vh); }

/* how it works: four steps in a 2 x 2 grid on the left, the robot on the right */
.steps4 { position: absolute; left: 24px; top: calc(var(--navh) + 7vh + min(10vh, 9.5vw) * 1.55 + 7vh); width: min(56vw, 820px); list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 4.2vh; }
.steps4 li { border-top: 1px solid var(--line2); padding-top: 18px; position: relative; }
.steps4 .n { font: 500 11px var(--mono); letter-spacing: .08em; color: #8f8f97; }
.steps4 h3 { margin-top: 10px; font: 500 clamp(17px, min(1.4vw, 2.6vh), 22px)/1.25 var(--sans); letter-spacing: -.01em; color: #f2f2f3; }
.steps4 p { margin-top: 8px; max-width: 360px; font: 400 clamp(13px, min(1vw, 1.9vh), 15px)/1.55 var(--sans); color: #a9a9b1; }
.steps4 p code { font: 400 .92em var(--mono); color: #d9d9de; }
.steps4 .cmd { display: inline-block; margin-top: 12px; padding: 5px 9px; border: 1px solid var(--line2); border-radius: 2px 8px 2px 2px; font: 400 11px var(--mono); color: #d9d9de; }

/* pricing: robot on the left, the rate card on the right */
.price { position: absolute; left: 46vw; top: calc(var(--navh) + 7vh + min(10vh, 9.5vw) * 1.55 + 6vh); width: min(40vw, 580px); }
.price table { width: 100%; border-collapse: collapse; }
.price td { padding: 1.5vh 0; border-top: 1px solid var(--line2); font: 400 clamp(15px, min(1.2vw, 2.3vh), 19px) var(--sans); color: #d9d9de; }
.price tr:last-child td { border-bottom: 1px solid var(--line2); }
.price td:last-child { text-align: right; font: 500 clamp(13px, min(1vw, 2vh), 16px) var(--mono); color: #f2f2f3; }
.pnotes { list-style: none; margin-top: 3.4vh; display: grid; gap: 1.2vh; }
.pnotes li { position: relative; padding-left: 18px; font: 400 clamp(12.5px, min(.95vw, 1.8vh), 14.5px)/1.55 var(--sans); color: #a9a9b1; }
.pnotes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border: 1px solid #8f8f97; border-radius: 1px 3px 1px 1px; }
.pfoot { margin-top: 3vh; font: 400 11px var(--mono); color: #6f6f78; }
.pfoot code { color: #b9b9c0; }

/* faq: questions on the left */
.faq { position: absolute; left: 24px; top: calc(var(--navh) + 7vh + min(10vh, 9.5vw) * 1.55 + 5vh); width: min(56vw, 820px); max-height: 56vh; overflow: auto; scrollbar-width: none; }
.faq details { border-top: 1px solid var(--line2); }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 1.7vh 0; font: 500 clamp(14.5px, min(1.15vw, 2.2vh), 18px) var(--sans); color: #e9e9ec; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px var(--mono); color: #8f8f97; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 2vh; max-width: 640px; font: 400 clamp(13px, min(1vw, 1.9vh), 15px)/1.6 var(--sans); color: #a9a9b1; }
.faq code { font: 400 .92em var(--mono); color: #d9d9de; }

@media (max-width: 860px) {
  .steps4, .faq { width: calc(100vw - 48px); grid-template-columns: 1fr; row-gap: 2vh; }
  .steps4 p { display: none; }
  .rhead, .price { left: 24px; width: calc(100vw - 48px); }
}

/* ===== match the reference more closely: warm off-white type, chamfered SVG title frames, mono weights ===== */
:root { --ink: #edece6; }
body { color: var(--ink); }
.w::before { display: none; }
.w { padding: .08em .26em .14em .24em; }
.w .fr { position: absolute; left: -2px; top: -2px; overflow: visible; pointer-events: none; }
.htitle h1 { font-weight: 400; letter-spacing: -.01em; gap: .14em; }
.gtitle h2, .stitle, .rq { font-weight: 400; letter-spacing: -.005em; }
.kick { letter-spacing: .1em; font-size: 13px; }
.menu, .pad, .launch, .feats li, .track span, .tag, .role { letter-spacing: .02em; }

/* ===== type scaled like the reference (sizes measured from the video, as a share of the window width) ===== */
:root { --navh: clamp(50px, 4.3vw, 72px); --top: clamp(30px, 2.4vw, 40px); }
.announce { font-size: clamp(12px, .9vw, 15px); }
.brand { font-size: clamp(17px, 1.45vw, 24px); gap: .6vw; } .brand img { width: clamp(22px, 1.8vw, 30px); height: clamp(22px, 1.8vw, 30px); }
.menu, .pad { font-size: clamp(11.5px, .98vw, 16px); }
.launch { font-size: clamp(11px, .9vw, 15px); height: clamp(30px, 2.5vw, 42px); padding: 0 1vw; }
.rl, .rm { font-size: clamp(9.5px, .74vw, 12px); }
.prompt { width: 26vw; }
.prompt .q { width: clamp(42px, 3.4vw, 58px); height: clamp(42px, 3.4vw, 58px); font-size: clamp(26px, 2.2vw, 38px); }
.pbox { padding: 1.3vw 1.4vw 1.2vw; }
.pbox p, .pnext { font-size: clamp(11.5px, .98vw, 16px); line-height: 1.55; }
.feats li { height: clamp(22px, 1.9vw, 32px); font-size: clamp(10px, .82vw, 13.5px); }
.kick { font-size: clamp(12px, 1.08vw, 18px); }
.htitle h1 { font-size: clamp(46px, min(5.9vw, 9.6vh), 104px); }
.hsub { font-size: clamp(14px, 1.2vw, 20px); }
.scroll { font-size: clamp(10px, .8vw, 13px); }
.track span { font-size: clamp(11.5px, .98vw, 16px); }
.tabtext .tk { font-size: clamp(10.5px, .86vw, 14px); }
.tabtext .tt { font-size: clamp(14px, 1.2vw, 20px); }
.gtitle h2 { font-size: clamp(36px, min(3.9vw, 6.8vh), 68px); }
.dd { font-size: clamp(12px, 1vw, 16px); }
.cli pre { font-size: clamp(10.5px, .82vw, 14px); height: auto; min-height: 160px; }
.cli { width: min(30vw, 520px); }
.tag, .role { font-size: clamp(11px, .95vw, 15px); }
.who { font-size: clamp(14px, 1.25vw, 21px); }
.av { width: clamp(48px, 4vw, 68px); height: clamp(48px, 4vw, 68px); font-size: clamp(12px, 1vw, 16px); }
.rq { font-size: clamp(22px, min(2.5vw, 4.2vh), 44px); width: 26vw; }
.try { font-size: clamp(13px, 1.1vw, 18px); }
.rnext p { font-size: clamp(22px, min(2.5vw, 4.2vh), 44px); }
.rnext small { font-size: clamp(12px, .95vw, 15px); }
.stitle { font-size: clamp(38px, min(4.6vw, 7.8vh), 80px); }
.steps4 h3 { font-size: clamp(18px, min(1.55vw, 2.8vh), 28px); }
.steps4 p { font-size: clamp(14px, min(1.12vw, 2vh), 19px); max-width: 26vw; }
.steps4 .n, .steps4 .cmd { font-size: clamp(11px, .88vw, 14px); }
.price td { font-size: clamp(16px, min(1.35vw, 2.4vh), 23px); }
.price td:last-child { font-size: clamp(14px, min(1.15vw, 2.1vh), 20px); }
.pnotes li { font-size: clamp(13px, min(1.05vw, 1.9vh), 17px); }
.pfoot { font-size: clamp(11px, .85vw, 14px); }
.faq summary { font-size: clamp(16px, min(1.35vw, 2.4vh), 23px); }
.faq details p { font-size: clamp(14px, min(1.1vw, 2vh), 18px); max-width: 44vw; }
.slead { font-size: clamp(14px, min(1.2vw, 2.1vh), 20px); max-width: 36vw; }
.inst { font-size: clamp(12.5px, 1vw, 16px); height: clamp(44px, 3.4vw, 56px); }
.sbtn { font-size: clamp(11px, .9vw, 14.5px); height: clamp(40px, 3vw, 52px); }
.foot { font-size: clamp(11px, .86vw, 14px); }
.receipt pre { font-size: clamp(10px, .76vw, 13px); }
.pad { white-space: nowrap; min-width: max-content; padding: 0 1.4vw; }
/* blocks under a two-line section title: start below the title at the new size */
.steps4, .price, .faq { top: calc(var(--navh) + 7vh + min(4.6vw, 7.8vh) * 2.35 + 6vh); }
.faq { max-height: calc(100vh - var(--navh) - 7vh - min(4.6vw, 7.8vh) * 2.35 - 10vh); }

.arrows button.off { opacity: .25; cursor: default; }
.arrows #prev svg { stroke: #fff; }

/* title + body: Geist, the closest free match to the reference grotesk */
:root { --sans: "Geist", "Helvetica Neue", Arial, sans-serif; }
.htitle h1, .gtitle h2, .stitle, .rq, .rnext p { font-weight: 400; letter-spacing: -.02em; }

/* ===== polish pass ===== */
.rail { display: none; }                                         /* no right rail */
/* prompt card: one clean box under the $ tab, text wraps, never empty */
.prompt { width: min(27vw, 440px); }
.prompt .q { border-color: #cfcfd4; }
.pbox { border-color: #cfcfd4; min-height: calc(1.55em * 2 + 2.6vw); padding: 1.2vw 1.4vw; background: rgba(10,9,16,.55); }
.pbox p { transition: opacity .25s; overflow-wrap: normal; color: #f2f1ec; }
.pnext { margin: 1.1vw 1.4vw 0; color: #55545c; overflow-wrap: normal; }
/* arrows: bigger, easy to hit */
.arrows { gap: 18px; }
.arrows button { width: clamp(64px, 5vw, 88px); height: clamp(40px, 3vw, 52px); display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 3px 14px 3px 3px; transition: border-color .2s, opacity .2s; }
.arrows button:hover:not(.off) { border-color: rgba(255,255,255,.5); }
.arrows svg { width: 62%; height: 60%; stroke-width: 1.8; }
/* X in the nav */
.xl { display: grid; place-items: center; width: clamp(44px, 3.6vw, 60px); border-left: 1px solid var(--line); color: #d9d9de; }
.xl svg { width: clamp(15px, 1.1vw, 19px); height: clamp(15px, 1.1vw, 19px); }
.xl:hover { color: #fff; background: rgba(255,255,255,.04); }
@media (max-width: 860px) { .xl { display: grid; border: 0; margin-left: auto; } }

/* prompt ends before the robot so nothing covers it */
.prompt { width: min(21vw, 380px); min-width: 250px; }
/* hero CA: always shown, "soon" until the token is saved in /studio */
.ca { left: calc(var(--c2) + 1.6vw); bottom: calc(var(--bot) + 2.2vh); height: clamp(36px, 2.8vw, 46px); padding: 0 5px; gap: 10px; font-size: clamp(11px, .9vw, 14.5px); z-index: 3; }
.ca .k { height: calc(100% - 10px); padding: 0 12px; font-size: inherit; }
.ca code { padding: 0 4px; color: #f2f1ec; }
.ca.soon code { color: #8f8f97; }
.ca button, .ca a { height: calc(100% - 10px); font-size: inherit; }
.ca button[hidden], .ca a[hidden] { display: none; }

/* CA lives top-right, under the feature list, away from the robot */
.ca { left: auto; right: calc(100vw - var(--c3) + 12px); bottom: auto; top: calc(var(--top) + var(--navh) + 20.6vh + 4 * clamp(22px, 1.9vw, 32px) + 3vh); }
@media (max-width: 860px) { .ca { right: auto; left: 20px; top: calc(var(--top) + var(--navh) + 30vh); } }

/* GET STARTED: one continuous gradient frame (no faded side), same chamfer as the title boxes */
.launch { border-radius: 0; padding: 0 1.2vw; }
.launch::before { inset: 0; padding: 1.5px; border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: linear-gradient(120deg, #3ccfff, #4a58d6 30%, #7a3fb0 50%, #c9463a 75%, #cbb02a); }
.launch::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--bg); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.launch { isolation: isolate; }
.launch::before { -webkit-mask: none; mask: none; z-index: -2; }

/* feature list removed: the CA sits where it was */
.ca { top: calc(var(--top) + var(--navh) + 20.6vh); }

/* logo: the round robot badge */
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand img { width: clamp(28px, 2.3vw, 38px); height: clamp(28px, 2.3vw, 38px); }
