/* Kadraj — black, sharp, quiet. SF Pro on Apple devices, one REC red, real app screens that slide in as you scroll. */
:root {
  --bg: #000;
  --tile: #131315;
  --tile-2: #1c1c1f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  /* The app icon's gradient */
  --i1: #3a55f0; --i2: #8a2fd0; --i3: #d6246e; --i4: #ff8a3c;
  --icon-grad: linear-gradient(125deg, var(--i1), var(--i2) 38%, var(--i3) 68%, var(--i4));
  --rec: #ff453a;
  --link: #2997ff;
  --green: #30d158;
  --max: 1120px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { background: rgba(41, 151, 255, .35); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
code { font-family: var(--mono); font-size: .88em; color: var(--ink); }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); vertical-align: 1px; }
.muted { color: var(--ink-3); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); white-space: nowrap;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); color: #000; border-color: var(--ink); }
.btn.primary:hover { background: #fff; transform: scale(1.03); }
.btn.small { height: 32px; padding: 0 15px; font-size: 13px; }
.link { color: var(--link); font-size: 17px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .chev { display: inline-block; transition: transform .2s; }
.link:hover .chev { transform: translateX(3px); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 52px; }
.nav.scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.nav .brand + .btn { margin-left: auto; }
.nav-links a:hover { color: var(--ink); }

/* Headlines */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); margin: 0 0 14px; letter-spacing: -0.01em; }
.eyebrow .rec-dot { margin-right: 4px; }
.c-violet { color: #b39dff; } .c-teal { color: #5ee7d4; } .c-yellow { color: #ffd65c; } .c-green { color: #4fe08a; }
.c-orange { color: #ff9f5a; } .c-blue { color: #6cb2ff; }
.c-ai { background: linear-gradient(90deg, #7aa2ff, #c58bff 50%, #ff7ab8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: clamp(40px, 6vw, 72px); }
.h2 .dim, h1 .dim { color: var(--ink-3); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 640px; margin: 22px auto 0; color: var(--ink-2); }
.lead code { font-size: .85em; }

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: clamp(92px, 13vh, 128px) 0 clamp(440px, 60vh, 600px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero::before {
  /* light from above, in the icon's colours */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 46% at 50% -6%, rgba(58, 85, 240, .34), transparent 70%),
              radial-gradient(36% 34% at 16% 4%, rgba(138, 47, 208, .22), transparent 70%),
              radial-gradient(36% 34% at 86% 6%, rgba(214, 36, 110, .16), transparent 70%);
}
/* A slowly turning aurora behind the 3D object (hero3d.js sets --oy / --os to the object's centre and size) */
.aurora { position: absolute; left: 50%; top: var(--oy, 72%); width: var(--os, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.aurora::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .55; filter: blur(80px);
  background: conic-gradient(from 0deg, var(--i1), var(--i2), var(--i3), var(--i4), var(--i3), var(--i2), var(--i1));
  animation: turn 28s linear infinite;
}
.aurora::after {
  /* the pool of light the object floats over */
  content: ""; position: absolute; left: 10%; right: 10%; top: 78%; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 36, 110, .35), rgba(138, 47, 208, .12) 60%, transparent); filter: blur(18px);
}
@keyframes turn { to { transform: rotate(1turn); } }
.grad {
  background: linear-gradient(90deg, #6b86ff, #a855f7, #ec4899, #ff9a4d, #ec4899, #a855f7, #6b86ff) 0 50% / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 10s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 50%; } }
.hero-copy { position: relative; z-index: 2; width: min(1100px, calc(100% - 44px)); }
.hero h1 { font-size: clamp(44px, min(7.2vw, 10.5vh), 96px); line-height: 1; letter-spacing: -0.045em; }
.hero .sub { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; max-width: 640px; margin: 22px auto 0; }
.cta { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin: 20px 0 0; font-size: 13px; color: var(--ink-3); }

/* The 3D object (assets/js/hero3d.js) */
.obj-wrap { position: absolute; inset: 0; z-index: 1; }
.obj-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.4s var(--ease); }
.has-3d .obj-wrap canvas { opacity: 1; }
.obj-wrap canvas.grabbing { cursor: grabbing; }
.obj-fallback { display: none; position: absolute; left: 50%; bottom: 60px; width: min(52vh, 70vw); height: auto; transform: translateX(-50%); pointer-events: none; }
.no-webgl .obj-fallback { display: block; }
.drag-hint { position: absolute; left: 0; top: 0; transform: translate(-50%, 0); white-space: nowrap; font-size: 12px; color: var(--ink-3); pointer-events: none; opacity: 0; transition: opacity .8s; }
.has-3d .drag-hint { opacity: 1; }

/* ---------- SECTIONS ---------- */
section { position: relative; padding: 150px 0; }
/* Soft light fields in the icon's colours behind each chapter */
.glow { isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: var(--gt, 120px);
  width: min(1500px, 150vw); height: var(--gh, 1100px); transform: translateX(-50%); background: var(--gbg);
}
.g-product { --gt: 300px; --gh: 1300px; --gbg: radial-gradient(38% 34% at 30% 45%, rgba(58, 85, 240, .40), transparent 70%), radial-gradient(34% 32% at 72% 52%, rgba(214, 36, 110, .32), transparent 70%), radial-gradient(30% 26% at 52% 80%, rgba(255, 138, 60, .2), transparent 70%); }
.g-zoom { --gt: 120px; --gbg: radial-gradient(36% 32% at 34% 46%, rgba(58, 85, 240, .38), transparent 70%), radial-gradient(28% 30% at 74% 44%, rgba(138, 47, 208, .32), transparent 70%); }
.g-sound { --gt: 120px; --gbg: radial-gradient(34% 32% at 66% 46%, rgba(138, 47, 208, .36), transparent 70%), radial-gradient(28% 30% at 28% 48%, rgba(214, 36, 110, .26), transparent 70%); }
.g-captions { --gt: 120px; --gbg: radial-gradient(34% 32% at 36% 46%, rgba(214, 36, 110, .32), transparent 70%), radial-gradient(28% 28% at 74% 48%, rgba(255, 138, 60, .24), transparent 70%); }
.g-shield { --gt: 120px; --gbg: radial-gradient(40% 32% at 50% 50%, rgba(58, 85, 240, .32), transparent 70%), radial-gradient(26% 26% at 72% 58%, rgba(138, 47, 208, .24), transparent 70%); }
.g-ai { --gt: 120px; --gbg: radial-gradient(34% 32% at 34% 46%, rgba(58, 85, 240, .32), transparent 70%), radial-gradient(34% 34% at 62% 46%, rgba(138, 47, 208, .36), transparent 70%), radial-gradient(26% 26% at 80% 60%, rgba(214, 36, 110, .26), transparent 70%); }
.g-finish { --gt: 200px; --gh: 1500px; --gbg: radial-gradient(34% 22% at 50% 18%, rgba(58, 85, 240, .18), transparent 70%), radial-gradient(30% 24% at 24% 62%, rgba(138, 47, 208, .14), transparent 70%), radial-gradient(30% 24% at 78% 70%, rgba(255, 138, 60, .1), transparent 70%); }
.g-privacy { --gt: 0px; --gh: 800px; --gbg: radial-gradient(40% 40% at 50% 40%, rgba(58, 85, 240, .14), transparent 70%); }
.g-pricing { --gt: 160px; --gh: 900px; --gbg: radial-gradient(26% 36% at 64% 56%, rgba(214, 36, 110, .32), transparent 70%), radial-gradient(22% 30% at 76% 70%, rgba(255, 138, 60, .22), transparent 70%), radial-gradient(26% 32% at 36% 56%, rgba(58, 85, 240, .2), transparent 70%); }
.chapter + .chapter { padding-top: 40px; }

/* Product: the editor tilts up flat as it scrolls in (--k from site.js) */
.product { padding-top: 130px; }
.product-stage { position: relative; width: min(1280px, calc(100% - 44px)); margin: 70px auto 0; perspective: 2200px; --k: 1; }
.product-glow {
  position: absolute; inset: 8% 6% -8%; z-index: 0; filter: blur(70px); opacity: calc(var(--k) * .7);
  background: radial-gradient(50% 50% at 28% 40%, var(--i1), transparent 70%), radial-gradient(46% 46% at 55% 55%, var(--i2), transparent 70%),
              radial-gradient(50% 50% at 76% 58%, var(--i3), transparent 70%), radial-gradient(36% 36% at 60% 92%, var(--i4), transparent 70%);
}
.product-shot {
  position: relative; z-index: 1; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--k)) * 24deg)) scale(calc(.88 + var(--k) * .12)) translateY(calc((1 - var(--k)) * 50px));
  opacity: calc(.3 + var(--k) * .7);
}
.timeline-shot { margin: 28px auto 0; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }

/* Tiles and app-screen cards */
.tile { position: relative; background: var(--tile); border: 1px solid var(--line); border-radius: 28px; padding: 34px; overflow: hidden; }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 10px; }
.tile p { font-size: 16px; margin: 0; }
.panel-card { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); background: #111; }
.panel-card img { width: 100%; height: auto; }
.duo { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 70px; }
.duo.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }

/* Auto zoom demo: a recording replayed in the "player", with the zoom panel beside it */
.demo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: center; margin-top: 70px; }
.player { background: var(--tile); border: 1px solid var(--line); border-radius: 28px; padding: 16px 16px 18px; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.frame { position: absolute; inset: 0; background: #111; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 15% 20%, #ff5b6e 0%, transparent 60%),
    radial-gradient(55% 75% at 85% 15%, #6c7bff 0%, transparent 60%),
    radial-gradient(60% 80% at 80% 90%, #ffb45c 0%, transparent 60%),
    radial-gradient(60% 80% at 10% 95%, #9d5cff 0%, transparent 60%),
    #3b2b6d;
}
.bg-mesh.rounded { border-radius: 12px; }
.win { position: absolute; left: 14%; top: 10%; width: 72%; height: 80%; border-radius: 1.4% / 2.2%; overflow: hidden; box-shadow: 0 30px 60px rgba(10, 5, 30, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.win img { width: 100%; height: 100%; object-fit: cover; }
.cursor { position: absolute; width: 2.3%; left: 0; top: 0; transform: translate(-12%, -6%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); z-index: 3; }
.ripple { position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); transform: translate(-50%, -50%) scale(0); opacity: 0; z-index: 2; }
.caption {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-family: var(--display); font-weight: 650; font-size: clamp(8px, 1.3vw, 16px); letter-spacing: -0.01em;
  padding: .45em .9em; border-radius: .6em; background: rgba(8, 8, 10, .78); color: rgba(255, 255, 255, .45);
}
.caption b { color: #fff; font-weight: 650; }
.bubble {
  position: absolute; right: 4%; bottom: 6%; width: 11.5%; aspect-ratio: 1; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 50% 38%, #e7b99a 0 15%, transparent 16%),
              radial-gradient(ellipse 34% 24% at 50% 92%, #2c2f3a 0 99%, transparent 100%),
              radial-gradient(circle at 30% 25%, #4b5dff, #1d1660 70%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 18px 40px rgba(0, 0, 0, .5);
}
.bubble::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 2px solid var(--rec); transform: scale(var(--lvl, 1)); opacity: .75; }
.player-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.player-bar b { color: var(--ink); font-weight: 600; }
.player-bar .rec-dot { width: 7px; height: 7px; margin-right: 4px; }
.lanes { display: grid; gap: 6px; padding: 0 4px; }
.lane { position: relative; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.lane .seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.lane.rec .seg { left: 0; right: 0; background: linear-gradient(90deg, #26357f, #3a4db3); }
.lane.zoom .seg { background: #6f52ff; }
.lane.audio .seg { left: 0; right: 0; background: repeating-linear-gradient(90deg, #2f9a6a 0 2px, transparent 2px 4px); opacity: .8; }
.playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); left: 0; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }

/* Sound: voice and ducked music waveforms */
.wave-tile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wave-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink); font-weight: 600; }
.wave-head .muted { font-weight: 400; }
.pill-ok { font-weight: 500; font-size: 12.5px; color: #5ee7d4; background: rgba(94, 231, 212, .1); border-radius: 999px; padding: 3px 10px; }
.wave { height: 96px; display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.wave i { flex: 1; min-width: 1px; height: 100%; border-radius: 2px; background: linear-gradient(#5ee7d4, #2f9a8a); transform: scaleY(var(--h, .3)); animation: bar 1.1s ease-in-out infinite alternate; }
.wave.music { height: 44px; }
.wave.music i { background: linear-gradient(#b39dff, #6f52ff); animation-duration: 1.6s; }
@keyframes bar { from { transform: scaleY(calc(var(--h, .3) * .35)); } to { transform: scaleY(var(--h, .3)); } }
.genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.genres span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--tile-2); border: 1px solid var(--line); color: var(--ink-2); }
.genres span:first-child { color: var(--ink); border-color: var(--ink-3); }

/* Captions: karaoke highlight */
.karaoke-tile { min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
.karaoke-tile::before { content: ""; position: absolute; inset: 0; background: url("../img/app/editor.jpg") center 30% / 140% auto; opacity: .2; filter: blur(14px); }
.karaoke {
  position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.03em;
  line-height: 1.25; text-align: center; background: rgba(0, 0, 0, .78); border-radius: 18px; padding: .45em .8em; color: rgba(255, 255, 255, .38);
}
.karaoke span { transition: color .15s; border-radius: .25em; padding: 0 .08em; }
.karaoke span.on { color: #fff; }
.karaoke span.now { color: #000; background: var(--green); }
.karaoke-meta { position: relative; display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Secret Shield: a scan line passes and the secrets blur */
.shield-tile { margin-top: 70px; padding: 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.code-bar span:first-of-type { margin-left: 10px; }
.scan-state { margin-left: auto; color: #4fe08a; font-weight: 500; }
.code { margin: 0; padding: 26px 28px 30px; font-family: var(--mono); font-size: clamp(12px, 1.5vw, 16px); line-height: 2; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.code .k { color: #9cdcfe; }
.code .s { color: #ffd65c; transition: filter .5s var(--ease), background .5s; border-radius: 6px; }
.code .s.hidden { filter: blur(7px); background: rgba(255, 214, 92, .12); }
.scanline {
  position: absolute; left: 0; right: 0; top: 48px; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #4fe08a 20%, #4fe08a 80%, transparent); box-shadow: 0 0 24px 4px rgba(79, 224, 138, .45);
}
.scanline.run { opacity: 1; animation: scan 2.4s var(--ease) forwards; }
@keyframes scan { from { top: 48px; } to { top: calc(100% - 4px); } }

/* AI: chat */
.chat-tile { display: flex; flex-direction: column; min-height: 460px; padding: 26px; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--tile-2); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.tool { align-self: flex-start; font-family: var(--mono); font-size: 12.5px; color: #4fe08a; background: rgba(79, 224, 138, .08); border-radius: 10px; padding: 7px 11px; }
.msg.meta { align-self: center; font-size: 12px; color: var(--ink-3); padding: 2px; }
.chat-input { display: flex; justify-content: space-between; margin-top: 18px; padding: 13px 16px; border-radius: 14px; background: var(--tile-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* Five layers (scroll-driven, site.js sets --p) */
.explode { padding: 0; height: 320vh; }
.explode .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.explode .copy { padding-left: max(22px, calc((100vw - var(--max)) / 2)); padding-right: 20px; padding-top: 40px; z-index: 2; }
.explode .h2 { font-size: clamp(38px, 4.6vw, 64px); }
.explode .lead { margin: 18px 0 0; font-size: 18px; }
.explode .stage2 { position: relative; height: 100%; perspective: 1800px; }
.explode .stage2::before {
  content: ""; position: absolute; left: 46%; top: 50%; width: min(900px, 70vw); aspect-ratio: 1.4; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(40% 40% at 40% 45%, rgba(214, 36, 110, .22), transparent 70%), radial-gradient(40% 40% at 62% 60%, rgba(255, 138, 60, .16), transparent 70%),
              radial-gradient(40% 40% at 50% 40%, rgba(138, 47, 208, .18), transparent 70%);
}
.rig2 {
  position: absolute; left: 46%; top: 50%; width: min(760px, 52vw); aspect-ratio: 16 / 9; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(var(--p, 0) * 56deg)) rotateZ(calc(var(--p, 0) * -34deg)) scale(calc(1 - var(--p, 0) * .18));
}
.ply { position: absolute; inset: 0; border-radius: 12px; transform: translateZ(calc(var(--p, 0) * var(--z))); }
.ply[data-z="0"] { --z: 0px; } .ply[data-z="90"] { --z: 90px; } .ply[data-z="170"] { --z: 170px; }
.ply[data-z="240"] { --z: 240px; } .ply[data-z="305"] { --z: 305px; }
.ply .tag { position: absolute; left: 0; top: -30px; font-size: 13px; font-weight: 600; color: var(--ink-2); opacity: calc(var(--p, 0) * 1.6 - .2); white-space: nowrap; }
.ply.p-bg { overflow: hidden; }
.ply.p-glass { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .025); }
.ply.p-cursor .cursor { left: 44.6%; top: 48.7%; width: 2.6%; }
.ply.p-cursor .ripple { left: 44.6%; top: 48.7%; opacity: .8; transform: translate(-50%, -50%) scale(1); }
.layer-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; }
.layer-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .3s; }
.layer-list li b { display: block; color: inherit; font-weight: 600; font-size: 16px; }
.layer-list li span { font-size: 14.5px; }
.layer-list li .n { font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.layer-list li.on { color: var(--ink); }
.layer-list li.on .n { color: var(--rec); }
.etym { margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.etym b { color: var(--ink-2); font-weight: 600; }

/* Record to export */
.toolbar-shot { width: min(900px, 100%); height: auto; margin: 64px auto 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); grid-auto-flow: dense; gap: 20px; margin-top: 56px; }
.b-wide { grid-column: span 2; }
.b-tall { grid-row: span 2; }
.bento .tile { display: flex; flex-direction: column; justify-content: flex-end; }
.bento .b-wide h3 { font-size: 30px; }
.bento .b-wide p { font-size: 17px; max-width: 34em; }
.num b { font-family: var(--display); font-size: clamp(52px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #fff, #8b8b92); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.tile.accent { background: var(--icon-grad); border-color: transparent; }
.tile.accent b { background: none; color: #fff; }
.tile.accent span { color: rgba(255, 255, 255, .85); }
/* App screens in tiles: pinned to the top, faded out at the bottom, so they never set the row height */
.bento .shot-tile { margin: 0; padding: 0; }
.shot-tile img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.shot-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, var(--tile)); }

/* Privacy */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 26px; }
.pills span { font-size: 14px; padding: 9px 16px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); color: var(--ink); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin-top: 60px; }
.price-card { background: var(--tile); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; }
.price-card.hot {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1d1020, var(--tile) 60%) padding-box, var(--icon-grad) border-box;
  box-shadow: 0 30px 90px rgba(214, 36, 110, .18);
}
.price-card .tier { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.price-card.hot .tier { background: linear-gradient(90deg, #8ea2ff, #d58bff, #ff7ab8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .price { font-family: var(--display); font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 8px; }
.price-card .price s { font-size: 24px; color: var(--ink-3); letter-spacing: -0.02em; font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 10px; font-size: 16px; color: var(--ink); }
.price-card li::before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 700; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { margin-top: 50px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; max-width: 40em; }
details a { color: var(--link); }

/* Closing + footer */
.closing { padding: 110px 0 130px; }
.closing-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: clamp(64px, 9vw, 110px) 28px;
  background: var(--icon-grad); box-shadow: 0 40px 120px rgba(138, 47, 208, .3);
}
.closing-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.closing-card > * { position: relative; }
.closing-icon { width: 104px; height: 104px; margin: 0 auto 30px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.closing-card .h2 { color: #fff; }
.closing-card .soft { color: rgba(255, 255, 255, .72); }
.closing-card p { color: rgba(255, 255, 255, .86); font-size: 19px; margin: 20px auto 0; max-width: 32em; }
.btn.dark { background: #000; color: #fff; border-color: #000; }
.btn.dark:hover { background: #111; transform: scale(1.03); }
footer { border-top: 1px solid var(--line); padding: 30px 0 50px; font-size: 13px; }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer .copy { color: var(--ink-3); }
footer .links { display: flex; gap: 22px; margin-left: auto; }
footer .links a { color: var(--ink-2); }
footer .links a:hover { color: var(--ink); }

/* Prose pages (privacy) */
.prose { max-width: 760px; margin: 0 auto; padding: 140px 0 110px; }
.prose h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.045em; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; margin: 46px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--link); }
.prose .updated { margin: 18px 0 40px; display: block; font-size: 14px; color: var(--ink-3); }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 120px 20px 60px; }
.lost-frame { position: relative; width: min(720px, 100%); padding: 72px 56px; text-align: center; }
.lost-frame i { position: absolute; width: 34px; height: 34px; border: 2px solid var(--ink); opacity: .85; }
.lost-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.lost-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.lost-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.lost-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.lost .eyebrow { font-size: 15px; }
.lost h1 { font-size: clamp(56px, 10vw, 120px); letter-spacing: -0.05em; margin: 10px 0 18px; }
.lost h1 .dim { color: var(--ink-3); }
.lost p { margin: 0 auto 30px; max-width: 26em; }

/* ---------- Scroll reveals (site.js adds .in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.frozen [data-reveal], .frozen .obj-wrap canvas, .frozen .drag-hint, .frozen .msg { transition: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .demo-row, .duo, .duo.flip { grid-template-columns: minmax(0, 1fr); }
  .demo-row .panel-card, .duo .panel-card { width: min(360px, 100%); margin: 0 auto; }
  .duo .panel-card { order: 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explode { height: 260vh; }
  .explode .sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; padding-top: 90px; }
  .explode .copy { padding: 0 22px; }
  .rig2 { width: min(620px, 78vw); left: 50%; top: 60%; }
  .layer-list { display: none; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 104px 0 clamp(360px, 54vh, 460px); }
  .cta { gap: 20px; }
  section { padding: 100px 0; }
  .chapter + .chapter { padding-top: 20px; }
  .product-stage { margin-top: 46px; }
  .product-shot { border-radius: 10px; }
  .timeline-shot { display: none; }
  .wave { gap: 2px; }
  .demo-row, .duo { margin-top: 46px; }
  .player { padding: 10px 10px 12px; border-radius: 20px; }
  .tile { padding: 26px; border-radius: 22px; }
  .karaoke-tile { min-height: 260px; }
  .chat-tile { min-height: 0; padding: 18px; }
  .shield-tile { margin-top: 46px; }
  .code { padding: 18px 18px 22px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .b-wide { grid-column: auto; }
  .b-tall { grid-row: auto; }
  .bento .tile:not(.shot-tile) { min-height: 180px; }
  .bento .shot-tile { min-height: 340px; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .price-card { padding: 28px; }
  .drag-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .wave i, .aurora::before, .grad { animation: none; }
  .msg { opacity: 1; transform: none; transition: none; }
}
