:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.2rem, 1.2rem + 3vw, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 999px;

  --color-bg: oklch(98% 0.008 50);
  --color-surface: oklch(100% 0 0);
  --color-surface-2: oklch(96% 0.01 40);
  --color-surface-accent: oklch(97% 0.03 25);
  --color-border: oklch(88% 0.015 50);
  --color-divider: oklch(92% 0.01 50);
  --color-text: oklch(24% 0.014 50);
  --color-text-muted: oklch(48% 0.015 50);
  --color-text-faint: oklch(52% 0.012 50);
  --color-primary: oklch(68% 0.18 25);
  --color-primary-hover: oklch(60% 0.19 25);
  --color-primary-highlight: oklch(94% 0.05 25);
  --color-success: oklch(65% 0.16 150);
  --color-blue: oklch(60% 0.18 250);
  --color-on-primary: oklch(100% 0 0);

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.05);
  --shadow-md: 0 10px 28px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 24px 60px oklch(0.2 0.01 80 / 0.12);

  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1160px;
}

[data-theme="dark"] {
  --color-bg: oklch(17% 0.01 50);
  --color-surface: oklch(21% 0.012 50);
  --color-surface-2: oklch(25% 0.012 50);
  --color-surface-accent: oklch(28% 0.03 25);
  --color-border: oklch(32% 0.012 50);
  --color-divider: oklch(26% 0.01 50);
  --color-text: oklch(93% 0.01 50);
  --color-text-muted: oklch(76% 0.01 50);
  --color-text-faint: oklch(63% 0.01 50);
  --color-primary: oklch(72% 0.16 25);
  --color-primary-hover: oklch(66% 0.16 25);
  --color-primary-highlight: oklch(30% 0.05 25);
  --color-success: oklch(72% 0.12 150);
  --color-blue: oklch(74% 0.12 250);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 10px 28px oklch(0 0 0 / 0.32);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.45);
  --color-on-primary: oklch(15% 0.008 50);
}

/* ── Reset & Base ── */

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Accessibility ── */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Layout ── */

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

/* ── Header & Nav ── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 84%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.header.scrolled {
  border-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-sm);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    color-mix(in oklab, var(--color-primary) 55%, oklch(100% 0 0))
  );
  position: relative;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.3);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  background: oklch(100% 0 0);
  border-radius: var(--radius-full);
}

.brand-mark::before {
  width: 0.45rem;
  height: 1rem;
  left: 0.52rem;
  top: 0.5rem;
}

.brand-mark::after {
  width: 0.45rem;
  height: 0.68rem;
  right: 0.52rem;
  bottom: 0.5rem;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.lang-switch a[aria-current="true"] {
  color: var(--color-text);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch a:hover {
    background: var(--color-surface);
    color: var(--color-text);
  }
}

.footer-links .lang-switch {
  color: var(--color-text-faint);
}

/* ── Buttons ── */

.btn,
.theme-toggle {
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    transform: translateY(-1px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

.btn-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-surface-2);
}

/* ── Typography ── */

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 34rem;
}

.muted {
  color: var(--color-text-muted);
}

/* ── Eyebrow ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-accent);
  color: oklch(50% 0.19 25);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .eyebrow {
  color: oklch(78% 0.13 25);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* ── Hero ── */

.hero {
  padding: clamp(var(--space-12), 10vw, var(--space-24)) 0 var(--space-16);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.hero-copy p {
  margin: 0 0 var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.mini-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.mini-proof-card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.mini-proof-card strong {
  display: block;
  font-size: var(--text-lg);
}

.mini-proof-card span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ── Hero Panel / App Preview ── */

.hero-panel {
  position: relative;
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--color-primary-highlight), transparent 70%);
}

.app-window {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--color-border) 90%, transparent);
  background: var(--color-bg);
}

/* ── Hero video ── */

.app-video-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-2);
}

.app-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

/* ── Cards ── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.card-muted {
  background: var(--color-surface-2);
}

/* ── Sections ── */

/* Background rhythm: alternating surface lifts anchor the page */
section#problem,
section#who {
  background: var(--color-surface);
}

section#waitlist {
  background: var(--color-surface-accent);
}

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-12);
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* ── Problem Grid ── */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

/* ── Feature List ── */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  align-items: baseline;
}

.feature-row:nth-child(odd) {
  padding-right: var(--space-10);
}

.feature-row:nth-child(even) {
  padding-left: var(--space-10);
  border-left: 1px solid var(--color-border);
}

.feature-row dt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .feature-row dt {
  color: oklch(78% 0.13 25);
}

.feature-row dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ── Problem / Audience / Step Cards ── */

.problem-card {
  padding: var(--space-8) 0;
  border-top: 1.5px solid var(--color-border);
}


.audience-card,
.step,
.quote-card,
.waitlist-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.feature-row dd,
.problem-card p,
.audience-card p,
.step p,
.final-cta p,
.footer-copy {
  margin: 0;
  color: var(--color-text-muted);
}

/* ── Quote ── */

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--space-8);
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.2;
  text-wrap: pretty;
}

blockquote footer {
  display: block;
  margin-top: var(--space-4);
}

blockquote cite {
  font-style: normal;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

.check-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.check-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-text-muted);
}

.check-item strong {
  color: var(--color-text);
}

.check-mark {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-success) 18%, var(--color-surface));
  color: var(--color-success);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ── Audience Grid ── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* ── Steps Grid ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.step-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

/* ── Waitlist ── */

.waitlist-wrap h2 {
  max-width: none;
}

.waitlist-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-10);
  align-items: start;
}

.waitlist-card {
  /* Tally's embedded form is styled light-only (no dark-mode support), so this
     card is pinned to a light surface in both themes rather than tracking
     --color-surface -- otherwise dark mode leaves dark form text on a dark
     background. */
  background: oklch(100% 0 0);
  border-color: oklch(88% 0.015 50);
}

.waitlist-card iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  background: oklch(100% 0 0);
}

.inline-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

/* ── Feature Spotlight (alternating screenshot + text rows) ── */

.spotlight-list {
  display: grid;
  gap: clamp(var(--space-12), 8vw, var(--space-20));
}

.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.spotlight-row--flip .spotlight-media {
  order: -1;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spotlight-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.spotlight-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 36rem;
}

/* ── Screenshot Frame ── */

.screenshot-frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screenshot-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.screenshot-chrome-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-2);
  overflow: hidden;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ── Window label / timeline bullet utility classes ── */

.window-label {
  font-size: var(--text-sm);
}

.window-sublabel {
  font-size: var(--text-xs);
}

.card-heading {
  display: block;
  margin-bottom: var(--space-3);
}

.brand--footer {
  margin-bottom: var(--space-2);
}

.waitlist-lead.lead {
  font-size: var(--text-base);
}

.timeline-bullet--blue  { background: var(--color-blue)    !important; }
.timeline-bullet--coral { background: var(--color-primary) !important; }

/* ── Theme-aware screenshots (light/dark image pairs) ──
   Dark-mode screenshot assets (screenshots/*-dark.png) don't exist yet, so
   .shot-dark stays hidden in all themes and .shot-light is shown everywhere.
   Once real dark-mode screenshots are captured, restore the theme swap:
   html[data-theme='dark'] .shot-light { display: none !important; }
   html[data-theme='dark'] .shot-dark  { display: block !important; } */

.shot-dark {
  display: none !important;
}

/* Dead rules removed: timeline and KPI elements were part of the old coded hero mock */

/* ── Screenshot gallery stagger ── */

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.screenshot-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.screenshot-tile--wide {
  grid-column: span 3;
}

.screenshot-tile--wide .screenshot-placeholder {
  aspect-ratio: 21 / 9;
}

.screenshot-tile strong {
  font-size: var(--text-base);
  font-weight: 600;
}

.screenshot-tile p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.screenshot-frame--sm .screenshot-placeholder {
  aspect-ratio: 4 / 3;
}

/* ── Responsive additions ── */

@media (max-width: 1024px) {
  .spotlight-row,
  .spotlight-row--flip {
    grid-template-columns: 1fr;
  }

  .spotlight-row--flip .spotlight-media {
    order: 0;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .screenshot-tile--wide {
    grid-column: span 2;
  }
}

/* ── Desktop nav active state ── */

.nav-links a[aria-current="true"] {
  color: var(--color-text);
}

/* ── Final CTA ── */

.final-cta h2 {
  max-width: none;
  margin-bottom: var(--space-2);
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: clamp(var(--space-8), 4vw, var(--space-10));
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-accent));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ── Footer ── */

footer {
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}

.footer-copy {
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (pointer: coarse) {
  .footer-links {
    gap: var(--space-8);
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-grid,
  .section-head,
  .quote-layout,
  .waitlist-wrap,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(odd),
  .feature-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
}

/* ── Mobile Bottom Nav ── */

.mobile-nav {
  display: none;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: color-mix(in oklab, var(--color-bg) 88%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-divider);
    padding-bottom: env(safe-area-inset-bottom);
    will-change: transform;
  }

  .mobile-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
    transition: color 0.15s ease;
  }

  .mobile-nav-link[aria-current="true"] {
    color: var(--color-primary);
  }

  body {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: var(--space-10);
  }

  .mini-proof,
  .problem-grid,
  .audience-grid,
  .steps-grid,
  .feature-list,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-tile--wide,
  .screenshot-tile--wide .screenshot-placeholder {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

  .feature-row:nth-child(odd),
  .feature-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }

  .hero-actions,
  .footer-row,
  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .final-cta {
    padding: var(--space-5);
  }

  h1 {
    max-width: 13ch;
  }
}

/* ── Motion system ── */

/* Hero page-load entrance */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-copy .eyebrow  { animation: hero-rise 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy h1        { animation: hero-rise 0.6s  0.18s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy .lead     { animation: hero-rise 0.6s  0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-actions        { animation: hero-rise 0.6s  0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.mini-proof          { animation: hero-rise 0.6s  0.48s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-panel          { animation: hero-rise 0.7s  0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Scroll reveal (requires .js-loaded on <html>) */
.js-loaded [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-loaded [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: children animate sequentially */
.js-loaded [data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-loaded [data-animate-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay:   0ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay:  75ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 150ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 225ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 300ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 375ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 450ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 525ms; }
.js-loaded [data-animate-stagger].is-visible > *:nth-child(9) { opacity: 1; transform: none; transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .theme-toggle,
  .header {
    transition: none;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-actions,
  .mini-proof,
  .hero-panel {
    animation: none;
  }

  .js-loaded [data-animate],
  .js-loaded [data-animate-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
