/* Soul — product site (v6). Quiet and neutral, like a well-made tool page:
   near-black ground, soft grey panels, white pill buttons, one clean sans
   at light weights. Colour comes only from the product (the app's red,
   the phone screens). Single dark look by choice: the app is dark-only. */
:root {
  --bg: #0A0A0A;
  --panel: #141414;
  --card: #171717;
  --inner: #1E1E1E;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F4F4F5;
  --soft: #8D8D93;
  --dim: #5E5E64;
  --red: #FF3347;            /* logo red */
  --primary: #BC002A;        /* app: sent bubbles */
  --accent: #FF6A88;         /* app: midnight accent */
  --font: "Geist", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; margin: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px;
  font: 500 16px var(--font); letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s ease, transform .2s ease, opacity .2s ease; }
.btn:active { transform: scale(.98); }
.btn-white { background: #fff; color: #0A0A0A; }
.btn-white:hover { background: #E7E7EA; }
.btn-grey { background: #262626; color: #E8E8EA; }
.btn-grey:hover { background: #303030; }
.btn.is-static { cursor: default; color: #A6A6AC; }
.btn.is-static:active { transform: none; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 15px; }
.btn .i-android { width: 20px; height: 20px; }
[data-dl][aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s ease; padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--font); letter-spacing: -.02em; }
.brand-av { width: 30px; height: 30px; display: inline-block; flex: none; }
[data-soul-avatar] svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: #C9C9CE; flex: 1; }
.nav-links a:hover { color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero { text-align: center; padding-block: clamp(64px, 9vw, 104px) 0;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: #161616; border: 1px solid var(--line);
  font-size: 14px; color: #CFCFD4; transition: border-color .2s ease; }
.chip:hover { border-color: var(--line-2); }
.chip b { font-weight: 500; color: #fff; }
.chip span::before { content: "·"; margin-right: 8px; color: var(--dim); }
.chip i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #262626; font-size: 12px; }
.hero h1 { margin-top: 28px; font-size: clamp(52px, 8.2vw, 96px); line-height: 1; letter-spacing: -.045em; display: flex; align-items: center; justify-content: center; gap: .22em; flex-wrap: wrap; }
.h1-logo { width: 1.02em; height: 1.02em; display: inline-block; flex: none; translate: 0 .04em; cursor: pointer; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--soft); line-height: 1.55; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* the stage: a wide quiet panel the phone stands in */
.stage { position: relative; max-width: 1180px; height: clamp(560px, 62vw, 760px); margin: clamp(48px, 6vw, 72px) auto 0; border-radius: var(--sr, 32px); overflow: hidden; scale: .9; transform-origin: 50% 0;
  background: radial-gradient(60% 55% at 50% 100%, rgba(188,0,42,.22), rgba(188,0,42,0) 70%), linear-gradient(180deg, #121212, #0D0D0D); border: 1px solid var(--line); }
.stage-grid { display: none; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 75%); }
.stage-phone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phone3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.has-3d-ready .phone3d { opacity: 1; }
.has-3d .hero-flat { display: none; }
.hero-flat { height: 86%; width: auto; }
.tag { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; font-size: 14px; color: #E6E6EA; text-align: left;
  background: rgba(30,30,30,.72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tag small { display: block; color: var(--soft); font-size: 12.5px; }
.tag-l, .tag-r { bottom: 22px; width: max-content; margin: 0 auto; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #C9C9CE; background: rgba(30,30,30,.55); }
.tag-l { left: 0; right: 47%; } .tag-r { left: 47%; right: 0; }
.tag-top { top: 6%; left: 0; right: 0; margin: 0 auto; width: max-content; border-radius: 999px; padding: 8px 16px; font-size: 13.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A0A0A6; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------------------------------------------------------------- flat phone (tabs, and the hero without WebGL) */
.flat-phone { position: relative; aspect-ratio: 1206 / 2542; width: auto; flex: none; padding: 2.8%; border-radius: 14.5% / 6.9%;
  background: linear-gradient(150deg, #8a8a91, #3b3b41 18%, #232327 46%, #45454c 74%, #1a1a1e);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 0 1.5px rgba(0,0,0,.6); }
.flat-phone::before { content: ""; position: absolute; inset: .9%; border-radius: 13.8% / 6.6%; background: #000; }
.flat-phone .scr { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 12% / 5.6%; background: #000; }
/* the story phone: every screen stacked, the step in view cross-fades in */
.scr-stack { position: relative; display: block; width: 100%; height: 100%; border-radius: 11.6% / 5.4%; overflow: hidden; background: #000; }
.scr-stack .scr { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: opacity .55s ease; }
.scr-stack .scr.is-on { opacity: 1; }
/* the story's live steps: the same music player / Theater room as the cards */
.st-layer .tg-screen { border-radius: 0; }
.st-layer .tg-screen img.scr { opacity: 1; }

/* ---------------------------------------------------------------- sections */
.wrap { max-width: 1240px; margin: 0 auto; padding-block: clamp(80px, 10vw, 140px) 0;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.panel { background: var(--panel); border-radius: 32px; border: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2, .big-copy h2, .tour h2, .split h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.sec-head p { margin: 18px auto 0; color: #C2C2C8; font-size: 18px; max-width: 620px; }

/* big panel with the logo, cropped */
.big-panel { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 56px); }
.big-copy { position: relative; z-index: 1; max-width: 500px; }
.big-copy p { margin: 20px 0 0; color: var(--soft); font-size: 18px; }
.big-mark { position: absolute; right: -2%; bottom: -26%; width: min(56%, 660px); aspect-ratio: 1; display: block; will-change: transform; }

/* 2x2 cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 28px; min-height: 460px; }
.card-t { margin: 0; color: #C2C2C8; font-size: 17px; line-height: 1.55; max-width: 520px; }
.card-t b { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }
/* each card: a quiet stage lit in the feature's colour, a real app
   screenshot on a phone rising out of its floor. Nothing floats over the
   screen: the only label sits in clear space above the phones. */
.demo { position: relative; flex: 1; min-height: 440px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 100%, var(--glow), rgba(0,0,0,0) 72%), radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.035), rgba(255,255,255,0) 70%), #101011; }
.demo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 26%; pointer-events: none; z-index: 2; background: linear-gradient(rgba(16,16,17,0), rgba(16,16,17,.7)); }
.demo .flat-phone { position: absolute; top: 48px; left: 50%; width: min(268px, 56%); height: auto; translate: -50% 80px; opacity: 0;
  transition: translate 1.3s cubic-bezier(.16,1,.3,1) .1s, opacity .9s ease .1s, rotate 1.3s cubic-bezier(.16,1,.3,1) .1s; }
.demo-duo .flat-phone { top: 84px; width: min(232px, 46%); }
.demo .ph-a { left: 34%; } .demo .ph-b { left: 66%; top: 96px; z-index: 1; }
.card.in .demo .flat-phone, html:not(.js) .demo .flat-phone { translate: -50% 0; opacity: 1; }
.card.in .demo .ph-a { rotate: -4deg; } .card.in .demo .ph-b { rotate: 4deg; }
.card:hover .demo .flat-phone { translate: -50% -8px; }
.fchip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; color: #E8E8EA; white-space: nowrap;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); opacity: 0; translate: 0 8px; transition: opacity .7s ease .6s, translate .9s cubic-bezier(.16,1,.3,1) .6s; }
.card.in .fchip, html:not(.js) .fchip { opacity: 1; translate: 0 0; }
.fc-top { top: 24px; left: 0; right: 0; margin: 0 auto; width: max-content; }
/* a window into a real screenshot: the chat itself, floating on the lit stage,
   fading out at its top and bottom edges */
.demo-crop { display: grid; place-items: center; padding: 40px 28px; min-height: 330px; }
.demo-crop::after { display: none; }
.crop { position: relative; width: min(100%, 470px); overflow: hidden; border-radius: 24px; background: #000; border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.5);
  opacity: 0; translate: 0 40px; transition: opacity .9s ease .1s, translate 1.3s cubic-bezier(.16,1,.3,1) .1s; }
.crop img { position: absolute; max-width: none; height: auto; display: block; }
.crop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crop::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,0) 9%, rgba(0,0,0,0) 86%, #000); }
.card.in .crop, html:not(.js) .crop { opacity: 1; translate: 0 0; }
.card:hover .crop { translate: 0 -6px; }
/* two phones, one moment (together.js): Hari and Shri side by side, the
   second rising in a beat after the first, both painting the same frame */
.tg { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 5%, 32px); padding: 34px 22px 20px; }
.tg::after { display: none; }
.tg-ph { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(196px, 44%); flex: none;
  opacity: 0; translate: 0 60px; transition: opacity .9s ease .1s, translate 1.3s cubic-bezier(.16,1,.3,1) .1s; }
.tg-ph + .tg-ph { transition-delay: .65s; }
.tg-label { font-weight: 500; }
.card.in .tg-ph, html:not(.js) .tg-ph { opacity: 1; translate: 0 0; }
.demo.tg .flat-phone, .card.in .demo.tg .flat-phone, .card:hover .demo.tg .flat-phone { position: relative; top: auto; left: auto; width: 100%; translate: none; rotate: none; opacity: 1; transition: none; }
.tg-cut { width: 100%; aspect-ratio: 1206 / 1830; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.tg-screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #000; }
.tg-screen .scr { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.tg-screen canvas.scr { opacity: 0; transition: opacity .4s ease; }
.live .tg-screen canvas.scr { opacity: 1; }
.tg-ph figcaption { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #D6D6DA; }
.tg-ph figcaption .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
.tg-src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.credit { margin: -16px 0 0; font-size: 11.5px; color: var(--dim); }

/* listen: both phones on the same second, visibly playing */
.tg-ph figcaption b.tg-time { font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07); }
.tg-time.tick { animation: tick .6s ease-out; }
@keyframes tick { 0% { background: rgba(255,106,136,.45); } 100% { background: rgba(255,255,255,.07); } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.eq i { flex: 1; height: 30%; border-radius: 1px; background: var(--accent); transform-origin: bottom; }
.playing .eq i, .vc-play.on .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.tg-wire { position: absolute; left: 50%; top: 0; width: 0; height: 2px; translate: 0 -50%; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,106,136,0), rgba(255,106,136,calc(.25 + .6 * var(--beat, 0))), rgba(255,106,136,0));
  box-shadow: 0 0 calc(4px + 10px * var(--beat, 0)) rgba(255,90,125,calc(.5 * var(--beat, 0))); opacity: 0; transition: opacity .6s ease; }
.tg.playing .tg-wire { opacity: 1; }

/* hear their voice: two phones, tilted toward each other */
.vc { display: flex; justify-content: flex-start; align-items: center; gap: 7%; padding: 26px 14px 30px 7%; }
.vc::after { display: none; }
.vc-ph { margin: 0; width: min(176px, 35%); display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; translate: 0 60px; transition: opacity .9s ease .1s, translate 1.3s cubic-bezier(.16,1,.3,1) .1s; }
.vc-ph + .vc-ph, .vc-b { transition-delay: .6s; }
.card.in .vc-ph, html:not(.js) .vc-ph { opacity: 1; translate: 0 0; }
.vc-ph figcaption { font-size: 13px; color: #BDBDC3; text-align: center; display: grid; justify-items: center; gap: 4px; }
.vc-line { display: grid; place-items: center; height: 24px; }
.vc-line > * { grid-area: 1 / 1; transition: opacity .4s ease; }
.vc-line .vc-play.on ~ .vc-sub, .vc-line:has(.vc-play.on) .vc-sub { opacity: 0; }
.vc-ph figcaption b { color: #fff; font-weight: 500; }
.vc-play { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; white-space: nowrap; border-radius: 999px; font-size: 13px; color: #FFD5DF;
  background: rgba(255,106,136,.14); border: 1px solid rgba(255,106,136,.3); opacity: 0; translate: 0 4px; transition: opacity .4s ease, translate .4s ease; }
.vc-play.on { opacity: 1; translate: 0 0; }
.vc-hold { position: relative; width: 100%; }
.vc-a .vc-hold { rotate: 4deg; } .vc-b .vc-hold { rotate: -4deg; }
.vc-hold .flat-phone { box-shadow: 0 50px 90px -35px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 0 1.5px rgba(0,0,0,.6); }
.demo.vc .flat-phone, .card.in .demo.vc .flat-phone, .card:hover .demo.vc .flat-phone { position: relative; top: auto; left: auto; width: 100%; translate: none; rotate: none; opacity: 1; transition: none; }

.vc-dot { position: absolute; left: calc(32% + var(--f, 0) * 36%); top: 44%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #FF8FA8;
  pointer-events: none; opacity: 0; box-shadow: 0 0 0 4px rgba(255,106,136,.18), 0 0 18px 4px rgba(255,90,125,.6); }

/* listen together: each bear, a soft ghost behind its own phone, on the same beat */
.tg[data-together="music"] { align-items: flex-end; gap: 12%; padding-top: 170px; padding-bottom: 66px; }
.tg[data-together="music"] .tg-ph { position: relative; width: min(184px, 34%); }
.tg-label { top: auto; bottom: 18px; }
/* each bear peeks over the top of its own phone, as a soft ghost */
.tg-ghost { position: absolute; z-index: 0; left: 2%; bottom: calc(100% - 16px); width: 96%; aspect-ratio: 1; pointer-events: none; opacity: .6; transition: opacity 1s ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.tg-ghost.on { opacity: 1; }
.tg-ghost svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .66; }
[data-ghost="hari"] .tg-ghost { filter: blur(.4px) drop-shadow(0 0 18px rgba(255,200,150,.55)); }
[data-ghost="shri"] .tg-ghost { filter: blur(.4px) drop-shadow(0 0 18px rgba(255,140,190,.6)); }
.tg-ph .tg-cut { position: relative; z-index: 1; }
.tg-ghost .nt { position: absolute; top: 18%; font-style: normal; font-size: 18px; color: rgba(255,190,210,.85); opacity: 0; text-shadow: 0 0 10px rgba(255,120,160,.7); }
[data-ghost="hari"] .nt { left: 4%; } [data-ghost="shri"] .nt { right: 4%; }
.tg-ghost.on .nt { animation: note 3.2s ease-out infinite; }
.tg-ghost .nt:nth-child(2) { animation-delay: -1.07s; margin-left: 14px; margin-right: 14px; } .tg-ghost .nt:nth-child(3) { animation-delay: -2.13s; margin-left: -8px; margin-right: -8px; }
@keyframes note { 0% { transform: translateY(20px) rotate(-8deg); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-60px) rotate(10deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tg-ghost { opacity: 1; } .tg-ghost .nt { display: none; } }

/* story step 04: Hari's ghost beside the story phone while his message plays */
.st-ghost { position: absolute; z-index: -1; left: 97%; top: 18%; width: 54%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  translate: 0 var(--rise, 18px); filter: blur(.4px) drop-shadow(0 0 18px rgba(255,190,140,.55)); }
.st-ghost svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: .6;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.st-ghost .vr { position: absolute; z-index: 0; left: 76%; top: 56%; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%; border-radius: 50%; border: 2.5px solid transparent; border-right-color: rgba(255,214,170,.8); opacity: 0; }
.st-ghost.talking .vr { animation: vring 1.5s ease-out infinite; }
.st-ghost.talking .vr:nth-child(3) { animation-delay: .5s; } .st-ghost.talking .vr:nth-child(4) { animation-delay: 1s; }
.st-ghost-tag { position: absolute; z-index: 2; left: 56%; bottom: 2%; translate: -50% 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; font: 500 13px var(--font); color: #FFD5DF; background: rgba(40,14,22,.85); border: 1px solid rgba(255,106,136,.35); }
.st-ghost.talking .eq i { animation: eq .9s ease-in-out infinite; }
@media (max-width: 860px) { .st-ghost { left: 98%; top: 14%; width: 46%; max-width: 92px; } .st-ghost-tag { left: 50%; bottom: auto; top: 100%; margin-top: 4px; font-size: 10px; line-height: 1.25; padding: 3px 8px; white-space: normal; width: 100%; text-align: center; justify-content: center; } }

/* his voice, as a soft ghost of his bear behind her phone */
.vc-ghost { position: absolute; z-index: 0; left: 68%; top: calc(2% - 20px); width: 118%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  translate: 0 var(--rise, 24px); filter: blur(.6px) drop-shadow(0 0 18px rgba(255,190,140,.55));
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.vc-ghost svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: .55; }
.vc-ghost .vr { position: absolute; z-index: 0; left: 76%; top: 58%; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%; border-radius: 50%; border: 2.5px solid transparent; border-right-color: rgba(255,214,170,.8); opacity: 0; }
.vc-ghost.talking .vr { animation: vring 1.5s ease-out infinite; }
.vc-ghost.talking .vr:nth-child(3) { animation-delay: .5s; } .vc-ghost.talking .vr:nth-child(4) { animation-delay: 1s; }
@keyframes vring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.vc-hold > .flat-phone { position: relative; z-index: 1; }

/* private by design: phone -> server -> phone, then the server's copy is cut */
.pv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); align-items: end; align-content: center; gap: 10px; padding: 26px 18px 0; }
.pv::after { display: none; }
.demo.pv { min-height: 0; }
.pv-ph { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0;
  opacity: 0; translate: 0 50px; transition: opacity .9s ease .1s, translate 1.3s cubic-bezier(.16,1,.3,1) .1s; }
.pv-b { transition-delay: .5s; }
.card.in .pv-ph, html:not(.js) .pv-ph { opacity: 1; translate: 0 0; }
.pv-ph figcaption { font-size: 13px; color: #D6D6DA; }
.pv-cut { position: relative; width: 100%; max-width: 200px; }
.pv-cut .flat-phone, .card.in .pv-cut .flat-phone, .card:hover .pv-cut .flat-phone { position: relative; inset: auto; width: 100%; translate: none; rotate: none; opacity: 1; transition: none; }
.pv-node { align-self: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-bottom: 76px; }
.pv-node::before { content: ""; position: absolute; top: 34px; left: -40%; right: -40%; height: 0; border-top: 1.5px dashed rgba(255,255,255,.16); z-index: -1; }
.pv-srv { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, #26262B, #151518);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), 0 0 0 6px rgba(52,211,153,.06); }
.pv-srv svg { width: 30px; height: 30px; fill: none; stroke: #CFCFD4; stroke-width: 1.6; stroke-linecap: round; }
.pv-node b { font-weight: 500; font-size: 13px; color: #fff; margin-top: 4px; }
.pv-state { font-size: 11.5px; line-height: 1.3; color: var(--soft); min-height: 2.6em; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pv-state i { font-style: normal; color: #34D399; margin-right: 3px; }
.pv-done .pv-state { color: #9FE8C8; }
/* the message on its way: the real bubble, scrambled while it travels */
.pv-copy, .pv-fly { position: absolute; width: min(118px, 100%); border-radius: 999px; pointer-events: none; }
.pv-plain { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; border-radius: 999px; background-repeat: no-repeat; }
.pv-cipher { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 7px; border-radius: inherit; overflow: hidden; white-space: nowrap;
  background: linear-gradient(135deg, #1D2B26, #12201B); border: 1px solid rgba(52,211,153,.45); box-shadow: 0 0 18px -4px rgba(52,211,153,.55);
  font: 600 10.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #8FF0C6; letter-spacing: .02em; }
.pv-cipher .lk { width: 12px; height: 12px; flex: none; fill: none; stroke: #8FF0C6; stroke-width: 2.2; stroke-linecap: round; }
.pv-cipher b { font-weight: 600; overflow: hidden; }
.pv-copy { top: auto; bottom: 40px; left: 50%; translate: -50% 0; opacity: 0; transform-origin: 50% 100%; }
/* the bin the server's copy goes into, the moment the message is delivered */
.pv-bin { position: absolute; left: 50%; bottom: 2px; width: 30px; height: 30px; translate: -50% 0; opacity: 0; pointer-events: none; }
.pv-bin svg { width: 100%; height: 100%; fill: none; stroke: #9FE8C8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pv-bin .bin-lid { transform-origin: 25px 9.5px; transform-box: view-box; }
.pv-bin .poof { position: absolute; left: 50%; top: 2px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(159,232,200,.55), rgba(159,232,200,0) 70%); }
.pv-fly { left: 0; top: 0; opacity: 0; z-index: 3; transform-origin: 50% 50%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.pv-tag { position: absolute; left: 50%; bottom: 100%; translate: -50% -5px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; opacity: 0;
  font: 600 9.5px/1.3 var(--font); letter-spacing: .03em; color: #8FF0C6; background: rgba(18,32,27,.9); border: 1px solid rgba(52,211,153,.4); }
.pv-srv { transition: box-shadow .35s ease, border-color .35s ease; }
.pv-srv.pulse { border-color: rgba(52,211,153,.55); box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), 0 0 0 6px rgba(52,211,153,.14), 0 0 28px 4px rgba(52,211,153,.35); }

/* a phone that comes down from above: the bottom of the screen (receipts, composer) */
.demo-down .flat-phone { top: auto; bottom: 40px; translate: -50% -80px; }
.demo-down::after { inset: 0 0 auto 0; background: linear-gradient(rgba(16,16,17,.7), rgba(16,16,17,0)); }
.card.in .demo-down .flat-phone { translate: -50% 0; }
.card:hover .demo-down .flat-phone { translate: -50% 8px; }

/* the app: a pinned phone while the story scrolls past (5 steps) */
.story { padding-block: clamp(80px, 10vw, 140px) 0; }
.story .sec-head { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); margin-bottom: 0; }
.story-track { position: relative; height: 420vh; }
.story-pin { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); display: flex; align-items: center; overflow: hidden;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.story-in { width: 100%; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 460px; justify-self: end; width: 100%; }
.story-list li { position: relative; padding: 18px 0 18px; border-bottom: 1px solid var(--line); }
.story-list button { display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left; padding: 0; color: var(--dim); transition: color .4s ease; }
.story-list .sl-n { font: 500 13px var(--font); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.story-list b { font: 500 clamp(22px, 2.3vw, 30px)/1.15 var(--font); letter-spacing: -.025em; }
.story-list li.is-on button, .story-list button:hover { color: #fff; }
.sl-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.16,1,.3,1); }
.sl-more p { overflow: hidden; margin: 0; padding-left: 40px; color: var(--soft); font-size: 16.5px; opacity: 0; transition: opacity .4s ease; }
.story-list li.is-on .sl-more { grid-template-rows: 1fr; }
.story-list li.is-on .sl-more p { opacity: 1; padding-top: 10px; transition-delay: .1s; }
.sl-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.sl-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.story-phone { position: relative; display: flex; justify-content: center; align-items: center; height: min(680px, calc(100svh - 150px)); }
.story-phone .flat-phone { height: 100%; position: relative; z-index: 1; }
.story-glow { opacity: .8; }
.story-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); background: var(--sg, rgba(188,0,42,.45)); transition: background .8s ease; }
.story[data-active="music"] { --sg: rgba(208,16,58,.5); }
.story[data-active="watch"] { --sg: rgba(246,140,70,.4); }
.story[data-active="voice"] { --sg: rgba(167,120,255,.42); }
.story[data-active="ai"] { --sg: rgba(255,77,106,.5); }

/* download + faq: title left, list right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1000px; }
.split-sub { margin: 16px 0 0; color: var(--soft); font-size: 18px; max-width: 420px; }
.dl-status { color: var(--soft); font-size: 14px; margin: 14px 0 0; min-height: 1.4em; }
.rows { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: background-color .2s ease, border-color .2s ease; }
a.row:hover { background: #1D1D1D; border-color: var(--line-2); }
.row-ic { width: 24px; height: 24px; flex: none; }
.row-t { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.row-t b { font-weight: 500; }
.row-t small { color: var(--soft); font-size: 13.5px; }
.row-go { width: 20px; height: 20px; fill: none; stroke: #C9C9CE; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row.is-off { color: #A6A6AC; }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; transition: transform .25s ease;
  background: linear-gradient(#BDBDC2, #BDBDC2) center/100% 1.5px no-repeat, linear-gradient(#BDBDC2, #BDBDC2) center/1.5px 100% no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--soft); max-width: 60ch; }

/* final call to action + line-art logo */
.final { text-align: center; padding-block: clamp(120px, 14vw, 180px) 0; overflow: hidden;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.final h2 { font-size: clamp(40px, 5.4vw, 64px); }
.final > p { margin: 12px 0 0; color: #C2C2C8; font-size: 18px; }
.final-art { height: clamp(260px, 36vw, 500px); margin-top: 64px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.final-av { display: block; width: min(640px, 92%); aspect-ratio: 1; flex: none; color: rgba(255,255,255,.42); translate: 0 45%; }
.final-art img { width: min(620px, 100%); max-width: none; height: auto; flex: none; opacity: .35; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-brand small { color: var(--dim); font-size: 13px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-col b { font-weight: 500; color: #fff; margin-bottom: 2px; }
.foot-col a, .foot-col span { color: var(--soft); }
.foot-col a:hover { color: #fff; }

/* reveal on scroll (only when the script runs) */
.js .rv { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .9s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .tag { font-size: 12.5px; }
  .tag-l, .tag-r { bottom: 14px; padding: 6px 11px; font-size: 11.5px; }
  .tag-top { top: 4%; font-size: 12px; padding: 6px 12px; }
  .stage { height: min(580px, 136vw); border-radius: 24px; }
  .grid2, .split { grid-template-columns: 1fr; }
  .story-in { grid-template-columns: 1fr; gap: 18px; }
  .story-phone { height: 46svh; order: -1; }
  .story-list { justify-self: stretch; max-width: none; gap: 0; }
  .story-list li { padding: 10px 0; }
  .story-list b { font-size: 19px; }
  .sl-more p { padding-left: 34px; font-size: 14.5px; }
  .card { padding: 24px; min-height: 0; }
  .demo { min-height: 400px; }
  .demo-crop { min-height: 250px; padding: 28px 16px; }
  .demo.tg { min-height: 0; padding: 26px 12px 18px; gap: 12px; }
  .tg-ph { width: 47%; }
  .tg[data-together="music"] { gap: 8%; padding-top: 128px; padding-bottom: 58px; }
  .tg[data-together="music"] .tg-ph { width: 40%; }
  .tg-label { top: auto; bottom: 14px; }
  .demo.vc, .demo.pv { min-height: 0; }
  .vc { gap: 6%; padding: 20px 8px 24px 5%; }
  .vc-ph { width: 38%; }
  .vc-line { height: 36px; }
  .vc-play { white-space: normal; font-size: 11px; line-height: 1.2; padding: 3px 8px; max-width: 100%; text-align: left; gap: 5px; }
  .vc-ph figcaption { font-size: 12px; }
  .pv { gap: 6px; padding: 20px 10px 0; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, 1fr); }
  .pv-srv { width: 52px; height: 52px; border-radius: 16px; }
  .pv-srv svg { width: 25px; height: 25px; }
  .pv-node::before { top: 28px; }
  .pv-state { font-size: 10px; }

  .pv-cipher { font-size: 8.5px; padding: 0 5px; gap: 3px; }
  .pv-cipher .lk { width: 10px; height: 10px; }
  .demo .flat-phone { width: min(240px, 64%); top: 40px; }
  .demo-duo .flat-phone { width: min(200px, 50%); top: 72px; }
  .demo-duo .ph-b { top: 84px; }
  .big-panel { min-height: 640px; align-items: flex-end; }
  .big-mark { width: 74%; right: -14%; top: 0; bottom: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
/* ---------------------------------------------------------------- motion */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* hero: each piece rises out of a soft blur, one after another */
.js .intro { opacity: 0; translate: 0 26px; filter: blur(10px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1) calc(var(--d) * 110ms + 120ms), translate 1.2s cubic-bezier(.16,1,.3,1) calc(var(--d) * 110ms + 120ms), filter 1s ease calc(var(--d) * 110ms + 120ms); }
.js .stage.intro { translate: 0 70px; }
.loaded .intro { opacity: 1; translate: 0 0; filter: blur(0); }
.loaded .stage.intro { filter: none; }
/* the two floating tags arrive after the stage, then drift */
.tag { opacity: 0; translate: 0 12px; transition: opacity .8s ease calc(1.2s + var(--t) * .35s), translate 1s cubic-bezier(.16,1,.3,1) calc(1.2s + var(--t) * .35s); }
.loaded .tag { opacity: 1; translate: 0 0; animation: drift 7s ease-in-out calc(2s + var(--t) * 1.6s) infinite alternate; }
@keyframes drift { to { transform: translateY(-14px); } }
/* headings: word by word */
.words .w { display: inline-block; opacity: 0; translate: 0 .4em; filter: blur(6px);
  transition: opacity .7s ease calc(var(--i) * 60ms), translate .9s cubic-bezier(.16,1,.3,1) calc(var(--i) * 60ms), filter .7s ease calc(var(--i) * 60ms); }
.words.in .w { opacity: 1; translate: 0 0; filter: blur(0); }
/* cards: the right-hand column lands a beat later */
.js .grid2 .card.rv:nth-child(2n) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .js .intro, .tag, .words .w { opacity: 1; translate: none; filter: none; transition: none; animation: none; }
  .stage { scale: 1; }
  .final-av { translate: none; }
  .demo .flat-phone, .fchip { opacity: 1; translate: -50% 0; transition: none; }
  .fchip { translate: none; }
  .typing i { animation: none; }
  .js .rv { opacity: 1; translate: none; transition: none; }
}

/* soul ai: a call in progress — the avatar talks, its rings breathe, the transcript writes itself */
.ai-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(60% 80% at 80% 50%, rgba(188,0,42,.22), rgba(188,0,42,0) 70%), var(--panel); }
.kicker { margin: 0 0 14px; font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: .02em; }
.ai-copy h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.ai-copy > p { margin: 18px 0 0; color: var(--soft); font-size: 18px; max-width: 470px; }
.ai-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: #E2E2E6; }
.ai-points li { display: flex; align-items: center; gap: 12px; }
.ai-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(255,106,136,.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-8'/></svg>") center/11px no-repeat; }
.ai-call { display: grid; justify-items: center; gap: 18px; }
.ai-orb { position: relative; width: min(260px, 60vw); aspect-ratio: 1; display: grid; place-items: center; }
.ai-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,106,136,.35); animation: orb 3.6s ease-out infinite; }
.ai-orb .ring:nth-child(2) { animation-delay: 1.2s; } .ai-orb .ring:nth-child(3) { animation-delay: 2.4s; }
.ai-orb.speaking .ring { animation-duration: 1.6s; border-color: rgba(255,106,136,.6); }
@keyframes orb { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.ai-av { width: 62%; aspect-ratio: 1; display: block; }
.ai-time { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.ai-transcript { width: min(420px, 100%); min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.tl { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: tlIn .5s cubic-bezier(.16,1,.3,1) both; }
.tl.you { align-self: flex-end; background: #2A2A2D; border-bottom-right-radius: 6px; }
.tl.ai { align-self: flex-start; background: rgba(188,0,42,.18); border: 1px solid rgba(255,106,136,.25); border-bottom-left-radius: 6px; }
.tl.ai small { display: block; font-size: 12px; color: var(--accent); margin-bottom: 3px; }
.tl.out { animation: tlOut .4s ease both; }
@keyframes tlIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes tlOut { to { opacity: 0; transform: translateY(-8px); } }

/* download: one big lit panel, the button, three plain steps */
.dl-panel { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px) clamp(32px, 5vw, 56px); }
.dl-glow { position: absolute; left: 50%; bottom: -55%; width: 120%; aspect-ratio: 2; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(188,0,42,.35), rgba(188,0,42,0)); }
.dl-panel > * { position: relative; }
.dl-panel h2 { font-size: clamp(40px, 5.6vw, 68px); }
.dl-sub { margin: 16px auto 0; color: var(--soft); font-size: 18px; max-width: 520px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; }
.dl-meta { margin: 16px 0 0; color: var(--dim); font-size: 13.5px; }
.dl-panel .dl-status { margin: 6px 0 0; }
.steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.steps li { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: grid; gap: 4px; }
.steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0A0A0A; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.steps b { font-weight: 500; }
.steps small { color: var(--soft); font-size: 14px; line-height: 1.5; }

/* cards: a soft light follows the pointer */
.card { position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.06), transparent 60%); }
.card:hover::after { opacity: 1; }

@media (max-width: 860px) {
  .ai-panel { grid-template-columns: 1fr; }
  .ai-transcript { min-height: 210px; }
  .steps { grid-template-columns: 1fr; }
  .dl-panel .cta { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .ai-orb .ring { animation: none; opacity: .4; } .tl { animation: none; } }

/* other builds of the release */
.dl-versions { margin: 18px auto 0; max-width: 460px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.dl-versions summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 14.5px; color: #D6D6DA; display: flex; justify-content: space-between; align-items: center; }
.dl-versions summary::-webkit-details-marker { display: none; }
.dl-versions summary::after { content: "+"; color: var(--soft); font-size: 18px; transition: transform .2s ease; }
.dl-versions[open] summary::after { transform: rotate(45deg); }
.dl-versions ul { list-style: none; margin: 0; padding: 0 10px 6px; display: grid; gap: 6px; }
.dl-versions a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.dl-versions a:hover { background: rgba(255,255,255,.08); }
.dl-versions a b { font-weight: 500; font-size: 14.5px; }
.dl-versions a small { color: var(--soft); font-size: 13px; }
.dl-versions p { margin: 4px 18px 14px; color: var(--soft); font-size: 12.5px; }

/* ---------------------------------------------------------------- legal pages (/privacy, /terms) */
.legal { max-width: 760px; margin: 0 auto; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 120px);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.legal h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
.legal .legal-meta { margin: 16px 0 0; color: var(--soft); font-size: 15px; }
.legal .legal-lead { margin: 28px 0 0; font-size: 18px; color: #D6D6DA; }
.legal h2 { margin: 52px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 84px; }
.legal p { margin: 16px 0 0; color: #C4C4C9; }
.legal ul { margin: 14px 0 0; padding-left: 22px; color: #C4C4C9; }
.legal li { margin: 8px 0 0; padding-left: 4px; }
.legal li::marker { color: var(--dim); }
.legal a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: #fff; }
.legal code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; background: var(--inner); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.legal .legal-callout { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: #E8E8EA; }
.legal-toc { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.legal-toc a { font-size: 14px; color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: #161616; border: 1px solid var(--line); }
.legal-toc a:hover { color: #fff; border-color: var(--line-2); }
.nav-links a[aria-current="page"] { color: #fff; }
