/* Magnet — marketing site. Tokens come from the panel (magnet-panel/css/theme.css). */

@font-face { font-family: "Plex Arabic"; src: url(../fonts/IBMPlexSansArabic-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/IBMPlexSansArabic-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/IBMPlexSansArabic-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/IBMPlexSansArabic-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --orange: #ff6a00; --orange-2: #ff8a2b;
  --violet: #a63bff; --violet-2: #c06bff;
  --pink: #e2368f;
  --grad: linear-gradient(120deg, #ff6a00 0%, #e2368f 50%, #a63bff 100%);
  --bg: #060608; --s1: #0f0f14; --s2: #16161d; --s3: #1e1e27;
  --line: #25252f; --line-2: #34343f;
  --text: #f5f3fa; --soft: #b6b3c4; --muted: #8b889b;
  --safe: #3dff8a;
  --glow-o: 0 0 0 1px rgba(255,106,0,.55), 0 0 18px rgba(255,106,0,.35);
  --glow-v: 0 0 0 1px rgba(166,59,255,.55), 0 0 18px rgba(166,59,255,.35);
  --r: 10px; --r-l: 14px; --r-xl: 22px;
  --nav-h: 64px; --tabs-h: 52px;
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.deck) { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html.deck body { overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--s3); border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

.eyebrow { color: var(--orange-2); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-block-end: 14px; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); max-width: 60ch; }

/* ---------- buttons, chips, segments ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px rgba(226,54,143,.7); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(226,54,143,.9); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-col { flex-direction: column; align-items: stretch; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--s2); color: var(--soft);
  font-size: 14px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color .2s, color .2s, box-shadow .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: #4a4a57; }
.chip.on { border-color: var(--orange); color: var(--orange-2); box-shadow: var(--glow-o); background: rgba(255,106,0,.07); }
.chip.sw::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 8px var(--sw); }

.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.seg button, .seg label {
  height: 34px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  background: none; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.seg button.on, .seg label:has(input:checked) { color: var(--text); background: var(--s3); border-color: var(--violet); box-shadow: var(--glow-v); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--orange-2); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.sw-track { width: 40px; height: 24px; border-radius: 99px; background: var(--s3); border: 1px solid var(--line-2); position: relative; transition: background .25s; }
.sw-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease-out), background .25s; }
.switch input:checked + .sw-track { background: rgba(166,59,255,.35); border-color: var(--violet); }
.switch input:checked + .sw-track::after { background: #fff; transform: translateX(16px); }
:dir(rtl) .switch input:checked + .sw-track::after, [dir="rtl"] .switch input:checked + .sw-track::after { transform: translateX(-16px); }
.switch input:focus-visible + .sw-track { outline: 2px solid var(--orange-2); outline-offset: 2px; }

.hint { color: var(--muted); font-size: 13px; }
.ctrl-label { color: var(--muted); font-size: 13px; margin-block: 4px 8px; }

/* ---------- nav + tool tabs ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid rgba(37,37,47,.7);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px rgba(226,54,143,.45)); }
.brand-name { font-weight: 700; letter-spacing: .28em; font-size: 15px; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--soft); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,106,0,.55);
  background: rgba(255,106,0,.08); color: var(--orange-2); font-weight: 700; font-size: 14px;
}
.lang:hover { box-shadow: var(--glow-o); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-end { margin-inline-start: auto; } }
@media (max-width: 420px) { .nav-end .btn { padding: 0 12px; font-size: 14px; } .brand-name { display: none; } }

.tooltabs {
  height: var(--tabs-h); border-top: 1px solid rgba(37,37,47,.7);
  display: none;
}
html.deck .tooltabs { display: block; position: absolute; inset-inline: 0; top: var(--nav-h); background: linear-gradient(to bottom, rgba(22,18,34,.42), rgba(12,10,20,.30)); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 30px -20px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease-out); border-bottom: 1px solid rgba(255,255,255,.10); }
html.deck body.in-tools .tooltabs { opacity: 1; transform: none; pointer-events: auto; }
.tt-in { height: 100%; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-inline: 16px; }
.tt-in a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%;
  color: var(--muted); text-decoration: none; font-size: 14px; position: relative; transition: color .2s;
}
.tt-in a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tt-in a:hover { color: var(--text); }
.tt-in a.on { color: var(--orange-2); }
.tt-in a.on::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* ---------- slides / deck ---------- */
.slide { position: relative; background: var(--bg); }
.slide-in { position: relative; }

/* desktop deck: each slide is a screen; the next one slides over the previous */
html.deck .slide {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.9), 0 -1px 0 rgba(255,255,255,.06);
}
html.deck .slide:first-child { border-radius: 0; box-shadow: none; }
html.deck .slide.tall { position: relative; height: auto; min-height: 100vh; overflow: visible; }
html.deck .slide-in {
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-h) + 28px) 36px;
  transform-origin: 50% 30%;
  transform: scale(calc(1 - .07 * var(--q, 0))) translateY(calc(-40px * var(--q, 0)));
  opacity: calc(1 - .75 * var(--q, 0));
}
html.deck .slide.tool .slide-in { padding-block-start: calc(var(--nav-h) + var(--tabs-h) + 24px); }
html.deck .slide.tall .slide-in { height: auto; min-height: 100vh; }
/* a soft colour wash behind each slide */
.slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(166,59,255,.10), transparent 70%), radial-gradient(50% 45% at 10% 100%, rgba(255,106,0,.08), transparent 70%);
}
.slide.tool:nth-of-type(even)::before { background: radial-gradient(55% 50% at 10% 0%, rgba(255,106,0,.09), transparent 70%), radial-gradient(50% 45% at 95% 100%, rgba(166,59,255,.10), transparent 70%); }

/* small screens: a normal page */
html:not(.deck) .slide { padding-block: 72px; }
html:not(.deck) .slide.hero { padding-block-start: calc(var(--nav-h) + 40px); }

/* reveal: children of a slide rise in when the slide is reached */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.slide.seen .rv { opacity: 1; transform: none; }
.demo.rv { transform: translateY(40px) scale(.96); }
.slide.seen .demo.rv { transform: none; }

/* progress dots */
.dots { display: none; }
html.deck .dots { display: flex; flex-direction: column; gap: 10px; position: fixed; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); z-index: 40; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); transition: background .3s, transform .3s, box-shadow .3s; }
.dots button.on { background: var(--orange); transform: scale(1.35); box-shadow: 0 0 10px var(--orange); }
@media (max-width: 1100px) { html.deck .dots { inset-inline-end: 10px; } }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero::before { background: radial-gradient(70% 60% at 80% 10%, rgba(166,59,255,.18), transparent 65%), radial-gradient(60% 55% at 10% 90%, rgba(255,106,0,.14), transparent 65%) !important; }
.hero-in { display: grid !important; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
html:not(.deck) .hero-in { grid-template-columns: 1fr; }
.hero-title { font-size: clamp(48px, 6.6vw, 104px); line-height: .98; margin-block-end: 26px; }
:lang(ar) .hero-title { line-height: 1.2; font-size: clamp(46px, 6vw, 96px); }
.hero .lead { margin-block-end: 30px; }
.hero-meta { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-meta li { font-size: 13.5px; color: var(--soft); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15,15,20,.6); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
html.deck .scroll-cue { display: none; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the cut: a gradient blade slices "CapCut" and the halves slip apart */
.cut { position: relative; display: inline-block; color: transparent; white-space: nowrap; }
.cut::before, .cut::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--text);
  transition: transform .7s var(--ease-out) .55s, color .7s .55s;
}
.cut::before { clip-path: inset(0 0 50% 0); }
.cut::after { clip-path: inset(50% 0 0 0); }
.cut .blade, .cut-blade {
  position: absolute; inset-inline: -4%; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 18px rgba(226,54,143,.9);
  transform: scaleX(0); transform-origin: left; z-index: 1;
}
:lang(ar) .cut-blade { transform-origin: right; }
.cut.go .cut-blade { animation: blade 1.2s var(--ease) forwards; }
@keyframes blade { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.cut.go::before { transform: translate(-.03em, -.07em) rotate(-2.5deg); color: var(--muted); }
.cut.go::after { transform: translate(.04em, .06em) rotate(1.5deg); color: var(--muted); }

.wl-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.wl-form input[type=email] {
  flex: 1 1 230px; height: 48px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: rgba(22,22,29,.8); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.wl-form input[type=email]::placeholder { color: var(--muted); }
.wl-form input[type=email]:focus { border-color: var(--violet); box-shadow: var(--glow-v); }
.wl-form input[aria-invalid=true] { border-color: #ff4d6d; }
.wl-msg { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.wl-msg.ok { color: var(--safe); }
.wl-msg.err { color: #ff6b85; }

/* hero visual: a mock of the panel with a phone preview in front */
.hero-visual { position: relative; height: min(560px, 62vh); min-height: 420px; }
html:not(.deck) .hero-visual { height: 480px; max-width: 520px; width: 100%; margin-inline: auto; }
.mock-panel {
  position: absolute; inset-inline-end: 0; top: 0; width: min(310px, 62%); height: 100%;
  border-radius: 18px; overflow: hidden; background: #0b0b10; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset;
  animation: floatA 9s ease-in-out infinite;
}
.mp-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, rgba(255,106,0,.10), rgba(166,59,255,.10)); border-bottom: 1px solid var(--line); }
.mp-head .logo { width: 30px; height: 30px; }
.mp-head b { display: block; letter-spacing: .22em; font-size: 13px; }
.mp-head small { color: var(--muted); font-size: 11px; }
.mp-tabs { display: flex; justify-content: space-around; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.mp-tabs span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.mp-tabs span.on { color: var(--orange-2); background: rgba(255,106,0,.1); box-shadow: inset 0 -2px 0 var(--orange); }
.mp-tabs svg, .mp-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mp-list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; }
.mp-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.mp-list li.on { border-color: rgba(255,106,0,.6); box-shadow: var(--glow-o); }
.mp-list .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.mp-list b { display: block; font-size: 13px; }
.mp-list small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.hero-phone { position: absolute; inset-inline-start: 0; bottom: 0; width: min(220px, 40%); z-index: 2; animation: floatB 8s ease-in-out infinite; }
.hero-chip {
  position: absolute; z-index: 3; inset-inline-start: 26%; bottom: 7%;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(30,30,39,.55); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8);
  animation: floatA 7s ease-in-out infinite reverse;
}
.hero-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--safe); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes floatA { 50% { transform: translateY(-10px); } }
@keyframes floatB { 50% { transform: translateY(8px); } }

/* ---------- phone (9:16 program monitor) ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background: #0c0b12; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.95), 0 0 0 5px #111117, 0 0 0 6px #2a2a33;
}
.ph-bg { position: absolute; inset: -20%; filter: blur(28px); opacity: .9;
  background:
    radial-gradient(35% 28% at 30% 30%, rgba(166,59,255,.85), transparent 70%),
    radial-gradient(30% 25% at 70% 18%, rgba(226,54,143,.65), transparent 70%),
    radial-gradient(38% 30% at 72% 68%, rgba(255,106,0,.75), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-4%, 3%) rotate(8deg) scale(1.06); } }
.cap { position: absolute; inset-inline: 6%; top: 72%; transform: translateY(-50%); text-align: center; font-family: var(--font); line-height: 1.2; }
.cap .ln { display: inline; padding: .05em .15em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cap .w { display: inline-block; margin: 0 .11em; transform-origin: 50% 60%; will-change: transform; }
.cap .w.boxed { padding: 0 .16em; border-radius: .18em; }

/* ---------- statement slides ---------- */
.statement .slide-in { text-align: center; align-items: center; }
html:not(.deck) .statement .slide-in { text-align: start; }
.big { font-size: clamp(40px, 5.8vw, 88px); line-height: 1.02; max-width: 16ch; margin-block-end: 26px; }
:lang(ar) .big { line-height: 1.25; }
.statement .lead { margin-inline: auto; }
html:not(.deck) .statement .lead { margin-inline: 0; }
.statement .big { margin-inline: auto; }
html:not(.deck) .statement .big { margin-inline: 0; }

/* ---------- tool slides ---------- */
.tool-in > * { min-width: 0; }
.tool-in { display: grid !important; grid-template-columns: minmax(280px, .78fr) 1.22fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
#t-cut .tool-text, #t-ease .tool-text, #t-bg .tool-text, #t-tpl .tool-text, #t-panel .tool-text { order: 2; }
#t-cut .tool-in, #t-ease .tool-in, #t-bg .tool-in, #t-tpl .tool-in, #t-panel .tool-in { grid-template-columns: 1.22fr minmax(280px, .78fr); }
.tool-text h2 { font-size: clamp(30px, 3.3vw, 50px); margin-block: 18px 16px; }
.tool-text > p:not(.tab-tag) { color: var(--soft); font-size: 17.5px; max-width: 48ch; }
.tab-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 11px;
  color: var(--orange-2); background: rgba(255,106,0,.08); box-shadow: inset 0 -2px 0 var(--orange), 0 0 0 1px rgba(255,106,0,.25);
  font-weight: 600; font-size: 14px;
}
.tab-tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-inline-start: 26px; color: var(--text); font-size: 15.5px; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 10px rgba(226,54,143,.6); }
.tool-text .seg { margin-top: 22px; }

.demo {
  position: relative; border-radius: var(--r-xl); padding: clamp(16px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(22,22,29,.75), rgba(15,15,20,.75));
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04);
}
html:not(.deck) .tool-in { grid-template-columns: 1fr !important; }
html:not(.deck) .tool-text { order: 0 !important; }

/* captions */
.demo-captions { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.cap-phone { width: clamp(200px, 19vw, 260px); max-height: 62vh; }
.cap-ctrl { display: flex; flex-direction: column; gap: 6px; }
.cap-ctrl .hint { margin-top: 10px; }
@media (max-width: 640px) { .demo-captions { grid-template-columns: 1fr; justify-items: center; } .cap-ctrl { width: 100%; } }

/* auto cut */
.demo-cut { display: flex; flex-direction: column; gap: 16px; }
.cut-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; }
.cut-len b { color: var(--text); font-size: 26px; font-weight: 500; margin-inline-start: 8px; transition: color .3s; }
.cut-saved { color: var(--safe); font-size: 15px; opacity: 0; transition: opacity .4s; }
.demo-cut.done .cut-saved { opacity: 1; }
.cut-track { display: flex; height: 170px; align-items: stretch; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 10px; direction: ltr; overflow: hidden; }
.seg-w { flex: var(--g) 1 0; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 0 1px; border-radius: 8px; position: relative; overflow: hidden;
  transition: flex-grow .8s var(--ease), opacity .5s .2s, background .35s, box-shadow .35s; }
.seg-w i { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: linear-gradient(var(--violet-2), var(--orange)); height: var(--h); }
.seg-w.sil i { background: #3a3a46; }
.seg-w.sil.mark { background: rgba(255,77,109,.12); box-shadow: inset 0 0 0 1px rgba(255,77,109,.55); }
.seg-w.sil.mark i { background: #ff4d6d; opacity: .7; }
.seg-w .tag { position: absolute; top: 4px; inset-inline: 0; text-align: center; font-size: 10.5px; color: #ff8fa3; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.seg-w.mark .tag { opacity: 1; }
.seg-w.gone { flex-grow: 0.0001; opacity: 0; padding: 0; }
.demo-cut.reset .seg-w { transition: none; }
.cut-legend { display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.cut-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cut-legend i { width: 14px; height: 8px; border-radius: 3px; }
.lg-speech { background: linear-gradient(90deg, var(--violet-2), var(--orange)); }
.lg-sil { background: #ff4d6d; }

/* sound */
.demo-sound { display: flex; flex-direction: column; gap: 10px; }
.tl { position: relative; display: grid; gap: 7px; padding: 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); direction: ltr; }
.tl-row { display: flex; align-items: center; gap: 10px; }
.tl-name { width: 24px; font: 500 11px var(--mono); color: var(--muted); }
.tl-lane { flex: 1; height: 34px; position: relative; background: var(--s2); border-radius: 7px; overflow: hidden; }
.tl-clip { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; }
.tl-v { background: linear-gradient(180deg, #7d3fd0, #5a2aa0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tl-razor { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; opacity: 0; transform: scaleY(0); transition: opacity .2s, transform .25s var(--ease-out); }
.tl-razor.on { opacity: 1; transform: none; }
.tl-c { background: rgba(226,54,143,.85); opacity: 0; transform: scaleX(.3); transform-origin: left; transition: opacity .3s, transform .35s var(--ease-out); }
.tl-s { height: 28px; top: 3px; border-radius: 5px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-14px); transition: opacity .25s, transform .45s var(--ease-out); }
.tl-s svg { width: 100%; height: 100%; }
.tl-s.w { background: rgba(255,106,0,.22); box-shadow: inset 0 0 0 1px rgba(255,106,0,.7); }
.tl-s.p { background: rgba(192,107,255,.22); box-shadow: inset 0 0 0 1px rgba(192,107,255,.75); }
.tl-c.on, .tl-s.on { opacity: 1; transform: none; }
.tl-head { position: absolute; top: 6px; bottom: 6px; width: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); left: 46px; }
.tl-head::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 8px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pad {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: start;
  border-radius: 12px; background: var(--s2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.pad:hover { border-color: var(--line-2); }
.pad:active { transform: scale(.97); }
.pad b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; width: 100%; }
.pad small { color: var(--muted); font-size: 12px; }
.pad .eq { margin-inline-start: auto; display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.pad .eq i { width: 2px; height: 4px; border-radius: 1px; background: var(--muted); }
.pad.playing { border-color: var(--orange); box-shadow: var(--glow-o); }
.pad.playing .eq i { background: var(--orange-2); animation: eq .5s ease-in-out infinite alternate; }
.pad.playing .eq i:nth-child(2) { animation-delay: .15s; } .pad.playing .eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { to { height: 12px; } }
@media (max-width: 640px) { .pads { grid-template-columns: repeat(2, 1fr); } }

/* easing */
.demo-ease { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 26px; align-items: center; }
.ease-graph { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 8px; direction: ltr; }
#ease-svg { width: 100%; height: auto; touch-action: none; overflow: visible; }
.ease-speed { width: 100%; height: auto; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.ease-name { position: absolute; top: 12px; right: 14px; color: var(--orange-2); font-size: 13px; }
.e-grid { stroke: var(--line); stroke-width: 1; }
.e-base { stroke: #3a3a46; stroke-width: 1; stroke-dasharray: 3 4; }
.e-curve { fill: none; stroke: url(#g-ease); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(226,54,143,.55)); }
.e-arm { stroke: #8b889b; stroke-width: 1.4; }
.e-h { fill: #f5f3fa; stroke: var(--orange); stroke-width: 3; cursor: grab; transition: r .15s; }
.e-h:hover, .e-h.drag { r: 10; }
.e-h.drag { cursor: grabbing; }
.e-dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.e-speed { fill: none; stroke: var(--violet-2); stroke-width: 2; }
.e-label { fill: var(--muted); font: 10px var(--mono); }
.ease-side { display: flex; flex-direction: column; gap: 16px; }
.ease-preview { display: grid; grid-template-columns: 1fr 90px; gap: 14px; align-items: center; direction: ltr; }
.ep-track { position: relative; height: 54px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.ep-track::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 1px dashed var(--line-2); }
.ep-ball { position: absolute; left: 12px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(226,54,143,.8); }
.ep-card-wrap { height: 90px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ep-card { width: 44px; height: 56px; border-radius: 9px; background: var(--grad); box-shadow: 0 0 20px rgba(166,59,255,.6); }
.ease-chips .chip { height: 32px; font-size: 13px; padding: 0 12px; }
.ease-chips .chip svg { width: 22px; height: 14px; overflow: visible; }
.ease-chips .chip svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 760px) { .demo-ease { grid-template-columns: 1fr; } }

/* carousel */
.demo-car { display: flex; flex-direction: column; gap: 16px; }
.car-stage {
  position: relative; aspect-ratio: 16 / 9; max-height: 52vh; width: 100%; border-radius: 14px; overflow: hidden;
  background: repeating-conic-gradient(#121218 0 25%, #0d0d12 0 50%) 0 0 / 22px 22px; border: 1px solid var(--line);
}
html:not(.deck) .car-stage { aspect-ratio: 4 / 3; max-height: none; }
.car-stage canvas { width: 100%; height: 100%; }
.car-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.car-ctrl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* background removal */
.demo-bg { display: flex; flex-direction: column; gap: 16px; }
#bg-svg { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); }
.bg-ctrl { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* safe zones */
.demo-safe { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.safe-phone { width: clamp(190px, 17vw, 240px); max-height: 60vh; direction: ltr; }
.safe-phone .ph-bg { opacity: .55; }
.sz-layer { position: absolute; inset: 0; }
.sz { position: absolute; opacity: 0; transition: opacity .45s; }
.sz.on { opacity: 1; }
.sz.top { background: rgba(255,106,0,.30); }
.sz.caption { background: rgba(226,54,143,.32); }
.sz.buttons { background: rgba(166,59,255,.38); }
.sz.edge { background: rgba(255,255,255,.10); }
.sz-lbl { position: absolute; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .35s; }
.sz-lbl.on { opacity: 1; }
.sz-ui { position: absolute; inset: 0; pointer-events: none; }
.sz-ui .btn-dot { position: absolute; width: 7.5%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.75); }
.sz-ui .line { position: absolute; height: 1.2%; border-radius: 4px; background: rgba(255,255,255,.7); }
.sz-safe { position: absolute; border: 2px dashed var(--safe); border-radius: 6px; box-shadow: 0 0 16px rgba(61,255,138,.45), inset 0 0 16px rgba(61,255,138,.18); opacity: 0; transform: scale(.94); transition: opacity .5s, transform .6s var(--ease-out); }
.sz-safe.on { opacity: 1; transform: none; }
.sz-safe span { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 600; color: #04140a; background: var(--safe); padding: 2px 7px; border-radius: 5px; }
@media (max-width: 640px) { .demo-safe { grid-template-columns: 1fr; justify-items: center; } .chips-col { flex-direction: row; flex-wrap: wrap; justify-content: center; } }

/* templates */
.demo-tpl { display: flex; flex-direction: column; gap: 16px; }
.glass-stage { position: relative; aspect-ratio: 16 / 9; max-height: 44vh; width: 100%; border-radius: 14px; overflow: hidden; background: #120d1c; display: grid; place-items: center; }
.gs-blob { position: absolute; border-radius: 50%; filter: blur(30px); }
.gs-blob.b1 { width: 55%; height: 80%; left: -8%; top: -10%; background: #a63bff; animation: b1 9s ease-in-out infinite alternate; }
.gs-blob.b2 { width: 50%; height: 70%; right: -6%; bottom: -20%; background: #ff6a00; animation: b2 11s ease-in-out infinite alternate; }
.gs-blob.b3 { width: 35%; height: 50%; left: 40%; top: -20%; background: #e2368f; opacity: .8; animation: b1 7s ease-in-out infinite alternate-reverse; }
.gs-ball { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ffd2a8 40%, #ff8a2b 75%); top: 38%; animation: ballX 6s ease-in-out infinite; box-shadow: 0 0 40px rgba(255,138,43,.7); }
@keyframes b1 { to { transform: translate(25%, 15%) scale(1.1); } }
@keyframes b2 { to { transform: translate(-30%, -10%) scale(.9); } }
@keyframes ballX { 0%, 100% { left: 6%; } 50% { left: 78%; } }
.capsule {
  position: relative; z-index: 2; height: 64px; width: 64px; border-radius: 999px;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.28), inset 0 -10px 24px rgba(255,255,255,.08), 0 20px 40px -12px rgba(0,0,0,.5);
  transform: scale(0); transition: transform .55s var(--ease-out), width .8s var(--ease);
}
.capsule.drop { transform: scale(1); }
.capsule.open { width: min(78%, 420px); }
.cap-txt { font-weight: 700; font-size: clamp(16px, 1.7vw, 24px); white-space: nowrap; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.cap-txt span { display: inline-block; opacity: 0; filter: blur(10px); transition: opacity .6s, filter .7s var(--ease-out); }
.cap-txt span.in { opacity: 1; filter: blur(0); }
.tpl-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 4px; }
.tpl-strip video { flex: none; width: 148px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--s2); }

/* download */
.demo-down { display: flex; flex-direction: column; gap: 14px; max-width: 520px; width: 100%; justify-self: center; }
.dl-url { display: flex; align-items: center; height: 50px; padding-inline: 14px 6px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line-2); direction: ltr; }
.dl-text { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; }
.dl-caret { width: 2px; height: 20px; background: var(--orange); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dl-paste { margin-left: auto; height: 38px; padding: 0 14px; display: grid; place-items: center; border-radius: 9px; background: var(--s3); border: 1px solid var(--line-2); font-size: 13px; }
.dl-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s, transform .6s var(--ease-out); }
.dl-card.on { opacity: 1; transform: none; }
.dl-card.fly { transition: transform .9s var(--ease), opacity .9s var(--ease); transform: translateY(110px) scale(.25); opacity: 0; }
.dl-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #3b1d6e, #a63bff 55%, #ff6a00); }
.dl-thumb svg { width: 24px; height: 24px; color: #fff; }
.dl-info b { display: block; font-size: 15px; }
.dl-info small { color: var(--muted); font-size: 13px; }
.dl-q { display: flex; gap: 6px; padding: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; opacity: .35; transition: opacity .4s; }
.dl-q span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.dl-q span.on { color: var(--text); background: var(--s3); border-color: var(--violet); }
.demo-down.q .dl-q { opacity: 1; }
.dl-bin { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--soft); font-size: 14px; transition: border-color .3s, box-shadow .3s; }
.dl-bin svg { width: 20px; height: 20px; fill: none; stroke: var(--orange-2); stroke-width: 1.7; stroke-linejoin: round; }
.dl-bin b { margin-inline-start: auto; min-width: 26px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; background: var(--s3); color: var(--text); font-size: 12px; }
.dl-bin.hit { border-color: var(--orange); box-shadow: var(--glow-o); }

/* panel screenshot */
.demo-shot { padding: 10px; }
.demo-shot img { width: 100%; height: auto; max-height: 64vh; object-fit: contain; border-radius: 12px; transition: opacity .35s; }
.demo-shot img.swap { opacity: 0; }

/* ---------- compare ---------- */
.sec-head { margin-block-end: clamp(26px, 4vh, 44px); }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 64px); max-width: 20ch; }
.lanes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.lane { border-radius: var(--r-xl); padding: 26px; border: 1px solid var(--line); background: var(--s1); }
.lane-title { font-weight: 700; font-size: 18px; margin-block-end: 16px; }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.lane li { counter-increment: st; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); color: var(--muted);
  transition: color .4s, border-color .4s, background .4s; }
.lane li::before { content: counter(st); font: 500 12px var(--mono); width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--s3); color: var(--muted); }
.lane li.lit { color: var(--text); border-color: var(--line-2); }
.lane-old li.lit::before { background: #3a2a2f; color: #ff8fa3; }
.lane-new { border-color: rgba(255,106,0,.45); box-shadow: 0 0 0 1px rgba(255,106,0,.2), 0 30px 80px -40px rgba(255,106,0,.6); background: linear-gradient(180deg, rgba(255,106,0,.06), rgba(15,15,20,1) 60%); }
.lane-new li.lit { border-color: rgba(255,106,0,.5); }
.lane-new li.lit::before { background: var(--grad); color: #fff; }
.lane-done { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--safe); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease-out); }
.lane-done svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lane-done.on { opacity: 1; transform: none; }
@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } }

/* ---------- video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc(72vh * 16 / 9)); max-height: 72vh; margin-inline: auto; border-radius: 26px; overflow: hidden; background: var(--s1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 50px 120px -50px rgba(166,59,255,.6); }
.video-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted);
  background: radial-gradient(50% 60% at 30% 40%, rgba(166,59,255,.25), transparent 70%), radial-gradient(45% 55% at 75% 65%, rgba(255,106,0,.2), transparent 70%); }
.vp-play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.vp-play svg { width: 34px; height: 34px; color: #fff; margin-inline-start: 4px; }

/* ---------- getting started + requirements ---------- */
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 18px; border-radius: var(--r-l); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 4px; }
.steps li::before { content: counter(st); font: 500 13px var(--mono); color: var(--orange-2); margin-bottom: 6px; }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }
.req-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.card { border-radius: var(--r-xl); padding: 24px; background: var(--s1); border: 1px solid var(--line); }
.card h3 { font-size: 22px; margin-block-end: 14px; }
.specs { margin: 0; display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: end; }
.price-card { background: linear-gradient(160deg, rgba(166,59,255,.14), rgba(255,106,0,.10)), var(--s1); border-color: rgba(166,59,255,.35); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.price-card p { color: var(--soft); }
.price-card .btn { margin-top: auto; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .req-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-in { display: grid !important; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
html.deck .faq-in { align-content: center; }
.faq-col { display: grid; gap: 16px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-radius: var(--r-l); background: var(--s1); border: 1px solid var(--line); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange-2); font: 500 20px/1 var(--mono); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 18px 16px; color: var(--soft); font-size: 15.5px; }
.terms { padding: 18px; border-radius: var(--r-l); border: 1px dashed var(--line-2); }
.terms h3 { font-size: 16px; margin-block-end: 6px; }
.terms p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; gap: 0; } }

/* ---------- waitlist ---------- */
.waitlist .slide-in { align-items: center; text-align: center; }
.waitlist::before { background: radial-gradient(50% 50% at 50% 40%, rgba(226,54,143,.18), transparent 70%) !important; }
.wl-logo { width: 64px; height: 64px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(226,54,143,.7)); }
.waitlist .big { margin-inline: auto; }
.waitlist .lead { margin: 0 auto 28px; }
.wl-big { margin-inline: auto; justify-content: center; max-width: 600px; }
.wl-big .wl-msg { text-align: center; }
html.deck .waitlist .slide-in { padding-block-end: 110px; }
.foot { position: relative; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 13px; }
html.deck .foot { position: absolute; inset: auto 0 0; }
.foot-in { display: flex; align-items: center; gap: 20px; }
.foot-in .logo { width: 22px; height: 22px; }
.foot-in .brand-name { font-size: 12px; color: var(--soft); }
.foot-in p { flex: 1; }
.foot-in a { color: var(--soft); }
@media (max-width: 760px) { .foot-in { flex-direction: column; align-items: flex-start; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- pricing ---------- */
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--violet); box-shadow: var(--glow-v); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.end-cta { justify-content: center; }
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin-block-end: 4px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.plan-price span { color: var(--soft); font-size: 15px; }
.plan-alt { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.plan-list li { display: flex; gap: 8px; align-items: baseline; }
.plan-list li::before { content: "✓"; color: var(--safe); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }
.plan-best { background: linear-gradient(160deg, rgba(166,59,255,.18), rgba(255,106,0,.12)), var(--s1); border-color: rgba(166,59,255,.5); box-shadow: 0 20px 60px -30px rgba(166,59,255,.7); }
.plan-tag { position: absolute; top: -12px; inset-inline-start: 20px; padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; }
.plan-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.packs { display: grid; gap: 8px; margin-top: auto; }
.pack { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: var(--r-l); background: var(--s2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pack:hover { border-color: var(--orange); box-shadow: var(--glow-o); }
.pack b { font-size: 20px; }
.pack span { color: var(--muted); font-size: 14px; }
.pack em { font-style: normal; font-weight: 600; color: var(--orange-2); }
.plan-foot { margin: 18px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.plan-msg { margin: 8px 0 0; text-align: center; color: var(--orange-2); min-height: 1.4em; font-size: 15px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.signin-land { position: fixed; z-index: 200; inset-inline: 16px; bottom: 24px; margin-inline: auto; max-width: 420px; padding: 20px; border-radius: var(--r-xl); background: var(--s2); border: 1px solid rgba(166,59,255,.5); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), var(--glow-v); display: grid; gap: 8px; text-align: center; }
.signin-land p { margin: 0 0 6px; color: var(--soft); font-size: 15px; }
.signin-land .btn { width: 100%; }

/* next-slide arrow: bottom centre on every slide but the last (deck mode) */
.next-arrow { position: fixed; z-index: 30; bottom: 18px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: none; place-items: center; background: rgba(15,15,20,.55); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .3s, border-color .2s, box-shadow .2s; }
html.deck .next-arrow { display: grid; }
.next-arrow[hidden] { display: none !important; }
.next-arrow:hover { border-color: var(--orange); box-shadow: var(--glow-o); }
.next-arrow svg { width: 22px; height: 22px; animation: nudge 1.6s var(--ease) infinite; }
.next-arrow::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,106,0,.45); animation: ring 1.6s var(--ease-out) infinite; pointer-events: none; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .next-arrow svg, .next-arrow::after { animation: none; } }

/* ---------- glass tool cards with a light travelling round the edge (same look as the promo) ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 40deg; }
.demo, .mock-panel {
  background: linear-gradient(160deg, rgba(40,34,58,.55), rgba(16,13,25,.62));
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -40px 80px -40px rgba(192,107,255,.16), 0 40px 90px -40px rgba(0,0,0,.95);
}
.demo::before, .demo::after, .mock-panel::before, .mock-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: conic-gradient(from var(--a), transparent 0deg 230deg, rgba(255,255,255,.18) 255deg, #ffffff 300deg, #ffa860 320deg, #d080ff 342deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge-spin 6s linear infinite;
}
.demo::before, .mock-panel::before { padding: 1.5px; }
.demo::after, .mock-panel::after { padding: 10px; filter: blur(9px); opacity: .55; }
@keyframes edge-spin { to { --a: 400deg; } }
/* each card starts the light at a different point so they don't move in lockstep */
.demo-cut::before, .demo-cut::after, .demo-car::before, .demo-car::after, .demo-tpl::before, .demo-tpl::after { animation-delay: -2s; }
.demo-sound::before, .demo-sound::after, .demo-bg::before, .demo-bg::after, .demo-down::before, .demo-down::after { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .demo::before, .demo::after, .mock-panel::before, .mock-panel::after { animation: none; } }

/* ---------- AI sound generation: full-slide promo animation ---------- */
.ai-wrap { height: 100%; display: flex; align-items: center; }
.ai-promo { position: relative; width: 100%; height: min(calc(100vh - var(--nav-h) - var(--tabs-h) - 56px), 760px); min-height: 480px; overflow: hidden; padding: 0; border-radius: 28px; }
.aip-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.aip-kicker { position: absolute; top: 5.5%; left: 0; right: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--orange-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; z-index: 3; }
.aip-kicker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.aip-bar { position: absolute; left: 50%; top: 42%; z-index: 4; width: min(720px, 78%); height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 20px 0 24px; border-radius: 999px;
  background: #fff; color: #17131f; direction: ltr; box-shadow: 0 30px 80px -20px rgba(166,59,255,.55), 0 0 0 1px rgba(255,255,255,.6);
  transform: translate(-50%, -50%) scale(var(--s, 1)); opacity: var(--o, 1); will-change: transform, top, opacity; }
.aip-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: #8b889b; stroke-width: 2; stroke-linecap: round; }
.aip-text { font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; white-space: nowrap; overflow: hidden; }
.aip-caret { width: 2px; height: 26px; background: #a63bff; flex: none; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.aip-enter { margin-left: auto; flex: none; font: 600 15px var(--font); color: #8b889b; border: 1px solid #e3deef; border-bottom-width: 2px; border-radius: 8px; padding: 4px 10px; transition: all .15s; }
.aip-enter.press { color: #fff; background: #a63bff; border-color: #a63bff; transform: translateY(1px); }
.aip-line { position: absolute; left: 0; right: 0; z-index: 3; margin: 0; text-align: center; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; padding-inline: 6%;
  opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out); }
.aip-line.in { opacity: 1; transform: none; filter: none; }
.aip-sub { position: absolute; left: 0; right: 0; z-index: 3; margin: 0; text-align: center; color: var(--soft); font-size: clamp(15px, 1.25vw, 18px); opacity: 0; transition: opacity .5s; }
.aip-sub.in { opacity: 1; }
.aip-foot { position: absolute; left: 28px; right: 28px; bottom: 20px; z-index: 5; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.aip-sound { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(10,8,16,.55); color: var(--soft); font-size: 13px; backdrop-filter: blur(8px); }
.aip-sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aip-sound[aria-pressed=false] .w { opacity: .25; }
.aip-sound[aria-pressed=true] { color: #fff; border-color: var(--violet); box-shadow: var(--glow-v); }
.el-mark { color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.el-mark::before { content: "II"; display: inline-block; margin-inline-end: 4px; font-weight: 800; letter-spacing: -.12em; }
@media (max-width: 700px) { .aip-bar { height: 56px; width: 88%; } .aip-enter { display: none; } }


/* the header's frosted background lives on a pseudo-element, so the header isn't a "backdrop root"
   and the tools bar inside it can blur the page behind it (real glass) */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,6,8,.92), rgba(6,6,8,.72));
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }

/* background removal: real photo, tile wave, drag onto a new background, text behind the subject */
.demo-bg { padding: 10px; }
.bg-stage { position: relative; aspect-ratio: 4 / 3; max-height: 64vh; width: 100%; margin-inline: auto; border-radius: 16px; overflow: hidden; background: #0b0a10; }
.bg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-chip { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translate(-50%, 10px); opacity: 0; padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(12,10,18,.62); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .4s, transform .4s var(--ease-out); }
.bg-chip.in { opacity: 1; transform: translate(-50%, 0); }
