/* Landing hero uses the same typography and tokens as the actual application. */
.hero-story { position:relative; isolation:isolate; padding:142px 24px 24px; background:var(--canvas); color:var(--ink); }
/* Locally rendered 3D film. The reading area and transition stay above it. */
.hero-background { position:absolute; z-index:0; inset:0 0 auto; height:820px; max-height:100%; overflow:hidden; pointer-events:none; mask-image:linear-gradient(to bottom,#000 0%,#000 65%,transparent 100%); }
.hero-background video { display:block; width:100%; height:100%; object-fit:cover; object-position:center top; }
.hero-background::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent 8%,var(--canvas) 36%,var(--canvas) 64%,transparent 92%); }
.hero-intro { position:relative; z-index:1; max-width:840px; margin:auto; text-align:center; }
.hero-overline { margin:0 0 20px; font-size:12px; font-weight:600; letter-spacing:.08em; color:var(--accent); }
.hero-intro h1 { font-family:var(--font); font-size:clamp(34px,4.5vw,64px); font-weight:700; letter-spacing:-.04em; line-height:1.12; color:var(--ink); margin:0; }
.hero-intro h1 span { color:var(--accent); }
.hero-description { max-width:610px; margin:24px auto 0; font-size:16px; line-height:1.75; color:var(--ink-2); }
.hero-actions { display:flex; justify-content:center; align-items:center; gap:24px; margin-top:28px; flex-wrap:wrap; }
.landing-v3 .hero-primary { min-height:46px; padding:12px 20px; border-radius:8px; background:var(--brand-blue); color:var(--on-brand); font-size:13px; }
.hero-secondary { display:inline-flex; align-items:center; gap:12px; min-height:44px; color:var(--ink); font-size:13px; font-weight:600; text-decoration:none; }
.hero-secondary:hover { color:var(--accent); }
.hero-reassurance { margin-top:18px; font-size:12px; line-height:1.6; color:var(--muted); }
.hero-dashboard { position:relative; z-index:1; max-width:1160px; margin:48px auto 0; scroll-margin-top:100px; }
.dashboard-frame { border:1px solid var(--line-strong); border-radius:12px; overflow:hidden; background:var(--surface); box-shadow:var(--shadow); transform:scale(var(--dashboard-scale,1)); transform-origin:center top; }
.dashboard-frame img { display:block; width:100%; height:auto; }
.dashboard-dark,.dashboard-frame .dashboard-dark { display:none; }
:root[data-theme="dark"] .dashboard-light { display:none; }
:root[data-theme="dark"] .dashboard-dark { display:block; }
.hero-dashboard figcaption { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:16px; font-size:12px; line-height:1.6; color:var(--ink-2); }
.preview-caption-detail { color:var(--muted); }
.hero-dashboard figcaption a { color:var(--accent); font-weight:600; text-underline-offset:4px; min-height:32px; align-content:center; }
.hero-primary:focus-visible,.hero-secondary:focus-visible,.hero-dashboard a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
/* The fade sits behind the content; it never fades text or the screenshot. */
.hero-transition { position:absolute; z-index:0; pointer-events:none; bottom:-1px; left:0; right:0; height:90px; background:linear-gradient(to bottom,var(--canvas) 0%,var(--surface) 100%); }
.landing-v3 .activity-section { padding-top:28px; background:var(--surface); }
.landing-v3 .activity-section [data-anim] { opacity:1; transform:none; }
@media(max-width:960px) {
  .hero-background { height:740px; }.hero-background::after { background:linear-gradient(90deg,transparent,var(--canvas) 28%,var(--canvas) 72%,transparent); }
  .hero-story { padding:116px 24px 24px; }.hero-intro h1 { font-size:48px; }.hero-dashboard { margin-top:36px; }.dashboard-frame { transform:none; }.hero-transition { height:90px; }
}
@media(max-width:600px) {
  .hero-story { padding:104px 16px 20px; }.hero-overline { font-size:10px; margin-bottom:16px; }.hero-intro h1 { font-size:clamp(30px,8.5vw,42px); line-height:1.15; }.hero-description { font-size:14px; line-height:1.75; margin-top:20px; }.hero-actions { flex-direction:column; gap:8px; margin-top:22px; }.hero-reassurance { font-size:11px; margin-top:14px; }.hero-dashboard { margin-top:30px; }.dashboard-frame { border-radius:7px; }.hero-dashboard figcaption { justify-content:center; text-align:center; gap:4px; font-size:11px; }.hero-dashboard figcaption > span { width:100%; }.preview-caption-detail { display:block; }.hero-transition { height:80px; }
  .hero-background { height:650px; }.hero-background video { object-position:14% top; opacity:.5; }.hero-background::after { background:linear-gradient(90deg,transparent,var(--canvas) 24%,var(--canvas) 84%,transparent); }
}
@media(prefers-reduced-motion:reduce) { .dashboard-frame { transform:none; } }
