/* ==========================================================================
   Clipo website — one colour theme: the app's dark look, with light "sheets"
   (the app's light tokens) for alternating sections.
   ========================================================================== */
:root {
  --win: #0a0a0c;
  --card: #151518;
  --card-2: #1c1c20;
  --card-3: #25252a;
  --tint: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --well: #101013;
  --text: #f2f2f5;
  --text-2: #a3a3ad;
  --text-3: #6c6c76;
  --accent: #1a8cff;
  --accent-2: #0b6fe3;
  --accent-soft: rgba(26, 140, 255, 0.16);
  --success: #32d583;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-pop: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --raise: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --spot: rgba(255, 255, 255, 0.06);
  --glow: rgba(26, 140, 255, 0.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(0.2, 1.4, 0.4, 1);
  --out: cubic-bezier(0.2, 1, 0.3, 1);
  color-scheme: dark;
}
/* Light sections use the app's light tokens. */
.light {
  --win: #eef0f4;
  --card: #ffffff;
  --card-2: #f4f5f8;
  --card-3: #e9ebf0;
  --tint: 0, 0, 0;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --well: #f3f4f7;
  --text: #111318;
  --text-2: #464c58;
  --text-3: #7a808d;
  --accent-soft: rgba(26, 140, 255, 0.12);
  --shadow-card: 0 0 0 1px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -12px rgba(15, 23, 42, 0.14);
  --shadow-lift: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.05), 0 30px 60px -18px rgba(15, 23, 42, 0.28);
  --raise: linear-gradient(180deg, #ffffff, #f4f5f8);
  --spot: rgba(26, 140, 255, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--win);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); }
.link { color: var(--accent); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s var(--out); }
.link:hover { background-size: 100% 1.5px; }

/* ---------- light sheets ---------- */
/* White "sheets" and dark "bands" alternate down the page with the same rhythm. */
.sheet {
  position: relative; background: var(--win); color: var(--text);
  margin: 0 10px; border-radius: 44px; padding: 120px 0;
}
.sheet.top { margin: 0; border-radius: 0 0 44px 44px; padding: 0 0 80px; }
.band { padding: 130px 0; }
.sheet + .sheet, .band + .band { margin-top: 10px; }
.sheet .section, .band .section, .band .strip { padding: 0; }
.sheet .section + .section, .band .section + .section, .band .strip + .section { padding-top: 120px; }
.sheet + .cta { padding-top: 130px; }
/* The demo editor keeps the app's dark look on the white hero. */
.dark {
  --win: #0a0a0c; --card: #151518; --card-2: #1c1c20; --card-3: #25252a; --tint: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12); --well: #101013;
  --text: #f2f2f5; --text-2: #a3a3ad; --text-3: #6c6c76; --accent-soft: rgba(26, 140, 255, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-pop: 0 40px 90px -20px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: var(--card-2); box-shadow: 0 0 0 1px var(--line-2) inset;
  transition: transform 0.2s var(--spring), background-color 0.2s, box-shadow 0.2s, translate 0.25s var(--out);
  white-space: nowrap; translate: var(--mgx, 0) var(--mgy, 0);
}
.btn > span { display: inline-block; transition: translate 0.25s var(--out); translate: var(--mix, 0) var(--miy, 0); }
.btn:hover { background: var(--card-3); }
.btn:active { transform: scale(0.95); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px var(--accent); }
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 30px -8px var(--accent); }
.btn.primary::after { /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  translate: -120% 0; transition: translate 0s;
}
.btn.primary:hover::after { translate: 120% 0; transition: translate 0.7s ease; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 99px; }
.btn.wide { width: 100%; }

.seg {
  position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px;
  background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset;
}
.seg button { position: relative; z-index: 1; display: grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 9px; color: var(--text-3); transition: color 0.25s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked='true'] { color: var(--text); }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px; background: var(--card-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--line-2) inset; transition: left 0.45s var(--spring), width 0.45s var(--spring);
}

/* ---------- floating pill nav ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.nav-pill {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1180px, 100% - 32px); height: 64px; padding: 0 12px 0 18px; border-radius: 22px;
  background: rgba(18, 18, 22, 0.9); color: #f2f2f5;
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: width 0.6s var(--out), height 0.5s var(--out), padding 0.5s var(--out), background-color 0.4s, box-shadow 0.4s, border-radius 0.5s var(--out), translate 0.5s var(--out);
}
.nav.compact .nav-pill {
  width: min(700px, 100% - 24px); height: 52px; padding: 0 7px 0 12px; border-radius: 99px;
  background: rgba(24, 24, 28, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 12px 36px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; transition: transform 0.5s var(--spring), width 0.5s var(--out), height 0.5s var(--out); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav.compact .brand img { width: 28px; height: 28px; }
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 13px; border-radius: 99px; color: #a3a3ad; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-ind {
  position: absolute; top: 0; height: 100%; left: 0; width: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.1);
  opacity: 0; transition: left 0.4s var(--spring), width 0.4s var(--spring), opacity 0.25s;
}
.nav .btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -10% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 30%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 20% 20%, rgba(255, 90, 165, 0.09), transparent 70%),
    radial-gradient(30% 30% at 82% 26%, rgba(255, 194, 61, 0.08), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(0, 40px, 0) scale(1.08); } }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro { display: inline-block; animation: intro 0.9s var(--out) both; animation-delay: calc(var(--d) * 0.09s + 0.1s); }
@keyframes intro { from { opacity: 0; translate: 0 26px; filter: blur(8px); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px 6px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--card); box-shadow: var(--shadow-card);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(50, 213, 131, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
h1 { margin: 0; font-size: clamp(44px, 8.2vw, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }
h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 700; }
.lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.5; }
/* Headline explanation: a card that springs in below the headline on hover / focus / tap */
.headline { position: relative; z-index: 6; outline: none; cursor: default; }
.headline:focus-visible h1 { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 12px; }
.lede-pop {
  position: absolute; left: 50%; top: calc(100% + 18px); width: min(500px, 88vw); margin: 0;
  padding: 16px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lift);
  font-size: 16px; line-height: 1.5; color: var(--text-2); text-align: left;
  opacity: 0; translate: -50% 10px; scale: 0.94; transform-origin: 50% 0; pointer-events: none;
  transition: opacity 0.25s ease, translate 0.45s var(--spring), scale 0.45s var(--spring);
}
.lede-pop::before { /* little notch pointing up at the headline */
  content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg;
  background: var(--card); border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 var(--line);
}
.headline:hover .lede-pop, .headline:focus-visible .lede-pop, .headline.open .lede-pop { opacity: 1; translate: -50% 0; scale: 1; pointer-events: auto; }

/* "Skip the busywork." — wave of weight + slant, coloured from the accent (as in the app) */
.vf-line {
  --hl-a: oklch(from var(--accent) calc(l + 0.12) c calc(h - 30));
  --hl-b: var(--accent);
  --hl-c: oklch(from var(--accent) calc(l + 0.04) c calc(h + 45));
  font-family: 'Roboto Flex', var(--font); letter-spacing: -0.035em; white-space: nowrap; color: var(--accent);
}
.vf-line span {
  color: var(--accent);
  color: color-mix(in oklch, color-mix(in oklch, var(--hl-a), var(--hl-b) calc(min(var(--t) * 2, 1) * 100%)), var(--hl-c) calc(max(var(--t) * 2 - 1, 0) * 100%));
  font-variation-settings: 'wght' 850, 'slnt' 0;
  animation: vf-wave 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: calc(var(--i) * 0.11s - 4.2s);
}
.light .vf-line {
  --hl-a: oklch(from var(--accent) calc(l - 0.04) c calc(h - 30));
  --hl-c: oklch(from var(--accent) calc(l - 0.06) c calc(h + 45));
}
@keyframes vf-wave { 0%, 100% { font-variation-settings: 'wght' 850, 'slnt' 0; } 50% { font-variation-settings: 'wght' 180, 'slnt' -10; } }

/* ---------- waitlist form ---------- */
.waitlist {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; width: min(460px, 100%); margin-top: 44px;
  padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); transition: box-shadow 0.3s;
}
.waitlist input { min-width: 0; height: 46px; padding: 0 14px; border: none; border-radius: 11px; background: transparent; outline: none; font-size: 15px; }
.waitlist input::placeholder { color: var(--text-3); transition: opacity 0.2s, translate 0.3s var(--out); }
.waitlist input:focus::placeholder { opacity: 0.4; translate: 6px 0; }
.waitlist:focus-within { box-shadow: var(--shadow-card), 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-soft); }
.waitlist .form-note { grid-column: 1 / -1; margin: 2px 8px 4px; font-size: 13px; color: var(--text-3); text-align: left; }
.waitlist.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.waitlist.done input, .waitlist.done button { display: none; }
.waitlist.done .form-note { color: var(--text); font-weight: 600; font-size: 15px; text-align: center; margin: 12px; animation: intro 0.6s var(--out); }
.waitlist.center { margin-inline: auto; }

/* ---------- demo ---------- */
.demo-wrap { margin-top: 64px; display: block; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-bottom: 18px; }
.chips-label { font-size: 14px; color: var(--text-3); font-weight: 500; margin-right: 4px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 550;
  background: var(--card); box-shadow: var(--shadow-card); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, transform 0.3s var(--spring), box-shadow 0.2s;
}
.chip:hover { color: var(--text); transform: translateY(-2px); }
.chip:active { transform: scale(0.94); }
.chip.running { color: var(--accent); box-shadow: var(--shadow-card), 0 0 0 1.5px var(--accent) inset; animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--accent) inset, 0 0 0 5px var(--accent-soft); } }
.chip.applied { color: var(--text); }
.chip.applied::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%; animation: pop 0.4s var(--spring);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
@keyframes pop { from { transform: scale(0); } }
.chip.ghost { width: 36px; padding: 0; justify-content: center; }
.chip.ghost svg { width: 15px; height: 15px; transition: transform 0.5s var(--out); }
.chip.ghost:hover svg { transform: rotate(-200deg); }
.demo-hint { text-align: center; color: var(--text-3); font-size: 13px; margin: 18px 0 0; }

.demo-tilt { perspective: 1800px; }
.demo-frame {
  --s: 1; position: relative; height: calc(660px * var(--s)); border-radius: calc(22px * var(--s));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--out); transform-style: preserve-3d;
}
.demo-frame::before { content: ''; position: absolute; inset: 10% 6% -4%; border-radius: 40px; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.ed {
  position: absolute; left: 0; top: 0; width: 1180px; height: 660px; transform: scale(var(--s)); transform-origin: 0 0;
  display: grid; grid-template-rows: 46px minmax(0, 1fr) 210px; gap: 10px; padding: 0 12px 12px;
  background: var(--win); border-radius: 22px; box-shadow: var(--shadow-pop); font-size: 12px; user-select: none; overflow: hidden;
}
.ed svg { width: 15px; height: 15px; }
.ed-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.ed-top-l, .ed-top-r { display: flex; align-items: center; gap: 10px; flex: 1; }
.ed-top-r { justify-content: flex-end; }
.ed-top-l img { border-radius: 6px; }
.ed-proj { font-weight: 650; font-size: 13px; }
.ed-saved { color: var(--text-3); font-size: 11px; }
.ed-tc { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.ed-dur { font-family: var(--mono); color: var(--text-3); font-size: 13px; }
.ed-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 600; }
.ed-btn.accent { background: var(--accent); color: #fff; box-shadow: none; }
.ed-main { display: grid; grid-template-columns: 42px minmax(0, 1fr) 270px; gap: 10px; min-height: 0; }
.ed-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; }
.ed-rail i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-3); }
.ed-rail i.on { background: var(--accent-soft); color: var(--accent); }
.ed-stage { display: grid; place-items: center; padding: 14px; border-radius: 14px; background: var(--well); box-shadow: 0 0 0 1px var(--line) inset; }

.canvas { position: relative; height: 100%; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); container-type: size; }
.wall { position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 20%, #ff8cc0, transparent 60%), radial-gradient(60% 80% at 85% 10%, #6cb8ff, transparent 60%), radial-gradient(70% 90% at 70% 100%, #c29bff, transparent 60%), linear-gradient(135deg, #ffa54d, #7647ff); }
.zoomer { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.win { position: absolute; left: 9%; top: 10%; width: 82%; height: 80%; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(30, 10, 60, 0.4); display: flex; flex-direction: column; }
.win-bar { height: 7%; min-height: 14px; background: #f1f1f4; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-bottom: 1px solid #e3e3e8; }
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin: 0 auto; width: 30%; height: 50%; border-radius: 4px; background: #e2e2e8; }
.win-body { flex: 1; display: flex; }
.win-side { width: 18%; background: #f6f6f9; padding: 4% 3%; display: flex; flex-direction: column; gap: 9%; border-right: 1px solid #ececf0; }
.win-side b { height: 7px; border-radius: 4px; background: #dcdce4; }
.win-side b:first-child { background: #1f2333; width: 70%; height: 9px; }
.win-content { flex: 1; padding: 4%; display: flex; flex-direction: column; gap: 5%; position: relative; }
.w-head { height: 12px; width: 40%; border-radius: 4px; background: #1f2333; }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 26%; }
.w-card { border-radius: 6px; background: #f3f3f7; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow 0.3s, background-color 0.3s; }
.w-card span { height: 6px; width: 50%; border-radius: 3px; background: #c8c8d2; }
.w-card em { height: 14px; width: 70%; border-radius: 4px; background: #2a2f45; }
.w-card.hot.lit { background: #eaf3ff; box-shadow: 0 0 0 2px #2f68ff inset; }
.w-chart { flex: 1; display: flex; align-items: flex-end; gap: 3%; padding: 2% 0; }
.w-chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: linear-gradient(#6cb8ff, #2f68ff); }
.w-btn { position: absolute; right: 4%; top: 4%; padding: 5px 12px; border-radius: 6px; background: #2f68ff; color: #fff; font-size: 10px; font-weight: 700; transition: transform 0.15s; }
.w-btn.pressed { transform: scale(0.92); background: #1f4fd6; }
.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; z-index: 3; }
.cursor svg { width: 18px !important; height: 18px !important; fill: #111; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.ripple { position: absolute; left: -12px; top: -12px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #2f68ff; opacity: 0; transform: scale(0.3); }
.ripple.go { animation: ripple 0.6s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.6); } }
.cam { position: absolute; right: 3.5%; bottom: 6%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe48a, #ffb020 70%); border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); overflow: hidden; z-index: 2; }
.dot-face { position: absolute; inset: 0; animation: float 3s ease-in-out infinite; }
.dot-face i { position: absolute; top: 40%; width: 9%; height: 14%; border-radius: 50%; background: #2a1a05; animation: blink 4s infinite; }
.dot-face i:first-child { left: 34%; } .dot-face i:nth-child(2) { right: 34%; }
.dot-face b { position: absolute; left: 40%; top: 60%; width: 20%; height: 10%; border-radius: 0 0 20px 20px; background: #2a1a05; }
@keyframes float { 50% { transform: translateY(-4%); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }
.g-sub { position: absolute; left: 50%; top: 7%; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 8px; border-radius: 16px; background: rgba(20, 20, 24, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; color: #fff; transform: translate(-50%, -20px) scale(0.9); opacity: 0; transition: transform 0.5s var(--spring), opacity 0.3s; }
.g-sub.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.g-bell { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #ff8cc0, #e2408f); color: #fff; }
.g-bell svg { width: 15px !important; height: 15px !important; }
.g-txt { display: flex; flex-direction: column; line-height: 1.15; }
.g-txt b { font-size: 12px; } .g-txt small { font-size: 10px; opacity: 0.65; }
.g-btn { padding: 7px 12px; border-radius: 10px; background: #fff; color: #111; font-weight: 700; font-size: 11px; }
.caption { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 4; font-size: 5.6cqh; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.3s; }
.caption.show { opacity: 1; }
.caption span { display: inline-block; margin: 0 0.12em; transition: color 0.1s, transform 0.15s; }
.caption span.on { color: #ffd25a; transform: scale(1.08); }
.ed-chat { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 650; font-size: 13px; border-bottom: 1px solid var(--line); }
.chat-head svg { color: var(--accent); width: 16px; height: 16px; flex: none; }
.chat-head .model { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-3); }
.chat-log { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg { padding: 8px 11px; border-radius: 12px; line-height: 1.4; max-width: 92%; animation: msg-in 0.4s var(--spring) both; }
.msg.bot { background: var(--card-2); align-self: flex-start; color: var(--text-2); }
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.done { display: flex; gap: 6px; align-items: flex-start; color: var(--text); }
.msg.done::before { content: '✓'; color: var(--success); font-weight: 800; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
.chat-input { margin: 10px; min-height: 36px; padding: 9px 12px; border-radius: 10px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); display: flex; align-items: center; }
.chat-input span:empty::before { content: 'Ask for an edit…'; color: var(--text-3); }
.caret { width: 1.5px; height: 14px; background: var(--accent); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ed-tl { border-radius: 14px; display: flex; flex-direction: column; padding: 6px 10px 10px; }
.tl-ruler { display: grid; grid-template-columns: repeat(5, 1fr); margin-left: 78px; height: 20px; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.tl-ruler span { border-left: 1px solid var(--line-2); padding-left: 4px; line-height: 20px; }
.tl-body { flex: 1; display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.tl-heads, .tl-lanes { display: grid; grid-template-rows: 22px 22px 40px 34px 30px; gap: 5px; }
.tl-heads span { display: flex; align-items: center; font-size: 11px; font-weight: 600; color: var(--text-3); }
.tl-lanes { position: relative; cursor: ew-resize; }
.lane { position: relative; border-radius: 6px; background: rgba(var(--tint), 0.025); }
.clip, .segs { position: absolute; top: 0; bottom: 0; left: 0; }
.segs { right: 0; display: flex; }
.seg-p { flex: 0 0 auto; height: 100%; overflow: hidden; transition: width 0.7s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.4s, margin 0.7s, filter 0.2s; position: relative; }
.segs[data-segs='video'] .seg-p { border-radius: 6px; margin-right: 2px; background-image: repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.18) 36px 37px), linear-gradient(180deg, #4f8dff, #2f5fe0); }
.segs[data-segs='video'] .seg-p::after { content: attr(data-label); position: absolute; left: 7px; top: 4px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.segs[data-segs='voice'] .seg-p { border-radius: 6px; background: rgba(50, 213, 131, 0.18); box-shadow: 0 0 0 1px rgba(50, 213, 131, 0.35) inset; margin-right: 2px; color: #32d583; }
.seg-p:hover { filter: brightness(1.2); }
.seg-p svg { position: absolute; inset: 3px 0; width: 100% !important; height: calc(100% - 6px) !important; }
.seg-p.pause { opacity: 0.85; }
.segs.preview .seg-p.pause { background: rgba(255, 69, 58, 0.22) !important; box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.6) inset !important; color: #ff453a !important; background-image: none !important; animation: blinkred 0.45s 2; }
@keyframes blinkred { 50% { opacity: 0.4; } }
.segs.preview .seg-p.pause::after { content: '' !important; }
.segs.cut .seg-p.pause { width: 0 !important; margin-right: 0; opacity: 0; }
.cap-clips { position: absolute; inset: 0; }
.cap-clips i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: rgba(155, 123, 255, 0.25); box-shadow: 0 0 0 1px rgba(155, 123, 255, 0.5) inset; font-style: normal; font-size: 9.5px; font-weight: 600; color: #c7b3ff; padding: 0 5px; line-height: 22px; overflow: hidden; white-space: nowrap; transform-origin: left; animation: grow 0.4s var(--out) both; }
.clip { border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--out); }
.clip.on { transform: scaleX(1); }
.clip.gfx { background: linear-gradient(180deg, #ff8cc0, #e2408f); color: #fff; font-size: 10px; font-weight: 650; padding: 0 7px; line-height: 22px; }
.clip.music { background: rgba(255, 194, 61, 0.18); box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.45) inset; color: #ffc23d; overflow: hidden; }
.clip.music span { position: absolute; left: 7px; top: 2px; font-size: 9.5px; font-weight: 650; z-index: 1; }
.clip.music svg { position: absolute; inset: 12px 0 2px; width: 100% !important; height: 16px !important; }
.clip.music svg.duck { inset: 2px 0; height: calc(100% - 4px) !important; }
.duck path { stroke: #ffc23d; stroke-width: 1.2; vector-effect: non-scaling-stroke; fill: none; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
.playhead { position: absolute; top: -26px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; background: var(--text); z-index: 5; will-change: transform; pointer-events: none; }
.playhead i { position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 3px 3px 6px 6px; background: var(--text); }

/* ---------- interaction helpers ---------- */
/* spotlight that follows the mouse over cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::after { opacity: 1; }
/* gentle 3D tilt (set by JS) */
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform 0.5s var(--out), box-shadow 0.4s; }
.tilt:hover { --lift: -4px; box-shadow: var(--shadow-lift); }
/* scroll reveal: whole blocks, or children one after another */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--out), translate 0.9s var(--out); }
.reveal.in { opacity: 1; translate: 0 0; }
.stagger > * { opacity: 0; translate: 0 34px; scale: 0.97; transition: opacity 0.7s var(--out), translate 0.9s var(--out), scale 0.9s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.stagger.in > * { opacity: 1; translate: 0 0; scale: 1; }
.stagger > .tilt, .stagger > .stat, .stagger > li, .stagger > details {
  transition: transform 0.5s var(--out), box-shadow 0.4s, color 0.2s,
    opacity 0.7s var(--out) calc(var(--i, 0) * 70ms), translate 0.9s var(--out) calc(var(--i, 0) * 70ms), scale 0.9s var(--out) calc(var(--i, 0) * 70ms);
}

/* ---------- proof strip ---------- */
.strip { padding: 0; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 20px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform 0.4s var(--spring), box-shadow 0.3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat b { font-size: 28px; letter-spacing: -0.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 110px 0 20px; }
.section.tight { padding-top: 90px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head p:not(.kicker) { color: var(--text-2); font-size: 18px; margin: 18px auto 0; max-width: 580px; }
.sec-head.left p:not(.kicker) { margin-left: 0; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.t-wide { grid-column: span 2; }
.t-full { grid-column: 1 / -1; }
.viz { height: 210px; background: var(--well); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.t-full .viz { height: 250px; }
.tile-copy { padding: 22px 24px 26px; }
.tile-copy p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.tile-copy h3 { transition: color 0.3s; }
.tile:hover .tile-copy h3 { color: var(--accent); }
.viz-hint {
  position: absolute; right: 12px; bottom: 10px; font-size: 11px; font-weight: 600; color: var(--text-3);
  padding: 3px 9px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-card);
  opacity: 0; translate: 0 6px; transition: opacity 0.3s, translate 0.4s var(--out); pointer-events: none; z-index: 3;
}
.tile:hover .viz-hint { opacity: 1; translate: 0 0; }

.viz-cut { padding: 0 28px; cursor: pointer; }
.cut-row { display: flex; height: 64px; width: 100%; gap: 3px; }
.cut-row .cp { height: 100%; border-radius: 8px; background: rgba(50, 213, 131, 0.16); box-shadow: 0 0 0 1px rgba(50, 213, 131, 0.35) inset; color: #1fb36b; overflow: hidden; transition: flex-grow 0.8s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.5s, margin 0.8s; position: relative; }
.cut-row .cp svg { position: absolute; inset: 8px 0; width: 100%; height: calc(100% - 16px); }
.cut-row .cp.x { background: rgba(255, 69, 58, 0.14); box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.55) inset; color: #ff453a; }
.viz-cut.cut .cp.x { flex-grow: 0 !important; opacity: 0; margin: 0 -1.5px; }
.cut-tags { position: absolute; top: 26px; left: 28px; display: flex; gap: 6px; transition: opacity 0.4s; }
.viz-cut.cut .cut-tags { opacity: 0; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; }
.tag.red { background: rgba(255, 69, 58, 0.12); color: #e5372d; }

.viz-cap { background: linear-gradient(160deg, #2b2f3a, #121318); }
.cap-demo { margin: 0; padding: 0 20px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.cap-demo span { display: inline-block; transition: color 0.12s, transform 0.25s var(--spring); cursor: default; }
.cap-demo span.on, .cap-demo span:hover { color: #ffd25a; transform: scale(1.12) rotate(-2deg); }

.viz-zoom { cursor: none; }
.mini-screen { width: 74%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #ff8cc0, #6cb8ff 60%, #7647ff); position: relative; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.mini-zoom { position: absolute; inset: 0; animation: mini-zoom 5s cubic-bezier(0.6, 0, 0.2, 1) infinite; transform-origin: 70% 62%; transition: transform 0.6s var(--out); }
.mini-ui { position: absolute; inset: 14% 12%; background: #fff; border-radius: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding: 8%; }
.mini-ui b { border-radius: 4px; background: #e8e8ef; transition: background-color 0.2s; }
.mini-ui b.hit { animation: hit 5s infinite; }
.mini-cur { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #111; border: 2px solid #fff; animation: mini-cur 5s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
.viz-zoom.live .mini-zoom, .viz-zoom.live .mini-cur, .viz-zoom.live .mini-ui b.hit { animation: none; }
.viz-zoom.live .mini-ui b.on { background: #2f68ff; }
@keyframes mini-zoom { 0%, 30% { transform: scale(1); } 45%, 75% { transform: scale(2); } 90%, 100% { transform: scale(1); } }
@keyframes mini-cur { 0% { left: 20%; top: 30%; } 30%, 100% { left: 66%; top: 60%; } }
@keyframes hit { 0%, 36% { background: #e8e8ef; } 40%, 80% { background: #2f68ff; } 90% { background: #e8e8ef; } }

.viz-voice, .viz-duck { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 24px; place-items: stretch; }
.vb, .duck-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; transition: opacity 0.4s, filter 0.4s; }
.vb small, .duck-row small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.vb svg, .duck-row svg { width: 100%; height: 46px; }
.vb { color: #ff6a5e; } .vb.clean { color: #1fb36b; }
.viz-voice.off .vb.clean { opacity: 0.25; filter: grayscale(1); }
.viz-voice:not(.off) .vb:not(.clean) { opacity: 0.45; }
.switch { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--text-2); padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-card); }
.switch i { width: 30px; height: 18px; border-radius: 99px; background: var(--card-3); position: relative; transition: background-color 0.3s; }
.switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: translate 0.35s var(--spring); }
.switch[aria-pressed='true'] i { background: var(--success); }
.switch[aria-pressed='true'] i::after { translate: 12px 0; }
.duck-row.voice { color: #1fb36b; } .duck-row.music { color: #e9a400; }
.duck-row rect { transform-box: fill-box; transform-origin: center; }
.viz-duck:hover rect { animation: bar 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -37ms); }
@keyframes bar { to { transform: scaleY(0.45); } }

.viz-gfx { background: radial-gradient(circle at 50% 120%, #2b2f3a, #17181d 70%); padding: 0; display: block; touch-action: pan-y; }
.t-full .viz.viz-gfx { height: 340px; }
/* Real Clipo graphics, moved by the physics in main.js */
.drop { position: absolute; left: 0; top: 0; transform-origin: center; will-change: transform; cursor: grab; user-select: none; -webkit-user-drag: none; pointer-events: auto; }
.drop img { display: block; width: 100%; height: 100%; pointer-events: none; transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.45s; }
.drop.gone img { transform: scale(0); opacity: 0; }
.viz-gfx.grabbing, .viz-gfx.grabbing .drop { cursor: grabbing; }
.gx { position: absolute; color: #fff; border-radius: 14px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 24px rgba(0, 0, 0, 0.3); padding: 10px 14px; font-size: 13px; font-weight: 650; cursor: grab; user-select: none; transition: scale 0.3s var(--spring), box-shadow 0.3s, rotate 0.3s var(--spring); }
.gx:hover { scale: 1.05; }
.gx.dragging { cursor: grabbing; scale: 1.1; rotate: -2deg; z-index: 5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 24px 44px rgba(0, 0, 0, 0.5); }
.gx.settle { transition: translate 0.7s var(--spring), scale 0.3s var(--spring), rotate 0.3s var(--spring); }
.gx-stat { left: 7%; top: 18%; display: flex; flex-wrap: wrap; align-items: baseline; padding: 16px 20px; }
.gx-stat small { width: 100%; font-size: 11px; opacity: 0.7; font-weight: 600; }
.gx-stat b { font-size: 46px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.gx-stat em { font-style: normal; font-size: 24px; color: #32d583; margin-left: 2px; }
.gx-kicker { left: 34%; top: 20%; }
.gx-kicker span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #6cb8ff; }
.gx-island { left: 62%; top: 22%; display: flex; align-items: center; gap: 8px; background: #000; border-radius: 99px; }
.gx-island i { width: 8px; height: 8px; border-radius: 50%; background: #32d583; animation: pulse 2s infinite; }
.gx-sub { left: 38%; top: 58%; display: flex; align-items: center; gap: 8px; background: #fff; color: #111; }
.g-bell.sm { width: 20px; height: 20px; border-radius: 7px; }
.gx-place { left: 66%; top: 56%; display: flex; flex-direction: column; line-height: 1.2; }
.gx-place b { font-size: 18px; letter-spacing: -0.02em; } .gx-place small { opacity: 0.7; font-size: 11px; }
.viz-gfx .viz-hint { background: none; color: rgba(255, 255, 255, 0.55); box-shadow: none; }

.also { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.also li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-card); font-size: 14px; font-weight: 550; color: var(--text-2); transition: transform 0.35s var(--spring), color 0.2s, box-shadow 0.3s, opacity 0.7s var(--out), translate 0.9s var(--out), scale 0.9s var(--out); cursor: default; }
.also li:hover { transform: translateY(-3px); color: var(--text); box-shadow: var(--shadow-lift); }
.also svg { width: 16px; height: 16px; color: var(--accent); transition: transform 0.5s var(--spring); }
.also li:hover svg { transform: rotate(-12deg) scale(1.2); }

/* templates */
.tpl-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; }
.tpl { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.tpl > b { font-size: 15px; margin-top: 10px; letter-spacing: -0.01em; transition: color 0.2s; }
.tpl > small { color: var(--text-3); font-size: 13px; }
.tpl:hover > b { color: var(--accent); }
.tpl-art { width: 100%; border-radius: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.5s var(--spring), box-shadow 0.3s;
  background: radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); }
.tpl:hover .tpl-art { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-lift); }
.tpl:active .tpl-art { transform: translateY(-4px) scale(0.97); }
.a916 { aspect-ratio: 9 / 16; } .a169 { aspect-ratio: 16 / 9; } .a11 { aspect-ratio: 1; }
.tpl-cap { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; color: #fff; font-weight: 800; font-size: 15px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.tpl-cap i { font-style: normal; display: inline-block; }
.tpl:hover .tpl-cap i { animation: capword 1.6s infinite; }
.tpl-cap i:nth-child(2) { animation-delay: 0.4s !important; } .tpl-cap i:nth-child(3) { animation-delay: 0.8s !important; } .tpl-cap i:nth-child(4) { animation-delay: 1.2s !important; }
@keyframes capword { 0%, 25% { color: #ffd25a; transform: scale(1.15); } 30%, 100% { color: #fff; transform: none; } }
.chat { display: flex; flex-direction: column; gap: 7px; padding: 22% 12%; }
.chat i { height: 18px; border-radius: 10px; width: 70%; background: rgba(255, 255, 255, 0.9); transform-origin: left; }
.chat i.r { align-self: flex-end; background: #0a84ff; width: 60%; transform-origin: right; } .chat i.s { width: 45%; }
.tpl:hover .chat i { animation: bubble 0.5s var(--spring) both; }
.tpl:hover .chat i:nth-child(2) { animation-delay: 0.15s; } .tpl:hover .chat i:nth-child(3) { animation-delay: 0.3s; } .tpl:hover .chat i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bubble { from { transform: scale(0.3); opacity: 0; } }
.chat em { align-self: flex-start; display: flex; gap: 3px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.9); opacity: 0; transition: opacity 0.3s 0.6s; }
.chat em b { width: 5px; height: 5px; border-radius: 50%; background: #888; animation: typing 1s infinite; }
.chat em b:nth-child(2) { animation-delay: 0.15s; } .chat em b:nth-child(3) { animation-delay: 0.3s; }
.tpl:hover .chat em { opacity: 1; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 0.5; } }
.pod { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 12%; }
.pod span { height: 34%; border-radius: 10px; background: rgba(0, 0, 0, 0.18); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset; display: flex; align-items: flex-end; padding: 8px; color: rgba(255, 255, 255, 0.85); }
.pod svg { width: 100%; height: 22px; }
.pod rect { transform-box: fill-box; transform-origin: center; }
.tpl:hover .pod rect { animation: bar 0.5s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -53ms); }
.lt { position: absolute; left: 7%; bottom: 12%; padding: 5px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); color: #fff; display: flex; flex-direction: column; line-height: 1.15; transition: translate 0.5s var(--spring), opacity 0.3s; }
.lt b { font-size: 12px; } .lt small { font-size: 9px; opacity: 0.75; }
.tpl:not(:hover) .talk .lt { translate: -12px 0; opacity: 0.6; }
.dw { position: absolute; inset: 16% 14%; border-radius: 5px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); transition: transform 0.7s var(--out); transform-origin: 70% 60%; }
.dw i { position: absolute; left: 66%; top: 56%; width: 7px; height: 7px; border-radius: 50%; background: #111; border: 1.5px solid #fff; }
.tpl:hover .dw { transform: scale(1.5); }
.rev { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 4px; }
.stars { font-size: 18px; letter-spacing: 2px; display: flex; }
.stars i { font-style: normal; display: inline-block; }
.tpl:hover .stars i { animation: star 0.5s var(--spring) both; }
.stars i:nth-child(2) { animation-delay: 0.07s !important; } .stars i:nth-child(3) { animation-delay: 0.14s !important; } .stars i:nth-child(4) { animation-delay: 0.21s !important; } .stars i:nth-child(5) { animation-delay: 0.28s !important; }
@keyframes star { from { transform: scale(0) rotate(-90deg); } }
.rev small { font-size: 11px; font-weight: 600; }

/* ask */
.ask-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ask-copy > p:not(.kicker) { color: var(--text-2); font-size: 18px; margin: 18px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); transition: translate 0.3s var(--out), color 0.2s; }
.checks li:hover { translate: 4px 0; color: var(--text); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; transition: transform 0.4s var(--spring);
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks li:hover::before { transform: scale(1.2) rotate(-10deg); }
.checks.sm { gap: 10px; margin-top: 20px; }
.checks.sm li { font-size: 15px; }
.ask-chat { padding: 0 0 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ask-chat .chat-head { font-size: 14px; padding: 14px 12px 14px 18px; }
.replay { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--text-3); transition: color 0.2s, background-color 0.2s; }
.replay:hover { color: var(--text); background: var(--card-2); }
.replay svg { width: 15px; height: 15px; color: currentColor; transition: transform 0.6s var(--out); }
.replay:hover svg { transform: rotate(-200deg); }
.ask-chat .msg { margin: 0 16px; opacity: 0; animation: none; }
.ask-chat.play .msg.me { animation: msg-in 0.45s var(--spring) both; opacity: 1; }
.ask-chat.play .msg.bot { animation: msg-in 0.45s var(--spring) 3.4s both; opacity: 1; }
.steps { list-style: none; margin: 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--text-2); opacity: 0.35; }
.steps li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.ask-chat.play .steps li { animation: stepon 0.4s var(--out) both; animation-delay: calc(0.6s + var(--d) * 0.55s); }
.ask-chat.play .steps li i { animation: tick 0.45s var(--spring) both; animation-delay: calc(0.6s + var(--d) * 0.55s); }
@keyframes stepon { to { opacity: 1; color: var(--text); } }
@keyframes tick { 0% { transform: scale(0.6); } to { transform: scale(1); border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; } }

/* pro */
.pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pro { padding: 28px; border-radius: 22px; }
.pro > p { color: var(--text-2); margin: 8px 0 20px; font-size: 15px; }
.keys { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.keys span { display: inline-flex; align-items: center; gap: 4px; }
.keys small { margin-left: 4px; color: var(--text-3); font-size: 13px; }
kbd {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--raise), var(--card-2); box-shadow: 0 0 0 1px var(--line-2) inset, 0 3px 0 var(--line-2); transition: transform 0.08s, box-shadow 0.08s, background 0.2s, color 0.2s;
}
kbd:hover { box-shadow: 0 0 0 1px var(--accent) inset, 0 3px 0 var(--line-2); }
kbd.down { transform: translateY(3px); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 0 var(--line-2); background: var(--accent); color: #fff; }
.pro > .key-out { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); min-height: 22px; }
.key-out span { display: inline-block; animation: intro 0.4s var(--out); }
.meter { height: 44px; border-radius: 10px; background: var(--card-2); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 12px; cursor: ew-resize; touch-action: none; }
.meter-fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.18) 46px 47px), linear-gradient(90deg, #4f8dff, #2f5fe0); }
.meter-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); }
.meter-head::before { content: ''; position: absolute; top: -1px; left: -5px; width: 12px; height: 10px; border-radius: 2px 2px 6px 6px; background: #fff; }
.meter small { position: relative; margin-left: auto; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.adj-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.adj-prev { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #000; position: relative; }
.adj-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #6cb8ff, #c29bff 60%, #ffa54d); transition: transform 0.8s var(--out), filter 0.6s, opacity 0.6s; }
.adj-scene i { position: absolute; left: 30%; top: 30%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #ffe48a; box-shadow: 0 0 20px #ffe48a; }
.adj-scene b { position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: #2b1d5a; clip-path: polygon(0 60%, 25% 20%, 45% 55%, 70% 10%, 100% 50%, 100% 100%, 0 100%); }
.adj-prev.zoom .adj-scene { transform: scale(1.5) translate(4%, 6%); }
.adj-prev.warm .adj-scene { filter: sepia(0.5) saturate(1.5) hue-rotate(-12deg); }
.adj-prev.fade .adj-scene { opacity: 0.25; }
.adj { display: flex; flex-direction: column; gap: 6px; }
.adj button { text-align: left; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 650; background: var(--card-2); color: var(--text-2); box-shadow: 0 0 0 1px var(--line) inset; transition: background-color 0.2s, color 0.2s, transform 0.3s var(--spring); }
.adj button:hover { transform: translateX(3px); color: var(--text); }
.adj button[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.export { display: flex; flex-direction: column; gap: 10px; }
.fmt { display: flex; gap: 6px; }
.fmt button { flex: 1; padding: 8px 0; border-radius: 10px; font-size: 13px; font-weight: 650; background: var(--card-2); color: var(--text-2); box-shadow: 0 0 0 1px var(--line) inset; transition: background-color 0.25s, color 0.25s, transform 0.3s var(--spring); }
.fmt button:hover { color: var(--text); transform: translateY(-1px); }
.fmt button[aria-checked='true'] { background: var(--text); color: var(--card); box-shadow: none; }
.export-go { position: relative; height: 44px; border-radius: 11px; overflow: hidden; background: var(--accent); color: #fff; font-weight: 650; font-size: 14px; transition: transform 0.2s var(--spring), background-color 0.3s; }
.export-go:active { transform: scale(0.97); }
.export-go .bar { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, 0.25); }
.export-go .lbl { position: relative; }
.export-go.ok { background: #1fb36b; }

/* pricing */
#pricing .wrap { display: flex; flex-direction: column; align-items: center; }
.bill { margin-bottom: 28px; }
.bill button { height: 36px; padding: 0 18px; font-size: 14px; font-weight: 600; gap: 6px; display: inline-flex; align-items: center; }
.bill em { font-style: normal; font-size: 12px; color: var(--success); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; justify-content: center; width: 100%; }
.plan { padding: 30px; border-radius: 24px; display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan.featured { box-shadow: var(--shadow-card), 0 0 0 2px var(--accent); }
.plan.featured:hover { box-shadow: var(--shadow-lift), 0 0 0 2px var(--accent), 0 0 60px -10px var(--glow); }
.badge { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); animation: float 3s ease-in-out infinite; }
.badge.plain { top: 32px; right: 30px; padding: 0; background: none; animation: none; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 52px; letter-spacing: -0.05em; font-weight: 800; line-height: 1; display: inline-block; font-variant-numeric: tabular-nums; }
.price b.flip { animation: flip 0.5s var(--spring); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-14px) scale(0.9); } }
.price span { color: var(--text-3); font-size: 15px; }
.plan-sub { margin: 0; color: var(--text-2); font-size: 14px; min-height: 22px; }
.plan .checks { margin-bottom: 28px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); transition: box-shadow 0.3s, opacity 0.7s var(--out), translate 0.9s var(--out), scale 0.9s var(--out); }
details:hover { box-shadow: var(--shadow-lift); }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--card-2); color: var(--text-2); font-size: 18px; line-height: 1; transition: transform 0.4s var(--spring), background-color 0.2s, color 0.2s; }
summary:hover::after { background: var(--accent-soft); color: var(--accent); }
details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: #fff; }
.ans { overflow: hidden; }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

/* cta + footer */
.cta { padding: 130px 0 110px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 20% 0 0; z-index: -1; background: radial-gradient(40% 60% at 50% 60%, var(--glow), transparent 70%); animation: drift 10s ease-in-out infinite alternate; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta-logo { border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); margin-bottom: 28px; animation: float 4s ease-in-out infinite; transition: transform 0.5s var(--spring); }
.cta-logo:hover { transform: rotate(-10deg) scale(1.1); }
.cta h2 { font-size: clamp(34px, 5.4vw, 64px); }
.cta p { color: var(--text-2); font-size: 18px; margin: 16px 0 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.foot nav a { transition: color 0.2s; }
.foot nav a:hover { color: var(--text); }
.foot small { color: var(--text-3); font-size: 13px; }
.foot .brand { font-size: 16px; }
.foot .brand img { border-radius: 6px; }

/* tooltips */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% -4px;
  padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--card-3); color: var(--text); box-shadow: var(--shadow-card); pointer-events: none;
  opacity: 0; transition: opacity 0.2s, translate 0.3s var(--out); z-index: 10;
}
[data-tip]:hover::after { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav.compact .nav-pill { width: min(420px, 100% - 24px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: span 2; }
  .tpl-row { grid-template-columns: repeat(3, 1fr); }
  .ask-in, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-pill { width: calc(100% - 24px); height: 58px; }
  .hero { padding-top: 120px; }
  .sheet.top { margin: 0; border-radius: 0 0 30px 30px; padding-bottom: 80px; }
  .band { padding: 90px 0; }
  .t-full .viz.viz-gfx { height: 300px; }
  .sheet { margin: 0 6px; border-radius: 30px; padding: 90px 0; }
  .sheet .section + .section, .band .section + .section, .band .strip + .section { padding-top: 90px; }
  .br-d { display: none; }
  .waitlist { grid-template-columns: 1fr; }
  .waitlist .btn { width: 100%; }
  .bento, .pro-grid { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .gx-place { display: none; }
  .gx-kicker { left: 46%; } .gx-island { left: 8%; top: 72%; } .gx-sub { left: 55%; top: 64%; }
  .tpl-row { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .chips-label { width: 100%; text-align: center; }
  .chip { height: 32px; font-size: 13px; padding: 0 12px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .stat b { font-size: 21px; }
  .stat { padding: 14px 16px; }
  .adj-wrap { grid-template-columns: 100px 1fr; }
}
@media (hover: none) { .viz-hint { opacity: 1; translate: 0 0; } .viz-hint.hover-only { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; translate: none; scale: none; }
}

/* "Coming soon" as a tiny timeline: two clips, a launch marker and a creeping playhead */
.launch { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 30px; cursor: default; }
.launch-track { position: relative; width: min(340px, 86vw); height: 38px; }
.launch-ticks {
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 17px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.launch-clip {
  position: absolute; top: 14px; height: 22px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center;
  font-size: 11px; font-weight: 650; color: #fff; overflow: hidden; white-space: nowrap;
  background-image: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.18) 28px 29px);
  animation: clip-in 0.9s var(--out) both; transform-origin: left;
}
.launch-clip.macos { left: 2%; width: 37%; background-color: #1a8cff; animation-delay: 0.5s; }
.launch-clip.windows { left: 40%; width: 34%; background-color: #8b5cf6; animation-delay: 0.65s; }
@keyframes clip-in { from { transform: scaleX(0); opacity: 0; } }
.launch-flag {
  position: absolute; left: 80%; top: 9px; display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--success); transform: translateX(-1px);
}
.launch-flag::before { content: ''; position: absolute; left: 0; top: -9px; bottom: -6px; width: 1.5px; background: var(--success); }
.launch-flag i { width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.launch-head {
  position: absolute; top: -3px; bottom: -2px; left: 0; width: 2px; margin-left: -1px; background: var(--text);
  transform: translateX(var(--x, 0px)); transition: transform 0.9s var(--out);
}
.launch-head::before { content: ''; position: absolute; top: 0; left: -5px; width: 12px; height: 11px; border-radius: 3px 3px 6px 6px; background: var(--text); }
.launch-label { margin: 0; font-size: 14px; color: var(--text-2); }
.launch-label b { color: var(--text); font-weight: 650; }
.launch-label span { font-family: var(--mono); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Hero demo: a bare-bones copy of the Clipo editor (same layout + colours)
   ========================================================================== */
.ed { grid-template-rows: 44px minmax(0, 1fr) 236px; gap: 10px; padding: 0 12px 12px; font-size: 11.5px; }
.ed svg { width: 15px; height: 15px; }
.ed-top { padding: 0 2px; }
.ed-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-card); }
.ed-home, .ed-tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; color: var(--text-2); font-weight: 600; }
.ed-tab.on { background: var(--card-3); color: var(--text); }
.ed-tab.on i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ed-tab.add { padding: 0 6px; }
.ed-export { display: inline-flex; align-items: center; height: 30px; padding-left: 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; font-size: 12.5px; box-shadow: 0 6px 18px -6px var(--accent); }
.ed-export .chev { display: grid; place-items: center; width: 28px; height: 100%; margin-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.ed-avatar { position: relative; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd0ff, #3b82f6 70%); box-shadow: 0 0 0 2px var(--card-2); }
.ed-avatar i { position: absolute; top: 12px; width: 3px; height: 5px; border-radius: 2px; background: #0b1a33; left: 10px; }
.ed-avatar i + i { left: 17px; }

.ed-main { grid-template-columns: 46px minmax(0, 1fr) 214px 226px; gap: 10px; }
.ed-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; border-radius: 14px; }
.rail-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); background: var(--card-2); }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-3); font-weight: 650; font-size: 11px; }
.rail-item b { writing-mode: vertical-rl; rotate: 180deg; font-weight: 650; }
.rail-item.on { color: var(--text); }
.rail-item.on svg { color: var(--accent); }

.ed-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.ed-stage .canvas { height: 266px; width: 473px; aspect-ratio: auto; flex: none; }
.ask-bar { display: flex; align-items: center; gap: 8px; width: 470px; height: 40px; padding: 0 5px 0 12px; border-radius: 14px; background: var(--glass, rgba(30, 30, 34, 0.94)); box-shadow: var(--shadow-card); color: var(--text-3); }
.ask-bar > svg { color: var(--accent); }
.ask-text { flex: 1; display: flex; align-items: center; color: var(--text); font-size: 12.5px; }
.ask-text span:empty::before { content: 'Ask Clipo to edit…'; color: var(--text-3); }
.ask-kbd { font-size: 11px; color: var(--text-3); }
.ask-mic, .ask-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.ask-send { background: var(--accent); color: #fff; opacity: 0.55; }
.ask-pop {
  position: absolute; left: 50%; bottom: 58px; width: 440px; translate: -50% 6px; z-index: 6;
  display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px;
  background: rgba(24, 24, 28, 0.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-pop, 0 18px 48px rgba(0, 0, 0, 0.6));
  opacity: 0; transition: opacity 0.3s, translate 0.4s var(--spring); pointer-events: none;
}
.ask-pop.show { opacity: 1; translate: -50% 0; }
.ask-pop .msg { display: none; margin: 0; font-size: 11.5px; }
.ask-pop .msg:nth-last-child(-n + 2) { display: flex; }

.ed-panel { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 14px; overflow: hidden; }
.p-seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--well); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 4px; }
.p-seg span { flex: 1; text-align: center; height: 24px; line-height: 24px; border-radius: 6px; color: var(--text-2); font-weight: 600; }
.p-seg span.on { background: var(--card-3); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.p-seg.small { margin: 2px 0; }
.p-seg.small span { height: 22px; line-height: 22px; font-size: 11px; }
.p-sec { margin-top: 4px; font-size: 10.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.p-field { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); font-variant-numeric: tabular-nums; }
.p-field em { font-style: normal; color: var(--text-3); }
.p-field small { margin-left: auto; color: var(--text-3); }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.p-chips span { padding: 4px 9px; border-radius: 99px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text-2); }
.p-working { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); }
.p-working span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--card-2); color: var(--text); font-weight: 600; }
.p-working svg { width: 12px; height: 12px; }
.p-card { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 11px; background: rgba(255, 255, 255, 0.035); box-shadow: 0 0 0 1px var(--line) inset; }
.p-card-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.tone { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; flex: none; }
.tone svg { width: 13px !important; height: 13px !important; }
.tone.red { background: linear-gradient(180deg, #ff6b6b, #f04444); }
.tone.violet { background: linear-gradient(180deg, #a77bff, #7c4ff0); }
.tone.green { background: linear-gradient(180deg, #3dd68c, #20ae6a); }
.tone.blue { background: linear-gradient(180deg, #4aa6ff, #1a7cf2); }
.p-go { display: grid; place-items: center; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 650; transition: background-color 0.3s; }
.p-go.busy { background: linear-gradient(90deg, var(--accent), #6cb8ff, var(--accent)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.p-go.done { background: #20ae6a; }
@keyframes shimmer { to { background-position: -200% 0; } }
.p-card.flash { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.p-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); box-shadow: 0 0 0 1px var(--line) inset; font-size: 10.5px; font-weight: 600; text-align: center; color: var(--text); }

/* timeline */
.ed-tl { padding: 6px 10px 10px; }
.tl-bar { display: flex; align-items: center; justify-content: space-between; height: 36px; margin-bottom: 2px; }
.tl-tools { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: var(--card-2); }
.tl-tools i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--text-2); }
.tl-tools i.on { background: var(--accent); color: #fff; }
.tl-tools b { width: 1px; height: 16px; margin: 0 3px; background: var(--line-2); }
.tl-transport { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tl-transport .ed-tc { font-family: var(--mono); font-size: 13px; min-width: 44px; text-align: right; }
.tl-transport .ed-dur { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.tl-transport i { display: grid; place-items: center; }
.tl-transport i.play svg { fill: currentColor; }
.tl-zoom { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.tl-slider { position: relative; width: 120px; height: 4px; border-radius: 4px; background: var(--card-3); }
.tl-slider::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 70%; border-radius: inherit; background: var(--accent); }
.tl-slider i { position: absolute; left: 70%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.ed .tl-ruler { margin-left: 34px; }
.ed .tl-body { grid-template-columns: 26px 1fr; }
.ed .tl-heads span { font-family: var(--mono); font-size: 10px; justify-content: center; }
/* clips in the app's colours: text purple, graphics pink, video blue, sound green */
.ed .cap-clips i { border-radius: 6px; color: #fff; background: linear-gradient(180deg, #a77bff, #8b5cf6 55%, #7444e6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.ed .clip.gfx { border-radius: 6px; background: linear-gradient(180deg, #ff6fae, #f43f8e 55%, #dc2a77); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.ed .segs[data-segs='video'] .seg-p { border-radius: 8px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 3px 8px rgba(0, 0, 0, 0.35);
  background-image: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, 0.16) 40px 41px), linear-gradient(180deg, #2f95ff, #1677f2 55%, #0f66db); }
.ed .segs[data-segs='voice'] .seg-p { border-radius: 8px; color: rgba(255, 255, 255, 0.8); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 3px 8px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #3dd68c, #22b56f 55%, #189a5d); }
.ed .clip.music { border-radius: 8px; color: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset; background: linear-gradient(180deg, #3dd68c, #22b56f 55%, #189a5d); }
.ed .clip.music span { color: #fff; }
.ed .duck path { stroke: #fff; }
.ed .lane { background: rgba(255, 255, 255, 0.02); }

/* Headline wave: two blues (sky → royal) instead of the accent's purple shift */
.vf-line, .light .vf-line, :root[data-theme='light'] .vf-line { --hl-a: #38bdf8; --hl-b: #1f7bff; --hl-c: #2f4bf0; }

/* Waitlist: one rounded bar with the button inside, two small ticks underneath */
.waitlist { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(480px, 100%); padding: 0; background: none; box-shadow: none; border-radius: 0; }
.waitlist:focus-within { box-shadow: none; }
.wl-field {
  display: flex; align-items: center; gap: 4px; width: 100%; height: 60px; padding: 6px 6px 6px 18px; border-radius: 99px;
  background: var(--card); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, translate 0.3s var(--spring);
}
.wl-field > svg { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: color 0.2s; }
.wl-field:focus-within { box-shadow: var(--shadow-card), 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-soft); translate: 0 -1px; }
.wl-field:focus-within > svg { color: var(--accent); }
.wl-field input { flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: none; background: none; outline: none; font-size: 16px; color: var(--text); }
.wl-field .btn { height: 48px; padding: 0 22px; border-radius: 99px; font-size: 15px; }
.waitlist .form-note { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.waitlist .form-note span { display: inline-flex; align-items: center; gap: 6px; }
.waitlist .form-note span::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8cff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.waitlist.done .wl-field { display: none; }
.waitlist.done .form-note { font-size: 15px; font-weight: 600; color: var(--text); }
@media (max-width: 640px) {
  .wl-field { height: auto; flex-wrap: wrap; padding: 6px; border-radius: 22px; }
  .wl-field > svg { display: none; }
  .wl-field input { height: 46px; padding: 0 12px; }
  .wl-field .btn { width: 100%; }
}

/* The demo's Ask bar takes real typing */
.ed input { user-select: text; }
input.ask-text { flex: 1; min-width: 0; height: 100%; border: none; background: none; outline: none; color: var(--text); font: inherit; font-size: 12.5px; }
input.ask-text::placeholder { color: var(--text-3); }
.ask-bar { transition: box-shadow 0.2s, translate 0.25s var(--spring); }
.ask-bar:focus-within { box-shadow: var(--shadow-card), 0 0 0 2px var(--accent); translate: 0 -2px; }
.ask-send { border: none; cursor: pointer; transition: opacity 0.2s, transform 0.2s var(--spring); }
.ask-bar:focus-within .ask-send { opacity: 1; }
.ask-send:active { transform: scale(0.9); }

/* Sign-up on a white sheet (keeps the white/dark rhythm now that pricing is hidden) */
.cta-sheet { margin-bottom: 10px; padding: 0; }
.band + .cta-sheet { margin-top: 0; }
.cta-sheet .cta { padding: 120px 0 110px; }
.cta-sheet .cta-logo { box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); }
/* Demo timeline without a music lane */
.ed .tl-heads, .ed .tl-lanes { grid-template-rows: 24px 24px 46px 40px; }
/* Spam trap field: off-screen, never seen by people */
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- "Try asking" requests: coloured pills + a pointer that shows they're clickable ---------- */
.demo-chips { position: relative; }
.chip[data-run] {
  color: color-mix(in srgb, var(--c) 78%, var(--text));
  background: color-mix(in srgb, var(--c) 9%, var(--card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent) inset, 0 4px 14px -6px color-mix(in srgb, var(--c) 45%, transparent);
  font-weight: 600;
}
.chip[data-run]::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); order: -1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.chip[data-run].applied::after { display: none; }
.chip[data-run]:hover { color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--card)); }
.chip[data-run].running { color: var(--c); box-shadow: 0 0 0 1.5px var(--c) inset, 0 6px 18px -6px var(--c); animation: chip-breathe 1.1s ease-in-out infinite; }
@keyframes chip-breathe { 50% { box-shadow: 0 0 0 1.5px var(--c) inset, 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 6px 18px -6px var(--c); } }
.chip[data-run].applied { color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.chip[data-run].applied::before { background-color: var(--c); }
.chip.poked { transform: translateY(1px) scale(0.96); }

.try-pointer {
  position: absolute; left: 0; top: 0; z-index: 7; width: 24px; height: 24px; pointer-events: none;
  opacity: 0; transition: transform 0.85s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.4s;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}
.try-pointer.on { opacity: 1; }
.try-pointer svg { position: relative; z-index: 1; width: 24px; height: 24px; fill: #111318; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: transform 0.15s; }
.try-pointer.tap svg { transform: scale(0.82); }
.try-pointer i { position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.try-pointer.tap i { animation: pointer-ripple 0.55s ease-out; }
@keyframes pointer-ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- Ask Clipo box: a spinning RGB outline while a request is being worked on ---------- */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ask-bar { position: relative; }
.ask-bar::before {
  content: ''; position: absolute; inset: -2.5px; border-radius: 16px; padding: 2.5px; pointer-events: none;
  background: conic-gradient(from var(--ring), #ff4d5e, #ffb547, #32d583, #2fd4d0, #1a8cff, #8b5cf6, #f43f8e, #ff4d5e);
  -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);
  opacity: 0; transition: opacity 0.35s; animation: ring-spin 2s linear infinite;
}
@keyframes ring-spin { to { --ring: 360deg; } }
.ask-bar.working::before { opacity: 1; }
.ask-bar.working { animation: ring-glow 2.4s linear infinite; translate: 0 -2px; }
@keyframes ring-glow {
  0%, 100% { box-shadow: var(--shadow-card), 0 0 28px -2px rgba(255, 77, 94, 0.55); }
  25% { box-shadow: var(--shadow-card), 0 0 28px -2px rgba(255, 181, 71, 0.55); }
  50% { box-shadow: var(--shadow-card), 0 0 28px -2px rgba(26, 140, 255, 0.6); }
  75% { box-shadow: var(--shadow-card), 0 0 28px -2px rgba(139, 92, 246, 0.6); }
}

/* ---------- "Try asking": solid 3D buttons riding a gentle wave, magnetic like the site's other buttons ---------- */
.demo-chips { perspective: 700px; gap: 10px; }
.chip[data-run] {
  height: 40px; padding: 0 16px 0 14px; gap: 8px; color: #fff; font-weight: 650; border: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 84%, #000) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -2px 0 rgba(0, 0, 0, 0.16) inset,
    0 4px 0 color-mix(in srgb, var(--c) 58%, #000),
    0 12px 20px -8px color-mix(in srgb, var(--c) 75%, transparent);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  translate: var(--mgx, 0) var(--mgy, 0);
  transform-style: preserve-3d;
  animation: chip-wave 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.5s);
  transition: translate 0.25s var(--out), scale 0.18s var(--spring), filter 0.2s, box-shadow 0.15s, color 0.2s;
}
/* A sine wave through the row: each button rises and tips back a little, one after another */
@keyframes chip-wave {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateZ(0deg); }
  25% { transform: translateY(-4px) rotateX(12deg) rotateZ(-1deg); }
  50% { transform: translateY(0) rotateX(0deg) rotateZ(0deg); }
  75% { transform: translateY(3px) rotateX(-9deg) rotateZ(1deg); }
}
.chip[data-run]:hover { color: #fff; filter: brightness(1.08) saturate(1.05); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 84%, #000) 100%); }
.chip[data-run]:active, .chip[data-run].poked {
  scale: 0.95;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 0 color-mix(in srgb, var(--c) 58%, #000), 0 4px 10px -6px color-mix(in srgb, var(--c) 75%, transparent);
}
.chip[data-run]::after { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28); }
.chip[data-run].running { color: #fff; animation: chip-wave 3.6s ease-in-out infinite, chip-live 1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.5s), 0s; }
@keyframes chip-live { 50% { filter: brightness(1.18); } }
.chip[data-run].applied { color: #fff; filter: saturate(0.85); }
.chip[data-run].applied::before { background-color: rgba(255, 255, 255, 0.3); }

/* ---------- The macOS hand cursor that flies in and shows where to click ---------- */
.try-pointer {
  width: 34px; height: 34px; margin: -2px 0 0 -15px; /* the fingertip sits on the point */
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.28));
}
.try-pointer svg { width: 34px; height: 34px; fill: #fff; stroke: #111318; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transform-origin: 45% 8%; transition: transform 0.14s; }
.try-pointer svg .crease { fill: none; stroke-width: 1.4; }
.try-pointer.tap svg { transform: scale(0.84); }
.try-pointer i { left: 2px; top: -11px; width: 26px; height: 26px; border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 2px rgba(17, 19, 24, 0.25); }
/* Pointer uses the macOS hand image (cursor-hand.png, 77×93 at 2.5×); fingertip ≈ 39% across, 4% down */
.try-pointer { width: 30px; height: 36px; margin: -2px 0 0 -12px; }
.try-pointer img { display: block; width: 30px; height: 36px; transform-origin: 39% 4%; transition: transform 0.14s; user-select: none; }
.try-pointer.tap img { transform: scale(0.84); }
.try-pointer i { left: -1px; top: -11px; }
