/**
 * Home-only layout and motion. Legal pages load style.css alone so they stay still.
 *
 * Page rhythm: full-width bands that alternate white / soft blue, each holding a centred .wrap.
 */

[hidden] { display: none !important; }

body.home { background: #fff; }
body.home .wrap { max-width: 1160px; }
body.home .site-header { background: rgba(255, 255, 255, 0.72); }

.band { padding: 104px 0; position: relative; }
.band-soft { background: linear-gradient(180deg, #f5f8ff 0%, #f8fafc 100%); }

.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); }

.btn-glow {
  background: radial-gradient(90% 90% at 30% 20%, #6d8dff, #335cff);
  box-shadow: 0 12px 30px rgba(51, 92, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-glow:hover { background: radial-gradient(90% 90% at 30% 20%, #7c99ff, #2a52f5); }
.btn-white { background: #fff; color: #1d3fd8; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); }
.btn-white:hover { background: #f1f5ff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* ═════════════════════════  Hero  ═════════════════════════ */

.hero { position: relative; text-align: center; padding: 76px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -240px -10% auto;
  height: 760px;
  background:
    radial-gradient(520px 320px at 22% 40%, rgba(96, 130, 255, 0.22), transparent 70%),
    radial-gradient(520px 340px at 78% 30%, rgba(167, 139, 250, 0.20), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(36px, 6.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 20px auto 0;
}
.hero .sub {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.65;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.waitlist { display: flex; gap: 10px; max-width: 480px; margin: 32px auto 0; flex-wrap: wrap; }
.waitlist input[type=email] {
  flex: 1;
  min-width: 220px;
  height: 54px;
  padding: 0 17px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  outline: none;
}
.waitlist input[type=email]:focus { border-color: var(--brand); }
.form-msg { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 22px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.final .form-msg.ok, .final .form-msg.err { color: #fff; }

/* Trust chips under the call to action */
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.trust svg { width: 17px; height: 17px; color: var(--ok); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes wave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* ─── Hero app mock: a browser window showing the Create Video screen ─── */
.studio { margin: 44px auto 0; max-width: 1040px; text-align: left; }
.app-win {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(30, 58, 138, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.app-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #f1f4f9; border-bottom: 1px solid var(--border); }
.app-chrome .dots { display: flex; gap: 6px; flex: none; }
.app-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: #fca5a5; }
.app-chrome .dots i:nth-child(2) { background: #fcd34d; }
.app-chrome .dots i:nth-child(3) { background: #86efac; }
.app-chrome .url { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 340px; min-width: 0; height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; overflow: hidden; }
.app-chrome .url svg { width: 12px; height: 12px; color: var(--ok); flex: none; }
.chrome-note { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ok); white-space: nowrap; }

.app-body { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 440px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--border); background: #fbfcfe; }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.app-brand .brandmark { width: 22px; height: 22px; margin: 0; }
.app-side > span { display: flex; align-items: center; gap: 9px; padding: 8px 9px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.app-side > span svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.app-side > span.on { color: #1d4ed8; font-weight: 700; background: #eaf0ff; }
.app-side > span.on svg { opacity: 1; }

.app-main { min-width: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.app-title { min-width: 0; }
.app-title small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.app-title b { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 700; color: #1d4ed8; background: #eaf0ff; border-radius: 99px; white-space: nowrap; }
.auto-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: shimmer 1s ease-in-out infinite; }
.auto-chip.done { color: #15803d; background: #dcfce7; }
.auto-chip.done i { animation: none; }

/* Step bar: five equal-width steps, as in the app */
.stepbar { display: flex; gap: 6px; margin-top: 16px; padding: 5px; background: #f1f4f9; border-radius: 14px; }
.stepbar button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.stepbar button:hover { color: var(--text); background: rgba(255, 255, 255, .7); }
.stepbar .n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; font-size: 12px; font-weight: 700; border-radius: 50%; color: var(--muted); background: #fff; border: 1px solid var(--border-strong); }
.stepbar .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepbar button.is-done { color: var(--text-2); }
.stepbar button.is-done .n { font-size: 0; color: #fff; background: var(--ok); border-color: var(--ok); }
.stepbar button.is-done .n::after { content: '✓'; font-size: 12px; }
.stepbar button.is-active,
.stepbar button.is-active:hover { color: #fff; background: #3b82f6; box-shadow: 0 6px 16px rgba(59, 130, 246, .35); }
.stepbar button.is-active .n { font-size: 12px; color: #2563eb; background: #fff; border-color: #fff; }
.stepbar button.is-active .n::after { content: none; }

.app-stage { flex: 1; margin-top: 16px; }
.stage { display: grid; gap: 14px; animation: rise .35s both; }

.ui-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ui-input { display: flex; align-items: center; height: 42px; padding: 0 13px; font-size: 14.5px; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; white-space: nowrap; }
.ui-input.typing { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.ui-input.typing span::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #3b82f6; animation: blink 1s steps(1) infinite; }
.ui-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ui-row.spread { justify-content: space-between; }
.ui-meta { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.ui-meta b { color: var(--text-2); }
.ui-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 700; color: #fff; background: #3b82f6; border-radius: 9px; white-space: nowrap; transition: background .2s; }
.ui-btn.ghost { color: var(--text-2); background: #fff; border: 1px solid var(--border-strong); }
.ui-btn.busy { background: #93b4f8; }
.ui-btn.busy::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .8s linear infinite; }
.ui-btn.ok { background: var(--ok); }
.ui-progress { height: 8px; border-radius: 99px; background: #e8edf5; overflow: hidden; }
.ui-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #7c3aed); transition: width .12s linear; }

/* Script */
.doc { padding: 14px 16px; min-height: 150px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcff; }
.doc .ln { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.doc .ln:last-child { margin-bottom: 0; }
.doc .ln.show { opacity: 1; transform: none; }
.doc .ln b { display: inline-block; min-width: 68px; font-size: 10.5px; letter-spacing: .07em; color: #2563eb; }

/* Voiceover */
.voice-pick { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border: 1px solid var(--border); border-radius: 12px; }
.voice-pick .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #a5b4fc, #4338ca); }
.voice-pick b { display: block; font-size: 13.5px; }
.voice-pick small { font-size: 12px; color: var(--dim); }
.wavebox { height: 118px; padding: 0 14px; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: #fbfcff; }
.bars { display: flex; align-items: center; gap: 3px; width: 100%; height: 86px; }
.bars i { flex: 1; min-width: 2px; border-radius: 2px; background: #dbe3f0; transition: background .2s; }
.bars i.lit { background: linear-gradient(180deg, #60a5fa, #6d28d9); }

/* Visuals */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; }
.tile:not(.lit) { background: #e8edf5; }
.tile:not(.lit)::before, .thumb-img.new:not(.lit)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .65) 50%, transparent 80%); background-size: 220% 100%; animation: sweep 1.3s linear infinite; }
.tile span { position: absolute; left: 6px; bottom: 5px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; color: #fff; border-radius: 5px; background: rgba(15, 23, 42, .45); opacity: 0; }
.tile.lit { animation: pop .45s both; }
.tile.lit span { opacity: 1; }

/* Thumbnail */
.thumb-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: end; }
.thumb-slot small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.thumb-img { position: relative; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #e8edf5; }
.thumb-img.ref { background: linear-gradient(135deg, #64748b, #1e293b); filter: saturate(.6); }
.thumb-img.new strong, .thumb-img.new em { position: absolute; left: 7%; font-weight: 900; line-height: 1; color: #fff; -webkit-text-stroke: 1.2px #111; text-shadow: 0 3px 0 #111; opacity: 0; }
.thumb-img.new strong { top: 18%; font-size: clamp(22px, 3.6vw, 40px); }
.thumb-img.new em { top: 58%; font-style: normal; font-size: clamp(13px, 1.8vw, 20px); }
/* The demo video is about the pyramid builders, so its thumbnail is a desert at dusk. */
:root { --demo-thumb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='xMaxYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%231e1b4b'/%3E%3Cstop offset='.5' stop-color='%239a3412'/%3E%3Cstop offset='1' stop-color='%23f59e0b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23s)'/%3E%3Ccircle cx='132' cy='36' r='12' fill='%23fde68a' opacity='.9'/%3E%3Cpath d='M70 76 102 28 134 76z' fill='%23d97706'/%3E%3Cpath d='M102 28 134 76 112 76z' fill='%237c2d12'/%3E%3Cpath d='M122 76 142 46 162 76z' fill='%23b45309'/%3E%3Cpath d='M142 46 162 76 149 76z' fill='%23451a03'/%3E%3Cpath d='M0 72q40-7 80 0t80 0v18H0z' fill='%23b45309'/%3E%3Cpath d='M0 80q50-5 100 0t60-2v12H0z' fill='%2378350f'/%3E%3C/svg%3E") center / cover no-repeat, #7c2d12; }
.thumb-img.new.lit { background: var(--demo-thumb); animation: pop .5s both; }
.thumb-img.new.lit strong, .thumb-img.new.lit em { opacity: 1; }

/* Export */
.export-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fbfcff; }
.play-tile { flex: none; width: 88px; aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; background: var(--demo-thumb); }
.play-tile svg { width: 24px; height: 24px; }
.export-info { flex: 1; min-width: 0; display: grid; gap: 7px; }
.export-info b { font-size: 15px; }
.export-info small { font-size: 12.5px; color: var(--dim); }
.export-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; visibility: hidden; }
.export-done.show { visibility: visible; animation: rise .35s both; }
.export-done b { margin-right: auto; color: #15803d; }
.ok-dot { display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; font-weight: 800; color: #fff; background: var(--ok); border-radius: 50%; }

/* Shared by the feature cards below */
.typed { flex: 1; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; }
.typed::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.mini-wave, .track-wave {
  --bar: #335cff;
  background: repeating-linear-gradient(90deg, var(--bar) 0 3px, transparent 3px 7px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  animation: wave 1.4s ease-in-out infinite alternate;
  border-radius: 4px;
}
.track-scenes i { border-radius: 7px; }
.a1 { background: linear-gradient(160deg, #fcd34d, #b45309 60%, #451a03); }
.a2 { background: linear-gradient(160deg, #bae6fd, #0369a1 65%, #0c4a6e); }
.a3 { background: linear-gradient(160deg, #e7e5e4, #78716c 55%, #292524); }
.a4 { background: linear-gradient(160deg, #f0abfc, #7c3aed 55%, #1e1b4b); }
.a5 { background: linear-gradient(160deg, #bbf7d0, #15803d 60%, #052e16); }

/* ═════════════════════════  Strip  ═════════════════════════ */

.strip { padding: 28px 0 34px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.strip-label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.strip-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.strip-track span {
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═════════════════════════  Features (bento)  ═════════════════════════ */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.feat {
  padding: 16px 16px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30, 58, 138, .1); }
.feat-wide { grid-column: span 2; }
.feat-art {
  position: relative;
  height: 170px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f1f5ff, #f8fafc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.feat h3 { margin: 18px 10px 0; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.feat p { margin: 7px 10px 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.feat-art:has(.ring) { flex-direction: row; align-items: center; gap: 18px; }
.ring {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#335cff calc(var(--p) * 1%), #dbe3ff 0);
}
.ring span { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.score-bars { list-style: none; flex: 1; display: grid; gap: 9px; }
.score-bars li { display: grid; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.score-bars i { position: relative; height: 7px; border-radius: 99px; background: #dbe3ff; overflow: hidden; }
.score-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #335cff; border-radius: inherit; }

.idea-box { padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 4px; }
.idea-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.idea-box .typed { font-size: 14px; font-weight: 600; }
.gen-lines { display: grid; gap: 7px; }
.gen-lines i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #c7d2fe, #e0e7ff); animation: shimmer 2s ease-in-out infinite; }
.gen-lines i:nth-child(1) { width: 92%; }
.gen-lines i:nth-child(2) { width: 78%; animation-delay: .2s; }
.gen-lines i:nth-child(3) { width: 58%; animation-delay: .4s; }
@keyframes shimmer { 50% { opacity: .45; } }

.mini-wave { height: 64px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--text-2); }

.track { position: relative; display: grid; gap: 12px; }
.track-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; }
.track-row > span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--dim); }
.track-wave { height: 42px; }
.track-scenes { display: flex; gap: 5px; }
.track-scenes i { flex: 1; aspect-ratio: auto; height: 46px; border-radius: 7px; }
.playhead { position: absolute; top: -6px; bottom: -6px; left: 68px; width: 2px; background: #ef4444; border-radius: 2px; animation: scrub 6s linear infinite; }
@keyframes scrub { to { left: calc(100% - 2px); } }

.thumb-mini { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 22px; color: #335cff; font-weight: 800; }
.thumb-mini i { width: 42%; aspect-ratio: 16 / 9; border-radius: 10px; }
.thumb-mini .ref { background: linear-gradient(135deg, #94a3b8, #334155); }
.thumb-mini .new { background: linear-gradient(135deg, #fbbf24, #dc2626 70%); box-shadow: 0 10px 24px rgba(220, 38, 38, .25); animation: pop 2.4s ease-in-out infinite alternate; }

.faces { display: flex; justify-content: center; gap: 14px; }
.faces i {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fde68a 0 34%, transparent 35%), linear-gradient(180deg, #e0e7ff 60%, #4338ca 61%);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}
.faces i:nth-child(2) { transform: translateY(-8px); }
.badge-mini { align-self: center; font-size: 12px; font-weight: 700; color: var(--ok); background: #dcfce7; padding: 5px 11px; border-radius: 99px; }

.layers { display: grid; gap: 8px; }
.layers i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 9px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; position: relative; }
.layers i::after { content: '◆'; position: absolute; right: 12px; color: #335cff; font-size: 10px; top: 50%; transform: translateY(-50%); }
.layers i:nth-child(1) { margin-left: 0; }
.layers i:nth-child(2) { margin-left: 14px; }
.layers i:nth-child(3) { margin-left: 28px; }

.batch { display: grid; gap: 8px; }
.batch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.batch-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-row em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--muted); background: #f1f5f9; }
.batch-row.done em { color: var(--ok); background: #dcfce7; }
.batch-row.live em { color: #1d3fd8; background: #e0e7ff; animation: shimmer 1.6s ease-in-out infinite; }

/* ═════════════════════════  Niches  ═════════════════════════ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.split-text p { margin: 18px 0 28px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

.niche-stage { position: relative; height: 380px; }
.nc {
  position: absolute;
  width: 270px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 58, 138, .12);
  animation: float 6s ease-in-out infinite;
}
.nc1 { top: 0; left: 4%; }
.nc2 { top: 128px; right: 0; animation-delay: -2s; }
.nc3 { bottom: 0; left: 14%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.nc-top { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.sc { font-size: 13px; font-weight: 800; color: #047857; background: #d1fae5; padding: 3px 9px; border-radius: 8px; }
.sc.mid { color: #b45309; background: #fef3c7; }
.nc svg { margin: 10px 0 6px; height: 40px; width: 100%; }
.nc polyline { fill: none; stroke: #335cff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nc em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ═════════════════════════  Runs in the browser  ═════════════════════════ */

#browser .split-text > p { margin-bottom: 26px; }
.points { display: grid; gap: 18px; }
.point { display: flex; gap: 14px; }
.pico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: #2563eb; background: #eaf0ff; border-radius: 10px; }
.pico svg { width: 18px; height: 18px; }
.point b { display: block; font-size: 16px; }
.split-text .point p { margin: 3px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.compare { border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(30, 58, 138, .1); overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: .9fr 1.1fr 1.1fr; }
.cmp-head span, .cmp-row span { padding: 15px 16px; font-size: 14px; line-height: 1.4; }
.cmp-head span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: #f8fafc; }
.cmp-head .us { color: #1d4ed8; background: #eaf0ff; }
.cmp-row { border-top: 1px solid var(--border); }
.cmp-row span:first-child { font-weight: 700; color: var(--text-2); }
.cmp-row .no { color: var(--muted); }
.cmp-row .no::before { content: '✕ '; color: #ef4444; font-weight: 700; }
.cmp-row .yes { font-weight: 700; color: #15803d; background: #f5f9ff; }
.cmp-row .yes::before { content: '✓ '; }

/* ═════════════════════════  Showcase  ═════════════════════════ */

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.video-grid.vg-1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.video-grid.vg-2, .video-grid.vg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcard { margin: 0; display: grid; gap: 12px; align-content: start; }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #1e293b, #0f172a); box-shadow: 0 18px 44px rgba(15, 23, 42, .16); }
.vthumb > button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vthumb > button:hover img { transform: scale(1.03); }
.vthumb iframe, .vthumb video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vplay { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.vplay svg { width: 26px; height: 26px; margin-left: 4px; }
.vthumb > button:hover .vplay { background: #2563eb; transform: scale(1.06); }
.vcard figcaption b { display: block; font-size: 16px; }
.vcard figcaption span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Showcase video player overlay */
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 23, .86); backdrop-filter: blur(6px); animation: lb-fade .2s ease both; }
.lightbox-inner { position: relative; width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9)); animation: lb-zoom .25s ease both; }
.lightbox-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-frame iframe, .lightbox-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-title { margin-top: 14px; font-size: 16px; font-weight: 700; color: #fff; text-align: center; }
.lightbox-close { position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .2s; }
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-frame { border-radius: 10px; }
}

/* ═════════════════════════  Why it costs less  ═════════════════════════ */

.econ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.econ { padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.econ .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #335cff; background: #eef2ff; }
.econ .ico svg { width: 22px; height: 22px; }
.econ h3 { margin-top: 18px; font-size: 18px; font-weight: 800; }
.econ p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ═════════════════════════  Pricing  ═════════════════════════ */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
}
.plan.featured {
  border: 2px solid #335cff;
  box-shadow: 0 24px 60px rgba(51, 92, 255, .2);
  transform: translateY(-6px);
}
.plan .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #335cff, #7a94ff);
  white-space: nowrap;
}
.plan .name { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan .price { margin-top: 8px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan .meta { margin-top: 4px; font-size: 13.5px; color: var(--dim); }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.plan li svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: #335cff; }
.plan .btn { width: 100%; }
.plan.featured .btn-primary { background: linear-gradient(135deg, #335cff, #6d8dff); }
.plan-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14px; white-space: pre-line; }
.plan-grid.one { grid-template-columns: minmax(0, 480px); justify-content: center; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--dim); letter-spacing: 0; white-space: nowrap; }
.plan .price s { display: inline-block; margin-left: 8px; font-size: 20px; font-weight: 600; color: var(--dim); }
.plan .save { align-self: flex-start; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 3px 10px; border-radius: 99px; }
.plan .save:empty { display: none; }
.terms { display: flex; gap: 4px; margin-top: 14px; padding: 4px; background: #f1f4f9; border-radius: 12px; }
.terms button { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; padding: 7px 4px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.terms button em { font-style: normal; font-size: 11px; font-weight: 700; color: #15803d; }
.terms button[aria-pressed="true"] { color: var(--text); background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }

.topups { max-width: 860px; margin: 52px auto 0; text-align: center; }
.topups h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.topups > p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.topup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.topup { position: relative; padding: 20px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.topup.featured { border-color: #3b82f6; box-shadow: 0 12px 30px rgba(59, 130, 246, .15); }
.topup .tag { position: absolute; top: -11px; right: 14px; padding: 3px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #3b82f6; border-radius: 99px; }
.topup b { display: block; font-size: 15px; }
.topup .tp-price { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.topup small { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }

/* ═════════════════════════  Viral templates  ═════════════════════════ */

.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl { display: grid; gap: 12px; padding: 12px 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.tpl-art { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #e2e8f0; }
.tpl-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpl-kind { position: absolute; left: 10px; top: 10px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, .45); border-radius: 99px; backdrop-filter: blur(4px); }
.tpl-body { padding: 0 4px; }
.tpl-body b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.tpl-body span { font-size: 13px; color: var(--dim); }
.tpl-btn { align-self: end; text-decoration: none; margin: 0 4px; height: 36px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #1d4ed8; background: #eaf0ff; border-radius: 10px; }
.tpl-btn.is-done { color: #15803d; background: #dcfce7; }
.tpl-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tpl-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tpl-steps i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.tpl-steps b { display: block; font-size: 15px; }
.tpl-steps span { font-size: 14px; color: var(--muted); }
.tpl-cta { margin-top: 32px; text-align: center; }

/* ═════════════════════════  FAQ  ═════════════════════════ */

.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq-list details:hover { border-color: #cbd5e1; }
.faq-list details[open] { box-shadow: 0 12px 30px rgba(15, 23, 42, .06); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
/* Chevron: points down while closed, up while open. */
.faq-list summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: -4px 4px 0 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-list a { color: #335cff; }
.faq-more { margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.faq-more a { color: #335cff; font-weight: 700; }

/* ═════════════════════════  Final CTA  ═════════════════════════ */

#start.band { padding-top: 40px; }
.final {
  text-align: center;
  padding: 72px 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 15% 110%, rgba(167, 139, 250, .55), transparent 70%),
    radial-gradient(420px 260px at 85% -10%, rgba(125, 211, 252, .45), transparent 70%),
    linear-gradient(135deg, #335cff, #1e3a8a);
}
.final h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.final > p { margin: 14px auto 0; max-width: 520px; color: #dbe4ff; font-size: 17px; line-height: 1.6; }
.final .waitlist input[type=email] { border-color: transparent; }

body.home .site-footer { margin-top: 0; }

/* ═════════════════════════  Reveal  ═════════════════════════ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═════════════════════════  Responsive  ═════════════════════════ */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat-wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .niche-stage { max-width: 520px; width: 100%; margin: 0 auto; }
  .app-body { grid-template-columns: 150px minmax(0, 1fr); }
  .stepbar button { gap: 6px; font-size: 12.5px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .band { padding: 72px 0; }
  .hero { padding: 48px 0 56px; }
  .studio { margin-top: 32px; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side, .chrome-note, .auto-chip { display: none; }
  .app-main { padding: 14px 12px 16px; }
  .stepbar { gap: 3px; padding: 4px; }
  .stepbar button { flex-direction: column; gap: 3px; height: 54px; padding: 0 2px; font-size: 11px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid .tile:nth-child(n+5) { display: none; }
  .thumb-row { grid-template-columns: 1fr; }
  .thumb-slot:first-child { display: none; }
  .export-card { padding: 12px; gap: 12px; }
  .play-tile { width: 64px; }
  .video-grid, .video-grid.vg-2, .video-grid.vg-4, .plan-grid.two { grid-template-columns: minmax(0, 1fr); }
  .cmp-head span, .cmp-row span { padding: 11px 9px; font-size: 13px; }
  .econ-grid, .bento, .tpl-steps { grid-template-columns: 1fr; }
  .tpl-grid { gap: 12px; }
  .feat-wide { grid-column: auto; }
  .final { padding: 52px 20px; }
  .niche-stage { height: auto; display: grid; gap: 14px; }
  .nc { position: static; width: 100%; animation: none; }
  .plan.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .doc .ln, .tile span { opacity: 1; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
}
