/* Launchlist design system — mirrored in src/app/globals.css.
   Fonts: Inter (UI) + Instrument Serif italic (display accents) via Google Fonts, font-display: swap. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* palette (dark default) */
  --ink: #0b0d17;
  --bg: #0b0d17;
  --bg-2: #10132a;
  --surface: rgba(245, 243, 238, 0.045);
  --surface-2: #141831;
  --surface-solid: #12152b;
  --text: #f5f3ee;
  --muted: #a8adc4;          /* 8.3:1 on --bg */
  --faint: #7d829c;
  --border: rgba(245, 243, 238, 0.12);
  --border-strong: rgba(245, 243, 238, 0.22);
  --primary: #6366f1;
  --primary-strong: #4f46e5; /* white text 6.3:1 */
  --primary-soft: rgba(99, 102, 241, 0.16);
  --link: #a5b4fc;           /* 8.9:1 on --bg */
  --accent: #34d399;         /* mint, 10:1 on --bg */
  --accent-soft: rgba(52, 211, 153, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.12);
  --warn: #fbbf24;
  --mesh-1: 99, 102, 241;
  --mesh-2: 52, 211, 153;
  --mesh-3: 168, 85, 247;
  --mesh-4: 56, 189, 248;
  --mesh-alpha: 0.55;
  --header-bg: rgba(11, 13, 23, 0.72);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.5);

  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --fs-hero: clamp(2.5rem, 1.35rem + 5vw, 4.5rem);

  /* space & shape */
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dur: 400ms;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-2: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --text: #14151f;
  --muted: #555a70;          /* 6.9:1 on --bg */
  --faint: #6b7088;
  --border: rgba(20, 21, 31, 0.11);
  --border-strong: rgba(20, 21, 31, 0.22);
  --primary-soft: rgba(99, 102, 241, 0.1);
  --link: #4338ca;           /* 7.6:1 */
  --accent: #047857;         /* 5.4:1 */
  --accent-soft: rgba(4, 120, 87, 0.1);
  --danger: #be123c;
  --danger-soft: rgba(190, 18, 60, 0.08);
  --warn: #b45309;
  --mesh-alpha: 0.32;
  --header-bg: rgba(251, 250, 247, 0.78);
  --shadow-lg: 0 24px 60px -24px rgba(30, 27, 75, 0.25);
  --shadow-md: 0 12px 30px -14px rgba(30, 27, 75, 0.22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: var(--primary-strong); color: #fff; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.top-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.top-nav a { padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: var(--border-strong); transform: rotate(12deg); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.i-moon, :root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle:hover { transform: none; }
.nav-toggle .bars { position: relative; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: background-color 0.2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.35rem;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--primary-strong); color: #fff;
  font-weight: 600; font-size: var(--fs-base); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(79, 70, 229, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); background: #4338ca; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 16px 30px -12px rgba(79, 70, 229, 0.9); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 2.5rem; padding: 0 1rem; font-size: var(--fs-sm); border-radius: 10px; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: none; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); box-shadow: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 28rem at 12% 8%, rgba(var(--mesh-1), calc(var(--mesh-alpha) * 0.7)), transparent 70%),
    radial-gradient(34rem 26rem at 88% 20%, rgba(var(--mesh-2), calc(var(--mesh-alpha) * 0.45)), transparent 70%),
    radial-gradient(36rem 26rem at 60% 100%, rgba(var(--mesh-3), calc(var(--mesh-alpha) * 0.5)), transparent 70%);
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: blur(40px) saturate(1.2); transition: opacity 1.2s ease; }
.hero-bg canvas.on { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-fade { position: absolute; inset: auto 0 0; height: 7rem; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-copy { max-width: 40rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: var(--fs-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill b { white-space: nowrap; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; }
.hero h1 { margin: 1.25rem 0 1.25rem; font-size: var(--fs-hero); letter-spacing: -0.04em; }
.hero h1 .serif { color: var(--link); letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: var(--fs-lg); max-width: 36rem; }
.hero .lead { margin-bottom: 2rem; }
.proof { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-sm); }
.proof[hidden] { display: none; }
.avatars { display: flex; }
.avatars span { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--bg); margin-left: -0.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #f472b6, var(--primary)); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, var(--warn), #f472b6); }
.proof strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* hero preview card */
.hero-card {
  position: relative; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.hero-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hero-card .dots { display: flex; gap: 0.35rem; }
.hero-card .dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border-strong); }
.hero-card .tag { font-size: var(--fs-xs); color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
.hero-card h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.hero-card .sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1rem; }
.checklist { list-style: none; display: grid; gap: 0.5rem; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: var(--fs-sm); }
.checklist .tick { display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.checklist .done .tick { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.checklist .done .tick svg { width: 0.75rem; height: 0.75rem; }
.checklist .done span:not(.tick) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.checklist .when { margin-left: auto; color: var(--faint); font-size: var(--fs-xs); white-space: nowrap; }
.meter { margin-top: 1rem; height: 0.45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; width: 66%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; animation: grow 1.6s var(--ease) 0.4s both; }
.float-chip {
  position: absolute; right: -0.75rem; bottom: -1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-solid); box-shadow: var(--shadow-md);
  font-size: var(--fs-sm); animation: bob 6s ease-in-out infinite;
}
.float-chip b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Waitlist form ---------- */
.signup { display: grid; grid-template-columns: 1fr; gap: 0.6rem; max-width: 32rem; }
.signup .field { position: relative; }
.signup input[type="email"], .signup input[type="text"], .input {
  width: 100%; min-height: 3rem; padding: 0 1rem;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface-solid); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup input::placeholder, .input::placeholder { color: var(--faint); }
.signup input:focus-visible, .input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), 0 0 0 1px var(--primary); }
.signup input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }
.status.ok { color: var(--accent); }
.status.error { color: var(--danger); }
.status.preview { color: var(--warn); }
.fine { font-size: var(--fs-xs); color: var(--faint); }
.fine a { color: inherit; }
.signup.row-2 { grid-template-columns: 1fr; }

/* ---------- Sections ---------- */
.section { padding-top: var(--space-section); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 0.9rem; color: var(--link); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; }
.section-head h2 .serif { color: var(--link); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: var(--fs-lg); }

/* Logos strip */
.logos { padding-top: 1rem; }
.logos p { text-align: center; color: var(--faint); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; }
.logo-row li { color: var(--muted); opacity: 0.8; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em; transition: opacity 0.2s, color 0.2s; }
.logo-row li:hover { opacity: 1; color: var(--text); }
.logo-row .lg-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.35rem; letter-spacing: 0; }
.logo-row .lg-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.logo-row .lg-caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; }

/* Feature cards */
.cards { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden; padding: 1.75rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color 0.25s, box-shadow var(--dur) var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.glyph { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--primary-soft); color: var(--link); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.glyph.mint { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.glyph svg { width: 1.35rem; height: 1.35rem; }
.card h3 { margin: 1.25rem 0 0.5rem; font-size: var(--fs-xl); letter-spacing: -0.02em; }
.card p { color: var(--muted); }

/* Stepper */
.steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.25rem; top: 1.4rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--primary-strong); color: #fff; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.125rem; margin-bottom: 0.35rem; letter-spacing: -0.015em; }
.step p { color: var(--muted); }

/* Pricing */
.plans { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 52rem; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: color-mix(in srgb, var(--primary) 60%, transparent); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.plan .badge { position: absolute; top: -0.75rem; left: 2rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--primary-strong); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.plan h3 { font-size: var(--fs-xl); }
.plan .desc { color: var(--muted); margin-top: -0.75rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.price .amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price .per { color: var(--muted); }
.price s { color: var(--faint); font-size: var(--fs-sm); }
.ticks { list-style: none; display: grid; gap: 0.65rem; flex: 1; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 0.4rem; top: 0.5rem; width: 0.3rem; height: 0.55rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .btn { width: 100%; }

/* FAQ */
.faq-list { max-width: 48rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.25s, background-color 0.25s; }
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { padding: 0 1.25rem 1.25rem; color: var(--muted); animation: fade-up 0.35s var(--ease) both; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: var(--space-section); padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border: 1px solid var(--border); border-radius: calc(var(--radius-lg) + 8px);
  background: var(--surface-2);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgba(var(--mesh-1), calc(var(--mesh-alpha) * 0.6)), transparent 70%),
    radial-gradient(26rem 18rem at 100% 100%, rgba(var(--mesh-2), calc(var(--mesh-alpha) * 0.45)), transparent 70%);
}
.cta-grid { display: grid; gap: 2rem; align-items: center; }
.cta h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; }
.cta h2 .serif { color: var(--link); }
.cta .lead { margin-top: 1rem; }

/* Prose (privacy) */
.page-head { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 2rem; }
.page-head h1 { font-size: var(--fs-2xl); letter-spacing: -0.035em; }
.page-head p { margin-top: 0.75rem; color: var(--muted); }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--fs-xl); margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: var(--muted); }
.prose .table-scroll { overflow-x: auto; }
.callout { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }

/* 404 */
.notfound { min-height: calc(100vh - var(--header-h) - 12rem); display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 4rem 0; text-align: center; }
.notfound .code { font-family: var(--font-serif); font-style: italic; font-size: clamp(6rem, 4rem + 12vw, 11rem); line-height: 0.9; color: var(--link); }
.notfound h1 { font-size: var(--fs-2xl); }

/* Footer */
.site-footer { margin-top: var(--space-section); padding: 3rem 0 2.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 0.75rem; max-width: 30ch; }
.site-footer h3 { color: var(--text); font-size: var(--fs-sm); margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--faint); }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.in, .js.reveal-all .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .signup { grid-template-columns: 1fr auto; }
  .signup .status, .signup .fine { grid-column: 1 / -1; }
  .signup.row-2 { grid-template-columns: 1fr 1fr; }
  .signup.row-2 .btn { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 4.5rem 1.5rem 1.75rem; }
  .step::before { top: 1.5rem; left: 1.5rem; }
  .steps .step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; left: 4.5rem; right: -1rem; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-card { grid-column: 8 / span 5; }
  .cta-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cta-copy { grid-column: 1 / span 6; }
  .cta-form { grid-column: 8 / span 5; }
}
@media (max-width: 1023px) {
  .hero-card { max-width: 30rem; }
  .float-chip { right: 0.75rem; }
}
@media (max-width: 759px) {
  .nav-actions .btn-sm { display: none; }
  .js .nav-toggle { display: inline-grid; }
  .js .top-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    display: none; flex-direction: column; align-items: stretch; gap: 0.25rem;
    margin: 0; padding: 1.5rem 1.25rem;
    background: var(--bg); border-top: 1px solid var(--border);
  }
  .js .top-nav.open { display: flex; animation: menu-in 0.25s ease both; }
  .js .top-nav a { padding: 1rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1.25rem; color: var(--text); }
  .js .top-nav a:hover { background: transparent; color: var(--link); }
  .js .top-nav .menu-cta { margin-top: 1.5rem; border: 0; justify-content: center; font-size: 1rem; color: #fff; border-radius: 12px; padding: 0 1.35rem; }
  .js .top-nav .menu-cta:hover { color: #fff; background: #4338ca; }
  .top-nav { flex-wrap: wrap; }
  .nav-actions { margin-left: auto; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 760px) {
  .top-nav .menu-cta { display: none; }
}
@media (max-width: 400px) {
  .checklist .when { display: none; }
  .float-chip { position: static; margin-top: 1rem; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg canvas { display: none; }
}
