/* idecode site: same look as the app (dark charcoal, violet accent, teal dictionary words, spring motion) */
:root {
  color-scheme: dark;
  --bg: #0b0c0f; --panel: #121419; --raised: #181b21; --hover: #1d2129;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --tx: #eceef2; --tx2: #c9ced8; --tx3: #a8afbc; --tx4: #8b93a1;
  --ac: #7d4fd0; --ac2: #8c5fe0; --acl: #a78bfa; --acr: 139,92,246;
  --teal: #2dd4bf; --blue: #9cc7ff; --em: #34d399;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --spring: cubic-bezier(.2,.8,.2,1);
  --gut: max(20px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
/* nothing may widen the page (glows, tilted windows, bouncing files): clip, so a phone can't be dragged sideways */
html, body, main, section, .foot { overflow-x: clip; }
.code { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--acr), .4); }
:focus-visible { outline: 2px solid var(--acl); outline-offset: 3px; border-radius: 8px; }

/* ---- brand ---- */
.logo { flex: none; overflow: visible; filter: drop-shadow(0 2px 10px rgba(var(--acr), .5)); }
.logo .eye-lids, .eye-lids { transform-origin: 16px 16px; animation: blink 9s ease-in-out infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.wm { font: 600 19px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.wm-i { color: var(--acl); animation: wmglow 7s ease-in-out infinite alternate; }
/* violet only ever fills from the left: one soft edge, moved by background-position */
.wm-de { background: linear-gradient(90deg, #a78bfa 0%, #a78bfa 42%, #eceef2 58%, #eceef2 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wmflow 7s ease-in-out infinite alternate; }
@keyframes wmflow { 0%, 12% { background-position: 0% 50%; } 88%, 100% { background-position: 100% 50%; } }
@keyframes wmglow { 0%, 100% { text-shadow: 0 0 0 rgba(167,139,250,0); } 50% { text-shadow: 0 0 14px rgba(167,139,250,.55); } }
.wm-xl { font-size: 54px; }

/* ---- nav ---- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gut) 12px; background: rgba(11,12,15,.72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--tx3); }
.nav-links a:hover { color: var(--tx); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 13px; border: 1px solid var(--line2);
  background: var(--raised); color: var(--tx); font: 600 15px/1 var(--sans); transition: transform .2s var(--spring), background .15s, border-color .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); background: var(--hover); }
.btn-p { background: var(--ac); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--acr), .8); }
.btn-p:hover { background: var(--ac2); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn.is-off { opacity: .55; cursor: default; transform: none; }
.arrow { display: inline-block; transition: transform .25s var(--spring); }
.btn:hover .arrow { transform: translateY(2px); }

/* ---- sections ---- */
section { position: relative; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.kicker { margin: 0; font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--acl); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; margin-top: 14px; }
.sub { color: var(--tx2); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 18px 0 0; }
.fine { color: var(--tx4); font-size: 13.5px; margin: 14px 0 0; }
.grad { background: linear-gradient(90deg, #a78bfa, #c4b5fd 45%, #eceef2 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--spring), transform .9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ---- 1. hero ---- */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: calc(110px + env(safe-area-inset-top)) var(--gut) 80px; }
.hero-glow { position: absolute; inset: -10% -20% auto; height: 120%; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 40% at 70% 40%, rgba(var(--acr), .22), transparent 70%), radial-gradient(30% 30% at 20% 70%, rgba(45,212,191,.09), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.05); } }
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.hero-mark { display: flex; align-items: center; gap: 14px; }
.logo-xl { filter: drop-shadow(0 6px 28px rgba(var(--acr), .7)); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; margin: 28px 0 0; }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--tx2); max-width: 560px; margin: 22px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the app window (hero and the walkthrough stage) */
.win { border-radius: 18px; border: 1px solid var(--line2); background: var(--panel); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.3), 0 30px 90px -50px rgba(var(--acr), .55); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2d35; }
.win-title { margin-left: 10px; font: 400 12px var(--mono); color: var(--tx4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 430px; }
.hero-app { position: relative; perspective: 1400px; }
.hero-app .win { transform: rotateY(-7deg) rotateX(3deg); transform-origin: left center; transition: transform 1s var(--spring); }
.hero-app:hover .win { transform: rotateY(-2deg) rotateX(1deg); }

.tree { border-right: 1px solid var(--line); padding: 12px 8px; font-size: 13px; }
.t-row { padding: 5px 8px; border-radius: 8px; color: var(--tx2); line-height: 1.3; }
.t-row em { display: block; font-style: normal; font-size: 11px; color: var(--tx4); margin-top: 2px; min-height: 1.3em; }
.t-row .chev { display: inline-block; width: 12px; color: var(--tx4); }
.t-row.open .chev { transform: rotate(90deg); }
.t-row.on { background: var(--raised); color: var(--tx); box-shadow: inset 3px 0 0 var(--acl); }
.ind1 { margin-left: 12px; } .ind2 { margin-left: 24px; } .ind3 { margin-left: 36px; }
.t-file { padding-left: 20px; }

.reader { padding: 10px 0; min-width: 0; }
.blk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; }
.code { margin: 0; padding: 10px 12px; font: 400 11.5px/1.75 var(--mono); color: #c9ced8; white-space: pre; overflow: hidden; }
.ln { display: inline-block; width: 22px; color: #4b5260; user-select: none; }
.k { color: #ff7b72; } .s { color: #a5d6ff; } .f { color: #d2a8ff; } .n { color: #79c0ff; } .c { color: #8b949e; }
.card { margin: 10px 12px 10px 4px; padding: 10px 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--tx2); align-self: start; }
.card b { display: block; color: var(--tx); font: 600 13px/1.3 var(--display); }
.card p { margin: 5px 0 0; }
.card .rng { font: 400 10px var(--mono); color: var(--tx4); }
/* hero: explanation cards stream in one at a time */
.hero-app .card { opacity: 0; transform: translateX(12px); transition: opacity .6s var(--spring), transform .7s var(--spring); }
.hero-app .card.show { opacity: 1; transform: none; }
.hero-app .blk.lit .code { background: rgba(var(--acr), .06); box-shadow: inset 2px 0 0 var(--acl); }

/* ---- 2. problem ---- */
.problem { padding: 140px 0 120px; }
.gap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: end; margin: 56px 0 40px; max-width: 900px; }
.gap-col { min-width: 0; }
.gap-num { font: 650 clamp(48px, 8vw, 104px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gap-num.dim { color: var(--tx4); }
.gap-lbl { color: var(--tx3); font-size: 15px; margin-top: 8px; }
.gap-vs { font: 600 18px var(--display); color: var(--tx4); padding-bottom: 60px; }
.pile { height: 120px; margin-top: 18px; display: flex; flex-direction: column-reverse; gap: 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.pile i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ff7b72 0 15%, #79c0ff 15% 45%, #a5d6ff 45%); opacity: .7; animation: plop .45s var(--spring) both; flex: none; }
.pile i:nth-child(3n) { background: linear-gradient(90deg, #d2a8ff 0 30%, #c9ced8 30%); }
.pile-small i { background: var(--em) !important; opacity: .55; }
@keyframes plop { from { transform: translateY(-14px); opacity: 0; } }

/* ---- 3. how it works: pinned stage + scrolling steps ---- */
.how { padding: 60px 0 40px; }
.how-head { margin-bottom: 30px; }
.story { max-width: 1260px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.steps { padding: 18svh 0 30svh; }
.step { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--spring); }
.step.active { opacity: 1; }
.step-n { font: 500 13px var(--mono); color: var(--acl); }
.step h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin: 10px 0 0; }
.step p { color: var(--tx2); font-size: 17px; margin: 14px 0 0; max-width: 460px; }
.stage { position: relative; }
.mock { position: sticky; top: calc(50svh - 260px); }
.mock .win { height: 500px; display: flex; flex-direction: column; }
.scenes { position: relative; flex: 1; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: translateY(14px) scale(.985); pointer-events: none; transition: opacity .55s var(--spring), transform .6s var(--spring); }
.mock[data-scene="0"] .s0, .mock[data-scene="1"] .s1, .mock[data-scene="2"] .s2, .mock[data-scene="3"] .s3,
.mock[data-scene="4"] .s4, .mock[data-scene="5"] .s5, .mock[data-scene="6"] .s6 { opacity: 1; transform: none; pointer-events: auto; }
.stage-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.stage-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.15); transition: all .35s var(--spring); }
.stage-dots i.on { width: 22px; background: var(--acl); box-shadow: 0 0 10px rgba(var(--acr), .8); }

/* s0 tree */
.tree-big { border: 0; padding: 0; font-size: 15px; }
.tree-big .t-row { padding: 8px 10px; }
.tree-big .t-row em { font-size: 12.5px; color: var(--tx3); }
.tree-big .t-row em::after { content: ""; }
.hidden-note { color: var(--tx4) !important; font-size: 12px; padding-left: 10px !important; margin-top: 6px; }

/* s1 side by side */
.reader-big .code { font-size: 12.5px; }
.reader-big .card { font-size: 12.5px; }
.blk.hot .code { background: rgba(var(--acr), .07); box-shadow: inset 2px 0 0 var(--acl); }
.blk.hot .card { border-color: rgba(var(--acr), .5); box-shadow: 0 18px 40px -22px rgba(var(--acr), .7); }
.askpill { position: absolute; left: 28%; bottom: 46px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px;
  background: linear-gradient(120deg, #6d48c8, var(--ac)); color: #fff; font: 600 13px var(--sans); box-shadow: 0 12px 30px -8px rgba(var(--acr), .8); animation: bob 3s ease-in-out infinite; }
.askpill span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 11px; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* s2 levels */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--tx3); font: 500 14px var(--sans); height: 36px; padding: 0 16px; border-radius: 9px; cursor: pointer; transition: background .25s, color .25s; }
.seg button.on { background: var(--raised); color: var(--tx); font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
.code-solo { margin-top: 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 13px; }
.lv-card { margin: 16px 0 0; font-size: 15px; }
.lv-card b { font-size: 16px; }
.lv-text { transition: opacity .3s; }
.lv-text.swap { opacity: 0; }
.lv-text code { font: 500 .88em var(--mono); color: #d6c9ff; background: rgba(var(--acr), .14); padding: 1px 5px; border-radius: 5px; }

/* s3 dictionary */
.big-card { margin: 10px 0 0; font-size: 16px; padding: 18px 20px; }
.big-card b { font-size: 17px; }
.term { color: #7ee7d6; text-decoration: underline dotted rgba(126,231,214,.7); text-underline-offset: 4px; text-decoration-thickness: 1.5px; background: rgba(45,212,191,.12); border-radius: 4px; padding: 0 2px; }
.termpop { position: absolute; left: 22%; top: 168px; width: min(330px, 74%); padding: 14px 16px; border-radius: 14px; background: var(--raised); border: 1px solid rgba(45,212,191,.4);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8); font-size: 14px; color: var(--tx2); line-height: 1.55; }
.mock[data-scene="3"] .termpop { animation: popup .6s .35s var(--spring) both; }
@keyframes popup { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.tp-h { display: flex; gap: 7px; align-items: center; font: 600 14px var(--display); color: #7ee7d6; }
.termpop p { margin: 7px 0 10px; }
.tp-k { display: inline-flex; height: 28px; align-items: center; padding: 0 11px; border-radius: 99px; font-size: 12px; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: var(--em); }

/* s4 ask */
.askbox { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 15px; background: var(--bg); border: 1px solid rgba(var(--acr), .55);
  box-shadow: 0 0 0 4px rgba(var(--acr), .1); font-size: 16px; }
.caret { width: 2px; height: 20px; background: var(--acl); animation: blinkc 1s steps(2) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.ask-steps { margin-top: 16px; display: grid; gap: 6px; font: 400 12.5px var(--mono); color: var(--tx3); }
.as { opacity: 0; transform: translateY(6px); transition: all .4s var(--spring); }
.as.show { opacity: 1; transform: none; }
.answer { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--acr), .35); background: var(--raised); font-size: 14.5px; color: var(--tx2); line-height: 1.65;
  opacity: 0; transform: translateY(8px); transition: all .6s var(--spring); }
.answer.show { opacity: 1; transform: none; }
.answer p { margin: 0; }
.fref { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; margin: 0 2px; border-radius: 7px; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.35); color: var(--blue); font: 500 11.5px var(--mono); vertical-align: 1px; }

/* s5 tour */
.tour-code { margin-top: 0; font-size: 13px; }
.spot { position: absolute; left: 30px; right: 30px; top: 92px; height: 70px; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(8,8,14,.6), 0 0 0 2px rgba(196,168,255,.9), 0 0 28px 4px rgba(167,139,250,.5); transition: all .7s cubic-bezier(.3,1,.4,1); }
.guide { position: absolute; right: 54px; top: 168px; filter: drop-shadow(0 10px 22px rgba(var(--acr), .6)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.tcard { position: absolute; left: 30px; right: 30px; bottom: 22px; padding: 14px 16px; border-radius: 15px; background: rgba(24,27,33,.97); border: 1px solid rgba(var(--acr), .45);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85); font-size: 13.5px; color: var(--tx2); line-height: 1.55; }
.tk { font: 600 10.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--acl); }
.tcard b { display: block; margin: 6px 0 2px; color: var(--tx); font: 650 16px var(--display); }
.tcard p { margin: 0; }
.tdots { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.tdots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); }
.tdots i.past { background: rgba(var(--acr), .6); } .tdots i.on { width: 16px; background: var(--acl); }
.tdots span { margin-left: 8px; font-size: 12px; color: var(--tx4); }
.tdots .tnext { margin-left: auto; color: #fff; background: var(--ac); padding: 6px 12px; border-radius: 9px; font-weight: 600; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* s6 stack */
.st-stats { display: flex; gap: 28px; }
.st-stats b { display: block; font: 600 24px/1 var(--display); }
.st-stats b.v { color: var(--acl); font-size: 21px; }
.st-stats span { font-size: 12px; color: var(--tx3); }
.langbar { display: flex; gap: 3px; height: 10px; margin: 20px 0 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.04); }
.langbar span { width: 0; transition: width 1.1s var(--spring); }
.mock[data-scene="6"] .langbar span { width: var(--w); }
.langkey { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--tx2); }
.langkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.sk-h { margin: 20px 0 9px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx4); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; }
.k-fw { border-color: rgba(var(--acr), .5); background: rgba(var(--acr), .1); }
.k-data { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.k-svc { border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.08); }
.k-run { border-color: rgba(45,212,191,.45); background: rgba(45,212,191,.08); }

/* ---- 4. private ---- */
.private { padding: 140px 0 120px; }
.shield-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 56px 0 50px; }
.shield-viz { position: relative; height: 260px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 70% at 50% 50%, rgba(var(--acr), .14), transparent 70%), var(--panel); }
.shield { position: absolute; left: 50%; top: 50%; width: 120px; height: 135px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 30px rgba(var(--acr), .5)); }
.file { position: absolute; padding: 7px 12px; border-radius: 9px; font: 500 12.5px var(--mono); background: var(--raised); border: 1px solid var(--line2); white-space: nowrap; }
.f-env, .f-key, .f-ign { color: #ffb4ad; border-color: rgba(248,113,113,.4); left: 6%; }
.f-env { top: 22%; } .f-key { top: 45%; } .f-ign { top: 68%; color: var(--tx4); border-color: var(--line2); }
.f-ok { right: 6%; top: 46%; color: var(--blue); border-color: rgba(96,165,250,.4); }
.shield-row.in .f-env { animation: bounce 3.4s .2s var(--spring) infinite; }
.shield-row.in .f-key { animation: bounce 3.4s 1s var(--spring) infinite; }
.shield-row.in .f-ign { animation: bounce 3.4s 1.8s var(--spring) infinite; }
.shield-row.in .f-ok { animation: pass 3.4s .6s ease-in-out infinite; }
@keyframes bounce { 0% { transform: translateX(0); } 38% { transform: translateX(min(19vw, 150px)); } 48% { transform: translateX(min(13vw, 100px)) rotate(-6deg); } 70%, 100% { transform: translateX(0) rotate(0); } }
@keyframes pass { 0%, 100% { opacity: 1; transform: translateX(0); } 50% { opacity: .5; transform: translateX(-12px); } }
.redact { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
.r-line { font: 400 14px/1.6 var(--mono); color: var(--tx2); padding: 14px; border-radius: 12px; background: rgba(0,0,0,.25); overflow-wrap: anywhere; }
.r-secret, .r-red { transition: opacity .5s, max-width .6s var(--spring); display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; }
.r-red { max-width: 0; opacity: 0; color: var(--acl); }
.redact.swap .r-secret { max-width: 0; opacity: 0; }
.redact.swap .r-red { max-width: 12ch; opacity: 1; }
.r-cap { margin-top: 12px; font-size: 14px; color: var(--tx3); }
.guarantees { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.g { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.g b { display: block; font: 600 16px/1.25 var(--display); }
.g p { margin: 8px 0 0; font-size: 14px; color: var(--tx3); line-height: 1.55; }

/* ---- 5. who ---- */
.who { padding: 80px 0 120px; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.who-card { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--spring), border-color .25s; }
.who-card:hover { transform: translateY(-4px); border-color: rgba(var(--acr), .45); }
.who-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 600 17px var(--mono); color: #d6c9ff;
  background: rgba(var(--acr), .16); border: 1px solid rgba(var(--acr), .4); }
.who-card h3 { font-size: 22px; margin-top: 18px; }
.who-card p { color: var(--tx3); margin: 10px 0 0; font-size: 15.5px; }

/* ---- 6. get it ---- */
.get { padding: 40px 0 140px; }
.get-card { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 60px); border-radius: 28px; border: 1px solid rgba(var(--acr), .35);
  background: radial-gradient(120% 140% at 100% 0%, rgba(var(--acr), .2), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(45,212,191,.1), transparent 55%), var(--panel); }
.badge { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--acl); background: rgba(var(--acr), .14); border: 1px solid rgba(var(--acr), .4); }
.get-card h2 { margin-top: 18px; }
.get-steps { list-style: none; counter-reset: s; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.get-steps li { counter-increment: s; padding: 18px; border-radius: 16px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.get-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px; font: 600 14px var(--display); color: #fff; background: var(--ac); }
.get-steps b { display: block; font: 600 16px var(--display); }
.get-steps span { display: block; margin-top: 6px; font-size: 14px; color: var(--tx3); line-height: 1.55; }

/* ---- footer ---- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: space-between; max-width: 1160px; margin: 0 auto;
  padding: 30px var(--gut) calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--tx4); }
.foot .wm { font-size: 17px; }

/* ---- tablets and phones ---- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(100px + env(safe-area-inset-top)); gap: 40px; }
  .hero-app .win { transform: none; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* walkthrough: the app stays pinned at the top while the steps scroll past beneath it */
  .story { grid-template-columns: 1fr; gap: 0; }
  .stage { order: -1; position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 5; }
  .mock { position: static; }
  .mock .win { height: 360px; }
  .stage-dots { margin-top: 10px; }
  .steps { padding: 30px 0 20svh; }
  .step { min-height: 62svh; justify-content: flex-start; padding-top: 18px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .wm-xl { font-size: 40px; } .logo-xl { width: 56px; height: 56px; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .hero-app .tree { display: none; }
  .blk { grid-template-columns: 1fr; }
  .hero-app .card { margin: 0 12px 10px; }
  .code { font-size: 11px; }
  .gap { grid-template-columns: 1fr 1fr; gap: 18px; }
  .gap-vs { display: none; }
  .shield-row { grid-template-columns: 1fr; }
  .guarantees, .who-grid, .get-steps { grid-template-columns: 1fr; }
  .mock .win { height: 330px; }
  .scene { padding: 14px; }
  .tree-big { font-size: 14px; } .tree-big .t-row { padding: 5px 8px; }
  .reader-big .blk { grid-template-columns: 1fr; }
  .reader-big .blk:not(.hot) { display: none; }
  .reader-big .card { margin: 0 12px 10px; }
  .askpill { left: 14px; bottom: 14px; }
  .lv-card { font-size: 14px; }
  .code-solo { font-size: 11px; }
  .big-card { font-size: 14.5px; padding: 14px; }
  .termpop { left: 14px; right: 14px; width: auto; top: auto; bottom: 14px; }
  .askbox { height: 46px; font-size: 15px; }
  .answer { font-size: 13.5px; }
  .spot { left: 14px; right: 14px; top: 64px; }
  .guide { right: 22px; top: 118px; width: 44px; height: 44px; }
  .tcard { left: 14px; right: 14px; bottom: 12px; padding: 11px 13px; font-size: 12.5px; }
  .tcard b { font-size: 14.5px; }
  .st-stats { gap: 18px; } .st-stats b { font-size: 20px; }
  .step h3 { font-size: 26px; } .step p { font-size: 16px; }
  .shield-viz { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-app .card, .as, .answer { opacity: 1; transform: none; }
}
/* phones and tablets: the pinned app gets a solid backing so steps scroll cleanly underneath it */
@media (max-width: 1000px) {
  .stage { background: linear-gradient(var(--bg) 90%, rgba(11,12,15,0)); margin: 0 calc(-1 * var(--gut)); padding: 8px var(--gut) 22px; }
}

/* headline lines never break mid-phrase; the hero window gives its code more room than its notes */
.nowrap { white-space: nowrap; }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); }
.hero-app .blk { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.hero-app .code { font-size: 11px; }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(34px, 10.5vw, 46px); }
  /* the tour scene is short on a phone: the narration card keeps just its title and progress */
  .tcard .tk, .tcard p { display: none; }
  .tcard b { margin-top: 0; }
  .tcard .tdots { margin-top: 8px; }
}
/* narrow screens: every explanation card sits UNDER its code, full width, like the real app on phones
   (the hero's two-column rule above came later in the file and overrode the earlier phone rule) */
@media (max-width: 700px) {
  .blk, .hero-app .blk, .reader-big .blk { grid-template-columns: minmax(0, 1fr); }
  .blk .card, .hero-app .card, .reader-big .card { margin: 0 12px 10px; }
}

/* ---- install: the hand-off ---- */
.hl { color: var(--tx2); font-weight: 600; }
.install { padding: 120px 0 40px; }
.inst { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin-top: 50px; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inst-steps li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); opacity: .45; transition: opacity .4s, border-color .4s, transform .5s var(--spring); }
.inst-steps li.on { opacity: 1; border-color: rgba(var(--acr), .5); transform: translateX(6px); box-shadow: 0 18px 40px -24px rgba(var(--acr), .7); }
.inst-steps li.done { opacity: .8; }
.inst-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 14px var(--display); color: #fff; background: var(--ac); }
.inst-steps li.done .inst-n { background: var(--em); color: #06281d; }
.inst-steps b { display: block; font: 600 17px/1.3 var(--display); }
.inst-steps span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--tx3); }
.inst-win { height: 400px; display: flex; flex-direction: column; }
.inst-scenes { position: relative; flex: 1; overflow: hidden; }
.iscene { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--spring), transform .6s var(--spring); }
.inst[data-s="0"] .i0, .inst[data-s="1"] .i1, .inst[data-s="2"] .i2 { opacity: 1; transform: none; }
.zip, .folder { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--raised); }
.zip-ic { display: grid; place-items: center; width: 44px; height: 52px; border-radius: 8px; font: 600 11px var(--mono); color: #d6c9ff; background: rgba(var(--acr), .2); border: 1px solid rgba(var(--acr), .45); }
.zip div { flex: 1; } .zip b { font: 500 14px var(--mono); }
.zip-bar { display: block; height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.zip-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--acl)); border-radius: 99px; }
.inst[data-s="0"] .zip-bar i { animation: fill 1.2s .2s var(--spring) forwards; }
@keyframes fill { to { width: 100%; } }
.folder { margin-top: 14px; opacity: 0; transform: translateY(8px); transition: all .5s var(--spring); }
.folder.show { opacity: 1; transform: none; }
.fold-ic { width: 40px; height: 32px; border-radius: 6px; background: linear-gradient(#8b6ae0, #6d48c8); position: relative; }
.fold-ic::before { content: ""; position: absolute; left: 0; top: -5px; width: 18px; height: 8px; border-radius: 4px 4px 0 0; background: #8b6ae0; }
.folder b { font: 600 15px var(--display); } .folder em { display: block; font-style: normal; font: 400 12px var(--mono); color: var(--tx4); margin-top: 3px; }
.folder div, .folder > b { min-width: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.msg { max-width: 84%; padding: 8px 12px; border-radius: 13px; opacity: 0; transform: translateY(6px); transition: all .35s var(--spring); }
.msg.show { opacity: 1; transform: none; }
.msg.you { align-self: flex-end; background: var(--ac); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--raised); border: 1px solid var(--line); color: var(--tx2); border-bottom-left-radius: 4px; font-family: var(--mono); font-size: 12.5px; }
.msg.ask { color: var(--tx); font-family: var(--sans); font-size: 13.5px; border-color: rgba(var(--acr), .4); }
.ok { color: var(--em); }
.opened { border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); padding: 14px; height: 100%; }
.op-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.op-url { margin-left: auto; font: 400 11px var(--mono); color: var(--tx4); }
.op-h { margin: 14px 0 10px; font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--acl); }
.op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.op-grid div { display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 10px; align-items: center; padding: 10px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: all .45s var(--spring); }
.inst[data-s="2"] .op-grid div { opacity: 1; transform: none; }
.op-grid div:nth-child(2) { transition-delay: .1s; } .op-grid div:nth-child(3) { transition-delay: .2s; } .op-grid div:nth-child(4) { transition-delay: .3s; }
.op-grid i { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 600 12px var(--display); font-style: normal; color: #d6c9ff; background: rgba(var(--acr), .16); }
.op-grid b { font: 600 13px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .op-grid em { font-style: normal; font-size: 11px; color: var(--tx4); }
@media (max-width: 1000px) { .inst { grid-template-columns: minmax(0, 1fr); } .inst-steps li.on { transform: none; } }
@media (max-width: 700px) {
  .install { padding: 90px 0 20px; }
  .inst-win { height: 390px; }
  .iscene { padding: 14px; }
  .chat { gap: 6px; } .msg { max-width: 92%; font-size: 12.5px; padding: 7px 10px; } .msg.bot { font-size: 11.5px; } .msg.ask { font-size: 12.5px; }
  .op-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .msg, .folder, .op-grid div { opacity: 1; transform: none; } .zip-bar i { width: 100%; } }

/* code lines are elements: a wrapped line keeps a hanging indent under its own text */
pre.code { white-space: normal; }
.code .cl { display: block; white-space: pre; padding-left: 22px; text-indent: -22px; min-height: 1.75em; }
.spot { transition: top .7s cubic-bezier(.3,1,.4,1), height .7s cubic-bezier(.3,1,.4,1); }
.guide { transition: top .7s var(--spring); }

/* ---- phones: a simple vertical story. No pinned window: each step shows its own scene under its text ---- */
.mmock { display: none; }
@media (max-width: 900px) {
  .story { display: block; }
  .stage { display: none; }
  .steps { padding: 10px 0 30px; }
  .step { min-height: 0; opacity: 1; display: block; padding: 34px 0 10px; }
  .step p { max-width: none; }
  .mmock { display: block; margin-top: 18px; }
  .mmock .win { height: auto; display: block; }
  .mmock .scene { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; padding: 14px; }
  .mmock .code { font-size: 13px; }
  .mmock .code .cl { white-space: pre-wrap; word-break: break-word; }
  .mmock .blk, .mmock .reader-big .blk { display: grid; grid-template-columns: minmax(0, 1fr); }
  .mmock .reader-big .blk:not(.hot) { display: grid; }
  .mmock .card, .mmock .reader-big .card { margin: 0 0 12px; font-size: 14px; }
  .mmock .reader-big { padding: 0; }
  .mmock .askpill { position: static; margin-top: 4px; animation: none; }
  .mmock .tree-big { font-size: 14.5px; }
  .mmock .seg { display: flex; } .mmock .seg button { flex: 1; padding: 0 8px; }
  .mmock .lv-card { font-size: 14.5px; }
  .mmock .termpop { position: static; width: auto; margin-top: 12px; }
  .mmock.play .termpop { animation: popup .6s .3s var(--spring) both; }
  .mmock .big-card { margin-top: 0; }
  .mmock .askbox { font-size: 15px; }
  .mmock .answer { font-size: 14px; }
  .mmock .s5 { padding-bottom: 14px; }
  .mmock .tour-code { margin: 0; }
  .mmock .spot { left: 8px; right: 8px; }
  .mmock .guide { right: 12px; width: 42px; height: 42px; }
  .mmock .tcard { position: static; margin-top: 14px; }
  .mmock .tcard .tk, .mmock .tcard p { display: block; }
  .mmock .tcard b { margin-top: 6px; }
  .mmock.play .langbar span { width: var(--w); }
  .mmock .st-stats { flex-wrap: wrap; }
}
/* the hanging indent must not shift the line number inside its own box */
.code .ln { text-indent: 0; }
@media (max-width: 900px) {
  .mmock .tcard { position: relative; z-index: 2; }   /* above the spotlight's dimming */
  .mmock .guide { z-index: 3; }
}
/* install: the step number badge is not a text line; the chat keeps its newest messages in view */
.inst-steps .inst-n { display: grid; margin-top: 0; font-size: 14px; color: #fff; }
.inst-steps li.done .inst-n { color: #06281d; }
.i1 .chat { height: 100%; justify-content: flex-end; overflow: hidden; }

/* ---- phones: the walkthrough snaps one step per screen, feed style. Snapping is switched on (html.snap) only
   while the walkthrough is on screen, so the rest of the page scrolls normally ---- */
@media (max-width: 900px) {
  :root { --navh: calc(64px + env(safe-area-inset-top)); }
  html.snap { scroll-snap-type: y mandatory; scroll-padding-top: var(--navh); }
  html.snap .how-head, html.snap #private { scroll-snap-align: start; }
  .step { min-height: calc(100svh - var(--navh)); height: calc(100svh - var(--navh)); padding: 14px 0 18px; display: flex; flex-direction: column; justify-content: center;
    scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
  .steps { padding: 0; }
  .step h3 { font-size: 25px; margin-top: 6px; }
  .step p { font-size: 15.5px; margin-top: 8px; line-height: 1.5; }
  .mmock { margin-top: 14px; flex: none; }
  .mmock .scene { padding: 12px; }
  /* one part at a time in the side-by-side scene so the step fits a screen */
  .mmock .reader-big .blk:not(.hot) { display: none; }
  .mmock .tcard p { font-size: 13.5px; }
  .mmock .tour-code .cl { white-space: pre; }
}

.msg.attach { font-family: var(--mono); font-size: 12px; }
.folder > div { min-width: 0; }
/* chat messages take no space until they appear, so the newest always sits at the bottom */
.msg { display: none; }
.msg.show { display: block; animation: msgin .35s var(--spring) both; }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .msg { display: block; } }
.zip .zip-ic { flex: none; }
.zip > div:not(.zip-ic) { flex: 1; min-width: 0; }
.zip b { overflow-wrap: anywhere; }
/* phones: the animated window comes first, the three steps under it */
@media (max-width: 1000px) { .inst-stage { order: -1; } }
.inst-scenes .iscene { top: 0; bottom: 0; left: 0; right: 0; height: 100%; overflow: hidden; }
.opened { overflow: hidden; }
@media (max-width: 700px) { .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .op-grid div { padding: 8px; } }

/* ---- who it's for: three people, each with a scene of confusion turning into clarity ---- */
.who { padding: 60px 0 60px; }
.persona { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; margin-top: 70px; }
.persona.flip .p-scene { order: 2; }
.p-copy .p-n { font: 500 13px var(--mono); color: var(--acl); }
.p-copy h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; margin-top: 10px; }
.p-copy p { color: var(--tx2); font-size: 18px; margin: 14px 0 0; max-width: 440px; }
.persona { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--spring), transform .9s var(--spring); }
.persona.in { opacity: 1; transform: none; }
.p-win { height: 380px; display: flex; flex-direction: column; }
.p-win > div:last-child { position: relative; flex: 1; overflow: hidden; }

/* 1: the AI says done; a wall of new files lands; then each gets a plain-English label */
.p1 { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.p1-chat { padding: 18px 14px; border-right: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.p1-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font: 600 11px var(--mono); color: #fff; background: linear-gradient(135deg, #e08b5f, #c46a3c); }
.p1-bub { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--raised); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: all .4s var(--spring); }
.p1-files { padding: 14px; display: grid; gap: 6px; align-content: start; }
.pf { display: block; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .4s var(--spring), border-color .4s, background .4s; }
.pf b { display: block; font: 500 12.5px/1.35 var(--mono); color: var(--tx2); }
.pf b::after { content: "new"; margin-left: 8px; font: 600 9.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #f0b27a; }
.pf em { display: block; font-style: normal; font-size: 12px; color: #7ee7d6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--spring), opacity .4s; }
.p1.s1 .p1-bub, .p1.s2 .p1-bub, .p1.s3 .p1-bub { opacity: 1; transform: none; }
.pf.show { opacity: 1; transform: none; }
.pf.lbl { background: rgba(255,255,255,.02); border-color: var(--line); }
.pf.lbl b::after { content: ""; }
.pf.lbl em { max-height: 20px; opacity: 1; }

/* 2: a huge unfamiliar tree scrolls by; the tour lands on the three files that matter */
.p2 { position: relative; }
.p2-tree { position: absolute; inset: 0; overflow: hidden; padding: 0 16px; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.p2-scroll { font: 400 12.5px/2 var(--mono); color: var(--tx3); animation: treescroll 26s linear infinite; }
.p2-scroll i { display: block; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes treescroll { to { transform: translateY(-50%); } }
.p2-tour { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 20px 26px; background: rgba(8,8,14,.0); transition: background .6s; pointer-events: none; }
.p2.s2 .p2-tour { background: rgba(8,8,14,.72); }
.p2.s2 .p2-scroll { animation-play-state: paused; filter: blur(1px); opacity: .5; }
.p2-stop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--raised); border: 1px solid rgba(var(--acr), .5);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 26px rgba(var(--acr), .35); opacity: 0; transform: translateY(10px) scale(.97); transition: all .5s var(--spring); }
.p2.s2 .p2-stop { opacity: 1; transform: none; }
.p2.s2 .p2-stop:nth-child(2) { transition-delay: .25s; } .p2.s2 .p2-stop:nth-child(3) { transition-delay: .5s; }
.p2-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ac); color: #fff; font: 600 12px var(--display); }
.p2-stop b { display: block; font: 500 13px var(--mono); color: var(--tx); }
.p2-stop em { display: block; font-style: normal; font-size: 12.5px; color: var(--tx3); }
.p2-stop > div { min-width: 0; }
.p2-chip { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 99px; font: 600 11.5px var(--sans); color: #06281d; background: var(--teal); }
.p2-guide { position: absolute; right: 18px; top: 22px; opacity: 0; transition: opacity .5s .7s; filter: drop-shadow(0 8px 20px rgba(var(--acr), .6)); animation: float 4s ease-in-out infinite; }
.p2.s2 .p2-guide { opacity: 1; }

/* 3: unfamiliar symbols flagged, then turned into dictionary words with a plain-English card */
.p3 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.p3-code { margin: 0; padding: 22px 18px; font: 400 13px/1.9 var(--mono); color: var(--tx2); white-space: pre; overflow: hidden; }
.p3-code .t { border-radius: 4px; padding: 1px 2px; transition: background .4s, color .4s, box-shadow .4s; position: relative; }
.p3.s1 .p3-code .t { background: rgba(248,113,113,.16); color: #ffb4ad; box-shadow: 0 0 0 1px rgba(248,113,113,.35); animation: huh 1.4s ease-in-out infinite; }
@keyframes huh { 50% { background: rgba(248,113,113,.28); } }
.p3.s2 .p3-code .t { background: rgba(45,212,191,.12); color: #7ee7d6; text-decoration: underline dotted rgba(126,231,214,.7); text-underline-offset: 4px; }
.p3-card { margin: 18px 16px 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--raised); border: 1px solid rgba(45,212,191,.35); align-self: start;
  opacity: 0; transform: translateX(14px); transition: all .6s var(--spring); }
.p3.s2 .p3-card { opacity: 1; transform: none; }
.p3-card b { font: 600 14px var(--display); color: #7ee7d6; }
.p3-card p { margin: 6px 0 10px; font-size: 13.5px; color: var(--tx2); line-height: 1.55; }
.p3-words { display: flex; flex-wrap: wrap; gap: 6px; }
.p3-words span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; color: #7ee7d6; border: 1px solid rgba(45,212,191,.4); }

@media (max-width: 900px) {
  .persona, .persona.flip { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 54px; }
  .persona.flip .p-scene { order: 0; }
  .p-copy h3 { font-size: 27px; } .p-copy p { font-size: 16px; }
  .p1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .p1-chat { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .p1-files { padding: 10px 12px; gap: 3px; }
  .pf { padding: 4px 8px; } .pf b { font-size: 12px; }
  .p-win { height: 430px; }
  .p3 { grid-template-columns: minmax(0, 1fr); }
  .p3-code { white-space: pre-wrap; padding: 14px; font-size: 13px; line-height: 1.75; }
  .p3-card { margin: 0 14px 14px; }
  .p2-tour { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .persona { opacity: 1; transform: none; }
  .p2-scroll { animation: none; }
}

/* the third persona: code on top, plain English underneath, so nothing is clipped */
.p3 { grid-template-columns: minmax(0, 1fr); align-content: start; }
.p3-code { padding-bottom: 6px; }
.p3-card { margin: 4px 18px 18px; }
.p3-card p { margin-bottom: 8px; }

/* ---- no subscription: badges and the band ---- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badges span { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--tx); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.35); }
.get-badges { margin-top: 26px; }
.nosub { padding: 110px 0 90px; }
.nosub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.subs { position: relative; height: 330px; }
.sub-card { position: absolute; left: 6%; right: 6%; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; column-gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 20px 50px -25px rgba(0,0,0,.9); transition: all .8s var(--spring); }
.sub-card b { font: 600 16px var(--display); } .sub-card span { grid-row: 2; font-size: 13px; color: var(--tx3); }
.sub-card i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 10px; background: var(--hover); color: var(--tx3); }
.sub-card:nth-child(1) { top: 0; transform: rotate(-3deg); } .sub-card:nth-child(2) { top: 72px; transform: rotate(2deg); } .sub-card:nth-child(3) { top: 144px; transform: rotate(-1.5deg); }
.sub-card.keep { top: 222px; border-color: rgba(var(--acr), .6); background: linear-gradient(120deg, rgba(var(--acr), .16), rgba(45,212,191,.06)), var(--raised); box-shadow: 0 24px 60px -24px rgba(var(--acr), .8); }
.sub-card.keep i { background: rgba(52,211,153,.14); color: var(--em); }
.subs.fade .sub-card.gone { opacity: .12; filter: grayscale(1) blur(1px); transform: translateX(-30px) rotate(-4deg) scale(.96); }
.subs.fade .sub-card.gone:nth-child(2) { transition-delay: .15s; } .subs.fade .sub-card.gone:nth-child(3) { transition-delay: .3s; }
.subs.fade .sub-card.keep { transform: translateY(-110px) scale(1.04); }
@media (max-width: 900px) {
  .nosub-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .subs { height: 300px; }
  .sub-card { left: 0; right: 0; padding: 13px 14px; }
  .sub-card:nth-child(2) { top: 64px; } .sub-card:nth-child(3) { top: 128px; } .sub-card.keep { top: 200px; }
  .subs.fade .sub-card.keep { transform: translateY(-100px) scale(1.02); }
  .badges span { font-size: 13px; height: 30px; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .subs .sub-card.gone { opacity: .12; } }

/* =====================================================================================================
   Walkthrough scenes, styled exactly like the real app (copied from the app's own stylesheet, prefixed a-).
   Motion rule for smooth scrolling: only transform and opacity ever animate here.
   ===================================================================================================== */
.scene { overflow: hidden; }
.a { --display: "Space Grotesk", var(--sans); font: 400 14px/1.5 var(--sans); color: var(--tx); height: 100%; position: relative; }
.a-kicker { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--acl); }
.a-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--ac); color: #fff; font: 620 13.5px/1 var(--sans); white-space: nowrap; }
.a-btn.ghost { background: var(--raised); color: var(--tx2); border: 1px solid var(--line2); }
.a-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.a-seg i { font-style: normal; height: 26px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 8px; font-size: 12px; color: var(--tx3); }
.a-seg i.on { background: var(--raised); color: var(--tx); font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.a-seg.full { display: flex; } .a-seg.full i { flex: 1; justify-content: center; }

/* code lines + explanation notes (the app's .reader/.block/.ln/.note/.card) */
.a-reader { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.a-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border-top: 1px solid var(--line); position: relative; }
.a-block:first-child { border-top: 0; }
.a-code { padding: 8px 0; font: 400 12px/1.65 var(--mono); position: relative; min-width: 0; }
.a-block .a-code::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--acl); opacity: 0; transition: opacity .3s; }
.a-block .a-code::after { content: ""; position: absolute; inset: 0; background: rgba(var(--acr), .05); opacity: 0; transition: opacity .3s; pointer-events: none; }
.a-block.hot .a-code::before, .a-block.hot .a-code::after { opacity: 1; }
.a-ln { display: flex; min-height: 20px; }
.a-ln .no { flex: none; width: 34px; padding-right: 10px; text-align: right; color: #4b5260; user-select: none; }
.a-ln .src { white-space: pre; padding-right: 14px; overflow: hidden; text-overflow: clip; min-width: 0; }
.src .k { color: #ff7b72; } .src .s { color: #a5d6ff; } .src .f { color: #d2a8ff; } .src .n { color: #79c0ff; } .src .ty { color: #ffa657; }
.a-note { border-left: 1px solid var(--line); padding: 8px 10px; }
.a-card { padding: 11px 13px; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); position: relative; transition: transform .35s var(--spring); }
.a-card::after { content: ""; position: absolute; inset: -1px; border-radius: 13px; border: 1px solid rgba(var(--acr), .5); box-shadow: 0 16px 34px -20px rgba(var(--acr), .7); opacity: 0; transition: opacity .3s; pointer-events: none; }
.a-block.hot .a-card { transform: translateX(-2px); } .a-block.hot .a-card::after { opacity: 1; }
.a-card h3 { margin: 0; font: 600 13.5px/1.3 var(--display); letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.a-card .rng { font: 500 10.5px/1 var(--mono); color: var(--tx4); }
.a-card p { margin: 6px 0 0; color: var(--tx2); font-size: 12.5px; line-height: 1.55; }
.a-filebar { display: flex; align-items: center; gap: 2px; padding: 0 0 12px; font: 400 12.5px var(--mono); color: var(--tx3); }
.a-filebar b { color: var(--tx); font-weight: 500; }
.a-filebar .a-seg { margin-left: auto; font-family: var(--sans); }
.a-askpill { position: absolute; left: 44px; top: 268px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 99px;
  background: linear-gradient(120deg, #6d48c8, var(--ac)); color: #fff; font: 600 12.5px var(--sans); box-shadow: 0 10px 26px -8px rgba(var(--acr), .8);
  opacity: 0; transform: translateY(6px) scale(.94); transition: opacity .3s, transform .35s var(--spring); }
.a-askpill.show { opacity: 1; transform: none; }

/* scene 0: the file tree (the app's .row/.lb/.label-btn) and the project hero */
.s0-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
.a-side { padding-right: 14px; border-right: 1px solid var(--line); }
.a-proj { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.a-proj-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--acr), .16); border: 1px solid rgba(var(--acr), .35); color: #d6c9ff; font: 600 13px/1 var(--display); }
.a-proj b { display: block; font: 600 14px/1.2 var(--display); } .a-proj span span { font-size: 11.5px; color: var(--tx4); }
.a-label-btn { display: inline-flex; margin: 10px 0 6px; font-size: 11.5px; color: var(--acl); padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(var(--acr), .35); background: rgba(var(--acr), .08); }
.row { display: flex; align-items: flex-start; gap: 7px; padding: 5px 8px; border-radius: 9px; color: var(--tx2); }
.row .chev { margin-top: 1px; width: 10px; color: var(--tx4); flex: none; } .row .fi { margin-top: 2px; flex: none; color: var(--tx4); }
.row .txt { min-width: 0; flex: 1; } .row .nm { display: block; font: 500 13px/1.35 var(--sans); }
.row .lb { display: block; font-size: 11.5px; line-height: 1.35; color: var(--tx4); min-height: 15px; }
.a-hidden { padding: 8px 8px 0; font-size: 11.5px; color: var(--tx4); }
.a-phero { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 160% at 100% 0%, rgba(var(--acr), .18), transparent 55%), var(--panel); }
.a-h1 { margin-top: 10px; font: 650 26px/1.08 var(--display); letter-spacing: -.03em; }
.a-pstats { display: flex; gap: 20px; margin: 14px 0 12px; }
.a-pstats b { display: block; font: 600 19px/1 var(--display); letter-spacing: -.02em; } .a-pstats b.fw { color: var(--acl); font-size: 16px; }
.a-pstats span { font-size: 11px; color: var(--tx3); }
.a-langbar { display: flex; height: 7px; gap: 2px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.04); }
.a-langbar span { transform-origin: left; transform: scaleX(0); transition: transform 1s var(--spring); }
.on-scene .a-langbar span, .mmock.play .a-langbar span { transform: none; }
.a-langkey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; color: var(--tx2); }
.a-langkey span { display: inline-flex; align-items: center; gap: 6px; } .a-langkey i { width: 8px; height: 8px; border-radius: 50%; } .a-langkey em { font-style: normal; color: var(--tx4); }
.a-askbox { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 14px; border-radius: 15px; background: var(--bg); border: 1px solid rgba(var(--acr), .55); font-size: 15px; }
.a-askbox.sm { margin-top: 16px; height: 42px; font-size: 13px; border-color: var(--line2); }
.a-askbox .ic { color: var(--acl); font-size: 17px; } .a-askbox .ph { color: var(--tx4); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-askbox .go { margin-left: auto; display: grid; place-items: center; width: 36px; height: 34px; border-radius: 10px; background: var(--ac); color: #fff; }
.caret { display: inline-block; width: 2px; height: 18px; background: var(--acl); animation: blinkc 1s steps(2) infinite; }

/* scene 2: the settings panel (the app's .sm-pop) */
.s2-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.a-pop { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.a-sm-t { margin: 14px 0 7px; font: 600 12.5px/1 var(--display); } .a-pop .a-kicker + .a-sm-t { margin-top: 12px; }
.a-sm-d { margin-top: 6px; font-size: 11.5px; color: var(--tx4); }
.lv-card .lv-text, .lv-card .lv-title { transition: opacity .25s; } .lv-card.swap .lv-text, .lv-card.swap .lv-title { opacity: 0; }
.lv-card .lv-text code { font: 500 .9em var(--mono); color: #d6c9ff; background: rgba(var(--acr), .14); padding: 1px 4px; border-radius: 4px; }
.a-reader.one .a-block { grid-template-columns: minmax(0, 1fr); } .a-reader.one .a-note { border-left: 0; border-top: 1px solid var(--line); }

/* scene 3: dictionary word, its definition card, the file's word list */
.a-term { color: #7ee7d6; text-decoration: underline dotted rgba(126,231,214,.7); text-underline-offset: 3px; text-decoration-thickness: 1.5px; background: rgba(45,212,191,.12); border-radius: 4px; padding: 0 2px; }
.a-termpop { position: absolute; right: 12px; top: 92px; width: 300px; padding: 13px 14px 12px; border-radius: 14px; background: var(--raised); border: 1px solid rgba(45,212,191,.4);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.85); opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s, transform .45s var(--spring); }
.on-scene .a-termpop, .mmock.play .a-termpop { opacity: 1; transform: none; transition-delay: .5s; }
.tp-h { font: 600 14px/1.2 var(--display); color: #7ee7d6; }
.a-termpop p { margin: 7px 0 10px; font-size: 13px; line-height: 1.55; color: var(--tx2); }
.a-tpk { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; color: var(--em); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); }
.a-tpk.mini { height: 22px; font-size: 10.5px; padding: 0 8px; color: var(--tx2); background: none; border-color: var(--line2); }
.a-tpk.mini.on { color: var(--em); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); }
.a-sec { margin: 18px 0 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tx4); }
.a-concepts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.a-concept { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.a-concept b { font: 600 13px/1.2 var(--display); color: var(--acl); } .a-concept .a-tpk { margin-left: auto; }

/* scene 4: the ask box and the answer card (the app's .answer-card/.steps/.rich/.fref/.walk-offer) */
.a-answer { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(var(--acr), .3); }
.a-h2 { margin: 8px 0 10px; font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
.a-steps { display: grid; gap: 4px; }
.as { display: flex; gap: 9px; font: 400 12px/1.4 var(--mono); color: var(--tx3); opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .35s var(--spring); }
.as .si { color: var(--acl); width: 14px; } .as.show { opacity: 1; transform: none; }
.a-rich { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--tx2); opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .5s var(--spring); }
.a-rich.show { opacity: 1; transform: none; } .a-rich p { margin: 0 0 8px; }
.a-fref { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; margin: 0 2px; border-radius: 7px; vertical-align: 1px; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.3); color: var(--blue); font: 500 11px/1 var(--mono); }
.a-fref em { font-style: normal; color: #6f9fd8; }
.a-walk { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 11px 13px; border-radius: 13px; background: linear-gradient(120deg, rgba(45,212,191,.08), rgba(var(--acr),.12)); border: 1px solid rgba(var(--acr), .35); }
.a-walk b { display: block; font: 600 13.5px/1.3 var(--display); color: var(--tx); } .a-walk div span { font-size: 12px; color: var(--tx3); } .a-walk .a-btn { margin-left: auto; height: 32px; font-size: 12.5px; }

/* scene 5: the tour. Lines outside the stop fade (opacity), a ring and the eye glide (transform) */
.s5-wrap { padding-bottom: 0; }
.a-tourcode { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 8px 0; font: 400 12.5px/1.65 var(--mono); }
.a-tourcode .a-ln { transition: opacity .45s; } .a-tourcode .a-ln.dim { opacity: .26; }
.a-ring { position: absolute; left: -4px; right: -4px; top: 0; height: 40px; border-radius: 11px; border: 2px solid rgba(196,168,255,.9); pointer-events: none;
  transition: transform .6s cubic-bezier(.3,1,.4,1), opacity .3s; will-change: transform; }
.a-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 11px; box-shadow: 0 0 22px 2px rgba(167,139,250,.45); }
.a-guide { position: absolute; right: 10px; top: 0; transition: transform .7s cubic-bezier(.3,1.25,.45,1); will-change: transform; }
.a-tourcard { margin-top: 14px; padding: 14px 16px 12px; border-radius: 16px; background: #181b21; border: 1px solid rgba(var(--acr), .4); }
.tc-top { display: flex; align-items: center; gap: 6px; } .tc-top .a-kicker { flex: 1; min-width: 0; }
.tc-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--tx3); font-size: 13px; }
.tc-t, .tc-say, .tc-file { transition: opacity .25s; } .a-tourcard.swap .tc-t, .a-tourcard.swap .tc-say, .a-tourcard.swap .tc-file { opacity: 0; }
.a-tourcard h3 { margin: 6px 0 3px; font: 650 16.5px/1.25 var(--display); letter-spacing: -.015em; }
.tc-file { font: 400 11px/1.4 var(--mono); color: var(--blue); } .tc-file .tc-l { color: var(--tx4); }
.a-tourcard p { margin: 8px 0 10px; font-size: 13px; line-height: 1.6; color: var(--tx2); }
.tc-foot { display: flex; align-items: center; gap: 10px; } .tc-foot .a-btn { height: 30px; font-size: 12.5px; }
.tc-dots { flex: 1; display: flex; gap: 4px; align-items: center; }
.tc-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.16); transform-origin: left; transition: transform .3s var(--spring), opacity .3s; }
.tc-dots i.past { background: rgba(var(--acr), .55); } .tc-dots i.on { background: var(--acl); transform: scaleX(2.6); margin-right: 10px; }
.tc-n { font-size: 11.5px; color: var(--tx4); }

/* scene 6: the stack card (the app's .rcard/.sk-*) */
.s6-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; align-items: start; }
.a-rcard { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.a-rcard h3 { margin: 9px 0 5px; font: 650 16px/1.25 var(--display); letter-spacing: -.015em; } .a-rcard p { margin: 0 0 12px; font-size: 12.5px; color: var(--tx3); }
.a-tourmini { background: radial-gradient(130% 120% at 0% 100%, rgba(45,212,191,.12), transparent 55%), radial-gradient(130% 120% at 100% 0%, rgba(var(--acr),.16), transparent 55%), var(--panel); }
.a-sklangs { display: grid; gap: 8px; margin-top: 12px; }
.a-sklang { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; column-gap: 8px; row-gap: 4px; align-items: center; font-size: 12.5px; }
.a-sklang i { width: 9px; height: 9px; border-radius: 50%; } .a-sklang .n { color: var(--tx); } .a-sklang .v { color: var(--tx3); font-size: 11.5px; }
.a-sklang .bar { grid-column: 2 / -1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.a-sklang .bar span { display: block; height: 100%; border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--spring); }
.on-scene .a-sklang .bar span, .mmock.play .a-sklang .bar span { transform: scaleX(var(--w)); }
.a-skh { margin: 14px 0 7px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tx4); }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-skchip { display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line2); font-size: 12px; background: rgba(255,255,255,.02);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring); }
.on-scene .a-skchip, .mmock.play .a-skchip { opacity: 1; transform: none; }
.a-chips .a-skchip:nth-child(2) { transition-delay: .06s; } .a-chips .a-skchip:nth-child(3) { transition-delay: .12s; } .a-chips .a-skchip:nth-child(4) { transition-delay: .18s; } .a-chips .a-skchip:nth-child(5) { transition-delay: .24s; } .a-chips .a-skchip:nth-child(6) { transition-delay: .3s; }
.a-skchip.k-fw { border-color: rgba(var(--acr), .45); background: rgba(var(--acr), .1); } .a-skchip.k-data { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.a-skchip.k-svc { border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); } .a-skchip.k-run { border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.08); }

/* ---- smooth-scrolling fixes: nothing heavy over moving content, only transform/opacity animate ---- */
.nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,12,15,.94); }
.nav .logo, .foot .logo { filter: none; }
.stage-dots i { width: 7px; transform-origin: center; transition: transform .35s var(--spring), background .2s; }
.stage-dots i.on { width: 7px; transform: scaleX(3); box-shadow: none; margin: 0 7px; }
.hero-glow { will-change: transform; }
.askpill { will-change: transform; }
.zip-bar i { width: 100%; transform-origin: left; transform: scaleX(0); }
.inst[data-s="0"] .zip-bar i { animation: fillx 1.2s .2s var(--spring) forwards; }
@keyframes fillx { to { transform: scaleX(1); } }
.subs.fade .sub-card.gone { filter: none; }
.p2-guide { filter: none; }
.r-secret, .r-red { max-width: none !important; transition: opacity .45s !important; }
.r-line { position: relative; }
.r-red { position: absolute; margin-left: -1px; }
.redact .r-red { opacity: 0; } .redact.swap .r-secret { opacity: 0; } .redact.swap .r-red { opacity: 1; }

/* ---- phones: the per-step copies of the scenes ---- */
@media (max-width: 900px) {
  .mmock .scene { overflow: visible; }
  .mmock .s0-grid, .mmock .s2-grid, .mmock .s6-grid { grid-template-columns: minmax(0, 1fr); }
  .mmock .a-main, .mmock .a-tourmini { display: none; }
  .mmock .a-side { border-right: 0; padding-right: 0; }
  .mmock .a-block { grid-template-columns: minmax(0, 1fr); }
  .mmock .a-note { border-left: 0; border-top: 1px solid var(--line); padding: 10px; }
  .mmock .a-code, .mmock .a-tourcode { font-size: 13px; }
  .mmock .a-ln .src { white-space: pre-wrap; word-break: break-word; }
  .mmock .a-block:not(.hot) { display: none; }
  .mmock .s1 .a-block[data-b="0"] { display: none; }
  .mmock .a-askpill { position: static; margin-top: 10px; }
  .mmock .a-filebar .a-seg { display: none; }
  .mmock .a-card p { font-size: 13.5px; } .mmock .a-card h3 { font-size: 14px; }
  .mmock .a-termpop { position: static; width: auto; margin-top: 12px; }
  .mmock .a-concepts { grid-template-columns: minmax(0, 1fr); }
  .mmock .a-concept:nth-child(n+3) { display: none; }
  .mmock .a-walk { flex-wrap: wrap; }
  .mmock .a-pop { box-shadow: none; }
  .mmock .a-guide { width: 40px; height: 40px; right: 6px; }
}
/* moving things carry no shadow or blur of their own; layers for what animates */
.a-ring::after { display: none; }
.a-ring { box-shadow: none; }
.file, .p2-scroll, .a-guide, .a-ring { will-change: transform; }
.shield { filter: none; }

/* ---- the wordmark: one definition, sizes only ---- */
.wm[data-size] { font-family: "Space Grotesk", var(--sans); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: #eceef2; white-space: nowrap; }
.wm[data-size] .wm-c { color: #eceef2; }
.wm[data-size="sm"] { font-size: 15px; } .wm[data-size="md"] { font-size: 19px; } .wm[data-size="xl"] { font-size: 54px; }
.foot .wm[data-size] { font-size: 19px; }
@media (max-width: 700px) { .wm[data-size="xl"] { font-size: 40px; } }

/* ---- nav: pricing link on phones ---- */
.nav-price { display: none; font-size: 14px; color: var(--tx2); }
@media (max-width: 700px) { .nav-price { display: inline-flex; margin-left: auto; padding: 10px 4px; } .nav .btn-sm { margin-left: 10px; } }

/* ---- private: no middleman ---- */
.nomid { margin: 14px 0 0; font-size: 17px; color: var(--tx2); }
.nomid b { color: var(--tx); }

/* ---- pricing ---- */
.pricing { padding: 110px 0 30px; }
.price-card { position: relative; max-width: 620px; margin: 44px auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(var(--acr), .45); background: radial-gradient(110% 120% at 100% 0%, rgba(var(--acr), .22), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(45,212,191,.1), transparent 55%), var(--panel);
  box-shadow: 0 40px 100px -50px rgba(var(--acr), .8); }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-plan { margin-top: 6px; font-size: 13.5px; color: var(--tx3); }
.pc-price { position: relative; height: 96px; margin: 26px 0 8px; }
.pc-old, .pc-free { position: absolute; left: 0; top: 0; font: 650 72px/1 "Space Grotesk", var(--sans); letter-spacing: -.04em; }
.pc-old { color: var(--tx4); font-size: 52px; top: 16px; transition: opacity .5s, transform .6s var(--spring); }
.pc-old::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 3px; background: #f87171; transform-origin: left; transform: scaleX(0); transition: transform .5s var(--spring); }
.pc-free { background: linear-gradient(90deg, #a78bfa, #c4b5fd 45%, #eceef2 80%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(18px) rotateX(-70deg); transform-origin: bottom; transition: opacity .5s, transform .7s var(--spring); }
.price-card.flip .pc-old::after { transform: scaleX(1); }
.price-card.flip.done .pc-old { opacity: 0; transform: translateY(-14px) rotateX(70deg); }
.price-card.flip.done .pc-free { opacity: 1; transform: none; }
.pc-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pc-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--tx2); }
.pc-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #06281d; background: var(--em); }
.pc-note { margin: 22px 0 0; padding: 12px 14px; border-radius: 13px; background: rgba(0,0,0,.22); border: 1px solid var(--line); font-size: 14px; color: var(--tx2); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 700px) { .pc-old, .pc-free { font-size: 60px; } .pc-old { font-size: 40px; } .pc-price { height: 80px; } }
@media (prefers-reduced-motion: reduce) { .pc-old { display: none; } .pc-free { opacity: 1; transform: none; } }

.pc-old { transition: opacity .35s, transform .5s var(--spring); }
.pc-free { transition: opacity .45s .15s, transform .7s .15s var(--spring); }
.price-card.done .pc-old { opacity: 0 !important; }

/* ---- who it's for: one compact row on desktop, a swipe row on phones. Same three scenes, scaled down ---- */
.who .wrap { max-width: 1260px; }
.personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.persona, .persona.flip { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.persona.flip .p-scene { order: 0; }
.p-scene { height: 220px; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.p-scene .p-win { width: 560px; height: 380px; border-radius: 0; border: 0; box-shadow: none; transform: scale(.6); transform-origin: top left; }
.p-copy { padding: 18px 20px 22px; }
.p-copy h3 { font-size: 22px; margin-top: 6px; } .p-copy p { font-size: 15px; margin-top: 8px; max-width: none; }
@media (max-width: 1200px) { .p-scene .p-win { transform: scale(.5); width: 620px; height: 440px; } }
@media (max-width: 900px) {
  .personas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 30px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .personas::-webkit-scrollbar { display: none; }
  .persona, .persona.flip { flex: 0 0 85vw; scroll-snap-align: center; }
  .p-scene { height: 230px; }
  .p-scene .p-win { width: 520px; height: 400px; transform: scale(.575); }
  .p1 { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: none; }
  .p1-chat { border-right: 1px solid var(--line); border-bottom: 0; padding: 18px 14px; }
  .p3 { grid-template-columns: minmax(0, 1fr); }
  .p3-code { white-space: pre; padding: 22px 18px 6px; font-size: 13px; }
}
.persona { min-width: 0; }
.p-scene { width: 100%; min-width: 0; }
.p-scene .p-win { position: absolute; left: 0; top: 0; }
/* the scaled scenes fill their card's width */
.p-scene .p-win { width: calc(100% / .6); height: calc(220px / .6); }
@media (max-width: 1200px) { .p-scene .p-win { width: calc(100% / .5); height: calc(220px / .5); } }
@media (max-width: 900px) { .p-scene .p-win { width: calc(100% / .575); height: calc(230px / .575); } }
.who { padding-bottom: 20px; }
/* phones: the nav is exactly 64px (+ notch) so snapped steps sit flush under it; scenes trimmed to fit a screen */
@media (max-width: 900px) {
  .nav { height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-bottom: 0; }
  .nav-price { padding: 6px 4px; }
  .step { justify-content: flex-start; padding-top: 18px; }
  .step p { font-size: 15px; }
  .mmock .scene { padding: 10px; }
  .mmock .a-filebar { padding-bottom: 8px; }
  .mmock .a-concepts { display: none; } .mmock .a-sec { display: none; }
  .mmock .a-tourcode .a-ln:nth-child(-n+2) { display: none; }
  .mmock .a-tourcard p { margin: 6px 0 8px; }
  .mmock .a-pop .a-sm-t:nth-of-type(n+3), .mmock .a-pop .a-seg:not(.lv) { display: none; }
  .mmock .a-answer { padding: 12px 14px; } .mmock .a-walk { display: none; }
}
@media (max-width: 900px) { .mmock .s5 .a-filebar { display: none; } .mmock .a-tourcard { margin-top: 10px; padding: 12px 14px 10px; } }
/* one container for every section: same width, gutters and left edge */
.wrap, .who .wrap, .story, .foot { max-width: 1260px; }
/* the gap: same scale as its neighbors */
.problem { padding: 70px 0 60px; }
.gap { margin: 34px 0 26px; gap: 22px; max-width: 760px; }
.gap-num { font-size: clamp(40px, 5.2vw, 68px); }
.gap-lbl { font-size: 14px; margin-top: 4px; }
.gap-vs { padding-bottom: 40px; font-size: 16px; }
.pile { height: 64px; margin-top: 12px; gap: 3px; }
.pile i { height: 4px; }
@media (max-width: 700px) { .problem { padding: 56px 0 40px; } .gap { margin: 26px 0 20px; } }
.nav { background: rgba(11,12,15,.985); }
@media (max-width: 700px) {
  .gap { align-items: start; } .gap-num { font-size: 40px; } .gap-lbl { font-size: 13px; }
  .persona, .persona.flip { align-self: flex-start; }
}

.dl-ic { flex: none; margin-left: -2px; }
.btn-sm .dl-ic { width: 15px; height: 15px; }

/* ---- iPad / iOS Safari: nothing sticky may depend on a unit that changes while the toolbar collapses.
   svh is fixed for the page's life; the px value is a fallback for older browsers ---- */
.mock { top: 120px; top: calc(50svh - 260px); }
.hero { min-height: 100svh; }
/* the scenes crossfade in place: opacity only, the pinned panel's contents never translate */
.scene { transform: none !important; transition: opacity .45s ease; }
/* no compositor hints inside the pinned panel (Safari re-rasterizes sticky layers with them) */
.a-ring, .a-guide { will-change: auto; }
.reveal.in { transform: none; }

/* ---- security: the secret is never readable, on the page or in what the AI receives ---- */
.shield-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.redact { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 18px; }
.rd-panel { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); min-width: 0; }
.rd-panel.ai { border-color: rgba(var(--acr), .4); }
.rd-h { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font: 600 11px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); }
.rd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--em); } .rd-dot.ai { background: var(--acl); }
.rd-line { font: 400 13px/1.7 var(--mono); color: var(--tx2); overflow-wrap: anywhere; }
.rd-line .k { color: #ff7b72; } .rd-line .s { color: #a5d6ff; }
.rd-mask { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; height: 18px; padding: 0 7px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); color: var(--tx3); }
.rd-mask i { display: block; width: 74px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 7px, transparent 7px 10px); }
.rd-env { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 12px var(--mono); }
.rd-env span { padding: 4px 9px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line2); }
.rd-env em { font: 500 11.5px var(--sans); font-style: normal; color: var(--tx4); }
.rd-env.off span { color: #ffb4ad; border-color: rgba(248,113,113,.4); text-decoration: line-through; text-decoration-color: #f87171; }
.rd-env.off em { color: #ffb4ad; font-weight: 600; }
.rd-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--acl); font-size: 11px; text-align: center; line-height: 1.3; }
.rd-arrow span { color: var(--tx3); }
.redact .r-cap { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; color: var(--tx2); }
@media (max-width: 1000px) { .shield-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .redact { grid-template-columns: minmax(0, 1fr); }
  .rd-arrow { flex-direction: row; } .rd-arrow svg { transform: rotate(90deg); } .rd-arrow span br { display: none; }
}

/* ---- phone / portrait iPad menu: a hamburger that opens a sheet under the nav ---- */
.burger { display: none; }
.mnav { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-price { display: none !important; }
  .nav .btn-sm { margin-left: auto; }
  .burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-left: 6px; margin-right: -6px; border: 0; border-radius: 12px; background: none; cursor: pointer; }
  .burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--tx); transition: transform .3s var(--spring), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mnav { display: block; position: fixed; z-index: 49; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top)); bottom: 0; background: rgba(5,6,8,.5); opacity: 0; transition: opacity .25s; }
  .mnav[hidden] { display: none; }
  .mnav.open { opacity: 1; }
  .mnav-panel { display: flex; flex-direction: column; padding: 8px var(--gut) 18px; background: rgba(14,15,19,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; transition: transform .35s var(--spring), opacity .25s; }
  .mnav.open .mnav-panel { transform: none; opacity: 1; }
  .mnav-panel a { display: flex; align-items: center; min-height: 54px; padding: 0 4px; font: 600 19px var(--display); letter-spacing: -.01em; color: var(--tx); border-bottom: 1px solid var(--line); }
  .mnav-panel a:last-child { border-bottom: 0; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
/* phones: the three personas stack, full width, compact; no sideways swipe */
@media (max-width: 900px) {
  .personas { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; scroll-snap-type: none; gap: 14px; margin: 26px 0 0; padding: 0; }
  .persona, .persona.flip { flex: none; width: auto; scroll-snap-align: none; align-self: auto; }
  .p-scene { height: 172px; }
  .p-scene .p-win { width: calc(100% / .5); height: calc(172px / .5); transform: scale(.5); }
  .p-copy { padding: 14px 16px 18px; } .p-copy h3 { font-size: 20px; } .p-copy p { font-size: 15px; }
}
.rd-line { white-space: nowrap; overflow-wrap: normal; }
.rd-mask i { width: 48px; }
.rd-arrow span { max-width: 74px; }
@media (max-width: 700px) { .rd-arrow span { max-width: none; } }

/* walkthrough step 1: a GitHub project line, like the real app */
.a-ghline { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--tx3, #a8afbc); }
.a-ghline b { color: #eceef2; font-weight: 600; }

/* walkthrough step 1: adding a project from GitHub (transform/opacity only) */
.s0-gh { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(11,12,15,.86); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.s0-gh.show { opacity: 1; }
.s0-gh-card { width: min(380px, 86%); padding: 16px 18px; border-radius: 16px; background: #181b21; border: 1px solid rgba(167,139,250,.45); box-shadow: 0 30px 70px -30px rgba(139,92,246,.6); transform: translateY(8px) scale(.97); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.s0-gh.show .s0-gh-card { transform: none; }
.s0-gh-head { display: flex; align-items: center; gap: 9px; font: 600 14px/1 "Space Grotesk", sans-serif; color: #eceef2; }
.s0-gh-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #eceef2; }
.s0-gh-input { display: flex; align-items: center; margin-top: 12px; height: 38px; padding: 0 6px 0 12px; border-radius: 11px; background: #0b0c0f; border: 1px solid rgba(167,139,250,.55); font: 400 12.5px "JetBrains Mono", monospace; color: #eceef2; }
.s0-gh-caret { width: 7px; height: 15px; margin-left: 1px; background: #a78bfa; border-radius: 2px; animation: ghblink 1s steps(2) infinite; }
.s0-gh.getting .s0-gh-caret { display: none; }
.s0-gh-go { margin-left: auto; width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #7d4fd0; color: #fff; font-size: 14px; }
.s0-gh-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #a8afbc; opacity: 0; transition: opacity .3s; }
.s0-gh.getting .s0-gh-status { opacity: 1; }
.s0-gh-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(167,139,250,.3); border-top-color: #a78bfa; animation: ghspin .8s linear infinite; }
.s0-gh.done .s0-gh-spin { animation: none; border-color: #34d399; background: #34d399; }
.s0-gh-bar { height: 4px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; opacity: 0; transition: opacity .3s; }
.s0-gh.getting .s0-gh-bar { opacity: 1; }
.s0-gh-bar span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #7d4fd0, #a78bfa); transform-origin: left; transform: scaleX(0); }
.s0-gh.getting .s0-gh-bar span { transform: scaleX(1); transition: transform 1.4s cubic-bezier(.3,.7,.3,1); }
.s0-gh-note { margin-top: 10px; font-size: 11.5px; color: #8b93a1; }
@keyframes ghblink { 50% { opacity: 0; } }
@keyframes ghspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .s0-gh, .s0-gh-card, .s0-gh-bar span { transition: none !important; } .s0-gh-caret, .s0-gh-spin { animation: none !important; } }

/* waitlist: popup + forms (transform/opacity only) */
html.wl-lock, html.wl-lock body { overflow: hidden; }
.wl-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5,6,9,.66); opacity: 0; transition: opacity .2s ease; }
.wl-modal.open { opacity: 1; }
.wl-card { position: relative; width: min(440px, 100%); padding: 28px 26px 22px; border-radius: 22px; background: #121419; border: 1px solid rgba(167,139,250,.4);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.3); transform: translateY(12px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1); text-align: left; }
.wl-modal.open .wl-card { transform: none; }
.wl-card h3 { margin: 12px 0 6px; font: 650 26px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; color: #eceef2; }
.wl-card > p { margin: 0 0 16px; color: #c9ced8; font-size: 15px; line-height: 1.55; }
.wl-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: #8b93a1; font-size: 24px; line-height: 1; cursor: pointer; }
.wl-x:hover { background: #181b21; color: #eceef2; }
.wl-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wl-form input[type=email] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 13px; background: #0b0c0f; border: 1px solid rgba(255,255,255,.14);
  color: #eceef2; font: 400 16px -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; outline: none; transition: border-color .15s; }
.wl-form input[type=email]:focus { border-color: rgba(167,139,250,.75); }
.wl-form .btn { height: 48px; flex: 0 0 auto; }
.wl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.wl-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1em; font-size: 13.5px; }
.wl-msg.ok { color: #34d399; } .wl-msg.err { color: #f87171; }
.wl-form.done input, .wl-form.done .btn { display: none; }
.wl-form.done .wl-msg { font: 600 15px/1.4 "Space Grotesk", sans-serif; margin: 0; }
.wl-fine { margin: 12px 0 0; font-size: 12.5px; color: #8b93a1; }
.get .wl-form { max-width: 520px; margin-top: 18px; }
.mnav-dl { display: flex !important; align-items: center; gap: 10px; margin-top: 8px; border-radius: 14px; background: #7d4fd0 !important; color: #fff !important; font-weight: 650; justify-content: center; }
@media (max-width: 900px) { .nav-dl { display: none !important; } .wl-card { padding: 24px 20px 18px; } .wl-form .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .wl-modal, .wl-card { transition: none !important; } }

.wl-fine a, .foot a { color: #a8afbc; text-decoration: underline; text-underline-offset: 3px; }
.wl-fine a:hover, .foot a:hover { color: #eceef2; }
/* a hidden popup must not exist on the page at all (its display: grid was overriding [hidden], leaving an invisible layer over everything) */
.wl-modal[hidden], .mnav[hidden] { display: none !important; }

/* the Download card glows briefly when a Download button brings you to it */
.get-card.pulse { animation: getpulse 1.3s ease-out; }
@keyframes getpulse { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.55); } 100% { box-shadow: 0 0 0 22px rgba(167,139,250,0); } }
@media (prefers-reduced-motion: reduce) { .get-card.pulse { animation: none; } }

/* phones: the hamburger sits at the right edge now that the header's Download button lives in the menu */
@media (max-width: 900px) { .burger { margin-left: auto; } }
.get .wl-form { margin-bottom: 6px; }
.wl-form .btn { justify-content: center; }

/* phones: the hero preview shows just one part of the file (code + its explanation), about a third of the height */
@media (max-width: 900px) {
  .hero-app .blk:not(:nth-of-type(2)) { display: none; }
  .hero-app .win-title { font-size: 11px; }
  .hero-app .code { font-size: 11px; line-height: 1.65; padding: 8px 10px; }
  .hero-app .card { margin: 0 10px 10px; padding: 10px 12px; }
  .hero-app .card h4, .hero-app .card b { font-size: 13px; }
  .hero-app .card p { font-size: 12.5px; line-height: 1.5; }
  .hero-app .card { opacity: 1; transform: none; }   /* no waiting for the card to stream in on a small screen */
}
