:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #f6f3fc;
  background: #111119;
  --ink: #f6f3fc;
  --muted: #bcb6cc;
  --border: #373142;
  --accent: #c2afff;
  --accent-ink: #211632;
}

* { box-sizing: border-box; }
[hidden], [data-mode="desktop"] [data-hosted], [data-mode="hosted"] [data-desktop] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 56rem 33rem at 78% 290px, #291d45 0%, transparent 100%), #111119;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, main:focus-visible, figure:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.frame { width: min(1250px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; left: 1rem; top: 1rem; padding: .7rem 1rem; background: #fff; color: #171120; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.masthead { min-height: 80px; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); border-bottom: 1px solid #ffffff1a; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark, .preview-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: var(--accent-ink); background: var(--accent); font-size: .79rem; font-weight: 850; letter-spacing: -.065em; }
.desktop-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); margin-left: auto; }
.desktop-links a, .footer > a:not(.brand) { color: var(--muted); font-size: .875rem; font-weight: 650; }
.desktop-links a:hover, .footer a:hover { color: var(--ink); }
.mobile-menu { display: none; position: relative; z-index: 2; }
.mobile-menu summary { display: grid; place-items: center; min-height: 44px; cursor: pointer; list-style: none; color: var(--muted); font-weight: 700; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; top: calc(100% + .5rem); right: 0; display: grid; min-width: 12rem; padding: .35rem; border: 1px solid #594971; border-radius: 12px; background: #231c32; box-shadow: 0 14px 28px #0c091cba; }
.mobile-menu a { display: flex; min-height: 44px; align-items: center; padding: .65rem .8rem; border-radius: 6px; font-size: .9rem; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: #3a2c52; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  padding: .82rem 1.1rem; min-height: 44px; border: 1px solid transparent; border-radius: 9px;
  font-size: .9rem; font-weight: 740; text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { background: #ded2ff; }
.button-outline { border-color: #595065; background: #ffffff07; }
.button-outline:hover { background: #ffffff12; border-color: #9d86b7; }
.watch-workflow span { font-size: 1.15rem; line-height: 1; }
.hero { min-height: 635px; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.18fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: 5rem 5.5rem; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 4.65rem); font-weight: 800; line-height: 1.02; letter-spacing: -.07em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-copy > p:first-of-type { max-width: 29rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.34vw, 1.17rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-actions .button { min-height: 48px; }
.hero-access, .signin-notice { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.hero-access { margin: .75rem 0 0; }
.signin-notice { margin: 1rem 0 0; padding: .65rem .8rem; border: 1px solid #645180; border-radius: 8px; background: #271f38; }

.product-preview { min-width: 0; margin: 0; scroll-margin-top: 1.5rem; }
.demo-shell { overflow: hidden; border: 1px solid #6b5888; border-radius: 16px; background: #14111e; box-shadow: 0 24px 70px #080710ab, 0 0 65px #8863d72a; }
.preview-toolbar { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-bottom: 1px solid #3a314b; background: #211b2e; font-size: .82rem; }
.preview-mark { width: 25px; height: 25px; border-radius: 6px; font-size: .62rem; }
.preview-example { margin-left: auto; color: #c5b9d6; font-size: .72rem; }
.demo-stage { position: relative; min-height: clamp(17rem, 26vw, 22rem); isolation: isolate; }
.demo-panel { position: absolute; inset: 0; }
.demo-find, .demo-edit { display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr) minmax(7rem, 32%); }
.demo-wide { align-self: center; position: relative; isolation: isolate; display: grid; aspect-ratio: 16 / 9; margin: .75rem; overflow: hidden; border: 1px solid #8c789f; border-radius: 8px; }
.demo-game { background: #40394b url('/assets/clip-demo.webp') center / cover; }
.demo-face { background: #393158 url('/assets/demo-facecam.webp') center 40% / cover; }
.demo-wide .demo-face { position: absolute; left: 5%; bottom: 9%; width: 25%; aspect-ratio: 4 / 3; border: 1px solid #b6a0ff; border-radius: 4px; }
.demo-time { position: absolute; right: .35rem; bottom: .35rem; padding: .14rem .32rem; border-radius: 3px; background: #14101ad9; color: #fff; font-size: .68rem; }
.demo-inspector { display: grid; align-content: center; gap: .45rem; min-width: 0; padding: .65rem; border-left: 1px solid #3a3049; background: #211b2e; color: #dbd1e8; font-size: clamp(.68rem, 1.15vw, .8rem); }
.demo-inspector > strong { color: var(--ink); margin-bottom: .2rem; font-size: .8rem; }
.demo-inspector > span, .demo-inspector > div { min-width: 0; padding: .45rem; border-radius: 5px; background: #2b243a; }
.demo-inspector .demo-selected { color: #f5edff; background: #493467; }
.demo-suggestions div span { display: block; font-weight: 680; line-height: 1.28; }
.demo-suggestions time { display: block; margin-top: .14rem; color: #ded0f7; font-size: .68rem; }
.demo-canvas { display: grid; place-items: center; min-height: 0; padding: .6rem; background: radial-gradient(ellipse, #30243f, #15121f 78%); }
.demo-portrait { position: relative; display: grid; grid-template-rows: 42% 58%; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid #9b88ba; border-radius: 7px; background: #251d36; box-shadow: 0 10px 22px #08061191; }
.demo-portrait .demo-game { background-position: 58% center; }
.demo-title, .demo-subtitle { position: absolute; inset-inline: .15rem; text-align: center; }
.demo-title { top: 46%; color: #ffe58c; font-size: clamp(.75rem, 1.5vw, 1.1rem); line-height: 1.0; letter-spacing: -.025em; font-weight: 900; text-shadow: 0 2px 4px #5d1e52, 0 0 8px #000; }
.demo-subtitle { bottom: 15%; width: fit-content; margin-inline: auto; padding: .14rem .28rem; border-radius: 4px; background: #12101be8; color: #fff; font-size: clamp(.61rem, 1.05vw, .78rem); font-weight: 750; }
.demo-timeline { grid-column: 1 / -1; padding: .6rem .75rem .8rem; border-top: 1px solid #413552; background: #211b2e; }
.demo-ticks { display: flex; justify-content: space-between; color: #d0c3de; font-size: .66rem; font-variant-numeric: tabular-nums; }
.demo-track { position: relative; height: 19px; margin-top: .35rem; border-radius: 4px; background: repeating-linear-gradient(90deg,#373047 0 7%,#2a2439 7% 7.5%); }
.demo-range { position: absolute; inset: 0 49% 0 28%; border: 1px solid #ba9eff; border-inline-width: 4px; border-radius: 4px; background: #7456a7; }
.demo-edit .demo-range { inset-inline: 12% 20%; }
.demo-playhead { position: absolute; left: 38%; inset-block: -3px; width: 2px; background: var(--accent); }
.demo-delivery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.65rem, 3vw, 1.4rem); align-items: center; padding: .85rem; background: radial-gradient(ellipse at 35% 50%, #49365b, #171220 78%); }
.demo-delivery .demo-portrait { justify-self: end; height: 90%; }
.demo-export-card { width: min(100%, 12rem); padding: .8rem; border: 1px solid #7a6499; border-radius: 10px; background: #261e35; }
.demo-export-card strong { display: block; font-size: clamp(.95rem, 1.7vw, 1.25rem); }
.demo-export-card p { margin: .35rem 0 .7rem; color: var(--muted); font-size: .72rem; }
.demo-check { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: .55rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.demo-download { display: inline-block; padding: .38rem .48rem; border-radius: 5px; background: #3a2c52; color: var(--accent); font-size: .72rem; font-weight: 760; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: .55rem; }
.demo-steps { display: flex; flex-wrap: wrap; gap: .25rem; }
.demo-controls button { min-height: 44px; padding: .34rem .62rem; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: .81rem; font-weight: 660; cursor: pointer; }
.demo-controls button:hover { color: var(--ink); background: #ffffff0d; }
.demo-controls button[aria-pressed="true"] { border-color: #7b62a8; color: #f4edff; background: #382b52; }
.demo-controls .demo-playback { padding-inline: .42rem; min-width: 3.2rem; color: var(--accent); }
.product-preview figcaption { margin-top: .35rem; color: var(--muted); font-size: .77rem; line-height: 1.4; }

.product-preview[data-animate] .demo-panel { animation: appear .36s ease-out both; }
.product-preview[data-animate] .demo-find .demo-range { animation: select-range .65s .35s ease-out both; }
.product-preview[data-animate] .demo-edit .demo-portrait { animation: reframe .68s .15s cubic-bezier(.2,.7,.25,1) both; }
.product-preview[data-animate] .demo-subtitle { animation: appear .26s 1s ease-out both; }
.product-preview[data-animate] .demo-playhead { animation: playhead 4.4s .2s linear both; }
.product-preview[data-animate]:not([data-playing]) * { animation-play-state: paused; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes select-range { from { opacity: 0; transform: scaleX(.25); } to { opacity: 1; transform: scaleX(1); } }
@keyframes reframe { from { clip-path: inset(24% 0 24% 0 round 7px); transform: scale(.86); } to { clip-path: inset(0 round 7px); transform: scale(1); } }
@keyframes playhead { from { left: 6%; } to { left: 90%; } }

.section { padding-block: clamp(2.8rem, 6vw, 4.75rem); border-top: 1px solid #ffffff20; scroll-margin-top: 1rem; }
.section h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.08; font-weight: 760; letter-spacing: -.06em; }
.workflow-grid { display: grid; gap: 1rem; margin-top: 1.65rem; }
.workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-grid article { padding: 1.35rem; border: 1px solid var(--border); border-radius: 12px; background: #1b1825; }
.workflow-grid article { border-top-color: #8573a2; }
.workflow-grid h3 { margin: 0 0 .45rem; font-size: 1.1rem; letter-spacing: -.02em; }
.workflow-grid p, .section-heading p, .local-entry p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.local-entry { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.local-entry p, .section-heading p { margin-top: .65rem; }
.pricing { max-width: 1080px; }
.section-heading { text-align: center; }
.pricing-period { display: flex; width: fit-content; min-width: 0; gap: .25rem; margin: 1.3rem auto 0; padding: .25rem; border: 1px solid var(--border); border-radius: 10px; background: #181621; }
.pricing-period input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.pricing-period label > span { display: block; padding: .5rem .7rem; border-radius: 7px; color: var(--muted); font-size: .875rem; cursor: pointer; }
.pricing-period input:checked + span { background: #332747; color: var(--ink); }
.pricing-period input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.comparison-scroll { margin-top: 2rem; border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; scroll-margin-top: 1rem; }
.comparison-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.comparison-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #181621; font-size: .94rem; line-height: 1.4; }
.comparison-table th, .comparison-table td { padding: .85rem .75rem; text-align: center; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.comparison-table thead th { padding-block: 1.2rem; vertical-align: top; background: #241d31; }
.comparison-table thead th:first-child { width: 27%; vertical-align: bottom; }
.comparison-table tr > :first-child { text-align: left; padding-inline-start: 1rem; }
.comparison-table tbody th { font-weight: 600; }
.comparison-table tbody td { color: #e1d9ec; }
.comparison-table tr > :nth-child(4) { background: #2a2137; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.plan-name, .plan-price, .plan-period { display: block; }
.plan-name { color: var(--accent); font-size: 1.05rem; }
.plan-price { margin-top: .4rem; color: var(--ink); font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 750; letter-spacing: -.05em; }
.plan-price-whole, .plan-price-cents { display: inline-block; line-height: 1; vertical-align: top; }
.plan-price-cents { margin-top: .19em; margin-inline-start: .05em; font-size: .48em; letter-spacing: -.015em; }
.yearly-pricing [data-monthly-cents] .plan-price { font-size: clamp(1.15rem, 3.25vw, 2.5rem); }
.plan-period { margin-top: .2rem; color: var(--muted); font-size: .87rem; font-weight: 400; }
.pricing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.35rem; }
.footer { display: flex; align-items: center; gap: 1.4rem; min-height: 83px; border-top: 1px solid var(--border); }
.footer .brand { margin-right: auto; }

@media (max-width: 1000px) {
  .frame { width: calc(100% - 3rem); }
  .hero { min-height: auto; gap: 2rem; padding-block: 4rem; }
}
@media (max-width: 730px) {
  .frame { width: calc(100% - 2rem); }
  .masthead { min-height: 66px; gap: .8rem; }
  .desktop-links, .masthead-cta { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; padding-block: 3rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.8vw, 4.4rem); }
  .hero-copy > p:first-of-type { margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .product-preview { width: min(35rem, 100%); justify-self: center; }
  .demo-stage { min-height: clamp(16rem, 51vw, 22rem); }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
}
@media (max-width: 490px) {
  .comparison-scroll { margin-top: 1.3rem; }
  .comparison-table { font-size: .81rem; }
  .comparison-table th, .comparison-table td { padding: .65rem .22rem; }
  .comparison-table thead th { padding-block: .8rem; }
  .comparison-table tr > :first-child { padding-inline-start: .55rem; }
  .plan-name, .plan-period { font-size: .81rem; }
  .section-heading { text-align: left; }
  .local-entry { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { font-size: .89rem; }
  .demo-shell { border-radius: 12px; }
  .demo-find, .demo-edit { grid-template-columns: minmax(0, 1fr) minmax(6rem, 32%); }
  .demo-wide { margin: .45rem; }
  .demo-inspector { padding: .45rem; }
  .demo-inspector .demo-third { display: none; }
  .demo-controls button { padding-inline: .32rem; font-size: .71rem; }
  .footer { gap: .7rem; }
  .footer > a:not(.brand) { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .product-preview[data-animate] * { animation: none !important; }
  .demo-playback { visibility: hidden; }
}
