/* Venulo site. Inter, self-hosted (SIL Open Font License, assets/fonts/Inter-LICENSE.txt); no external requests.
   Palette (v0.38 final): near-black, off-white text and buttons, neutral borders. Colour on the page comes only from the
   Venulo icon and the Nebula product image. Contrast (WCAG) on the background: text 17.6:1, secondary 8.6:1;
   near-black on the off-white button 17.6:1. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #0B0D12;
  --surface: #12151C;
  --surface-2: #171A22;
  --border: #272C35;
  --border-strong: #4A515E;
  --text: #F4F5F7;
  --secondary: #A7ADB8;
  --accent: #F4F5F7;
  --accent-hover: #FFFFFF;
  --on-accent: #0B0D12;
  --ok: #7FE0B0;
  --err: #FF9DAA;
  --warn: #F2C66D;
  --radius: 16px;
  --max: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(9, 10, 16, 0.94); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 0.24em; font-size: 14px; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--secondary); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; white-space: nowrap;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary, .nav a.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.app-icon { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 20px; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 700; }
h1 .soft { color: var(--secondary); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--secondary); max-width: 620px; margin: 0 auto 32px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.req { margin-top: 18px; color: var(--secondary); font-size: 14px; }

/* Product imagery: neutral frames; the artwork carries the colour */
.shot { margin: 0; }
.shot .frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.shot .frame img, .shot .frame video { border-radius: 10px; }
.shot.bare .frame { background: transparent; border: 0; padding: 0; }
.caption { color: var(--secondary); font-size: 14px; margin-top: 10px; }
.caption.center { text-align: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--warn); border: 1px solid rgba(242, 198, 109, 0.45);
  border-radius: 999px; padding: 0 9px; margin-right: 6px; }
.hero .shot { max-width: 900px; margin: 56px auto 0; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--border); }
.hero + section { border-top: 0; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.section-lede { color: var(--secondary); max-width: 640px; margin: 0 0 24px; font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.split > *, .grid-3 > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split.flip > :first-child { order: 0; } }
.examples { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.examples li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 16px; }
.examples li span { display: block; color: var(--secondary); font-size: 13px; margin-top: 2px; }
kbd { font: 600 0.85em/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }

/* Cortex */
.disclosure { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; color: var(--secondary); font-size: 15px; }
.disclosure p { margin: 0 0 8px; }
.disclosure p:last-child { margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card p { color: var(--secondary); margin: 0; }

/* Waitlist */
.waitlist { max-width: 620px; margin: 0 auto; padding: 34px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.waitlist.left { margin: 28px 0 0; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
label { font-weight: 600; font-size: 15px; }
.hint { color: var(--secondary); font-size: 14px; font-weight: 400; }
.hint.intro { margin: 0 0 22px; }
input[type="email"], select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: inherit; }
input[type="email"]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(244, 245, 247, 0.22); }
input[aria-invalid="true"] { border-color: var(--err); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.field.check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; min-height: 24px; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.fine { color: var(--secondary); font-size: 13px; margin-top: 14px; }
.h2-sm { font-size: clamp(28px, 3.4vw, 36px); }

/* Pages */
.page { padding: 64px 0 40px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); }
.page section { padding: 40px 0 0; border-top: 0; }
.lede.left { margin-left: 0; text-align: left; }
.prose { max-width: 760px; }
.prose p, .prose li { color: #DADBE4; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.note { border-left: 3px solid var(--accent); padding: 14px 18px; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--secondary); }
.note strong { color: var(--text); }
.todo { background: rgba(242, 198, 109, 0.12); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.release { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); max-width: 760px; }
.release dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; }
.release dt { color: var(--secondary); }
.release dd { margin: 0; word-break: break-all; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 56px; color: var(--secondary); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--secondary); }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a.optional { display: none; }
  .nav { gap: 16px; }
  .brand { letter-spacing: 0.16em; gap: 8px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
  .waitlist { padding: 24px 20px; }
  .release { padding: 20px; }
  .release dl { grid-template-columns: 1fr; gap: 2px; }
  .release dd { margin-bottom: 10px; }
  .hero { padding-top: 56px; }
  section { padding: 56px 0; }
  .shot .frame { padding: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, border-color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
mark.pending { background: rgba(242, 198, 109, 0.14); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Anchored headings and sections land below the sticky header. */
[id] { scroll-margin-top: 80px; }

/* ---- v0.37.2 presentation ---- */
.hero { padding: 96px 0 0; }
.hero .lede { max-width: 560px; }
.hero-product { margin: 48px auto 0; max-width: 1180px; padding: 0 16px; }
.hero-product img { width: 100%; }
.hero-product .caption { margin-top: 4px; }
.play-glyph { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-right: 2px; }

/* Sections: generous but not empty; one paragraph, one visual. */
.feature, .demo { padding: 96px 0; }
.feature .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr); gap: 64px; }
.feature .split.flip { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); }
.feature-text { max-width: 30rem; }
.feature-text p { color: var(--secondary); font-size: 18px; margin: 0 0 16px; }
.feature-text h2 { font-size: clamp(30px, 3.6vw, 42px); }
.feature + .feature { border-top: 0; padding-top: 24px; }
.feature .shot .frame { padding: 10px; border-radius: 18px; background: var(--surface); }
.feature .shot .frame img { border-radius: 10px; }
.disclosure { font-size: 15px; color: var(--secondary); border: 0; border-left: 2px solid var(--border-strong); padding: 2px 0 2px 14px; margin-top: 20px; background: none; border-radius: 0; }

/* Pending image slots: clearly not final. */
.frame.slot { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); border: 1px dashed var(--border-strong); }
.frame.slot p { margin: 0; max-width: 26rem; color: var(--secondary); font-size: 15px; }
.frame.slot strong { display: block; color: var(--warn); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

/* Demo player */
.demo { border-top: 1px solid var(--border); text-align: center; }
.demo .section-lede { margin: 0 auto 32px; }
.player { margin: 0 auto; max-width: 1040px; text-align: left; }
.player-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.player-frame video, .player-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.player .play span { width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--on-accent); margin-left: 6px; }
.player .play:hover { background: var(--accent-hover); }
.player.playing .play { display: none; }
.player.pending .play { opacity: 0.45; cursor: default; }
.player-pending { position: absolute; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(9, 10, 16, 0.82); color: var(--warn); font-size: 14px; font-weight: 600; white-space: nowrap; }
.transcript { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; }
.transcript summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.transcript ol { margin: 0 0 14px; padding-left: 22px; color: var(--secondary); }
.transcript li { margin: 6px 0; }
.transcript li strong { color: var(--text); }

/* Promise row: no boxes, three short lines. */
.promise { padding: 48px 0; }
.promise-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promise-row p { margin: 0; color: var(--secondary); font-size: 16px; }
.promise-row strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.join { padding-top: 72px; }

/* Help and notice pages */
.page-intro { max-width: 680px; }
.page-intro .lede { margin: 0 0 8px; text-align: left; }
.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 19px; font-weight: 600; list-style-position: outside; }
.faq summary::marker { color: var(--accent); }
.faq details > div { padding: 0 0 20px; color: #DADBE4; }
.faq details > div p, .faq details > div li { color: #DADBE4; }
.secondary-help { margin-top: 48px; max-width: 760px; }
.secondary-help h2 { font-size: 22px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 8px; max-width: 900px; }
.summary-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.summary-grid h3 { font-size: 18px; margin: 0 0 6px; }
.summary-grid p { margin: 0; color: var(--secondary); font-size: 15px; }
.toc { margin: 32px 0 8px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; max-width: 900px; }
.toc h2 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; }

@media (max-width: 860px) {
  .feature .split, .feature .split.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature .split.flip > :first-child { order: 0; }
  .feature .split.flip .feature-text { order: -1; }
  .feature, .demo { padding: 64px 0; }
  .promise-row { grid-template-columns: 1fr; gap: 16px; }
  .summary-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .hero { padding-top: 56px; }
  .hero-product { margin-top: 32px; padding: 0; }
}
@media (max-width: 480px) {
  .player .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .player-pending { top: calc(50% + 44px); font-size: 13px; }
  .feature-text p { font-size: 17px; }
}
.faq summary { list-style-position: inside; }
.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; }

/* ---- v0.38 final homepage: headline, the product, one signup. ---- */
h1, h2, h3 { font-weight: 600; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 80px; }
.brand { font-weight: 600; letter-spacing: 0.2em; font-size: 14px; }
.wrap { padding: 0 40px; }
.header-link { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.home section { border-top: 0; }
.home .hero { padding: 88px 0 0; text-align: center; }
.home .hero .wrap { max-width: 930px; }
.home h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -0.04em; margin: 0 auto 24px; max-width: none; text-wrap: balance; }
.home .lede { font-size: 18px; line-height: 1.6; color: var(--secondary); max-width: 34rem; margin: 0 auto; text-wrap: balance; }


.join { padding: 56px 0 120px; text-align: center; }
.join h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 28px; text-wrap: balance; }
.join form { max-width: 480px; margin: 0 auto; text-align: left; }
.join form > label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1 1 auto; min-width: 0; min-height: 48px; font-size: 16px; background: var(--bg); border-color: var(--border-strong); }
.inline-field .btn { flex: 0 0 auto; min-height: 48px; font-size: 15px; font-weight: 600; }
.join .form-status { margin: 12px 0 0; min-height: 0; text-align: left; font-size: 15px; }
.join .form-status:empty { display: none; }
.join-note { color: var(--secondary); font-size: 15px; margin: 18px 0 0; text-wrap: balance; }
.join-lede { color: var(--secondary); font-size: 17px; line-height: 1.6; max-width: 34rem; margin: -8px auto 32px; text-wrap: balance; }
.join-meta { color: var(--secondary); font-size: 13px; margin: 6px 0 0; }
.join-meta a { color: var(--secondary); }

footer { padding: 32px 0 40px; }
footer .wrap { align-items: center; }
footer .brand-sm { font-size: 12px; letter-spacing: 0.2em; color: var(--secondary); text-decoration: none; }
footer .brand-sm:hover { color: var(--text); }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

/* Support: question and answer side by side on wide screens. */
.qa-list { max-width: 880px; margin-top: 24px; }
.qa { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--border); }
.qa h2 { font-size: 18px; line-height: 1.4; letter-spacing: -0.005em; margin: 0; }
.qa p { margin: 0; color: var(--secondary); }
.page-intro .lede { margin: 0 0 32px; text-align: left; }

@media (max-width: 1024px) {
  .home .hero { padding-top: 72px; }
}
@media (max-width: 860px) {
  .qa { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 64px; }
  .home .hero { padding-top: 56px; }
  .home h1 { font-size: 40px; letter-spacing: -0.035em; text-wrap: wrap; }
  .home h1 br { display: none; }
  .home .lede { font-size: 16px; }
  .join { padding: 48px 0 88px; }
  .join h2 { font-size: 26px; }
  .inline-field { flex-direction: column; }
  .inline-field .btn { width: 100%; }
}
@media (max-width: 360px) {
  .home h1 { font-size: 36px; }
  .brand { letter-spacing: 0.14em; font-size: 13px; }
}

/* Inner pages under the final palette: calmer section headings, left-aligned table headers. */
.page h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin: 48px 0 12px; }
.page th { text-align: left; color: var(--secondary); font-weight: 500; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.page th, .page td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---- Homepage, immersive: the Nebula is the atmosphere; real product images only. ---- */
.site-header.over-hero { background: rgba(11, 13, 18, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.home .hero { position: relative; isolation: isolate; padding: 64px 0 40px; text-align: center; overflow: hidden; }
.hero-sky { position: absolute; z-index: -1; left: 50%; top: 60px; width: min(1900px, 160vw); aspect-ratio: 2000 / 1146; transform: translateX(-50%);
  background: url("/assets/nebula-hero.jpg") center / cover no-repeat; opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 40%, transparent 100%); }
.home .hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-copy { position: relative; }
.home .hero .btn-lg { margin-top: 36px; }
.home .lede { color: #C4C8D1; }

.home .hero .wrap + .wrap { margin-top: 40px; }
.home .hero .lede { max-width: 40rem; }
/* The recording sits in the hero like a window lit from above: a hairline glass edge that fades out down the sides,
   corners rounded only as much as a Mac window's (nothing in the recording is clipped), a nebula glow behind it, and a
   gentle tilt that flattens as it scrolls into view (app.js; none with reduced motion). */
.home .hero .wrap-wide { max-width: 1248px; }
.hero-video { position: relative; isolation: isolate; margin: 0 auto; }
.hero-video::before { content: ""; position: absolute; inset: 4% 2% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(132, 82, 232, 0.38), rgba(46, 150, 200, 0.14) 46%, rgba(11, 13, 18, 0) 72%); filter: blur(48px); }
.screen { position: relative; padding: 1px; border-radius: 14px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(244, 245, 247, 0.26), rgba(244, 245, 247, 0.07) 22%, rgba(244, 245, 247, 0.02) 70%, rgba(244, 245, 247, 0));
  box-shadow: 0 70px 160px -40px rgba(0, 0, 0, 0.9), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transform: perspective(2000px) rotateX(calc(var(--tilt, 0) * 1deg)) scale(var(--scale, 1)); will-change: transform; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1196; border-radius: 13px; background: #0B0D12; }
/* Demo controls: click the video or press Space to play or pause (an icon flashes in the middle), ← and → skip 5 s,
   and a bar along the bottom with back-5, a scrubber and play/pause. Shown on hover, focus or while paused. */
.hero-video video { cursor: pointer; }
.demo-flash { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; color: #F4F5F7; background: rgba(11, 13, 18, 0.62); opacity: 0; transform: scale(0.8); will-change: transform, opacity; }
.demo-flash svg { width: 38px; height: 38px; grid-area: 1 / 1; }
.demo-flash.go { animation: demo-flash 0.6s ease-out; }
@keyframes demo-flash { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.25); } }
.demo-controls { position: absolute; left: 1px; right: 1px; bottom: 1px; display: flex; align-items: center; gap: 12px; padding: 40px 16px 14px;
  border-radius: 0 0 13px 13px; background: linear-gradient(180deg, rgba(11, 13, 18, 0), rgba(11, 13, 18, 0.72));
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.hero-video:hover .demo-controls, .demo-controls:focus-within, .hero-video.is-paused .demo-controls { opacity: 1; pointer-events: auto; }
.hero-video.show-controls .demo-controls { opacity: 1; pointer-events: auto; }
.demo-controls button { flex: none; width: 36px; height: 36px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center;
  color: #F4F5F7; border: 1px solid rgba(244, 245, 247, 0.22); background: rgba(11, 13, 18, 0.6); transition: background 0.15s ease; }
.demo-controls button:hover { background: rgba(244, 245, 247, 0.14); }
.demo-controls button svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.demo-controls button:focus-visible, .demo-seek:focus-visible { outline: 2px solid #F4F5F7; outline-offset: 3px; }
.demo-toggle .i-play, .demo-toggle.paused .i-pause { display: none; }
.demo-toggle.paused .i-play { display: block; }
.demo-full .i-shrink, .is-full .demo-full .i-expand { display: none; }
.is-full .demo-full .i-shrink { display: block; }
/* Full screen: the player alone, letterboxed on black, without the page's tilt, frame or rounded corners. (Two rules:
   a browser drops a whole rule if it doesn't know one of its selectors.) */
.screen:fullscreen { transform: none; padding: 0; border-radius: 0; background: #000; box-shadow: none; display: flex; align-items: center; }
.screen:-webkit-full-screen { transform: none; padding: 0; border-radius: 0; background: #000; box-shadow: none; display: flex; align-items: center; }
.is-full .screen video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }
.is-full .demo-controls { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 56px max(24px, 3vw) 24px; }
.hero-video.is-full:hover .demo-controls { opacity: 0; pointer-events: none; }
.hero-video.is-full.show-controls .demo-controls, .hero-video.is-full.is-paused .demo-controls { opacity: 1; pointer-events: auto; }
.hero-video.is-full .demo-controls:has(:focus-visible) { opacity: 1; pointer-events: auto; }
.hero-video.is-full:not(.show-controls):not(.is-paused) video { cursor: none; }
.demo-flash .i-pause, .demo-flash.paused .i-play { display: none; }
.demo-flash.paused .i-pause { display: block; }
.demo-seek { flex: 1; min-width: 0; height: 18px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none;
  --fill: 0%; }
.demo-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #F4F5F7 var(--fill), rgba(244, 245, 247, 0.25) var(--fill)); }
.demo-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(244, 245, 247, 0.25); }
.demo-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #F4F5F7; }
.demo-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #F4F5F7; border: 0; }
.demo-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #F4F5F7; border: 0; }

.feature-copy h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance; }
.feature-copy p { color: var(--secondary); font-size: 19px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.feature-copy.center { text-align: center; max-width: 720px; margin: 0 auto; }
.feature-copy kbd { font: 500 13px/1 "Inter", -apple-system, sans-serif; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); margin: 0 1px; vertical-align: 2px; }

.feature-qc { padding: 168px 0 0; }
.qc-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.55fr); gap: 32px; align-items: center; }
.qc { margin: 0 -40px 0 0; position: relative; }
.qc img { width: 100%; }

.feature-cx { padding: 168px 0 0; }
.cx { margin: 48px auto 0; max-width: 1360px; padding: 0 20px; }
.cx img { width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 66%, transparent 100%); }

/* Make it yours: the three Quick Capture skins, real app renders cut to the window's own brain outline (skin-mask.png),
   fanned like cards. They start gathered and spread as the section comes into view (only with JavaScript and when
   motion is welcome; otherwise they're simply fanned). */
.skins { padding: 168px 0 0; position: relative; isolation: isolate; overflow-x: hidden; overflow-x: clip; }
.fan { display: grid; place-items: center; max-width: 1180px; margin: 72px auto 0; padding: 24px 20px 0; position: relative; }
.fan::before { content: ""; position: absolute; inset: 10% 14% -6%; z-index: -1; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(ellipse at 50% 50%, rgba(132, 82, 232, 0.30), rgba(46, 150, 200, 0.10) 50%, rgba(11, 13, 18, 0) 74%); }
.skin { grid-area: 1 / 1; width: min(44%, 520px); margin: 0; text-align: center; transform-origin: 50% 85%;
  --x: 0%; --y: 0%; --r: 0deg; --s: 1;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform 1.3s cubic-bezier(0.2, 0.75, 0.15, 1), opacity 1s ease; will-change: transform;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.55)); }
.skin img { display: block; width: 100%; height: auto;
  -webkit-mask: url("/assets/skin-mask.png") center / 100% 100% no-repeat; mask: url("/assets/skin-mask.png") center / 100% 100% no-repeat; }
.skin figcaption { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--secondary); letter-spacing: 0.01em; }
.skin-left { --x: -56%; --y: 5%; --r: -12deg; z-index: 1; }
.skin-right { --x: 56%; --y: 5%; --r: 12deg; z-index: 1; }
.skin-center { --s: 1.08; z-index: 2; }
.fan-armed:not(.in) .skin-left { --x: -8%; --y: 9%; --r: -3deg; }
.fan-armed:not(.in) .skin-right { --x: 8%; --y: 9%; --r: 3deg; }
.fan-armed:not(.in) .skin-center { --s: 1; --y: 3%; }
.fan-armed:not(.in) .skin { opacity: 0.6; }
.fan-armed .skin-left, .fan-armed .skin-right { transition-delay: 0.08s; }
@media (hover: hover) {
  .fan.in .skin:hover, .fan:not(.fan-armed) .skin:hover { --y: -2%; transition-duration: 0.5s; transition-delay: 0s; }
  .fan.in .skin-left:hover, .fan:not(.fan-armed) .skin-left:hover, .fan.in .skin-right:hover, .fan:not(.fan-armed) .skin-right:hover { --y: 2%; }
}

.home .join { position: relative; isolation: isolate; overflow: hidden; padding: 160px 0 160px; }
.join-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 1100px; height: 520px; transform: translate(-50%, -50%);
  background: url("/assets/nebula-hero.jpg") center / cover; filter: blur(90px); opacity: 0.2; border-radius: 50%; }
.home .join h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; }

/* Scroll reveal: only with JavaScript and only when motion is welcome. */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .qc-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 40px; }
  .qc { margin: 0; }
  .qc-grid .feature-copy { max-width: 600px; margin: 0 auto; }
  .feature-qc, .feature-cx, .skins { padding-top: 120px; }
}
@media (max-width: 640px) {
  .home .hero { padding-top: 64px; }
  .hero-sky { top: 170px; width: 230vw; }
  .home .hero .wrap + .wrap { margin-top: 48px; }
  .hero-video video { border-radius: 9px; }
  .screen { border-radius: 10px; }
  .demo-controls { gap: 8px; padding: 28px 10px 10px; border-radius: 0 0 9px 9px; }
  .demo-controls button { width: 32px; height: 32px; }
  .feature-copy p { font-size: 16px; }
  .feature-qc, .feature-cx { padding-top: 96px; }
  .cx { margin-top: 28px; padding: 0; }
  .cx img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
  .home .join { padding: 104px 0 112px; }
  .join-glow { width: 520px; height: 420px; }
  .skins { padding-top: 96px; }
  .fan { margin-top: 40px; padding: 8px 16px 0; }
  .skin { width: 58%; }
  .skin figcaption { font-size: 12px; margin-top: 6px; }
  .skin-left { --x: -36%; --y: 6%; --r: -9deg; }
  .skin-right { --x: 36%; --y: 6%; --r: 9deg; }
  .skin-center { --s: 1.04; }
}

/* Inner pages: comfortable reading width. */
.page .wrap > * { max-width: 720px; }
.page .wrap > .table-scroll { max-width: 880px; }

@media (max-width: 640px) {
  .home .demo { padding-top: 40px; }
  .hero-video video { border-radius: 9px; }
  .screen { border-radius: 10px; }
  .demo-controls { gap: 8px; padding: 28px 10px 10px; border-radius: 0 0 9px 9px; }
  .demo-controls button { width: 32px; height: 32px; }
  .showcase { padding-top: 80px; }
  .show-label { margin-bottom: 20px; }
  .cx img { border-radius: 12px; }
  .home .join { padding-top: 96px; }
}
