/* SyncNut design system: one stylesheet for the site, the docs and the app. */

:root {
  --bg: #08090d;
  --bg-2: #0d0f15;
  --panel: #12151d;
  --panel-2: #191d28;
  --panel-3: #222736;
  --line: #242a39;
  --line-2: #323a4e;
  --text: #f1f3f8;
  --muted: #9aa1b4;
  --faint: #6b7286;
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --brand-ink: #c4b5fd;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --video: #6d8bff;
  --video-2: #a78bfa;
  --audio: #34d399;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --font: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: #fff; }
img, svg { display: block; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
kbd { background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 0.82em; color: var(--text); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); color: #fff; background: var(--grad); text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 24px -10px rgba(139, 92, 246, 0.7); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.8); }
.btn:active { transform: none; }
.btn:disabled { background: var(--panel-3); color: var(--faint); box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); box-shadow: none; color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #4a5470; }
.btn.white { background: #fff; color: #0b0c10; box-shadow: none; }
.btn.white:hover { color: #0b0c10; }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35); color: var(--brand-ink); font-size: 13px; font-weight: 600;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
button.pill { cursor: pointer; font-family: var(--font); }
body.pro .pro-only-hide { display: none !important; }

/* ------------------------------------------------------------- nav */

.top {
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(8, 9, 13, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------- landing */

.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(35% 45% at 75% 25%, rgba(34, 211, 238, 0.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 18px; font-weight: 800; letter-spacing: -0.035em; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.reassure span { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { width: 16px; height: 16px; color: var(--ok); }

.window {
  position: relative; border-radius: 16px; background: linear-gradient(180deg, #151925, #0e1118);
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 40px 120px -40px rgba(99, 102, 241, 0.45); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3242; }
.window-bar b { margin-left: 10px; font-size: 12px; color: var(--faint); font-weight: 500; }

/* hero timeline: clips slide from "as shot" into sync */
.hero-tl { padding: 18px 18px 64px; }
.ruler { display: flex; justify-content: space-between; color: var(--faint); font: 11px var(--mono); margin: 0 0 10px 64px; }
.trk { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.trk > span { font-size: 11px; color: var(--muted); font-weight: 600; }
.lane-h { position: relative; height: 34px; border-radius: 7px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.clip-h {
  position: absolute; top: 3px; bottom: 3px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
  font: 600 10.5px var(--font); color: rgba(255, 255, 255, 0.92); overflow: hidden; white-space: nowrap;
  animation: slide-in 7s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}
.clip-h.v1 { background: linear-gradient(180deg, #6d8bff, #5670e0); }
.clip-h.v2 { background: linear-gradient(180deg, #a78bfa, #8b5cf6); }
.clip-h.a1 { background: linear-gradient(180deg, #2fbf8a, #1f9e70); color: #052116; }
.clip-h svg.wf { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; }
.clip-h b { position: relative; font-weight: 650; padding: 1px 6px; border-radius: 4px; background: rgba(8, 9, 13, 0.32); }
.clip-h.a1 b { background: rgba(255, 255, 255, 0.28); }
@keyframes slide-in {
  0%, 18% { transform: translateX(var(--from, 0)); }
  42%, 88% { transform: translateX(0); }
  100% { transform: translateX(var(--from, 0)); }
}
.sync-badge {
  position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--ok);
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; animation: badge 7s infinite;
}
@keyframes badge { 0%, 40% { opacity: 0; transform: translateY(6px); } 48%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.playhead { position: absolute; top: 46px; bottom: 16px; width: 2px; left: 64px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); animation: play 7s linear infinite; opacity: 0.9; }
@keyframes play { 0%, 45% { transform: translateX(0); opacity: 0; } 50% { opacity: 0.9; } 88% { transform: translateX(380px); opacity: 0.9; } 100% { opacity: 0; } }

.logos { padding: 26px 0 8px; }
.logos p { text-align: center; color: var(--faint); font-size: 13px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.logo-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.logo-row span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.02); }
.logo-row span.main { color: var(--text); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.1); }
.logo-row span small { color: var(--faint); font-weight: 500; margin-left: 6px; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.eyebrow { color: var(--brand-2); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; font-weight: 800; }
.section .sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* explainer */
.explainer { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; margin-top: 48px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps-list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--text);
  font: inherit; cursor: pointer; transition: 0.2s; position: relative; overflow: hidden;
}
.steps-list button:hover { background: rgba(255, 255, 255, 0.03); }
.steps-list button.on { background: var(--panel); border-color: var(--line-2); }
.steps-list .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.steps-list button.on .n { background: var(--grad); color: #fff; border: 0; }
.steps-list b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--text); }
.steps-list span { color: var(--muted); font-size: 14px; }
.steps-list button .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.steps-list button.on .prog { animation: fill var(--scene-ms, 4200ms) linear forwards; }
.explainer.paused .steps-list button.on .prog { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }

.stage { aspect-ratio: 16 / 10; position: relative; }
.stage .window { position: absolute; inset: 0; }
.scene { position: absolute; inset: 36px 0 0; padding: 22px; opacity: 0; transform: scale(0.985); transition: opacity 0.45s, transform 0.45s; pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene h4 { margin: 0 0 14px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.scene h4 em { font-style: normal; color: var(--text); }

.menu-mock { position: absolute; left: 22px; top: 22px; width: 220px; background: #1f2433; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; box-shadow: var(--shadow); font-size: 13px; z-index: 2; }
.menu-mock div { padding: 7px 10px; border-radius: 6px; color: var(--muted); display: flex; justify-content: space-between; }
.menu-mock div.hl { background: rgba(139, 92, 246, 0.22); color: #fff; }
.sub-mock { left: 238px; top: 70px; width: 200px; }
.file-chip { position: absolute; right: 26px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.file-chip .ico { width: 34px; height: 40px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; font: 800 10px var(--font); color: #fff; }
.scene.on .file-chip { animation: pop 0.6s 1.2s both cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.9); } }

.mini-tl { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.mini-tl .trk { grid-template-columns: 34px 1fr; margin-bottom: 6px; }
.mini-tl .lane-h { height: 26px; }
.mini-tl .clip-h { animation: none; }
.scene.on .mini-tl.aligning .clip-h { animation: settle 1.4s 0.4s both cubic-bezier(0.7, 0, 0.2, 1); }
@keyframes settle { from { transform: translateX(var(--from, 0)); } to { transform: none; } }

.folder-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1.5px dashed var(--line-2); margin-bottom: 12px; }
.folder-card .ico { width: 44px; height: 36px; border-radius: 6px; background: linear-gradient(180deg, #fbbf24, #f59e0b); position: relative; }
.folder-card .ico::before { content: ""; position: absolute; left: 0; top: -6px; width: 18px; height: 8px; border-radius: 3px 3px 0 0; background: #fbbf24; }
.folder-card b { display: block; font-size: 14px; }
.folder-card span { font-size: 12px; color: var(--muted); }
.file-rows { display: grid; gap: 6px; }
.file-rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); font-size: 12.5px; opacity: 0; }
.file-rows div span { color: var(--muted); font-size: 11.5px; }
.file-rows div i { font-style: normal; color: var(--ok); font-weight: 700; font-size: 11.5px; }
.scene.on .file-rows div { animation: row-in 0.4s both; }
.scene.on .file-rows div:nth-child(1) { animation-delay: 0.3s; }
.scene.on .file-rows div:nth-child(2) { animation-delay: 0.6s; }
.scene.on .file-rows div:nth-child(3) { animation-delay: 0.9s; }
.scene.on .file-rows div:nth-child(4) { animation-delay: 1.2s; }
.scene.on .file-rows div:nth-child(5) { animation-delay: 1.5s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.wave-pair { display: grid; gap: 14px; margin-top: 8px; }
.wave-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.wave-box { position: relative; height: 64px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.wave-box svg { position: absolute; top: 0; height: 100%; width: 100%; }
.scene.on .wave-box.move svg { animation: wave-lock 2.2s 0.3s both cubic-bezier(0.7, 0, 0.2, 1); }
@keyframes wave-lock { from { transform: translateX(-22%); } to { transform: none; } }
.lock-line { position: absolute; top: 0; bottom: 0; left: 52%; width: 2px; background: var(--brand-2); box-shadow: 0 0 14px var(--brand-2); opacity: 0; }
.scene.on .lock-line { animation: fade 0.4s 2.4s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lock-badge { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.4); color: var(--brand-2); font-size: 12.5px; font-weight: 700; opacity: 0; }
.scene.on .lock-badge { animation: pop 0.5s 2.5s both; }

.import-card { position: absolute; left: 22px; top: 22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #1f2433; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.import-card b { color: #fff; }
.done-badge { position: absolute; right: 22px; top: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.scene.on .done-badge { animation: pop 0.5s 1.8s both; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.14); color: var(--brand-ink); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* privacy band */
.band { border-radius: 24px; padding: 56px; background: radial-gradient(60% 120% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%), var(--panel); border: 1px solid var(--line-2); display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.band h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); }
.band p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(8, 9, 13, 0.5); border: 1px solid var(--line); font-size: 14.5px; }
.checks svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 1px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 18px; margin-top: 48px; }
.plan { padding: 30px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55); }
.plan h3 { margin: 0; font-size: 18px; display: flex; align-items: center; justify-content: space-between; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .alt { color: var(--muted); font-size: 13.5px; margin-top: -8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.tag-s { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(139, 92, 246, 0.18); color: var(--brand-ink); letter-spacing: 0.02em; }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.cta-final { text-align: center; padding: 90px 24px; border-radius: 28px; margin: 0 auto; background: radial-gradient(60% 120% at 50% 0%, rgba(139, 92, 246, 0.3), transparent 70%), var(--panel); border: 1px solid var(--line-2); }
.cta-final h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 0 0 14px; font-weight: 800; }
.cta-final p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

footer.site { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: var(--text); font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.1em; }
footer.site a { display: block; color: var(--muted); margin-bottom: 8px; }
footer.site a:hover { color: var(--text); }
footer.site .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--faint); }

/* ------------------------------------------------------------- docs + legal */

.docs { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0 0; }
.docs nav.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs nav.toc b { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 16px 0 6px; }
.docs nav.toc b:first-child { margin-top: 0; }
.docs nav.toc a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.docs nav.toc a:hover { background: var(--panel); color: var(--text); }
.prose { max-width: 760px; min-width: 0; }
.prose h1 { font-size: 40px; margin: 0 0 12px; font-weight: 800; }
.prose h2 { font-size: 26px; margin: 56px 0 12px; padding-top: 8px; scroll-margin-top: 84px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.prose p, .prose li { color: #c9cddb; font-size: 15.5px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .lead { font-size: 18px; color: var(--muted); }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.3); margin: 18px 0; font-size: 14.5px; color: #d6d9e5; }
.callout.warn { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.3); }
.callout b { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.path { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--text); white-space: nowrap; }

/* ------------------------------------------------------------- app */

body.app { background: var(--bg); }
.app-top .wrap { max-width: 1240px; }
.stepper { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.stepper span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; }
.stepper span i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line-2); }
.stepper span.on { color: var(--text); background: var(--panel); }
.stepper span.on i { background: var(--grad); border: 0; color: #fff; }
.stepper span.done { color: var(--muted); }
.stepper span.done i { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.5); color: var(--ok); }
.stepper .sep { width: 16px; height: 1px; background: var(--line-2); }

.app-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.app-col { display: grid; gap: 18px; min-width: 0; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card.dim { opacity: 0.55; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 0; }
.num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); flex: none; }
.card.active .num { background: var(--grad); color: #fff; border: 0; }
.card.complete .num { background: rgba(52, 211, 153, 0.15); color: var(--ok); border-color: rgba(52, 211, 153, 0.45); }
.card-head .meta { font-size: 13px; color: var(--muted); }

.drop {
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 30px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.2s; background: rgba(255, 255, 255, 0.012);
}
.drop .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.14); color: var(--brand-ink); }
.drop .ico svg { width: 24px; height: 24px; }
.drop strong { font-size: 16px; }
.drop > span { color: var(--muted); font-size: 14px; max-width: 520px; }
.drop.over { border-color: var(--brand); background: rgba(139, 92, 246, 0.07); }
.drop.compact { flex-direction: row; justify-content: space-between; text-align: left; padding: 14px 16px; }
.drop.compact .ico { width: 40px; height: 40px; border-radius: 11px; }
.drop.compact .txt { flex: 1; min-width: 0; }
.drop.compact strong { font-size: 15px; display: block; }
.drop .txt > span { display: block; color: var(--muted); font-size: 14px; max-width: 560px; margin: 4px auto 0; }
.drop.compact > .txt > span { font-size: 13px; margin: 2px 0 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.hint .path { font-size: 12px; }
.err { color: var(--bad); }

.angles { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.angles:empty { display: none; }
.angles li { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13px; color: var(--muted); }
.angles li b { color: var(--text); }
.angles li i { width: 8px; height: 8px; border-radius: 3px; background: var(--video); }
.angles li:nth-child(2) i { background: var(--video-2); }
.angles li:nth-child(3) i { background: var(--brand-2); }
.angles li:nth-child(4) i { background: var(--warn); }

/* clip list: a summary bar, then a collapsible, scroll-limited list */
.clipbox { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.clipbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; }
.clipbar .chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.chip b { color: var(--text); }
.chip.ok { color: var(--ok); background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.25); }
.chip.busy { color: var(--brand-ink); background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); }
.chip.warn { color: var(--warn); background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25); }
.chip.bad { color: var(--bad); background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.25); }
.toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.toggle:hover { background: rgba(255, 255, 255, 0.05); }
.toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.clipbox.open .toggle svg { transform: rotate(180deg); }
.overall { height: 3px; background: var(--panel-2); }
.overall > div { height: 100%; width: 0; background: var(--grad); transition: width 0.3s; }
.cliplist { display: none; border-top: 1px solid var(--line); }
.clipbox.open .cliplist { display: block; }
.cliptools { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cliptools input[type="search"] { flex: 1; min-width: 160px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 0 12px; font: 13.5px var(--font); }
.cliptools input[type="search"]:focus { outline: none; border-color: var(--brand); }
.cliptools label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.scroll { max-height: 340px; overflow: auto; }
.clips { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.clips th { position: sticky; top: 0; z-index: 1; background: var(--bg-2); text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.05em; }
.clips td { padding: 8px 12px; border-bottom: 1px solid rgba(36, 42, 57, 0.6); white-space: nowrap; }
.clips tr:last-child td { border-bottom: 0; }
.clips td.name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.clips input.cam { background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 7px; padding: 4px 8px; width: 120px; font: inherit; }
.clips input.cam:hover { border-color: var(--line-2); }
.clips input.cam:focus { border-color: var(--brand); outline: none; background: var(--panel); }
.clips tr.excluded td { color: var(--faint); }
.clips tr[hidden] { display: none; }
.status { color: var(--muted); }
.s-ready { color: var(--ok); }
.s-reading, .s-listening { color: var(--brand-ink); }
.s-no-sound { color: var(--warn); }
.s-unreadable { color: var(--bad); }
.tag { border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; }
.tag.ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.tag.warn { background: rgba(251, 191, 36, 0.14); color: var(--warn); }
.tag.bad { background: rgba(248, 113, 113, 0.14); color: var(--bad); }
.empty-row td { text-align: center; color: var(--faint); padding: 18px; }

.sync-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sync-row .btn { min-width: 220px; }
details.adv { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: "▸"; transition: transform 0.2s; display: inline-block; }
details.adv[open] summary::before { transform: rotate(90deg); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.opts label { display: block; color: var(--muted); font-size: 13px; }
.opts .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
input[type="text"], select {
  display: block; width: 100%; margin-top: 6px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px; height: 40px; padding: 0 12px; font: 14px var(--font);
}
input[type="text"]:focus, select:focus { border-color: var(--brand); outline: none; }
input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; }

.progress { position: relative; height: 40px; border-radius: 12px; background: var(--panel-2); overflow: hidden; margin-top: 16px; }
.progress > div { position: absolute; inset: 0 auto 0 0; background: var(--grad); transition: width 0.25s; opacity: 0.85; }
.progress > span { position: relative; display: block; text-align: center; line-height: 40px; font-size: 13px; font-weight: 700; }
.msg { margin: 14px 0 0; font-size: 14px; }
.msg.warn { color: var(--warn); }
.msg.bad { color: var(--bad); }

.result-card { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.tl-view { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
.track { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; min-width: 560px; }
.track + .track { margin-top: 6px; }
.tname { color: var(--muted); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane { position: relative; height: 28px; background: rgba(255, 255, 255, 0.025); border-radius: 6px; }
.bar {
  position: absolute; top: 3px; bottom: 3px; border-radius: 5px; padding: 0 6px; font-size: 10.5px; font-weight: 600; line-height: 22px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; background: linear-gradient(180deg, #6d8bff, #5670e0);
}
.track:nth-child(2n) .bar { background: linear-gradient(180deg, #a78bfa, #8b5cf6); }
.audio .bar { background: linear-gradient(180deg, #2fbf8a, #1f9e70); color: #052116; }
.bar.clock { background: repeating-linear-gradient(45deg, #d9a521, #d9a521 6px, #b9881a 6px, #b9881a 12px) !important; color: #2b1d00; }
.bar.loose { background: var(--panel-2) !important; color: var(--muted); border: 1px dashed var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 8px; border-radius: 3px; background: var(--video); }
.legend i.clock { background: repeating-linear-gradient(45deg, #d9a521, #d9a521 3px, #b9881a 3px, #b9881a 6px); }
.warnings { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.warnings:empty { display: none; }
.warnings li { padding: 10px 14px; border-radius: 10px; background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.25); color: #f3dfa6; font-size: 13.5px; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.import-steps { margin: 16px 0 0; padding: 14px 16px 14px 34px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.import-steps li { margin: 3px 0; }
.import-steps b { color: var(--text); }

.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 13.5px; color: var(--muted); }
.side-card h3 { font-size: 14px; color: var(--text); margin: 0 0 10px; }
.side-card ol { margin: 0; padding-left: 18px; }
.side-card li { margin: 6px 0; }
.side-card p { margin: 0; }
.side-card .row { margin-top: 12px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; }
.privacy-note svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }

.ad-slot { min-height: 100px; border: 1px dashed var(--line-2); border-radius: 16px; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
body.pro .ad-slot { display: none; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(4, 5, 8, 0.7); backdrop-filter: blur(4px); }
.pro-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pro-form h2 { margin: 0; font-size: 24px; }
.pro-form ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #c9cddb; font-size: 14.5px; }
.pro-form li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 10px; }
.pro-form .price { margin: 0; color: var(--muted); }
.pro-form .price strong { color: var(--text); font-size: 30px; }
.pro-form label { color: var(--muted); font-size: 13px; }

.mobile-note { display: none; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .hero-grid, .explainer, .band { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .app-main { grid-template-columns: 1fr; }
  .side { position: static; }
  .stepper { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 48px; }
  .features, .plans { grid-template-columns: 1fr; }
  .band { padding: 28px 20px; }
  .section { padding: 64px 0; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs nav.toc { position: static; display: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .app-main { padding: 16px 16px 60px; }
  .card { padding: 18px; }
  .opts { grid-template-columns: 1fr; }
  .clips th:nth-child(3), .clips td:nth-child(3), .clips th:nth-child(5), .clips td:nth-child(5) { display: none; }
  .mobile-note { display: block; }
  .drop.compact { flex-wrap: wrap; }
  .explainer { margin-top: 32px; gap: 20px; }
  .explainer .stage { order: -1; width: 680px; aspect-ratio: 16 / 10; zoom: var(--stage-zoom, 0.5); }
  .steps-list button { padding: 12px; }
  .drop.compact { flex-direction: column; align-items: stretch; text-align: left; }
  .drop.compact .btn { width: 100%; }
  .card-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene.on .file-rows div, .lock-line, .lock-badge, .scene .file-chip, .done-badge { opacity: 1 !important; }
}
.docs.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
