/* IcePad landing page: white, minimal, frosted glass. The product shots (the
   PC panel and the phone) keep the app's own dark-blue look and colours, so
   they read like real screenshots on the white page. Live phone tiles come
   from ../live.css and ../cards.css (drawn as the phone app draws them). */

:root {
  --bg: #f7f8fb;
  --ink: #0b0d12;
  --ink-2: #262b38;
  --muted: #5a6274;
  --dim: #8c94a4;
  --line: rgba(15, 23, 42, .07);
  --line-2: rgba(15, 23, 42, .12);
  --blue: #2f6bff;
  --ice: #1fb4e4;
  --violet: #7c5cff;
  --accent: #2f6bff;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58));
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 0 0 1px rgba(15, 23, 42, .06);
  --lift: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -16px rgba(15, 23, 42, .2), 0 56px 110px -50px rgba(40, 70, 170, .34);
  --lift-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 30px -16px rgba(15, 23, 42, .22), 0 30px 60px -34px rgba(47, 107, 255, .28);
  --glow-hover: 0 1px 2px rgba(15, 23, 42, .05), 0 26px 50px -20px rgba(15, 23, 42, .26), 0 40px 90px -40px rgba(47, 107, 255, .5);
  --blur: blur(22px) saturate(180%);
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(47, 107, 255, .16); }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: Manrope, system-ui, sans-serif; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Background: white, with soft colour drifting behind the glass ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fff 0%, var(--bg) 60%); }
.sky::after { /* a faint dot grid at the top */
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1.2px); background-size: 26px 26px;
  mask-image: radial-gradient(70% 50% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 50% at 50% 0%, #000, transparent 75%); }
.sky i { position: absolute; border-radius: 50%; filter: blur(80px); }
.sky .a1 { width: 52vw; height: 52vw; left: -14vw; top: -20vw; background: radial-gradient(closest-side, rgba(120, 205, 255, .55), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.sky .a2 { width: 46vw; height: 46vw; right: -12vw; top: 4vh; background: radial-gradient(closest-side, rgba(170, 150, 255, .42), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.sky .a3 { width: 40vw; height: 40vw; left: 32vw; top: 52vh; background: radial-gradient(closest-side, rgba(255, 190, 220, .3), transparent); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vw, 10vh) scale(.9); } }

/* Reading progress, a thin line along the top. */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--ice), var(--blue), var(--violet)); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(46px, 6.8vw, 96px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.lead { font-size: clamp(16.5px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent);
  background: var(--glass); box-shadow: var(--glass-edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ice-text { background: linear-gradient(100deg, var(--blue) 0%, var(--ice) 32%, var(--violet) 66%, var(--blue) 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: iceShine 10s ease-in-out infinite; padding-bottom: .06em; }
@keyframes iceShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.sec-head { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.sec-head.left { justify-items: start; text-align: left; margin: 0; }
.fine { font-size: 13px; color: var(--dim); }

/* The headline comes in word by word. */
.h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(12px); animation: wordIn 1s var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Buttons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 15px/1 Manrope, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .3s ease, background-color .2s ease, color .2s ease; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ice { color: #fff; background: linear-gradient(180deg, #2a2f3c, var(--ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(15, 23, 42, .2), 0 12px 28px -12px rgba(15, 23, 42, .55); }
.btn-ice::after { /* a sweep of light on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-ice:hover::after { transform: translateX(120%); }
.btn-ice:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(15, 23, 42, .2), 0 18px 36px -12px rgba(47, 107, 255, .55); }
.btn-glass { color: var(--ink); background: var(--glass); box-shadow: var(--glass-edge), 0 8px 24px -14px rgba(15, 23, 42, .25); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-glass:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 23, 42, .1), 0 14px 30px -14px rgba(15, 23, 42, .3); }
.btn:active { transform: scale(.96); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; left: 0; right: 0; top: 14px; z-index: 50; padding: 0 16px; }
.nav { width: min(880px, 100%); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); box-shadow: var(--glass-edge), 0 16px 40px -24px rgba(15, 23, 42, .3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .3s ease, box-shadow .3s ease; }
.nav-wrap.scrolled .nav { background: rgba(255, 255, 255, .8); box-shadow: var(--glass-edge), 0 18px 44px -22px rgba(15, 23, 42, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 Manrope, system-ui, sans-serif; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, background-color .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(15, 23, 42, .045); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.nav .btn { margin-left: 8px; }
.nav-menu { display: none; width: 42px; height: 42px; margin-left: 4px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .05); cursor: pointer; place-items: center; align-content: center; gap: 5px; }
.nav-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-sheet { width: min(880px, 100%); margin: 8px auto 0; padding: 8px; border-radius: 24px; display: grid; background: rgba(255, 255, 255, .86); box-shadow: var(--glass-edge), var(--lift);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: sheetIn .4s var(--ease); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 14px 16px; border-radius: 16px; text-decoration: none; font-weight: 500; }
.nav-sheet a:hover { background: rgba(15, 23, 42, .045); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 40px; }
.hero-copy { position: relative; display: grid; justify-items: center; gap: 24px; text-align: center; }
.hero .lead { max-width: 620px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--glass); box-shadow: var(--glass-edge), 0 8px 20px -14px rgba(15, 23, 42, .25); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

/* The duo: the PC panel with the phone in front, in 3D, kept in sync. */
.duo { position: relative; margin-top: 60px; container-type: inline-size; perspective: 1800px; }
.duo.reveal { transform: translateY(70px) scale(.96); transition-duration: 1.2s, 1.4s, 1.2s; }
.duo.reveal.in { transform: none; }
.duo-tilt { position: relative; height: 56cqw; transform-style: preserve-3d; transform: rotateX(calc(var(--sx, 6deg) + var(--px, 0deg))) rotateY(var(--ry, -4deg)) scale(var(--ss, 1)); transition: transform .7s var(--ease); }
.duo::before { /* soft light under the scene */
  content: ""; position: absolute; left: 6%; right: 6%; top: 24%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 107, 255, .22), rgba(124, 92, 255, .08) 60%, transparent); filter: blur(30px); }
.duo-hint { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.duo-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(47, 107, 255, .45); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(47, 107, 255, 0); } }

/* PC window: the panel's glass shell, sidebar and pad (as in the app). */
.pcw { position: absolute; left: 0; top: 0; width: 76cqw; height: 47cqw; display: grid; grid-template-columns: 14cqw 1fr; border-radius: 2.2cqw; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #3d4fb8 0%, #4a3aa6 38%, #2a3f8f 68%, #1d2f72 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 5cqw 9cqw -4cqw rgba(30, 40, 110, .55), 0 1cqw 2cqw -1cqw rgba(15, 23, 42, .3), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateZ(-40px); }
.pcw::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 10%, rgba(140, 170, 255, .35), transparent 60%), radial-gradient(50% 60% at 10% 100%, rgba(120, 90, 220, .4), transparent 60%); pointer-events: none; }
.pcw-side { position: relative; display: flex; flex-direction: column; gap: .4cqw; padding: 1.8cqw 1.1cqw; background: rgba(255, 255, 255, .06); border-right: 1px solid rgba(255, 255, 255, .12); }
.pcw-logo { width: 2.5cqw; height: 2.5cqw; margin: 0 0 1.4cqw .6cqw; }
.pcw-nav { display: block; padding: .8cqw 1cqw; border-radius: .9cqw; font: 600 1.15cqw/1 Manrope, system-ui, sans-serif; color: rgba(255, 255, 255, .78); }
.pcw-nav.on { color: #fff; background: rgba(255, 255, 255, .18); }
.pcw-conn { margin-top: auto; display: flex; align-items: center; gap: .7cqw; font: 600 1cqw/1.2 Manrope, system-ui, sans-serif; color: rgba(255, 255, 255, .85); padding: .6cqw 1cqw; }
.pcw-conn i { width: .7cqw; height: .7cqw; border-radius: 50%; background: #4ade80; box-shadow: 0 0 .8cqw #4ade80; }
.pcw-main { position: relative; padding: 2.2cqw 2.4cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.pcw-head { display: flex; justify-content: space-between; align-items: flex-start; }
.pcw-head b { display: block; font: 700 2.3cqw/1 Manrope, system-ui, sans-serif; letter-spacing: -.02em; }
.pcw-head small { display: block; margin-top: .5cqw; font-size: 1cqw; color: rgba(255, 255, 255, .75); }
.pcw-page { padding: .7cqw 1.4cqw; border-radius: 1cqw; font: 600 1.05cqw/1 Manrope, system-ui, sans-serif; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pcw-pad { position: relative; flex: 1; border-radius: 1.8cqw; padding: 1.4cqw; background: linear-gradient(160deg, #0a0f1f, #070b18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pcw-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); align-content: center; gap: 1.1cqw; height: 100%; }
.pct { position: relative; display: grid; place-items: center; border-radius: 30%; aspect-ratio: 1; align-self: center; width: 100%;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .2); container-type: inline-size;
  transition: box-shadow .4s ease, transform .55s var(--spring); }
.pct > .pc-art { width: 62%; height: 62%; display: grid; place-items: center; }
.pct > .pc-art img { width: 100%; height: 100%; object-fit: contain; }
.pct.hit { transform: scale(1.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 .35cqw rgba(120, 180, 255, .95), 0 0 3cqw rgba(120, 180, 255, .7); }
.pct .lp-inner { position: absolute; inset: 8%; width: auto; height: auto; }
.pcw-dots { position: absolute; right: .6cqw; top: 50%; transform: translateY(-50%); display: grid; gap: .5cqw; }
.pcw-dots i { width: .5cqw; height: .5cqw; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.pcw-dots i.on { background: #fff; }
.pcw-toast { position: absolute; left: 50%; top: 2.2cqw; display: inline-flex; align-items: center; gap: .7cqw; padding: .8cqw 1.5cqw; border-radius: 999px;
  font: 600 1.2cqw/1 Manrope, system-ui, sans-serif; color: #0b0d12; background: rgba(255, 255, 255, .95); box-shadow: 0 1cqw 3cqw -1cqw rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, -1cqw) scale(.94); transition: opacity .35s ease, transform .55s var(--spring); white-space: nowrap; }
.pcw-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pcw-toast i { width: .75cqw; height: .75cqw; border-radius: 50%; background: var(--toast, #3b82f6); }

/* Sound buttons: the app's default notes in the sound's colour. */
.snd-ic { width: 62%; height: 62%; display: grid; place-items: center; }
.snd-ic svg { width: 100%; height: 100%; fill: currentColor; }
.snd-play { position: absolute; inset: 10%; display: grid; place-items: center; align-content: center; gap: 4%; border-radius: 30%; color: #8ff0ff;
  background: rgba(101, 217, 237, .16); box-shadow: inset 0 0 0 .3cqw rgba(143, 240, 255, .8); font: 800 15cqw/1 Manrope, system-ui, sans-serif; }
.snd-play svg { width: 36%; height: 36%; fill: currentColor; }
/* Phone sound buttons sit on the app's dark-blue squircle (DeckButton: item.bg or #243b64). */
.lp-inner.sound { background: #243b64; box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, .35); }
/* Macro button: only the symbol the user typed, with the quiet » mark. */
.mac { position: absolute; inset: 0; display: grid; place-items: center; }
.mac b { font: 600 34cqw/1 Manrope, system-ui, sans-serif; letter-spacing: -.03em; color: #d8f4ff; }
.mac i { position: absolute; right: 10%; bottom: 10%; width: 15%; aspect-ratio: 1; border-radius: 30%; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: rgba(222, 240, 255, .5); }
.mac i::before { content: "»"; font: 700 11cqw/1 Manrope, system-ui, sans-serif; }
.mac.run b { color: #8ff0ff; }
.mac small { position: absolute; bottom: 14%; font: 600 9.5cqw/1 Manrope, system-ui, sans-serif; color: #b7c6dd; }

/* Phone in front. */
.duo-phone { position: absolute; right: 0; bottom: 2cqw; width: 50cqw; transform: translateZ(60px); filter: drop-shadow(0 3cqw 4cqw rgba(20, 30, 80, .35)); }
.duo-phone .lp { max-width: none; }
.duo-phone .lp-slot { cursor: pointer; }
.duo-phone .lp-slot:hover .lp-ring { box-shadow: 0 0 0 .5cqw rgba(120, 180, 255, .3); }
.beam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; transform: translateZ(20px); }
.beam path { fill: none; stroke: #5b8cff; stroke-width: .4; stroke-linecap: round; stroke-dasharray: 5 200; stroke-dashoffset: 5; opacity: 0; filter: drop-shadow(0 0 1.2px #7aa2ff); }
.beam path.go { animation: beam .62s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes beam { 0% { stroke-dashoffset: 5; opacity: 0; } 10% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 56px 0 30px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  background: var(--glass); box-shadow: var(--glass-edge), 0 8px 20px -14px rgba(15, 23, 42, .3); white-space: nowrap; }
.marquee .m-app { padding-left: 11px; font-weight: 600; color: var(--ink); }
.marquee .m-app img { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story (scroll) ---------- */
.story { padding: 140px 0 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 72px; }
.story-step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .25; transition: opacity .5s ease, transform .7s var(--ease); transform: translateX(-8px); }
.story-step.on { opacity: 1; transform: none; }
.story-step h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; }
.story-step p { color: var(--muted); font-size: 17px; max-width: 440px; }
.step-n { font: 600 13px/1 Manrope, system-ui, sans-serif; color: var(--blue); letter-spacing: .08em; }
.story-stage { position: relative; }
.story-sticky { position: sticky; top: calc(50vh - 250px); padding: 4%; border-radius: 32px; background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
/* Rail beside the steps: the step on screen is lit. */
.story-step { position: relative; padding-left: 30px; }
.story-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line-2); }
.story-step::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--ice), var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease); }
.story-step.on::after { transform: none; }

/* The scene keeps its proportions at any width: every size is in cqw. */
.st-scene { position: relative; width: 100%; aspect-ratio: 1.3; container-type: inline-size; }

/* The PC panel, as in the app. */
.sc-pc { position: absolute; left: 0; top: 7cqw; width: 86cqw; display: grid; grid-template-columns: 15cqw minmax(0, 1fr); border-radius: 2.8cqw; color: #fff;
  background: linear-gradient(140deg, #3d4fb8 0%, #4a3aa6 38%, #2a3f8f 68%, #1d2f72 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 6cqw 10cqw -5cqw rgba(30, 40, 110, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform-origin: 0 0; transition: transform .9s var(--ease); }
.sc-pc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 70% at 70% 10%, rgba(140, 170, 255, .35), transparent 60%), radial-gradient(50% 60% at 10% 100%, rgba(120, 90, 220, .4), transparent 60%); }
.sc-side { position: relative; display: flex; flex-direction: column; gap: .5cqw; padding: 2.4cqw 1.3cqw; border-right: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); border-radius: 2.8cqw 0 0 2.8cqw; }
.sc-side img { width: 3.4cqw; height: 3.4cqw; margin: 0 0 1.6cqw .8cqw; }
.sc-side span { padding: 1cqw 1.2cqw; border-radius: 1.2cqw; font: 600 1.6cqw/1 Manrope, system-ui, sans-serif; color: rgba(255, 255, 255, .75); }
.sc-side span.on { color: #fff; background: rgba(255, 255, 255, .18); }
.sc-side em { margin-top: auto; display: flex; align-items: center; gap: .8cqw; padding: 0 1.2cqw; font: 600 1.25cqw/1.2 Manrope, system-ui, sans-serif; font-style: normal; color: rgba(255, 255, 255, .8); }
.sc-side em i { flex: none; width: .9cqw; height: .9cqw; border-radius: 50%; background: #4ade80; box-shadow: 0 0 1cqw #4ade80; }
.sc-main { position: relative; padding: 2.6cqw 2.8cqw; }
.sc-head b { display: block; font: 700 3cqw/1 Manrope, system-ui, sans-serif; letter-spacing: -.02em; }
.sc-head small { display: block; margin-top: .7cqw; font-size: 1.4cqw; color: rgba(255, 255, 255, .72); }
.sc-pad { margin-top: 2.2cqw; padding: 1.8cqw; border-radius: 2.4cqw; background: linear-gradient(160deg, #0a0f1f, #070b18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5cqw; }
.sc-tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 30%; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .18); transition: box-shadow .4s ease, transform .5s var(--spring); }
.sc-tile img { width: 58%; height: 58%; object-fit: contain; }
.sc-tile.plus::before { content: "+"; font: 300 4cqw/1 Manrope, system-ui, sans-serif; color: rgba(196, 224, 242, .5); transition: opacity .3s, transform .4s var(--spring); }
.sc-landed { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.3); transition: opacity .35s ease, transform .7s var(--spring); }
.sc-landed .snd-ic { width: 60%; height: 60%; }

/* The "+" menu, in the app's glass. */
.sc-menu { position: absolute; z-index: 2; left: 37cqw; top: 9cqw; width: 30cqw; padding: 1.8cqw; border-radius: 2.4cqw; display: grid; gap: 1.1cqw; color: #fff;
  background: linear-gradient(155deg, rgba(92, 112, 220, .55), rgba(64, 50, 150, .5) 55%, rgba(34, 44, 98, .62)), rgba(16, 24, 48, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 3cqw 6cqw -1.5cqw rgba(10, 20, 60, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(2cqw) scale(.92); transform-origin: 90% 20%; transition: opacity .35s ease, transform .6s var(--spring); pointer-events: none; }
.sc-menu > b { font: 700 2.2cqw/1 Manrope, system-ui, sans-serif; }
.sc-menu > small { margin-top: -.5cqw; font-size: 1.35cqw; color: rgba(222, 230, 248, .7); }
.mm-card { display: grid; gap: .3cqw; padding: .6cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mm-row { position: relative; display: flex; align-items: center; padding: 1cqw 1.3cqw; border-radius: 1.1cqw; font: 600 1.7cqw/1 Manrope, system-ui, sans-serif; transition: background-color .3s; }
.mm-row em { margin-left: auto; font-style: normal; color: rgba(222, 230, 248, .5); }

/* Pointer: clicks the empty space, then "Sounds". */
.cursor { position: absolute; z-index: 3; width: 3.6cqw; height: 3.6cqw; right: 8%; bottom: 4%; opacity: 0; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9 20z' fill='white' stroke='%23071024' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 .3cqw .6cqw rgba(0, 0, 0, .5)); transform: translate(3cqw, 3cqw); transition: opacity .3s, transform .7s var(--ease); }
.mm-row .cursor { right: 14%; bottom: -10%; }
@keyframes click { 0%, 55%, 100% { scale: 1; } 65% { scale: .82; } }

/* The phone, drawn by live.js like the app. */
.sc-phone { position: absolute; right: 0; bottom: 0; width: 60cqw; opacity: 0; transform: translate(5cqw, 4cqw) scale(.94); transform-origin: 100% 100%;
  filter: drop-shadow(0 3cqw 4cqw rgba(20, 30, 80, .35)); transition: opacity .5s ease, transform .9s var(--spring); }
.sc-phone .lp { max-width: none; animation: none; }
.sc-phone .sc-new .lp-inner { opacity: 0; transform: scale(.3); transition: opacity .35s ease, transform .7s var(--spring); }
.finger { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 .4cqw rgba(255, 255, 255, .25); opacity: 0; pointer-events: none; }

.sc-sync { position: absolute; left: 4cqw; bottom: 6cqw; display: inline-flex; align-items: center; gap: 1.3cqw; padding: 1.2cqw 2cqw; border-radius: 999px;
  font: 600 max(10px, 1.7cqw)/1 Manrope, system-ui, sans-serif; color: var(--ink-2); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--line), 0 1.5cqw 3cqw -1.5cqw rgba(15, 23, 42, .3);
  opacity: 0; transform: translateY(1.5cqw); transition: opacity .4s ease, transform .6s var(--spring); }
.sc-sync i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--blue); }
.st-toast { position: absolute; left: 43cqw; top: 0; transform: translate(-50%, 1.5cqw) scale(.95); display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.3cqw 2.2cqw; border-radius: 999px;
  background: rgba(255, 255, 255, .97); color: var(--ink); font: 600 max(11px, 1.9cqw)/1 Manrope, system-ui, sans-serif; white-space: nowrap; opacity: 0;
  transition: opacity .4s ease, transform .6s var(--spring); box-shadow: 0 0 0 1px var(--line), 0 2cqw 4cqw -1.5cqw rgba(15, 23, 42, .35); }
.st-toast i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ffd000; box-shadow: 0 0 0 .5cqw rgba(255, 208, 0, .2); }

/* Scene states, one per story step. */
.st-scene[data-scene="0"] .target { box-shadow: inset 0 0 0 2px #8ab4ff, 0 0 3cqw rgba(120, 170, 255, .6); }
.st-scene[data-scene="0"] .target .cursor { opacity: 1; transform: none; animation: click 1.6s ease .7s infinite; }
.st-scene[data-scene="1"] .target { box-shadow: inset 0 0 0 2px #8ab4ff; }
.st-scene[data-scene="1"] .sc-menu { opacity: 1; transform: none; }
.st-scene[data-scene="1"] .mm-row.pick { background: rgba(255, 255, 255, .17); transition-delay: .5s; }
.st-scene[data-scene="1"] .mm-row .cursor { opacity: 1; transform: none; transition-delay: .2s; animation: click 1.6s ease 1s infinite; }
.st-scene:is([data-scene="2"], [data-scene="3"]) .target::before { opacity: 0; transform: scale(.5); }
.st-scene:is([data-scene="2"], [data-scene="3"]) .sc-landed { opacity: 1; transform: none; }
.st-scene:is([data-scene="2"], [data-scene="3"]) .sc-phone { opacity: 1; transform: none; }
.st-scene:is([data-scene="2"], [data-scene="3"]) .sc-phone .sc-new .lp-inner { opacity: 1; transform: none; transition-delay: .55s; }
.st-scene:is([data-scene="2"], [data-scene="3"]) .sc-pc { transform: scale(.97); }
.st-scene:is([data-scene="2"], [data-scene="3"]) .sc-sync { opacity: 1; transform: none; transition-delay: .3s; }
.st-scene[data-scene="2"] .sc-sync i { animation: ping 1.4s ease-out infinite; }
.st-scene[data-scene="3"] .sc-sync i { background: #22c55e; }
.st-scene[data-scene="3"] .finger { animation: finger 2.6s ease infinite; }
@keyframes finger { 0% { opacity: 0; transform: scale(1.6); } 15% { opacity: .85; transform: scale(1); } 25% { opacity: .85; transform: scale(.8); } 40%, 100% { opacity: 0; transform: scale(.8); } }
.st-scene[data-scene="3"] .sc-phone .sc-new .lp-btn { animation: tapBtn 2.6s ease infinite; }
@keyframes tapBtn { 0%, 18% { transform: scale(1); } 25% { transform: scale(.92); } 38%, 100% { transform: scale(1); } }
.st-scene[data-scene="3"] .st-toast { opacity: 1; transform: translate(-50%, 0); }
.st-scene[data-scene="3"] .target { animation: hitPulse 2.6s ease infinite; }
@keyframes hitPulse { 0%, 24% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); } 32% { transform: scale(1.1); box-shadow: inset 0 0 0 2px #8ab4ff, 0 0 3cqw rgba(120, 170, 255, .8); } 55%, 100% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); } }

/* ---------- Features bento: frosted glass cards ---------- */
.features { padding: 150px 0 0; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.card { --mx: 50%; --my: 50%; position: relative; grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .7s var(--spring), box-shadow .5s ease; }
.card::before { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(47, 107, 255, .09), transparent 65%); }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 23, 42, .08), var(--glow-hover); }
.card.big { grid-column: span 4; grid-row: span 2; }
.card.half { grid-column: span 3; }
.card-copy { padding: 22px 26px 28px; display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 21px; letter-spacing: -.025em; }
.card p { font-size: 15px; color: var(--muted); }
.card .tag { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b45309; background: rgba(251, 191, 36, .16); box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .2); }
.viz { position: relative; height: 230px; margin: 10px 10px 0; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(240, 244, 251, .9), rgba(232, 238, 248, .7)); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05); }
.viz.phone-bg { background: linear-gradient(180deg, #01060f, #031020, #061833); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .3); }
.card.big .viz { height: auto; flex: 1; min-height: 340px; }
.viz .pc-card { position: absolute; inset: 0; }
.card.row { grid-column: span 6; flex-direction: row; align-items: center; }
.card.row .viz { flex: 1.25; height: 220px; margin: 10px; }
.card.row .card-copy { flex: 1; padding: 22px 34px 22px 18px; }

/* PC-panel scenes (sounds, macros): the app's own background and glass. */
.viz.panel-bg { color: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .25);
  background: radial-gradient(60% 80% at 85% 0%, rgba(140, 170, 255, .35), transparent 60%), radial-gradient(55% 70% at 0% 100%, rgba(120, 90, 220, .45), transparent 60%), linear-gradient(140deg, #3d4fb8 0%, #4a3aa6 38%, #2a3f8f 68%, #1d2f72 100%); }

/* Sounds card: the "New sound" dialog (Trim), then the sound buttons. */
.sounds-viz { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px; place-items: stretch; }
.tr-dialog { padding: 18px 20px 20px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(155deg, rgba(92, 112, 220, .30), rgba(64, 50, 150, .24) 55%, rgba(34, 44, 98, .30)), rgba(16, 24, 48, .64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 50px -24px rgba(5, 10, 40, .8); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tr-title b { display: block; font: 700 17px/1.1 Manrope, system-ui, sans-serif; letter-spacing: -.01em; }
.tr-title small { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: rgba(222, 230, 248, .65); }
.tr-title em { padding: 1px 7px; border-radius: 999px; font-style: normal; background: rgba(255, 255, 255, .08); color: rgba(222, 230, 248, .8); font-variant-numeric: tabular-nums; }
.tr-steps { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-steps li { display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgba(222, 230, 248, .55); }
.tr-steps i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font: 700 11px/1 Manrope, system-ui, sans-serif; font-style: normal; background: rgba(255, 255, 255, .08); }
.tr-steps li.on { color: #fff; background: rgba(134, 217, 241, .1); }
.tr-steps li.on i { background: #86d9f1; color: #061024; }
.sv-wave { position: relative; height: 128px; margin-top: 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12);
  background: radial-gradient(60% 90% at 12% 0%, rgba(124, 156, 255, .2), transparent 70%), radial-gradient(55% 90% at 90% 100%, rgba(177, 140, 255, .16), transparent 70%), rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.sv-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
/* Outside the selection bubble is dimmed: the bubble is a hole in a dim layer. */
.sv-dim { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.sv-sel { position: absolute; top: 6px; bottom: 6px; left: var(--l, 20%); width: var(--w, 30%); border-radius: 13px; border: 1px solid rgba(255, 255, 255, .38);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); box-shadow: 0 0 0 800px rgba(4, 9, 20, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: left .9s var(--ease), width .9s var(--ease); }
.sv-sel::before, .sv-sel::after { content: ""; position: absolute; top: 50%; width: 10px; height: 44px; margin-top: -22px; border-radius: 99px; background: linear-gradient(180deg, #fff, #dfe8f6); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.sv-sel::before { left: -5px; } .sv-sel::after { right: -5px; }
.sv-len { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); padding: 2px 9px; border-radius: 99px; white-space: nowrap; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(20, 30, 52, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.sv-head { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; left: var(--p, 20%); border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); opacity: 0; transition: opacity .3s; }
.sv-head::after { content: ""; position: absolute; top: -9px; left: -6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.sv-head.on { opacity: 1; }
/* Sound buttons as the phone draws them: ring, then the dark-blue squircle. */
.sv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 104px)); justify-content: center; gap: 16px; }
.sv-tile { aspect-ratio: 1; padding: 12%; border-radius: 35%; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 24px -12px rgba(5, 10, 40, .6); transition: transform .45s var(--spring); }
.sv-tile.tap { transform: scale(.92); }
.sv-in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; border-radius: 32%; background: #243b64; container-type: inline-size; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.sv-out { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sv-out span { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(222, 230, 248, .6);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: color .3s, box-shadow .3s, background-color .3s; }
.sv-out i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; }
.sv-out span.on { color: #8ff0ff; background: rgba(101, 217, 237, .12); box-shadow: inset 0 0 0 1px rgba(143, 240, 255, .45); }
.sv-out span.on i { opacity: 1; animation: pingCyan 1.2s ease-out infinite; }
@keyframes pingCyan { from { box-shadow: 0 0 0 0 rgba(143, 240, 255, .6); } to { box-shadow: 0 0 0 9px rgba(143, 240, 255, 0); } }

/* Macro card: the symbol button and its steps, on the panel. */
.macro-viz { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 0 22px; }
.mx-tile { position: relative; flex: none; width: 96px; height: 96px; padding: 11px; border-radius: 35%; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 28px -12px rgba(5, 10, 40, .7); transition: transform .45s var(--spring); }
.mx-tile.tap { transform: scale(.92); }
.mx-in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; border-radius: 32%; background: linear-gradient(160deg, #0d1a33, #061224); container-type: inline-size; }
.mx-sym { font: 600 34cqw/1 Manrope, system-ui, sans-serif; letter-spacing: -.03em; color: #d8f4ff; }
.mx-mark { position: absolute; right: 8%; bottom: 8%; width: 17%; aspect-ratio: 1; border-radius: 30%; background: rgba(255, 255, 255, .07); }
.mx-mark::before { content: "»"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 12cqw/1 Manrope, system-ui, sans-serif; color: rgba(222, 240, 255, .55); }
.mx-run { position: absolute; bottom: 10%; font: 600 11cqw/1 Manrope, system-ui, sans-serif; color: #8ff0ff; }
.mx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.mx-steps::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 2px; background: rgba(255, 255, 255, .14); }
.mx-steps li { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 0; font-size: 12.5px; transition: opacity .35s; opacity: .5; }
.mx-steps li.on { opacity: 1; }
.mx-steps li > i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 Manrope, system-ui, sans-serif; font-style: normal; color: rgba(222, 230, 248, .8);
  background: #26306e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .45s var(--spring), background-color .3s, color .3s, box-shadow .3s; }
.mx-steps li.on > i { transform: scale(1.12); color: #061024; background: #86d9f1; box-shadow: 0 0 0 4px rgba(134, 217, 241, .18), 0 0 14px rgba(134, 217, 241, .6); }
.mx-kind { color: rgba(222, 230, 248, .55); font-weight: 600; }
.keys { display: inline-flex; gap: 3px; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .22); border-bottom-width: 2px; font: 700 10px/1 Manrope, system-ui, sans-serif; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); }

/* ---------- Showcases: words and features beside the live phone ---------- */
.showcase { padding: 150px 0 0; }
.show.light { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto 1fr; grid-template-areas: "head stage" "list stage";
  column-gap: clamp(32px, 4.5vw, 60px); row-gap: 30px; justify-items: stretch; align-items: start; padding: clamp(28px, 4.5vw, 56px); border-radius: 36px;
  background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.show.light::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 60% at var(--tx, 0%) 0%, var(--tint), transparent 70%); }
.show-obs.light { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); grid-template-areas: "stage head" "stage list"; --tx: 100%; }
.show-cs2 { --tint: rgba(255, 200, 150, .35); --accent: #dd6b12;
  --stage: radial-gradient(70% 55% at 50% 0%, rgba(255, 190, 120, .55), transparent 70%), radial-gradient(60% 60% at 100% 100%, rgba(130, 185, 255, .35), transparent 70%), linear-gradient(180deg, #fff7ef, #eef3fb); }
.show-obs { --tint: rgba(140, 175, 255, .35); --accent: #2f6bff;
  --stage: radial-gradient(70% 55% at 50% 0%, rgba(120, 165, 255, .55), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(175, 150, 255, .4), transparent 70%), linear-gradient(180deg, #f3f6ff, #f1eefc); }
.show .show-head { grid-area: head; justify-items: start; text-align: left; max-width: 520px; }
.show .eyebrow { color: var(--accent); }
.show .h2 { margin-top: 18px; text-align: left; font-size: clamp(34px, 4.4vw, 56px); }
.show .lead { margin: 18px 0 0; text-align: left; font-size: 17.5px; }
.show-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.show-chips span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07), 0 6px 14px -10px rgba(15, 23, 42, .3); }
.show-chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* The stage: a lit, tinted pane where the phone floats, the caption above it. */
.show .lv-stage { grid-area: stage; align-self: center; min-height: 500px; align-content: center; gap: 34px; margin: 0; padding: clamp(48px, 5vw, 72px) clamp(14px, 1.6vw, 22px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--stage); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 0 #fff, 0 30px 60px -36px rgba(15, 23, 42, .35); }
.show .lv-stage::before { left: 6%; right: 6%; top: 34%; bottom: 6%; filter: blur(24px); }
.show .lv-stage::after { /* dot grid behind the phone */
  content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(15, 23, 42, .1) 1px, transparent 1.3px); background-size: 20px 20px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%); }
.show .lv-stage .lp-body { box-shadow: 0 0 0 .22cqw rgba(255, 255, 255, .5), inset 0 0 0 .25cqw #1b2130, 0 5cqw 9cqw -3cqw rgba(15, 25, 70, .55), 0 1.4cqw 2.4cqw -1.4cqw rgba(15, 25, 70, .45); }
.show.light .lv-caption { height: 40px; padding: 0 18px 0 15px; font-size: 13.5px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 14px 30px -14px rgba(15, 23, 42, .35); }

/* Features: a numbered list; the one the phone shows is lit, its rail fills up. */
.show .feat-list { grid-area: list; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; }
.show.light .feat-list li { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto; gap: 0 8px; padding: 16px 18px 17px 18px; border-radius: 18px; transform: none;
  background: transparent; box-shadow: none; transition: background-color .5s ease, box-shadow .5s ease; }
.show.light .feat-list li.on { background: rgba(255, 255, 255, .95); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), var(--lift-sm); }
.feat-list em { padding-top: 2px; font: 600 12px/1.5 Manrope, system-ui, sans-serif; font-style: normal; letter-spacing: .04em; color: var(--dim); transition: color .4s; }
.feat-list li.on em { color: var(--accent); }
.feat-list b { color: var(--ink); }
.show.light .feat-list li span { color: var(--muted); }
.show.light .feat-list li:not(.on) { opacity: .62; }
.show.light .feat-list li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2.5px; border-radius: 2px; background: rgba(15, 23, 42, .07); opacity: 0; transition: opacity .4s; }
.show.light .feat-list li.on::before { opacity: 1; }
.show.light .feat-list li::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 2.5px; height: auto; border-radius: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.show.light .feat-list li.on::after { opacity: 1; animation-name: featLineY; }
@keyframes featLineY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Privacy ---------- */
.private { padding: 150px 0 0; }
.private-card { position: relative; overflow: hidden; display: grid; gap: 40px; padding: clamp(32px, 5vw, 64px); border-radius: 36px; isolation: isolate;
  background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.private-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 70% at 0% 0%, rgba(120, 205, 255, .25), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(170, 150, 255, .2), transparent 70%); }
.private-copy { display: grid; gap: 18px; justify-items: start; max-width: 720px; }
.private-copy .h2 { font-size: clamp(30px, 4vw, 52px); }
.private-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.private-list li { position: relative; display: grid; align-content: start; gap: 6px; padding: 24px 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 23, 42, .06), var(--lift-sm);
  transition: transform .6s var(--spring), box-shadow .4s; }
.private-list li::before { content: ""; width: 22px; height: 3px; margin-bottom: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--ice), var(--blue)); }
.private-list li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(47, 107, 255, .14), var(--glow-hover); }
.private-list b { font-size: 16px; }
.private-list span { font-size: 14px; color: var(--muted); }

/* ---------- How ---------- */
.how { padding: 150px 0 0; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 30px; border-radius: 26px; display: grid; gap: 12px; background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .7s var(--spring), box-shadow .5s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--glass-edge), var(--glow-hover); }
.step .step-n { font-size: 44px; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(47, 107, 255, .45); margin-bottom: 8px; }
.step h3 { font-size: 22px; letter-spacing: -.025em; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: 150px 0 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 20px; background: var(--glass); box-shadow: var(--glass-edge), 0 10px 26px -18px rgba(15, 23, 42, .25); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: box-shadow .4s, transform .5s var(--spring); }
.faq-list details:hover { box-shadow: var(--glass-edge), 0 16px 34px -18px rgba(15, 23, 42, .3); }
.faq-list details[open] { box-shadow: var(--glass-edge), var(--glow-hover); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font: 400 20px/1 Manrope, system-ui, sans-serif; color: var(--ink-2);
  background: rgba(15, 23, 42, .05); transition: transform .5s var(--spring), background-color .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: #fff; background: var(--ink); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); font-size: 15px; }
.faq-list details[open] p { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }

/* ---------- Final call ---------- */
.final { padding: 150px 0 0; }
.final-card { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 18px; padding: clamp(64px, 9vw, 120px) 24px; border-radius: 40px; text-align: center;
  background: var(--glass); box-shadow: var(--glass-edge), var(--lift); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.final-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% -10%, rgba(120, 205, 255, .4), transparent 70%), radial-gradient(40% 60% at 100% 110%, rgba(170, 150, 255, .35), transparent 70%), radial-gradient(40% 60% at 0% 110%, rgba(255, 190, 220, .3), transparent 70%); }
.final-card .lead { max-width: 520px; }
.final-logo { margin-bottom: 4px; filter: drop-shadow(0 14px 22px rgba(15, 23, 42, .3)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.final-card .cta-row { margin-top: 10px; }
.cubes i { position: absolute; z-index: -1; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 28%; transform: rotate(var(--r));
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(220, 232, 255, .4)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 20px 40px -18px rgba(30, 50, 120, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: float 8s ease-in-out infinite; animation-delay: var(--d); }
.cubes i::after { content: ""; position: absolute; top: 14%; left: 16%; width: 32%; height: 14%; border-radius: 99px; background: rgba(255, 255, 255, .9); transform: rotate(-14deg); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-18px) rotate(calc(var(--r) + 8deg)); } }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--ink); color: #fff; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 26px -14px rgba(15, 23, 42, .6); transition: transform .45s var(--spring); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store span { display: grid; font-weight: 700; font-size: 15px; line-height: 1.1; }
.store small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .65); }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: 140px; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .2)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 56px 0 28px; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 14.5px; max-width: 280px; }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot nav b { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot nav a { justify-self: start; color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.foot nav a:hover { color: var(--blue); }
.foot-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.foot-mark { margin: 0 0 -.18em; text-align: center; font: 700 clamp(90px, 21vw, 300px)/.9 Manrope, system-ui, sans-serif; letter-spacing: -.05em; pointer-events: none; user-select: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, .09), rgba(15, 23, 42, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav-menu { display: grid; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* The scene sits above the steps and plays them in turn. */
  .story-stage { order: -1; margin-bottom: 28px; }
  .story-sticky { position: relative; top: 0; padding: 16px; border-radius: 26px; }
  .story-steps { display: grid; gap: 22px; }
  .story-step { min-height: 0; opacity: .45; transform: none; padding-left: 18px; cursor: pointer; }
  .card { grid-column: span 3; }
  .card.big { grid-column: span 6; grid-row: auto; }
  .private-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .show.light, .show-obs.light { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "stage" "list"; }
  .show .show-head { max-width: 640px; }
  .show .feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show .lv-stage { min-height: 0; }
}
@media (max-width: 560px) {
  .show.light { padding: 26px 12px 14px; border-radius: 28px; }
  .show .show-head { padding: 0 10px; }
  .show .lv-stage { min-height: 0; padding: 40px 8px 32px; border-radius: 22px; }
  .show .feat-list { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .show.light .feat-list li { grid-template-columns: 30px minmax(0, 1fr); padding: 14px 14px 15px 16px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 128px; }
  .h1 { font-size: clamp(40px, 11.6vw, 56px); }
  .h1 br { display: none; }
  .duo-tilt { height: 92cqw; }
  .pcw { width: 100cqw; height: 62cqw; }
  .duo-phone { width: 74cqw; right: -2cqw; bottom: 0; }
  .card, .card.big, .card.half { grid-column: span 6; }
  .card.row { flex-direction: column; align-items: stretch; }
  .card.row .viz { flex: none; margin: 10px 10px 0; }
  .card.row .card-copy { padding: 22px 26px 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .private-list { grid-template-columns: minmax(0, 1fr); }
  .sv-tiles { gap: 10px; }
  .sounds-viz { padding: 14px; gap: 16px; }
  .tr-dialog { padding: 14px; border-radius: 18px; }
  .tr-steps li { padding-right: 4px; font-size: 0; gap: 0; }
  .sv-wave { height: 104px; }
  .macro-viz .mx-tile { width: 84px; height: 84px; }
  .macro-viz { flex-direction: column; padding: 18px; gap: 12px; }
  .viz.macro-viz { height: 280px; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

/* Headings break into lines of even length (no word left alone). */
.h1, .h2, .card h3, .story-step h3 { text-wrap: balance; }

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .h1 .w { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}
