:root{
  --bg: #0e0f1f;
  --bg-soft: #141528;
  --card: #181a30;
  --card-border: #262945;
  --blue: #3E8DF6;
  --blue-soft: rgba(62,141,246,0.14);
  --green: #87E18B;
  --orange: #E8915A;
  --text: #EDEFF7;
  --text-dim: #C9CCD9;
  --text-faint: #8C90A3;
  --sheen-1: #F3D9C4;
  --sheen-2: #E8C9E8;
  --sheen-3: #C9D9F0;
  /* motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --ease-pop:  cubic-bezier(.34,1.4,.64,1);
  --dur-fast: .18s;
  --dur-mid:  .38s;
  --dur-slow: .72s;
  --dur-reveal: .9s;
  --dur-intro:  .9s;
  --stagger: .07s;
  --rise: 18px;
  /* decorative */
  --rule: rgba(255,255,255,.07);
  --rule-strong: rgba(255,255,255,.13);
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233E8DF6' d='M12 0c0 7 5 12 12 12-7 0-12 5-12 12 0-7-5-12-12-12 7 0 12-5 12-12z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ overflow-x: clip; }   /* NOT hidden — hidden breaks position:sticky */

body{
  margin:0;
  background-color:#0e0f1f;
  background-image: linear-gradient(180deg,
    #0f1023  0%, #101227 14%, #0d0e1f 30%, #0a0b19 52%,
    #080914 68%, #0c0e22 86%, #131530 100%);
  background-repeat:no-repeat;
  color: var(--text-dim);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.legal{ background-image: linear-gradient(180deg,#0f1023,#0b0c1c 60%,#101228 100%); }
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(62,141,246,.06), transparent 55%),
    radial-gradient(150% 120% at 50% 45%, transparent 38%, rgba(3,4,12,.42) 78%, rgba(3,4,12,.62) 100%);
}

h1, h2, .page-title, .story-subhead{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
}
h3, h4{ font-family:'Manrope','Inter',sans-serif; color:var(--text); margin:0; }

a{ color: inherit; }

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-wrap{
  position: sticky; top:0; z-index:50;
  background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none;
  transition: background-color .35s var(--ease-out);
}
.nav-wrap.stuck{
  background:rgba(10,11,24,.62);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
}
html:not(.js) .nav-wrap{
  background:rgba(10,11,24,.62);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
}

/* ---------- NAV ---------- */
nav{
  position: relative;
  display:flex;
  align-items:center;
  justify-content: space-between;
  column-gap: 16px;
  padding: 24px 0;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Manrope', sans-serif;
  font-weight:700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.nav-mark{
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #0a0a0a;
  display:flex; align-items:center; justify-content:center;
  font-family:'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background-image: linear-gradient(135deg, var(--sheen-1), var(--sheen-2) 55%, var(--sheen-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 1px solid #2a2a2a;
}
.nav-right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-lang{
  font-size: 0.85rem;
  color: var(--text-faint);
  text-decoration: none;
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease;
}
.nav-lang:hover{ color: var(--text); border-color: var(--text-faint); }
.nav-cta{
  font-size: 0.9rem;
  color: var(--text-faint);
  text-decoration:none;
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-story{
  font-size: 0.9rem;
  color: var(--text-faint);
  text-decoration: none;
  padding: 8px 4px;
  transition: color .15s ease;
}
.nav-story:hover{ color: var(--text); }

/* ---------- HERO ---------- */
.hero{ position:relative; overflow:visible; padding: clamp(40px,7vh,96px) 0 clamp(56px,8vw,120px); min-height: 100svh; display:flex; flex-direction:column; justify-content:center; }
.hero-stage{ position:relative; z-index:1; width:min(1440px,94vw); margin:0 auto; text-align:center; }
.hero-band{ position:relative; z-index:1; width:min(1080px,92vw); margin:0 auto; display:grid; grid-template-columns: 1fr minmax(300px,380px) 1fr; gap: clamp(20px,3.4vw,52px); align-items:start; }
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.hero-eyebrow{ justify-content:center; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; text-transform:uppercase; letter-spacing:.22em; font-size:.68rem; }
.wordmark{ font-size: clamp(2.9rem, 20.5vw, 16rem); line-height:.84; font-weight:500; letter-spacing: var(--track, clamp(.005em,.9vw,.06em)); white-space:nowrap; text-align:center; margin: clamp(10px,1.6vw,22px) 0 clamp(16px,2.2vw,30px); }
/* «Грамота»'s «р» descends ~0.25em below the baseline; EN "Gramota" has no descenders.
   Give RU pages extra clearance so the descender never touches the caption. */
html[lang="ru"] .wordmark{ margin-bottom: clamp(22px, 5vw, 78px); }
.gl{ display:inline-block; overflow:hidden; vertical-align:top; padding:.10em .03em .18em; margin:-.10em -.03em -.18em; }
.gl-i{ display:block; }
.gl:last-child{ margin-right: calc(-1 * var(--track, 0em)); }
.hero-caption{ display:flex; align-items:flex-start; gap:clamp(12px,2vw,26px); margin:0 auto; width:min(1240px,92vw); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:clamp(.6rem,.85vw,.74rem); letter-spacing:.18em; text-transform:uppercase; color:var(--text-faint); line-height:1.7; text-align:left; }
/* rules align to the first text line's center, not the (possibly two-line) block center */
.hero-caption::before,.hero-caption::after{ content:""; height:1px; background:var(--rule-strong); margin-top:.8em; }
/* asymmetric: short rule, text, long rule — the device crosses only the long rule */
.hero-caption::before{ flex:0 0 clamp(16px,3vw,48px); }
.hero-caption::after{ flex:1 1 0; }
.hero-caption > span, .hero-caption{ min-width:0; }
@media (min-width:981px){
  .hero-caption{ white-space:normal; }
  .hero-caption .cap-text{ max-width: calc(50% - 230px); }
}
.hero-copy{ padding-top: clamp(12px,3.5vw,54px); }
.hero-copy .lede{ margin-top:0; font-size:.98rem; max-width:330px; }
.hero-cta{ padding-top: clamp(12px,3.5vw,54px); display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.hero-cta .hero-story-link{ margin-top:0; max-width:280px; }
@media (max-width:980px){
  .hero{ min-height:0; }
  .hero-band{ grid-template-columns:1fr; justify-items:center; text-align:center; }
  .hero-copy{ order:2 } .device-col{ order:1; margin-top:18px }
  .hero-cta{ order:3; align-items:center }
  .hero-copy .lede{ max-width:520px }
  .pill-row{ justify-content:center }
  .hero-caption{ text-align:center; }
  .hero-caption::before{ flex:1 1 0; }
}

/* ---------- HERO ATMOSPHERE ---------- */
.hero-atmos{ position:absolute; inset:-12% -6% -18%; z-index:0; pointer-events:none; overflow:hidden; }
.hero-atmos .orb{ position:absolute; border-radius:50%; will-change:transform; }
.orb-a{ width:72vw; height:72vw; max-width:1100px; max-height:1100px; left:-8vw; top:-22vw;
  background: radial-gradient(circle, rgba(62,141,246,.15) 0%, rgba(62,141,246,.07) 34%, rgba(62,141,246,0) 66%);
  animation: orb-a 52s ease-in-out infinite; }
.orb-b{ width:62vw; height:62vw; max-width:950px; max-height:950px; right:-12vw; top:6vw;
  background: radial-gradient(circle, rgba(232,145,90,.12) 0%, rgba(232,145,90,.045) 38%, rgba(232,145,90,0) 68%);
  animation: orb-b 68s ease-in-out infinite; }
.orb-c{ width:54vw; height:54vw; max-width:820px; max-height:820px; left:38%; bottom:-26vw;
  background: radial-gradient(circle, rgba(232,201,232,.08) 0%, rgba(232,201,232,.03) 40%, rgba(232,201,232,0) 70%);
  animation: orb-c 84s ease-in-out infinite; }
@keyframes orb-a{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(6%,4%,0) scale(1.14)}}
@keyframes orb-b{0%,100%{transform:translate3d(0,0,0) scale(1.06)}50%{transform:translate3d(-5%,-3%,0) scale(1)}}
@keyframes orb-c{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(4%,-5%,0) scale(1.1)}}
@media (max-width:720px){ .orb-c{ display:none; } }
.hero-field{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0;
  animation: fade-in 2.4s var(--ease-soft) both .5s;
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 62%,transparent 96%), radial-gradient(ellipse 46% 40% at 50% 46%,#000 0%,#000 34%,transparent 78%);
          mask-image: linear-gradient(180deg,#000 0%,#000 62%,transparent 96%), radial-gradient(ellipse 46% 40% at 50% 46%,#000 0%,#000 34%,transparent 78%);
  -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)){
  .hero-field{ opacity:.6; -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 96%); mask-image:linear-gradient(180deg,#000 62%,transparent 96%); } }

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 26px;
}
.pill{
  font-size: 0.82rem;
  color: var(--text-faint);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.pill:hover{ color:var(--text); border-color: rgba(62,141,246,.4); background: var(--blue-soft); }

/* ---------- APP STORE BUTTON ---------- */
.appstore-btn{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  gap: 12px;
  background: #fff;
  color: #0a0a0a;
  text-decoration:none;
  padding: 12px 22px;
  border-radius: 14px;
  font-family:'Manrope', sans-serif;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.appstore-btn::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(105deg, transparent 32%, rgba(62,141,246,.22) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out);
}
.appstore-btn:hover::after{ transform: translateX(130%); }
.appstore-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -16px rgba(62,141,246,.6);
}
.appstore-btn svg{ width: 26px; height: 26px; flex-shrink:0; }
.appstore-btn .ab-text{
  display:flex; flex-direction:column;
  line-height: 1.05; text-align:left;
}
.appstore-btn .ab-top{ font-size: 0.68rem; font-weight: 500; color: #3a3a3a; letter-spacing: 0.01em; }
.appstore-btn .ab-bottom{ font-size: 1.15rem; font-weight: 700; }
.hero-story-link{
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.hero-story-link:hover{ color: var(--blue); }

/* ---------- INTRO / ARRIVAL ANIMATIONS ---------- */
@keyframes rise-in{ from{opacity:0; transform:translate3d(0,var(--rise),0);} to{opacity:1; transform:none;} }
@keyframes mask-up{ from{ transform: translate3d(0,110%,0);} to{ transform:none; } }
@keyframes mark-in{ from{opacity:0; transform:scale(.72) rotate(-8deg);} to{opacity:1; transform:none;} }
@keyframes rule-draw{ from{ transform:scaleX(0);} to{ transform:scaleX(1);} }
@keyframes fade-in{ from{opacity:0} to{opacity:1} }

.ln{ display:block; overflow:hidden; padding:.10em 0 .16em; margin:-.10em 0 -.16em; }
.ln-i{ display:block; }

nav .nav-mark{ animation: mark-in var(--dur-intro) var(--ease-pop) both; animation-delay: .08s; }
nav .nav-brand{ --d:.05s }
nav .nav-right > :nth-child(1){ --d:.12s }
nav .nav-right > :nth-child(2){ --d:.18s }
nav .nav-right > :nth-child(3){ --d:.24s }
nav::after{
  content:""; position:absolute; left:calc(50% - 50vw); width:100vw; bottom:0; height:1px;
  background: var(--rule); transform-origin:left center;
  animation: rule-draw 1.1s var(--ease-out) both .30s;
}

.hero-eyebrow, .hero-caption, .hero-copy .lede, .hero-copy .pill, .hero-cta .appstore-btn, .hero-cta .hero-story-link, .device-col, nav .nav-brand, nav .nav-right > *{
  animation: rise-in var(--dur-intro) var(--ease-out) both;
  animation-delay: var(--d,0s);
}
.hero .gl-i{ animation: mask-up 1.05s var(--ease-out) both; animation-delay: calc(.10s + var(--g) * .045s); }
.hero-atmos{ animation: fade-in 1.8s var(--ease-soft) both; }
.hero-eyebrow{ --d:.06s }
.hero-caption{ --d:.62s }
.hero-copy .lede{ --d:.72s }
.hero-copy .pill:nth-child(1){--d:.78s} .hero-copy .pill:nth-child(2){--d:.83s} .hero-copy .pill:nth-child(n+3){--d:.88s}
.hero-cta .appstore-btn{ --d:.80s }
.hero-cta .hero-story-link{ --d:.90s }
.device-col{ --d:.46s; animation-duration:1.2s; }

.legal main > .eyebrow{ animation: rise-in var(--dur-intro) var(--ease-out) both .24s; }
.legal main > .page-title{ animation: rise-in var(--dur-intro) var(--ease-out) both .34s; }

/* ---------- DEVICE MOCK ---------- */
.device-col{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position:relative;
  z-index:2;
}
@media (min-width:981px){
  .device-col{ margin-top: calc(-1 * clamp(34px,5.5vw,92px)); }
}
.device-col::after{
  content:""; position:absolute; z-index:-1; left:50%; bottom:-6%; width:150%; height:34%;
  transform:translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(62,141,246,.16), transparent 70%);
}
.demo-replay{
  display: none;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.demo-replay.on{ display: inline-flex; }
.demo-replay:hover{ color: var(--text); border-color: var(--text-faint); }
.demo-replay:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.device{
  position:relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 13px;
  border-radius: 36px;
  background: radial-gradient(120% 80% at 50% -10%, rgba(62,141,246,.14), transparent 62%), linear-gradient(168deg,#1c1e37 0%,#12142a 46%,#0b0c1d 100%);
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 0 0 1px rgba(255,255,255,.055), 0 -30px 70px -40px rgba(62,141,246,.55) inset, 0 44px 90px -34px rgba(0,0,0,.85), 0 100px 150px -70px rgba(62,141,246,.32);
}
.device-screen{
  background: linear-gradient(170deg,#111327,#0c0d1e);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 25px;
  padding: 22px 18px 26px;
}
.device-title{
  text-align:center;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.68rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.field-label{
  display:flex; align-items:center; gap:6px;
  font-size: 0.78rem; color: var(--text-faint); margin-bottom: 8px;
}
.text-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 14px;
}
.err-word{ color: var(--text); border-bottom: 2px dotted var(--orange); }
.fix-word{ color: var(--green); font-weight: 600; }
.fix-ul{ border-bottom: 2px solid var(--green); }
.strike-word{ color: var(--orange); text-decoration: line-through; opacity: 0.85; }

.score-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 4px;
}
.score-number{
  font-family:'Manrope', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--green);
  line-height:1;
}
.score-row{ display:flex; align-items:baseline; gap: 14px; }
.score-verdict{ color: var(--text); font-weight:700; font-size:0.95rem; }
.score-sub{ color: var(--text-faint); font-size: 0.78rem; margin-top: 2px;}
.diff-row{
  display:flex; align-items:center; gap:10px;
  margin-top: 14px; font-size: 0.88rem;
}

/* ---------- DECORATIVE LAYER ---------- */
body::after{
  content:""; position:fixed; inset:0; z-index:60; pointer-events:none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: .045;
}
.section::before{
  content:""; position:absolute; top:0; height:1px;
  left: calc(50% - 50vw); width: 100vw;
  background: var(--rule);
}
.section::after{
  content:""; position:absolute; top:-5px; left:50%; margin-left:-5px;
  width:10px; height:10px; background:var(--spark) center/contain no-repeat; opacity:.45;
}
.hero::before, .hero::after{ content:none; }

.sec-glow{
  position:absolute; z-index:-2; pointer-events:none;
  left:50%; top:-8%; transform:translateX(-50%);
  width:min(1500px,132vw); height:116%;
  background: radial-gradient(ellipse 50% 46% at 50% 40%, var(--tone), transparent 72%);
}
[data-tone="violet"]{ --tone: rgba(232,201,232,.075); }
[data-tone="green"] { --tone: rgba(135,225,139,.055); }
[data-tone="deep"]  { --tone: rgba(62,141,246,.055); }
[data-tone="ember"] { --tone: rgba(232,145,90,.075); }
[data-tone="dawn"]  { --tone: rgba(62,141,246,.11);  }

/* ---------- SECTIONS ---------- */
.section{ position: relative; padding: 64px 0; }
.section-head{ max-width: min(880px,100%); margin-bottom: clamp(32px,4.5vw,56px); }
.section-head .kicker{
  font-size:.66rem; font-weight:500; color:var(--text-faint);
  display:flex; align-items:center; gap:8px;
  letter-spacing:.22em;
  margin-bottom: 18px;
}
.section-head .kicker::before{
  content:""; width:8px; height:8px; flex:none;
  background: var(--spark) center/contain no-repeat; opacity:.8;
}
.section-head h2{ font-weight:500; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height:1.05; letter-spacing:-.025em; }

.kicker, .viz-cap, .audience-card .num, .mock-explain-title, .mock-badge{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.audience-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-card{
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 22px;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.audience-card .num{
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.audience-card h3{ font-size: 1.08rem; margin-bottom: 10px; }
.audience-card p{ font-size: 0.92rem; color: var(--text-faint); margin:0; }

/* ---------- FEATURES ---------- */
.feature-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature{
  position: relative;
  border-top: 1px solid var(--card-border);
  padding-top: 18px;
}
.feature::before{
  content:""; position:absolute; top:-1px; left:0; right:0; height:1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.feature:hover::before{ transform: scaleX(1); }
.feature .icon{
  width: 34px; height:34px;
  border-radius: 9px;
  background: var(--blue-soft);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 14px;
  transition: transform var(--dur-mid) var(--ease-pop), box-shadow var(--dur-mid) var(--ease-out);
}
.feature:hover .icon{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 1px rgba(62,141,246,.25), 0 10px 22px -12px rgba(62,141,246,.55);
}
.feature h3{ font-size: 1rem; margin-bottom: 8px; }
.feature p{ font-size: 0.9rem; color: var(--text-faint); margin:0; }

/* ---------- LAUNCH ---------- */
.waitlist{
  background:none; border:none; border-radius:0;
  padding: clamp(56px,9vw,120px) 0 clamp(72px,10vw,140px);
  text-align:center;
  margin:0;
}
.waitlist h2{ font-size: clamp(2.4rem,5.4vw,4.2rem); line-height:1.02; letter-spacing:-.025em; margin-bottom:18px; }
.waitlist p{ color: var(--text-faint); font-size:1.05rem; max-width: 520px; margin: 0 auto; }
.waitlist-actions{ margin-top: 26px; display:flex; justify-content:center; }

/* ---------- LEGAL PAGES ---------- */
main{ padding: 54px 0 90px; }
.legal main{ padding: 54px 0 90px; }
.page-title{ font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight:800; line-height:1.08; letter-spacing:-.01em; margin-bottom:24px; }
.legal-card{ background:linear-gradient(160deg,#181a30,#11132a); border:1px solid var(--card-border); border-radius:24px; padding:36px; line-height:1.6; }
.legal-card h2{ font-size:1.2rem; margin:32px 0 10px; }
.legal-card h2:first-child{ margin-top:0; }
.legal-card p{ margin:0 0 14px; color:var(--text-dim); }
.legal-card .muted{ color:var(--text-faint); font-size:.92rem; }
.legal-card a{ color: var(--blue); }

/* ---------- CHANGELOG ---------- */
.changelog-summary{
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 44px;
}
.changelog-section{ max-width: 720px; margin-bottom: 44px; }
.changelog-section h2{ font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; }
.changelog-item{
  border-top: 1px solid var(--card-border);
  padding-top: 18px;
  margin-top: 18px;
}
.changelog-item:first-of-type{ border-top: none; padding-top: 0; margin-top: 0; }
.changelog-item h3{ font-size: 1rem; margin-bottom: 8px; }
.changelog-item p{ margin: 0; font-size: 0.94rem; color: var(--text-dim); line-height: 1.6; }
.changelog-list{
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.changelog-list li{ margin-bottom: 6px; }
.changelog-list li:last-child{ margin-bottom: 0; }
.changelog-privacy{
  max-width: 640px;
  color: var(--text-faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  margin: 0 0 28px;
}
.changelog-back{
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.changelog-back:hover{ color: var(--blue); }

/* ---------- ENGINEERING STORY (homepage) ---------- */
.story-lede{
  max-width: 720px;
  margin: -16px 0 36px;
  color: var(--text-dim);
  font-size: clamp(1.02rem,1.5vw,1.22rem);
  line-height: 1.6;
}
.story-lede a{ color: var(--blue); }
.story-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.story-stat{
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.stat-n{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem,3.2vw,2.6rem);
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-l{
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.4;
}
.story-subhead{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:500;
  font-size: clamp(1.7rem,3.2vw,2.6rem);
  letter-spacing:-.02em;
  margin-bottom:26px;
}
.hard-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.hard-card{
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px 22px;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.hard-card h4{
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  margin: 0 0 10px;
  font-size: 1.12rem;
}
.hard-card p{
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.story-chapters{
  max-width: 900px;
  margin-bottom: 52px;
}
.story-chapter{
  display:grid;
  grid-template-columns: clamp(84px,11vw,150px) minmax(0,1fr);
  column-gap: clamp(18px,3vw,44px);
  align-items:start;
  border-top: 1px solid var(--card-border);
  padding-top: 26px;
  margin-top: 26px;
}
.story-chapter:first-child{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.ch-num{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:500;
  font-size: clamp(3.4rem,7.5vw,7rem);
  line-height:.8;
  color: rgba(237,239,247,.07);
  position:sticky;
  top: clamp(96px,14vh,160px);
  font-variant-numeric: lining-nums tabular-nums;
  user-select:none;
}
.story-chapter h3{
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.story-chapter p{
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.story-chapter p:last-child{ margin-bottom: 0; }
@media (max-width:860px){
  .story-chapter{ grid-template-columns:1fr; }
  .ch-num{ position:static; font-size:2.6rem; margin-bottom:2px; }
}
/* ---------- SCROLL REVEALS (JS-gated so no-JS stays fully visible) ---------- */
.js .reveal{
  opacity:0;
  transform: translate3d(0, var(--rise), 0);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 5) * var(--stagger));
}
.js .reveal.inview{ opacity:1; transform:none; }

/* ---------- MASKED LINE REVEAL ([data-lines] headings) ---------- */
.js .reveal.split{ opacity:1; transform:none; transition:none; }
.js .split .ln-i{
  transform: translate3d(0,110%,0);
  transition: transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--li,0) * .09s);
}
.js .split.inview .ln-i{ transform:none; }

/* ---------- HERO DEMO ---------- */
.device{ cursor: default; }
.caret{ display: none; }
.js .device.demo-active .caret{
  display: inline-block;
  width: 2px; height: 1em;
  vertical-align: text-bottom;
  margin-left: 2px;
  background: var(--blue);
  animation: caret-blink 0.9s steps(1) infinite;
}
.js .device.demo-active.demo-done .caret{ display: none; }
@keyframes caret-blink{ 50%{ opacity: 0; } }
.js .device.demo-active .demo-input .err-word:not(.on){ border-bottom-color: transparent; }
.js .device .demo-out{
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
.js .device.demo-active .demo-out:not(.show){ opacity: 0; transform: translateY(10px); }

/* ---------- MINI VISUALS (viz-*) ---------- */
.viz{
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.viz-cap{
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
}
.viz-ear{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.viz-word .viz-cap{ margin-bottom: 4px; }
.viz-big{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.viz-big em{ font-style: normal; color: var(--orange); }
.viz-big.ok em{ color: var(--green); }
.viz-arrow{ color: var(--text-faint); font-size: 1.1rem; }
.viz-tokens .tok-row{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.viz-tokens .tok-row:last-child{ margin-bottom: 0; }
.tok-chunks{ display: flex; gap: 4px; flex-wrap: wrap; }
.tok{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--blue-soft);
  border: 1px solid rgba(62,141,246,0.35);
  border-radius: 8px;
  padding: 3px 9px;
}
.viz-branch .branch-input{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.branch-opts{
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--card-border);
}
.branch-opt{
  font-size: 0.92rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 10px;
}
.viz-memory .mem-row{
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mem-label, .lat-label{ font-size: 0.8rem; color: var(--text-dim); }
.mem-val, .lat-val{
  font-size: 0.8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mem-track, .lat-track{
  position: relative;
  display: block;
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  overflow: visible;
}
.bar-fill{
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 4px;
  border-radius: 999px;
  background: var(--blue);
}
.bar-fill.over{ background: var(--orange); }
.bar-fill.ok{ background: var(--green); }
.bar-fill.overflow{
  position: relative;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.mem-over{
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(14,15,31,0.65);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -1px;
}
.js .reveal .bar-fill{ width:0; transition: width 1s var(--ease-soft) .25s; }
.js .reveal.inview .bar-fill{ width: var(--w); }
.mem-marker{
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--text-faint);
  border-radius: 1px;
}
.viz-memory .viz-cap{ margin-top: 4px; }
.mem-scale{
  display: block;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 3px;
}
.viz-models{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 720px;
}
.model-card{
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255,255,255,0.02);
}
.model-name{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.model-note{ font-size: 0.72rem; color: var(--text-faint); margin-top: 4px; }
.model-card.dead .model-name{ color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--orange); }
.model-card.dead .model-note::before{ content: "✕ "; color: var(--orange); }
.model-card.alive{ border-color: rgba(135,225,139,0.4); }
.model-card.alive .model-note{ color: var(--green); }
.model-card.alive .model-note::before{ content: "✓ "; }
.viz-latency{ max-width: 720px; }
.viz-latency .lat-row{
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.viz-latency .lat-row:last-child{ margin-bottom: 0; }
.viz-latency .viz-cap{ margin-top: 10px; }
.viz-gates{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 720px;
}
.gate{
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(135,225,139,0.35);
  background: rgba(135,225,139,0.06);
  border-radius: 10px;
  padding: 8px 12px;
}
.gate-check{ color: var(--green); font-weight: 700; }
.gate-label{ font-size: 0.82rem; color: var(--text); }
.gate-score{
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.gate-link{ width: 14px; height: 2px; background: var(--card-border); flex-shrink: 0; }
.gates-cap{ width: 100%; margin-top: 6px; }
.viz-tags{ max-width: 720px; }
.tag-words{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag-word{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tag-w{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.95rem;
}
.tag-t{
  font-size: 0.74rem;
  color: var(--text-faint);
  border: 1px dashed var(--card-border);
  border-radius: 999px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}
.tag-word.fix .tag-w{ border-color: rgba(232,145,90,0.55); }
.tag-word.fix .tag-t{
  color: var(--green);
  border: 1px solid rgba(135,225,139,0.5);
  background: rgba(135,225,139,0.08);
  font-weight: 700;
}
.viz-compare{ max-width: 720px; }
.cmp-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.cmp-card{
  border: 1px solid rgba(135,225,139,0.35);
  background: rgba(135,225,139,0.05);
  border-radius: 14px;
  padding: 14px 16px;
}
.cmp-card.bad{
  border-color: rgba(232,145,90,0.4);
  background: rgba(232,145,90,0.05);
}
.cmp-n{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.cmp-card.bad .cmp-n{ color: var(--orange); text-decoration: line-through; text-decoration-thickness: 2px; }
.cmp-label{ font-size: 0.85rem; color: var(--text); margin-top: 6px; }
.cmp-note{ font-size: 0.75rem; color: var(--text-faint); margin-top: 2px; }
.viz-dots{ max-width: 720px; }
.dots-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 10px;
}
.dotgrid-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.dotgrid-label{ font-size: 0.8rem; color: var(--text-dim); }
.dotgrid-val{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.dotgrid{
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 2px;
}
.dotgrid .cell{
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
}
.dotgrid .cell.bad{ background: var(--orange); }
.js .reveal .viz-dots .cell.bad{ opacity:0; transition: opacity .4s ease; }
.js .reveal.inview .viz-dots .cell.bad{ opacity:1; transition-delay:.3s; }

/* ---------- ROADMAP (interactive) ---------- */
.roadmap{ position:relative; }
.roadmap-intro{ margin: 0 0 24px; }
.rm-tablist{
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px;
  background: var(--card);
  margin-bottom: 24px;
}
.rm-tab{
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.rm-tab:hover{ color: var(--text); }
.rm-tab:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.rm-tab[aria-selected="true"]{ background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(62,141,246,.8); }
.rm-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(160deg, #181a30, #11132a);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 32px;
}
.rm-copy p{
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--text-dim);
  line-height: 1.62;
}
.rm-copy p:last-child{ margin-bottom: 0; }

/* mockups */
.mock-badge{
  font-size: 0.68rem;
  color: var(--orange);
  border: 1px solid rgba(232,145,90,0.45);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.mock-phone{
  max-width: 300px;
  margin: 0 auto;
  background: linear-gradient(160deg, #181a30, #0f1022);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 20px 18px 18px;
  box-shadow: 0 30px 60px -28px rgba(62,141,246,0.22);
}
.mock-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.mock-title{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.mock-prompt{ font-size: 0.78rem; color: var(--text-faint); margin-bottom: 8px; }
.mock-sentence{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
}
.mock-err{ border-bottom: 2px dotted var(--orange); }
.mock-chips{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mock-chip{
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.02);
}
.mock-chip.ok{
  color: var(--green);
  border-color: rgba(135,225,139,0.45);
  background: rgba(135,225,139,0.08);
}
.mock-footer{
  font-size: 0.74rem;
  color: var(--text-faint);
  border-top: 1px solid var(--card-border);
  padding-top: 10px;
}
.mock-mac{
  background: linear-gradient(160deg, #181a30, #0f1022);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(62,141,246,0.22);
}
.mock-mac-bar{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
}
.tl{ width: 10px; height: 10px; border-radius: 50%; }
.tl.r{ background: #ff5f57; }
.tl.y{ background: #febc2e; }
.tl.g{ background: #28c840; }
.mock-mac-title{
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}
.mock-mac-body{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
}
.mock-mac-text{ padding: 16px; }
.mock-line{ font-size: 0.92rem; color: var(--text); margin-bottom: 8px; }
.mock-line.dim{ color: var(--text-faint); text-decoration: line-through; text-decoration-color: rgba(232,145,90,0.6); }
.mock-tones{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mock-tone-label{ font-size: 0.76rem; color: var(--text-faint); }
.mock-tones .mock-chip{ font-size: 0.74rem; padding: 4px 10px; }
.mock-explain{
  border-left: 1px solid var(--card-border);
  padding: 16px;
  background: rgba(255,255,255,0.02);
}
.mock-explain-title{
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.mock-explain p{
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.story-outro{
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 0.92rem;
  color: var(--text-faint);
}
.story-outro a{ color: var(--blue); }

/* ---------- MICRO-INTERACTIONS ---------- */
a:focus-visible, button:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:6px; }

.hero-story-link, .changelog-back, .footer-links a, .story-lede a, .story-outro a{
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; text-decoration: none;
  transition: background-size var(--dur-mid) var(--ease-out), color var(--dur-fast) linear;
}
.hero-story-link:hover, .changelog-back:hover, .footer-links a:hover,
.story-lede a:hover, .story-outro a:hover{ background-size: 100% 1px; }

.audience-card, .hard-card, .story-stat{ position:relative; overflow:hidden; }
.audience-card::after, .hard-card::after, .story-stat::after{
  content:""; position:absolute; top:0; left:0; right:0; height:1px; opacity:0;
  background: linear-gradient(90deg, transparent, rgba(62,141,246,.65), transparent);
  transition: opacity var(--dur-mid) var(--ease-out);
}
.audience-card:hover::after, .hard-card:hover::after, .story-stat:hover::after{ opacity:1; }
.audience-card:hover, .hard-card:hover, .story-stat:hover{ border-color: rgba(62,141,246,.28); }

/* ---------- FOOTER ---------- */
footer{
  border-top: 1px solid var(--card-border);
  padding: 28px 0 40px;
  display:flex;
  justify-content:space-between;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap: 14px;
}
.footer-links a:hover{ color: var(--text); }

@media (max-width: 860px){
  .audience-grid{ grid-template-columns: 1fr; }
  .feature-list{ grid-template-columns: 1fr; }
  .waitlist{ padding: 32px 22px; }
  .story-stats{ grid-template-columns: repeat(2, 1fr); }
  .hard-grid{ grid-template-columns: 1fr; }
  .rm-grid{ grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; }
  .viz-models{ grid-template-columns: repeat(2, 1fr); }
  .mock-mac-body{ grid-template-columns: 1fr; }
  .mock-explain{ border-left: none; border-top: 1px solid var(--card-border); }
  .nav-story{ display: none; }
  footer{ flex-direction:column; gap: 8px; }
  .footer-links{ justify-content:flex-start; }
}

@media (max-width: 700px){
  .legal-card{ padding: 26px 20px; }
  /* stack bar rows: label + value on top, full-width track below */
  .viz-memory .mem-row,
  .viz-latency .lat-row{
    grid-template-columns: 1fr auto;
    grid-template-areas: "label value" "track track";
    row-gap: 6px;
  }
  .mem-label, .lat-label{ grid-area: label; }
  .mem-val, .lat-val{ grid-area: value; }
  .mem-track, .lat-track{ grid-area: track; }
  .viz-ear{ gap: 10px; }
  .viz-big{ font-size: 1.1rem; }
  .cmp-row{ grid-template-columns: 1fr; }
  .dots-row{ grid-template-columns: 1fr; }
  .tag-words{ gap: 8px; }
  .tag-w{ font-size: 0.88rem; padding: 6px 10px; }
  .mock-phone{ max-width: 100%; }
}

#under-the-hood{ scroll-margin-top: 88px; }

/* ---------- SCROLL-LINKED TOUCHES ---------- */
@supports (animation-timeline: scroll()){
  @media (prefers-reduced-motion: no-preference){
    .mock-phone, .mock-mac{
      animation: drift linear both;
      animation-timeline: view(); animation-range: entry 10% exit 90%;
    }
    @keyframes drift{ from{ transform: translateY(14px);} to{ transform: translateY(-14px);} }
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal{ opacity:1; transform:none; }
  .js .split .ln-i{ transform:none; }
  .js .reveal .bar-fill{ width: var(--w); }
  .js .reveal .viz-dots .cell.bad{ opacity:1; }
  .js .device.demo-active .caret{ animation:none; display:none; }
  .orb{ animation:none !important; }
  .hero-atmos{ animation:none; opacity:1; }
  .hero-field{ animation:none; opacity:.9; }
  .hero .gl-i{ transform:none; }
  .ch-num{ position:static; }
}
