/* ═══════════════════════════════════════════════════════════
   time.md — App-matched marketing site
   Backbone: docs/design-system/vercel-design.md + vercel-design.dark.md
   App theme: ThemePreset.timeMd in time.md/DesignSystem/BrutalTheme.swift
   ═══════════════════════════════════════════════════════════ */

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

:root {
  color-scheme: light dark;

  /* Geist / time.md light tokens */
  --primary: #171717;
  --secondary: #4d4d4d;
  --tertiary: #8f8f8f;
  --background-100: #ffffff;
  --background-200: #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #ebebeb;
  --gray-300: #e6e6e6;
  --gray-400: #eaeaea;
  --gray-500: #c9c9c9;
  --gray-600: #a8a8a8;
  --gray-700: #8f8f8f;
  --gray-900: #4d4d4d;
  --gray-1000: #171717;
  --gray-alpha-100: #0000000d;
  --gray-alpha-200: #00000015;
  --gray-alpha-300: #0000001a;
  --gray-alpha-400: #00000014;
  --gray-alpha-500: #00000036;
  --gray-alpha-600: #0000003d;
  --blue-100: #f0f7ff;
  --blue-200: #e9f4ff;
  --blue-400: #cae7ff;
  --blue-600: #48aeff;
  --blue-700: #006bff;
  --blue-800: #0059ec;
  --blue-1000: #002359;
  --red-800: #ea001d;
  --red-1000: #47000c;
  --amber-700: #ffae00;
  --amber-900: #aa4d00;
  --green-700: #28a948;
  --teal-700: #00ac96;
  --purple-700: #a000f8;
  --pink-700: #f22782;

  /* Semantic aliases shared with the app */
  --bg: var(--background-100);
  --surface: var(--background-100);
  --surface-alt: var(--background-200);
  --neutral-surface: var(--gray-100);
  --border: var(--gray-alpha-400);
  --border-hover: var(--gray-alpha-500);
  --border-strong: var(--gray-alpha-600);
  --accent: var(--blue-700);
  --accent-hover: var(--blue-800);
  --accent-muted: var(--blue-200);
  --text-primary: var(--primary);
  --text-secondary: var(--secondary);
  --text-tertiary: var(--tertiary);
  --danger: var(--red-800);
  --warning: var(--amber-700);
  --positive: var(--green-700);

  /* Dark-theme constants for intentionally dark sections */
  --dark-bg: #000000;
  --dark-surface: #1a1a1a;
  --dark-surface-alt: #1f1f1f;
  --dark-border: #ffffff24;
  --dark-border-strong: #ffffff3d;
  --dark-text: #ededed;
  --dark-text-secondary: #a0a0a0;
  --dark-text-tertiary: #8f8f8f;
  --dark-accent: #006efe;
  --dark-accent-muted: #06193a;

  --font-sans: "Geist", "Geist Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --content-max: 1200px;
  --section-pad: clamp(64px, 9vw, 112px);
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 2px 2px rgba(0, 0, 0, 0.04);
  --shadow-popover: 0 1px 1px rgba(0, 0, 0, 0.02), 0 4px 8px -4px rgba(0, 0, 0, 0.04), 0 16px 24px -8px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(0, 0, 0, 0.04), 0 24px 32px -8px rgba(0, 0, 0, 0.06);
  --focus-ring: 0 0 0 2px var(--background-100), 0 0 0 4px var(--accent);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border-scrolled: rgba(0, 0, 0, 0.18);
  --hero-grid: rgba(0, 0, 0, 0.04);
  --transition: 150ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ededed;
    --secondary: #a0a0a0;
    --tertiary: #8f8f8f;
    --background-100: #000000;
    --background-200: #000000;
    --gray-100: #1a1a1a;
    --gray-200: #1f1f1f;
    --gray-300: #292929;
    --gray-400: #2e2e2e;
    --gray-500: #454545;
    --gray-600: #878787;
    --gray-700: #8f8f8f;
    --gray-900: #a0a0a0;
    --gray-1000: #ededed;
    --gray-alpha-100: #ffffff12;
    --gray-alpha-200: #ffffff17;
    --gray-alpha-300: #ffffff21;
    --gray-alpha-400: #ffffff24;
    --gray-alpha-500: #ffffff3d;
    --gray-alpha-600: #ffffff82;
    --blue-100: #06193a;
    --blue-200: #022248;
    --blue-400: #003674;
    --blue-600: #0090ff;
    --blue-700: #006efe;
    --blue-800: #005be7;
    --blue-1000: #eaf6ff;
    --red-800: #e2162a;
    --red-1000: #ffe9ed;
    --amber-700: #ffae00;
    --amber-900: #ff9300;
    --green-700: #00ac3a;
    --teal-700: #00aa95;
    --purple-700: #9440d5;
    --pink-700: #f12b82;

    --bg: var(--background-100);
    --surface: var(--gray-100);
    --surface-alt: var(--gray-200);
    --neutral-surface: var(--gray-300);
    --accent: var(--blue-700);
    --accent-hover: var(--blue-800);
    --accent-muted: var(--blue-100);
    --text-primary: var(--primary);
    --text-secondary: var(--secondary);
    --text-tertiary: var(--tertiary);
    --shadow-card: none;
    --shadow-popover: 0 0 0 1px var(--border);
    --shadow-modal: 0 0 0 1px var(--border);
    --focus-ring: 0 0 0 2px #000000, 0 0 0 4px var(--accent);
    --nav-bg: rgba(0, 0, 0, 0.78);
    --nav-border-scrolled: rgba(255, 255, 255, 0.22);
    --hero-grid: rgba(255, 255, 255, 0.06);
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 0%, color-mix(in srgb, var(--accent-muted) 72%, transparent) 0, transparent 34vw),
    linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0, #000 620px, transparent 1040px);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav-inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--border);
}

.nav-wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.nav-links a {
  border-radius: var(--radius-full);
  padding: 6px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  transition: color var(--transition), background-color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--gray-alpha-100);
}

.nav-cta,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.nav-cta {
  min-height: 32px;
  padding: 0 12px;
  background: var(--primary);
  color: var(--background-100);
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn {
  padding: 0 14px;
}

.btn:disabled,
.nav-cta:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

.btn-outline {
  background: var(--background-100);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--gray-alpha-100);
  border-color: var(--border-hover);
}

.btn-lg {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
  line-height: 20px;
}

.checkout-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Hero ─── */
.hero {
  padding-top: var(--nav-height);
}

.hero-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 74%, transparent);
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 9px 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

@keyframes ticker { to { transform: translateX(-50%); } }

.hero-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 32px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero-text { min-width: 0; }

.hero-headline {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: clamp(-5px, -0.06em, -2px);
}

.hero-dot { color: var(--accent); }

.hero-sub {
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-sub p,
.portal-lede,
.cta-sub {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.hero-cursor { display: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust-strip,
.stats-strip,
.portal-proof-grid,
.portal-steps,
.features-grid,
.privacy-grid,
.usecases-grid,
.faq-grid,
.receipt-grid {
  display: grid;
  gap: 16px;
}

.hero-trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.hero-trust-strip div,
.stat,
.portal-proof-grid div,
.portal-step,
.feature-card,
.step-card,
.privacy-card,
.usecase-card,
.faq-item,
.confirmation-card,
.next-steps-card,
.screenshot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-trust-strip div {
  padding: 16px;
}

.hero-trust-strip span,
.section-label,
.proof-kicker,
.checkout-topline,
.stat-label,
.hero-window-title,
.titlebar-title,
.outcome-tag,
.receipt-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-tertiary);
}

.hero-trust-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* ─── Product window / slideshow ─── */
.hero-slideshow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-window,
.showcase-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-modal);
}

.hero-window-bar,
.showcase-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.titlebar-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.hero-slides {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.showcase-screenshot,
.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-slide-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-dot-btn {
  appearance: none;
  width: 22px;
  height: 6px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--gray-alpha-300);
  cursor: pointer;
  transition: width var(--transition), background-color var(--transition);
}

.hero-dot-btn:hover { background: var(--gray-alpha-600); }
.hero-dot-btn.is-active { width: 34px; background: var(--accent); }

/* ─── Stats ─── */
.stats-strip {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px 56px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 24px;
}

.stat-value {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ─── Sections ─── */
.section { padding: var(--section-pad) 0; }

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  margin-bottom: 16px;
}

.section-headline,
.cta-headline {
  max-width: 760px;
  margin-bottom: 40px;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: clamp(-4px, -0.055em, -1.6px);
}

/* ─── Purchase portal ─── */
.purchase-portal,
.visual-tour,
.faq-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.purchase-portal {
  position: relative;
  overflow: hidden;
}

.purchase-portal::before {
  content: "$19.99";
  position: absolute;
  top: 16px;
  right: max(24px, calc((100vw - var(--content-max)) / 2));
  color: color-mix(in srgb, var(--accent-muted) 72%, transparent);
  font-family: var(--font-mono);
  font-size: clamp(64px, 12vw, 168px);
  line-height: 1;
  letter-spacing: -0.1em;
  pointer-events: none;
}

.portal-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.portal-copy .section-headline { margin-bottom: 24px; }
.portal-lede { max-width: 660px; margin-bottom: 28px; }

.portal-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
}

.portal-proof-grid div { padding: 18px; }
.portal-proof-grid strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 20px; }

.checkout-card {
  padding: 28px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, #022248 0, transparent 42%),
    var(--dark-bg);
  color: var(--dark-text);
  box-shadow: var(--shadow-modal);
}

.checkout-topline {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px 8px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-full);
  background: var(--dark-accent-muted);
  color: #eaf6ff;
}

.checkout-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

.checkout-price span { font-size: clamp(60px, 8vw, 88px); }
.checkout-price sup { padding-top: 10px; font-size: 26px; }

.checkout-copy,
.license-list li,
.checkout-status,
.step-desc,
.privacy-card p {
  color: var(--dark-text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.checkout-copy { margin-bottom: 22px; }

.license-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.license-list li {
  position: relative;
  padding-left: 20px;
}

.license-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dark-accent);
}

.portal-buy { width: 100%; }
.portal-buy + .portal-buy { margin-top: 10px; }

.checkout-card .btn-outline {
  background: transparent;
  border-color: var(--dark-border-strong);
  color: var(--dark-text);
}

.checkout-card .btn-outline:hover { background: var(--dark-surface); border-color: var(--dark-border-strong); }
.checkout-card .btn-primary { background: var(--dark-text); border-color: var(--dark-text); color: #000; }
.checkout-card .btn-primary:hover { background: var(--dark-accent); border-color: var(--dark-accent); color: #fff; }
.checkout-status { min-height: 22px; margin-top: 14px; }
.checkout-status[data-tone="error"] { color: #ff9aa4; }

.portal-steps {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-step { padding: 24px; }
.portal-step span,
.step-number,
.usecase-number {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.portal-step h3,
.step-title,
.feature-title,
.privacy-card h3,
.usecase-card h3,
.next-steps-card h2 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.28px;
}
.portal-step p,
.feature-desc,
.point-desc,
.usecase-card p,
.faq-item p,
.next-steps-list {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* ─── Dark sections ─── */
.section-dark,
.section-cta,
.footer {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section-dark {
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.section-dark .section-label,
.section-dark .step-desc,
.section-dark .feature-desc,
.section-dark .privacy-card p {
  color: var(--dark-text-secondary);
}

.section-dark .section-headline { color: var(--dark-text); }
.section-dark .feature-card,
.section-dark .step-card,
.section-dark .privacy-card {
  border-color: var(--dark-border);
  background: var(--dark-surface);
  color: var(--dark-text);
  box-shadow: none;
}
.section-dark .feature-card:hover,
.section-dark .privacy-card:hover { background: var(--dark-surface-alt); }

/* ─── Feature cards ─── */
.features-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature-card {
  padding: 28px;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-card:hover { background: var(--surface-alt); border-color: var(--border-hover); transform: translateY(-1px); }
.feature-icon-wrap,
.privacy-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent);
}
.feature-icon { width: 20px; height: 20px; }
.feature-desc { margin-top: 10px; }

/* ─── Process ─── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.step-card { padding: 28px; }
.step-number { color: var(--dark-accent); }
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: var(--dark-text-tertiary);
}
.step-connector svg { width: 44px; height: 24px; }

/* ─── Interface section ─── */
.interface-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.interface-desc {
  display: grid;
  gap: 16px;
}
.interface-point {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
}
.point-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
}
.point-title { margin-bottom: 4px; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: -0.28px; }
.interface-showcase { perspective: 1200px; }
.showcase-window {
  transform: rotateY(-1.5deg) rotateX(0.8deg);
  transition: transform 300ms ease;
}
.showcase-window:hover { transform: none; }
.showcase-screenshot { height: auto; }

/* ─── Visual tour ─── */
.screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenshot-card { min-width: 0; padding: 14px; }
.screenshot-card-wide { grid-column: span 2; }
.screenshot-card img {
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.screenshot-card figcaption {
  padding: 14px 4px 2px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}
.screenshot-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.outcome-tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: var(--accent);
}

/* ─── Privacy / use cases / FAQ ─── */
.privacy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.privacy-card { padding: 30px; }
.privacy-icon { background: var(--dark-accent-muted); color: #47a8ff; }
.privacy-icon svg { width: 21px; height: 21px; }

.usecases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usecase-card { padding: 30px; transition: background-color var(--transition), border-color var(--transition), transform var(--transition); }
.usecase-card:hover { background: var(--surface-alt); border-color: var(--border-hover); transform: translateY(-1px); }
.usecase-number { color: var(--accent); }

.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-item { padding: 0; overflow: hidden; transition: background-color var(--transition), border-color var(--transition); }
.faq-item:hover { background: var(--surface-alt); border-color: var(--border-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-flex;
  width: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item p { padding: 0 24px 24px 44px; }
.faq-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── CTA ─── */
.section-cta {
  text-align: center;
  border-top: 1px solid var(--dark-border);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-headline {
  color: var(--dark-text);
  max-width: 900px;
}
.cta-sub {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--dark-text-secondary);
}
.cta-inner .btn + .btn { margin-top: 12px; }
.section-cta .btn-primary { background: var(--dark-text); border-color: var(--dark-text); color: #000; }
.section-cta .btn-primary:hover { background: var(--dark-accent); border-color: var(--dark-accent); color: #fff; }
.section-cta .btn-outline { background: transparent; border-color: var(--dark-border-strong); color: var(--dark-text); }
.section-cta .btn-outline:hover { background: var(--dark-surface); }

/* ─── Checkout result pages ─── */
.portal-page { min-height: 100vh; background: var(--bg); }
.confirmation-hero { padding: calc(var(--nav-height) + 64px) 0 80px; }
.confirmation-hero .cta-headline { color: var(--text-primary); }
.confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 32px;
  align-items: start;
}
.confirmation-card,
.next-steps-card { padding: 28px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
}
.status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 1.4s ease-out infinite;
}
.status-pulse.is-ready { background: var(--positive); animation: none; }
.status-pulse.is-error { background: var(--danger); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warning) 48%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.receipt-grid { gap: 0; margin: 0 0 24px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); }
.receipt-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 14px;
  line-height: 20px;
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row dd { min-width: 0; overflow-wrap: anywhere; color: var(--text-primary); }
.receipt-row-license dd { font-family: var(--font-mono); }
.download-link[aria-disabled="true"] { pointer-events: none; opacity: 0.55; }
.copy-license { width: 100%; margin-bottom: 12px; }
.copy-license:disabled { cursor: not-allowed; opacity: 0.55; }
.download-link.is-ready { background: var(--accent); border-color: var(--accent); color: #fff; }
.next-steps-card h2 { margin-bottom: 18px; }
.next-steps-list { display: grid; gap: 14px; list-style-position: inside; }
.next-steps-list strong { color: var(--text-primary); }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--dark-border);
  padding: 24px 0;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-left { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-link,
.footer-right {
  color: var(--dark-text-secondary);
  font-size: 12px;
  line-height: 16px;
}
.footer-link:hover { color: var(--dark-text); }

/* ─── Scroll reveal ─── */
.feature-card,
.step-card,
.privacy-card,
.usecase-card,
.interface-point,
.interface-showcase,
.screenshot-card,
.portal-panel,
.checkout-card,
.portal-step,
.faq-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease, transform 300ms ease, background-color var(--transition), border-color var(--transition);
}
.feature-card.visible,
.step-card.visible,
.privacy-card.visible,
.usecase-card.visible,
.interface-point.visible,
.interface-showcase.visible,
.screenshot-card.visible,
.portal-panel.visible,
.checkout-card.visible,
.portal-step.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 40ms; }
.feature-card:nth-child(3) { transition-delay: 80ms; }
.feature-card:nth-child(4) { transition-delay: 120ms; }
.feature-card:nth-child(5) { transition-delay: 160ms; }
.feature-card:nth-child(6) { transition-delay: 200ms; }
.feature-card:nth-child(7) { transition-delay: 240ms; }
.feature-card:nth-child(8) { transition-delay: 280ms; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none; transform: none; }
  .feature-card,
  .step-card,
  .privacy-card,
  .usecase-card,
  .interface-point,
  .interface-showcase,
  .screenshot-card,
  .portal-panel,
  .checkout-card,
  .portal-step,
  .faq-item {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-content,
  .portal-inner,
  .interface-grid,
  .confirmation-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .stats-strip,
  .privacy-grid,
  .usecases-grid,
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-proof-grid,
  .portal-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-height: 58px; }
  .nav-inner,
  .section-inner,
  .footer-inner { padding-inline: 20px; }
  .nav-inner { gap: 12px; }
  .nav-cta { flex-shrink: 0; }
  .hero-content { padding: 48px 20px 44px; }
  .hero-headline { font-size: clamp(42px, 13vw, 64px); }
  .hero-trust-strip,
  .stats-strip,
  .features-grid,
  .privacy-grid,
  .usecases-grid,
  .faq-grid,
  .screenshot-gallery { grid-template-columns: 1fr; }
  .stats-strip { padding-inline: 20px; }
  .screenshot-card-wide { grid-column: span 1; }
  .hero-actions,
  .cta-inner { width: 100%; }
  .hero-actions .btn,
  .cta-inner .btn,
  .confirmation-actions .btn { width: 100%; white-space: normal; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { justify-content: center; }
}

@media (max-width: 420px) {
  .nav-icon { width: 24px; height: 24px; }
  .nav-wordmark { font-size: 13px; }
  .nav-cta { max-width: 124px; overflow: hidden; text-overflow: ellipsis; }
  .stat,
  .feature-card,
  .privacy-card,
  .usecase-card,
  .checkout-card,
  .confirmation-card,
  .next-steps-card { padding: 20px; }
  .receipt-row { grid-template-columns: 1fr; gap: 4px; }
}
