/* ---------- Inner pages: a short hero on the Signal, then a canvas body ----------
   Shared by /demo, /pitch and /privacy. Loads after home.css. */

.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(72px, 10vw, 128px)) 0 clamp(64px, 8vw, 104px); background: var(--grad-signal); color: #fff; }
.page-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-grade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 1, 24, 0.85) 0%, rgba(0, 1, 24, 0.45) 60%, rgba(0, 1, 24, 0.2) 100%), linear-gradient(180deg, transparent 70%, var(--midnight) 100%), var(--grad-glow); }
.page-grain { position: absolute; inset: 0; background: var(--grain); opacity: 0.035; }
.page-hero-copy { position: relative; z-index: 1; display: grid; gap: 20px; }
.page-hero .display { max-width: 12em; font-weight: 500; }
.page-hero .lead { max-width: 30em; color: rgba(255, 255, 255, 0.75); }
/* Inner pages have no hero logo to dock, so the nav's logo shows from the start */
.page-demo .nav .logo, .page-pitch .nav .logo, .page-privacy .nav .logo { visibility: visible; }

.page-body { padding-top: clamp(48px, 6vw, 80px); }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--midnight); box-shadow: 0 40px 100px -40px rgba(0, 1, 24, 0.9), 0 0 0 1px rgba(0, 1, 24, 0.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-still { position: absolute; inset: 0; display: grid; place-items: center; }
.video-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.video-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 1, 24, 0.2), rgba(0, 1, 24, 0.6)); }
.video-play { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: rgba(0, 1, 24, 0.5); color: #fff; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video-play svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.video-play:hover { transform: scale(1.06); border-color: var(--glow); background: rgba(100, 45, 153, 0.6); box-shadow: 0 0 40px rgba(215, 141, 236, 0.5); }
.video[data-video=""] .video-play { display: none; }

.demo-asks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.demo-ask { display: grid; gap: 14px; justify-items: start; padding: 32px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface); }
.demo-ask .h2 { font-weight: 500; letter-spacing: -0.03em; }
.demo-ask p { margin: 0; color: var(--ink-muted); }
.demo-ask .btn { margin-top: 6px; }

@media (max-width: 760px) {
  .page-hero { padding-top: calc(var(--nav-h) + 48px); }
  .demo-asks { grid-template-columns: 1fr; gap: 14px; }
  .demo-ask { padding: 24px; }
  .video-play { width: 64px; height: 64px; }
}

/* ---------- Long-form pages: the privacy policy's reading column ---------- */

.prose-section { padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 112px); background: var(--canvas); }
.prose { max-width: 46em; display: grid; gap: 0; color: var(--ink); font-size: 17px; line-height: 1.62; }
.prose > * { margin: 0; }
.prose p { margin-bottom: 20px; color: var(--ink-muted); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 44px 0 14px; font-family: var(--font-site); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; color: var(--ink-muted); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 1px; background: var(--bg-lavender); }
.prose a { color: var(--bg-purple); text-decoration: none; border-bottom: 1px solid rgba(100, 45, 153, 0.3); }
.prose a:hover { border-bottom-color: var(--bg-purple); }
.prose code { padding: 2px 6px; border: 1px solid var(--border); background: var(--surface-muted); font-family: var(--font-mono); font-size: 0.88em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { margin: 44px 0 24px; border: 0; border-top: 1px solid var(--border); }
.prose .prose-note { font-size: 15px; }
/* The summary box at the top, in the brand's lavender wash */
.prose .callout { margin: 0 0 28px; padding: 20px 22px; border: 1px solid rgba(150, 125, 227, 0.4); border-left: 2px solid var(--bg-purple); background: var(--bg-lavender-tint); color: var(--ink); }
.prose .callout strong { display: block; margin-bottom: 4px; }

@media (max-width: 640px) {
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 34px; }
}

/* ---------- Product page: the headline with the mark right after it ---------- */
.page-product .nav .logo { visibility: visible; }
/* The product page runs wider than the site's column, so the words sit nearer the left edge */
.page-product .page-hero .wrap, .page-product .stage .wrap { max-width: 1560px; }
.page-product .page-hero { padding: calc(var(--nav-h) + clamp(44px, 5vw, 72px)) 0 clamp(44px, 5vw, 72px); }
.page-product .page-hero-copy { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 28px; }
.page-product .page-hero .display { max-width: none; font-size: clamp(40px, 4.8vw, 68px); }
.hero-mark { position: relative; overflow: hidden; --h: 88px; height: var(--h); width: calc(var(--h) * 530 / 291); }
.hero-mark .logo-art { display: block; width: calc(var(--h) * 2380 / 291); }
.hero-mark .logo-base { filter: invert(1); }
.hero-mark img, .hero-mark svg { height: var(--h); }
@media (max-width: 860px) {
  .page-product .page-hero-copy { grid-template-columns: 1fr; gap: 20px; }
  .hero-mark { --h: 56px; }
}

/* The header slides up out of a mask; the three lines arrive one after another */
.mask { overflow: hidden; }
.mask > * { transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); }
.in .mask > * { transform: none; }
.gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.gets li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gets i { width: 10px; height: 10px; margin: 8px 8px 0; border-radius: 50%; background: var(--bg-purple); box-shadow: 0 0 0 4px rgba(150, 125, 227, 0.18), 0 0 14px rgba(215, 141, 236, 0.6); transform: scale(0.4); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.in .gets li { opacity: 1; transform: none; }
.in .gets i { transform: none; }
.in .gets li:nth-child(1) { transition-delay: 0.35s; } .in .gets li:nth-child(2) { transition-delay: 0.47s; } .in .gets li:nth-child(3) { transition-delay: 0.59s; }
.in .gets li:nth-child(1) i { transition-delay: 0.6s; } .in .gets li:nth-child(2) i { transition-delay: 0.72s; } .in .gets li:nth-child(3) i { transition-delay: 0.84s; }



/* The browser's own snapping: each chapter settles in the middle of the space under the
   nav as you scroll, and one gesture moves one chapter. Desktop only; nothing is scripted. */
@media (min-width: 861px) {
  html:has(body.page-product) { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-h); }
  .page-product .page-hero { scroll-snap-align: start; }
  .chap { scroll-snap-align: center; scroll-snap-stop: always; }
  .page-product .stage + .section { scroll-snap-align: start; }
  .page-product .footer { scroll-snap-align: end; }
}

/* When a chapter locks into the middle: the frame blooms and the picture brightens for a
   beat, the purple word in the header glows, and the three dots ripple in turn. */
@keyframes frame-bloom { 0% { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 0 0 rgba(215, 141, 236, 0); } 35% { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 120px -10px rgba(215, 141, 236, 0.75); } 100% { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 90px -30px rgba(100, 45, 153, 0.45); } }
@keyframes pic-lift { 0% { filter: brightness(1); } 35% { filter: brightness(1.28); } 100% { filter: brightness(1); } }
@keyframes word-glow { 0% { text-shadow: 0 0 0 rgba(215, 141, 236, 0); } 30% { text-shadow: 0 0 28px rgba(215, 141, 236, 0.95), 0 0 60px rgba(215, 141, 236, 0.5); } 100% { text-shadow: 0 0 0 rgba(215, 141, 236, 0); } }
@keyframes dot-ripple { 0% { box-shadow: 0 0 0 0 rgba(215, 141, 236, 0.6); } 100% { box-shadow: 0 0 0 18px rgba(215, 141, 236, 0); } }
.pin-frame.locked { animation: frame-bloom 1.4s ease-out; }
.pin-frame.locked img.is-on { animation: pic-lift 1.4s ease-out; }
.chap.locked .display em { animation: word-glow 1.3s ease-out; }
.chap .gets i { position: relative; }
.chap.locked .gets li i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: dot-ripple 0.9s ease-out both; }
.chap.locked .gets li:nth-child(2) i::after { animation-delay: 0.12s; } .chap.locked .gets li:nth-child(3) i::after { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .locked, .locked * { animation: none !important; } }

/* ---------- Product page, "Pinned picture": a midnight page. The three chapters scroll
   on the left; one framed picture stays pinned on the right and crossfades to each
   chapter's picture as that chapter reaches the middle of the viewport. ---------- */

body.page-product { background: var(--midnight); color: #fff; }

/* Hero: the particle wave, more air than the live page, melting into the midnight stage */
.page-product .d1-hero { padding: calc(var(--nav-h) + clamp(96px, 12vw, 168px)) 0 clamp(88px, 11vw, 150px); background: var(--midnight); }
.d1-hero .page-art { object-position: center 42%; }
.d1-hero .page-grade { background: linear-gradient(90deg, rgba(0, 1, 24, 0.7) 0%, rgba(0, 1, 24, 0.3) 55%, rgba(0, 1, 24, 0.05) 100%), linear-gradient(180deg, rgba(0, 1, 24, 0.35) 0%, transparent 35%, transparent 60%, var(--midnight) 100%); }

/* The stage */
.stage { position: relative; padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 5vw, 64px); overflow: clip; }
.stage-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(42% 46% at 76% 34%, rgba(100, 45, 153, 0.32), transparent 70%), radial-gradient(30% 30% at 18% 80%, rgba(52, 58, 105, 0.35), transparent 70%); }
.stage-grain { position: absolute; inset: 0; pointer-events: none; background: var(--grain); opacity: 0.03; }
.stage-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.stage-copy { display: grid; padding-bottom: clamp(32px, 8vh, 80px); }

/* A chapter: one viewport each, words centred, dimmed until it is the one in the middle */
.chap { min-height: clamp(500px, 80vh, 720px); display: grid; align-content: center; gap: 30px; scroll-margin: 0; }
.chap .display { font-size: clamp(34px, 3.8vw, 52px); font-weight: 500; color: #fff; }
.chap .display em { font-style: normal; color: var(--glow); }
.chap .gets { gap: 20px; }
.chap .gets i { margin-top: 13px; }
.chap .gets li { font-size: clamp(21px, 1.7vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: #fff; white-space: nowrap; }
/* The light walks the three lines of the chapter in view, round and round */
.chap .gets i { background: rgba(215, 141, 236, 0.28); box-shadow: none; transition: background 0.4s ease, box-shadow 0.45s ease; }
.chap .gets span { opacity: 0.58; transition: opacity 0.45s ease; }
.chap .gets li.lit i { background: var(--glow); box-shadow: 0 0 0 4px rgba(215, 141, 236, 0.18), 0 0 18px rgba(215, 141, 236, 0.9); }
.chap .gets li.lit span { opacity: 1; }
html.still .chap .gets i { background: var(--glow); box-shadow: 0 0 0 4px rgba(215, 141, 236, 0.18), 0 0 18px rgba(215, 141, 236, 0.9); }
html.still .chap .gets span { opacity: 1; }
.chap-pic { display: none; }

/* The pinned frame: a hairline, a deep shadow, three pictures stacked and crossfading */
.stage-art { align-self: stretch; }
.d1-pin { position: sticky; top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--ph)) / 2); --ph: min(66vh, 620px); opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.stage.in .d1-pin { opacity: 1; transform: none; }
.pin-frame { position: relative; height: var(--ph); width: 100%; max-width: calc(var(--ph) * 4 / 5); margin-left: auto; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 2px; background: #05030f; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 90px -30px rgba(100, 45, 153, 0.45); }
.pin-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.045); transition: opacity 0.9s ease, transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pin-frame img.is-on { opacity: 1; transform: none; }
.pin-frame img[data-pic="prevention"] { object-position: 50% 50%; filter: brightness(1.3) saturate(1.1); }
.pin-frame img[data-pic="detection"] { object-position: 50% 48%; }
.pin-frame img[data-pic="training"] { object-position: 50% 56%; }
.pin-frame::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: 0.035; pointer-events: none; }

/* The closing band sits on midnight here, with air above it */
.stage + .section { padding-top: 0; }

/* Phones: stacked chapters, each with its own picture above the words, all lit */
@media (max-width: 860px) {
  .stage-grid { grid-template-columns: 1fr; gap: 0; }
  .stage-art { display: none; }
  .chap { min-height: 0; padding-block: 36px; gap: 26px; }
  .chap + .chap { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .chap-pic { display: block; position: relative; margin: 0 0 6px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 2px; background: #05030f; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .chap-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .chap.in .chap-pic { opacity: 1; transform: none; }
  .chap .display { color: #fff; }
  .chap .display em, .chap .gets i { opacity: 1; }
  .chap .display { font-size: clamp(30px, 8.4vw, 38px); }
  .chap .gets { gap: 16px; }
  .chap .gets li { font-size: 20px; line-height: 1.35; white-space: normal; }
  .chap .gets i { margin-top: 9px; }
  .chap .gets span { opacity: 0.7; }
  .chap .gets li.lit span { opacity: 1; }
}

/* Stills and reduced motion: everything in its end state, no transitions */
@media (prefers-reduced-motion: reduce) {
  .stage *, .d1-hero * { transition: none !important; }
  .chap .mask > *, .chap .gets li, .chap .gets i, .d1-pin, .chap-pic { opacity: 1 !important; transform: none !important; }
}
html.still * { transition: none !important; }
html.still .chap .mask > *, html.still .chap .gets li, html.still .chap .gets i, html.still .d1-pin, html.still .chap-pic { opacity: 1 !important; transform: none !important; }
