/* Klipora site. Dark-first, one accent (ember #f7843e), tokens follow docs/research/ux_design.md section 6. */
:root {
  color-scheme: dark;
  --bg: #111110;
  --bg-2: #161615;
  --surface: #1b1b1a;
  --surface-2: #232322;
  --surface-3: #2b2b29;
  --border: #2e2e2b;
  --border-strong: #45453f;
  --text-1: #eeeeea;
  --text-2: #b8b8b1;
  --text-3: #93938b;
  --accent: #f7843e;
  --accent-hover: #ff9757;
  --accent-press: #e0702b;
  --accent-text: #ff9f66;
  --on-accent: #1d1007;
  --accent-soft: rgba(247, 132, 62, .12);
  --accent-line: rgba(247, 132, 62, .45);
  --success: #4cc38a;
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
  /* Shape rule: controls 8px, containers 14px, pills full. */
  --r-ctl: 8px;
  --r-card: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: .08em .38em; border-radius: 6px; color: var(--text-1); }
kbd { font-size: .82em; border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: .05em .4em; border-radius: 5px; background: var(--surface); }
strong { color: var(--text-1); font-weight: 600; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-accent); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Grain on a fixed, non-scrolling layer only. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(247, 132, 62, .10), transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(247, 132, 62, .045), transparent 60%);
}
main, header, footer { position: relative; z-index: 1; }

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 18px;
  border-radius: var(--r-ctl); border: 1px solid transparent; font: 600 15px/1 var(--font-body); text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); border-color: var(--text-3); }
.btn-sm { --h: 36px; padding: 0 12px; font-size: 14px; }
.btn .icon { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 17, 16, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-1); text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--text-1); }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: var(--r-ctl); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-1); background: var(--surface-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 3px; }
.lang a { font: 600 12.5px/1 var(--font-mono); color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: var(--r-pill); }
.lang a[aria-current="true"] { background: var(--text-1); color: var(--bg); }
.lang a:not([aria-current="true"]):hover { color: var(--text-1); background: var(--surface-2); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--border-strong); cursor: pointer; color: var(--text-1); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .i-open, .menu:not([open]) summary .i-close { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: grid; gap: 2px; }
.menu-panel a { color: var(--text-1); text-decoration: none; padding: 12px 12px; border-radius: var(--r-ctl); }
.menu-panel a:hover { background: var(--surface-2); }

@media (max-width: 860px) {
  .nav-links, .nav-end .gh-btn { display: none; }
  .menu { display: block; }
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.08; margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.lede { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; }
.muted { color: var(--text-2); }
.accent { color: var(--accent-text); }
section { padding: clamp(56px, 7vw, 100px) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-mono); color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stage { position: relative; height: clamp(460px, 48vw, 600px); }
.stage .shot-panel {
  position: absolute; right: 0; top: 0; width: min(330px, 62%); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .025);
  transform: rotate(1.5deg);
}
.phone {
  position: absolute; left: 4%; bottom: 0; width: min(250px, 46%); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 70% 15%, rgba(247, 132, 62, .35), transparent 60%),
    radial-gradient(90% 60% at 10% 90%, rgba(120, 90, 60, .35), transparent 60%),
    linear-gradient(160deg, #2a2420, #121110 70%);
  border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 0 6px #0b0b0a;
  transform: rotate(-3deg);
}
.phone::after { content: ""; position: absolute; left: 50%; top: 10px; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #0b0b0a; }
.phone-cap { position: absolute; left: 8%; right: 8%; top: 58%; text-align: center; font: 800 clamp(17px, 2vw, 22px)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .85), 0 0 18px rgba(0, 0, 0, .5); }
.phone-cap span { display: inline-block; margin: 0 .12em; }
.phone-tag { position: absolute; left: 12px; bottom: 12px; font: 500 11px/1 var(--font-mono); color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .45); padding: 6px 8px; border-radius: var(--r-pill); }
@media (prefers-reduced-motion: no-preference) {
  .phone-cap span { animation: word 4.2s infinite; }
  .phone-cap span:nth-child(2) { animation-delay: .6s; }
  .phone-cap span:nth-child(3) { animation-delay: 1.2s; }
  .phone-cap span:nth-child(4) { animation-delay: 1.8s; }
  .phone-cap span:nth-child(5) { animation-delay: 2.4s; }
  .phone-cap span:nth-child(6) { animation-delay: 3s; }
  .stage .shot-panel { animation: rise .9s var(--ease) both .1s; }
  .phone { animation: rise2 .9s var(--ease) both .25s; }
}
@media (prefers-reduced-motion: reduce) { .phone-cap span:nth-child(3) { color: #ffd23f; } }
@keyframes word { 0%, 16%, 100% { color: #fff; transform: scale(1); } 2%, 13% { color: #ffd23f; transform: scale(1.14); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(1.5deg); } to { opacity: 1; transform: rotate(1.5deg); } }
@keyframes rise2 { from { opacity: 0; transform: translateY(32px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }

/* Fact strip under hero */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.35; }
.facts li + li { border-left: 1px solid var(--border); }
.facts li strong { display: block; color: var(--text-1); font-weight: 600; }
.facts .icon { color: var(--accent); width: 22px; height: 22px; }

/* Group label used inside feature sections (not an eyebrow above every section) */
.group-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-body); color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 7px 12px; border-radius: var(--r-pill); width: fit-content; }
.group-tag .icon { width: 16px; height: 16px; }

/* Cut: tool list + screenshot */
.cut-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tool-list { display: grid; gap: 0; margin-top: 8px; }
.tool { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
.tool:last-child { border-bottom: 1px solid var(--border); }
.tool-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-text); }
.tool h3 { font-size: 20px; margin-bottom: 6px; }
.tool p { color: var(--text-2); }
.shot { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #1d1d1d; }
.shot-col { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
.caption { font-size: 14px; color: var(--text-3); }

/* Text: captions showcase */
.text-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.cap-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 820px; }
.big-stat { font: 800 clamp(64px, 10vw, 128px)/.9 var(--font-display); letter-spacing: -.05em; color: var(--accent); }
.marquee { margin: clamp(36px, 5vw, 56px) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.marquee figure { margin: 0; width: 170px; flex: none; }
.marquee img { width: 170px; aspect-ratio: 200 / 282; border-radius: 12px; border: 1px solid var(--border); background: #0c0c0c; }
.marquee figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: slide 60s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }
.cap-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.cap-features div { padding: 24px 24px 24px 0; }
.cap-features div:nth-child(n+4) { border-top: 1px solid var(--border); }
.cap-features h3 { font-size: 18px; margin-bottom: 6px; }
.cap-features p { color: var(--text-2); font-size: 15px; }

/* Camera: bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); padding: 28px; overflow: hidden; display: grid; gap: 10px; align-content: start; }
.cell h3 { font-size: 22px; }
.cell p { color: var(--text-2); font-size: 15px; }
.cell .tool-ic { margin-bottom: 6px; }
.c-zoom { grid-column: span 4; grid-row: span 2; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; background: radial-gradient(90% 90% at 100% 0%, rgba(247, 132, 62, .16), transparent 60%), var(--surface); }
.c-zoom .shot { grid-row: span 3; }
.c-angles { grid-column: span 2; }
.c-podcast { grid-column: span 2; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px), var(--surface); }
.c-broll { grid-column: span 6; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 28px; background: linear-gradient(90deg, var(--surface), var(--surface-2)); }
.c-broll .tool-ic { margin: 0; grid-row: span 2; }
.angle-boxes { display: flex; gap: 8px; margin-top: 8px; align-items: end; }
.angle-boxes span { border: 1.5px solid var(--accent-line); border-radius: 6px; display: grid; place-items: center; font: 500 11.5px/1 var(--font-mono); color: var(--accent-text); }
.angle-boxes span:nth-child(1) { width: 96px; height: 54px; }
.angle-boxes span:nth-child(2) { width: 80px; height: 45px; }
.angle-boxes span:nth-child(3) { width: 66px; height: 37px; background: var(--accent-soft); }

/* Publish + Voice split */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.duo-col { border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.duo-col.voice { background: radial-gradient(80% 60% at 0% 100%, rgba(76, 195, 138, .08), transparent 60%), var(--surface); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mini-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--text-2); font-size: 15px; }
.mini-list li strong { display: block; margin-bottom: 2px; }
.mini-list .icon { color: var(--accent-text); margin-top: 2px; }
.lufs { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.lufs b { font: 700 clamp(28px, 3.4vw, 40px)/1 var(--font-display); letter-spacing: -.03em; }
.lufs .from { color: var(--text-3); }
.lufs .to { color: var(--success); }
.lufs small { color: var(--text-3); font-size: 13px; flex-basis: 100%; }
.duo-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* How it works */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { list-style: none; padding: 28px 24px 28px 0; border-top: 2px solid var(--border); position: relative; }
.flow li::before { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--accent); }
.flow h3 { font-size: 20px; margin-bottom: 8px; }
.flow p { color: var(--text-2); font-size: 15px; }
.flow ol { padding: 0; margin: 0; display: contents; }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.priv-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.priv-points div { display: grid; gap: 8px; }
.priv-points .icon { color: var(--accent); width: 26px; height: 26px; }
.priv-points h3 { font-size: 18px; }
.priv-points p { color: var(--text-2); font-size: 15px; }

/* AI providers */
.providers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.providers li { list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.providers .mono { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 12px/1 var(--font-mono); color: var(--text-1); }
.providers li.local .mono { background: var(--accent-soft); color: var(--accent-text); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; color: var(--text-2); font-size: 15px; }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.req { display: grid; gap: 0; }
.req div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; }
.req div:last-child { border-bottom: 1px solid var(--border); }
.req dt { color: var(--text-3); }
.req dd { margin: 0; color: var(--text-1); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.steps > li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); font: 600 14px/1 var(--font-mono); color: var(--accent-text); }
.steps h3 { font-size: 18px; margin: 6px 0 6px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* Code */
.code { position: relative; margin: 12px 0 0; }
.code pre { margin: 0; background: #0b0b0a; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; padding-right: 52px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; color: #e6e6df; }
.code pre .c { color: var(--text-3); }
.copy-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: var(--r-ctl); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); display: none; place-items: center; cursor: pointer; }
.js .copy-btn { display: grid; }
.copy-btn:hover { color: var(--text-1); background: var(--surface-2); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn[data-done] { color: var(--success); border-color: var(--success); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font: 600 18px/1.35 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq .ans { padding: 0 0 24px; color: var(--text-2); max-width: 70ch; display: grid; gap: 10px; }

/* Final CTA */
.final { text-align: left; }
.final-box { border-radius: 20px; border: 1px solid var(--accent-line); background: radial-gradient(70% 120% at 100% 0%, rgba(247, 132, 62, .22), transparent 60%), var(--surface); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.final-box h2 { max-width: 16ch; }
.final-box p { color: var(--text-2); margin-top: 12px; max-width: 48ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-3); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text-1); }

/* Reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Docs + changelog */
.doc-hero { padding: clamp(40px, 6vw, 72px) 0 32px; border-bottom: 1px solid var(--border); }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin: 10px 0 14px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: 40px; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; font-size: 14.5px; }
.toc p { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 18px 0 8px; }
.toc p:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 10px; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--text-1); border-left-color: var(--text-3); }
.toc a.active { color: var(--accent-text); border-left-color: var(--accent); }
.toc-mobile { display: none; margin: 24px 0 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.toc-mobile .toc { position: static; max-height: none; padding: 0 16px 16px; }
.prose { max-width: 760px; min-width: 0; }
.prose > section { padding: 0 0 48px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 16px; padding-top: 8px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 8px; margin: 12px 0; }
.prose li::marker { color: var(--text-3); }
.prose .tool-head { display: flex; align-items: center; gap: 12px; margin: 40px 0 12px; }
.prose .tool-head h3 { margin: 0; }
.prose .shot-inline { float: right; width: 220px; margin: 0 0 16px 24px; }
.prose .clear { clear: both; }
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin: 16px 0; font-size: 15px; color: var(--text-2); }
.callout .icon { color: var(--accent-text); margin-top: 2px; }
.callout.warn { border-color: rgba(232, 192, 78, .4); }
.callout.warn .icon { color: #e8c04e; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; vertical-align: top; }
th { font-weight: 600; color: var(--text-1); background: var(--surface); border-bottom: 1px solid var(--border); }
td { color: var(--text-2); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }

.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--border); }
.release:first-of-type { border-top: 0; }
.release .meta { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 8px; }
.release .ver { font: 700 30px/1 var(--font-display); letter-spacing: -.03em; }
.release time { color: var(--text-3); font: 500 14px/1.3 var(--font-mono); }
.release h3 { font-size: 20px; margin: 28px 0 10px; }
.release h3:first-child { margin-top: 0; }
.release ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; color: var(--text-2); }

/* Responsive */
@media (max-width: 1060px) {
  .c-zoom { grid-column: span 6; }
  .c-angles, .c-podcast { grid-column: span 3; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .hero-grid, .cut-grid, .privacy, .ai-grid, .install, .duo { grid-template-columns: minmax(0, 1fr); }
  .stage { height: auto; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; max-width: 560px; }
  .stage .shot-panel, .phone { position: relative; inset: auto; width: 100%; transform: none; animation: none; }
  .phone { order: -1; }
  .shot-col { position: static; max-width: 380px; }
  .cap-features { grid-template-columns: 1fr 1fr; }
  .cap-features div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .doc-layout > .toc { display: none; }
  .toc-mobile { display: block; }
  .release { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .release .meta { position: static; }
  .final-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .cta-row .btn { flex: 1 1 100%; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { border-left: 0; border-top: 1px solid var(--border); }
  .c-zoom { grid-template-columns: minmax(0, 1fr); }
  .c-zoom .shot { grid-row: auto; max-width: 260px; }
  .c-angles, .c-podcast { grid-column: span 6; }
  .c-broll { grid-template-columns: minmax(0, 1fr); }
  .c-broll .tool-ic { grid-row: auto; }
  .cell { padding: 22px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .priv-points { grid-template-columns: minmax(0, 1fr); }
  .cap-features { grid-template-columns: minmax(0, 1fr); }
  .cap-features div { padding-right: 0; }
  .cap-features div:nth-child(n+2) { border-top: 1px solid var(--border); }
  .req div { grid-template-columns: 96px minmax(0, 1fr); }
  .prose .shot-inline { float: none; width: 200px; margin: 0 0 16px; }
  .duo-shots { grid-template-columns: 1fr 1fr; }
  .final-box .btn { width: 100%; }
}

/* Late additions */
.c-zoom { grid-template-columns: minmax(0, 1fr) 230px; align-items: center; }
.zoom-copy { display: grid; gap: 12px; align-content: start; }
.zoom-copy h3 { font-size: clamp(24px, 2.4vw, 30px); }
.zoom-copy .mini-list { margin-top: 8px; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 420px; }
.clips img { border-radius: 12px; border: 1px solid var(--border-strong); width: 100%; }
.duo-shots.one { grid-template-columns: minmax(0, 300px); }
.flow, .providers { padding: 0; margin: 0; }
.providers { margin-top: 8px; }
.text-sec + section, section + .text-sec { padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 640px) {
  .c-zoom { grid-template-columns: minmax(0, 1fr); }
  .c-zoom .shot { max-width: 240px; }
}
@media (min-width: 901px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero h1 { font-size: clamp(40px, 5.3vw, 62px); }
.phone { left: 0; }
@media (max-width: 640px) { .hero h1 { font-size: clamp(36px, 10vw, 46px); } }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.priv-points div, .cell, .duo-col { align-content: start; }
.duo-shots.one { grid-template-columns: minmax(0, 250px); }
