/* Nullsend marketing site: shared styles for index.html + partners.html.
   Source of truth for nullsend.io (deployed by scripts/go-live-landing.sh).
   Dark by default; light theme via :root[data-theme="light"]. Cyan signal
   accent, Inter + JetBrains Mono. */

:root {
  --ink: #0A0E14;
  --surface: #11161F;
  --surface-2: #1A2030;
  --signal: #00E5FF;
  --signal-dim: #00B8CC;
  --paper: #F5F7FA;
  --paper-dim: #C5CDD9;
  --paper-mute: #8B95A7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --success: #10D9A0;
  --warning: #FFAA33;
  --danger: #FF4D6D;
  --nav-bg: rgba(10, 14, 20, 0.72);
  --overlay-bg: rgba(10, 14, 20, 0.94);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max-w: 1200px;
}

/* Light theme. First pass mirroring the app palette; cyan darkened for contrast
   on light backgrounds. */
:root[data-theme="light"] {
  --ink: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --signal: #008CA8;
  --signal-dim: #00A6C4;
  --paper: #0A0E14;
  --paper-dim: #36404E;
  --paper-mute: #687585;
  --line: rgba(10, 14, 20, 0.10);
  --line-strong: rgba(10, 14, 20, 0.16);
  --nav-bg: rgba(246, 248, 251, 0.82);
  --overlay-bg: rgba(246, 248, 251, 0.96);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv05', 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: var(--ink); }

/* ---------------------------------------------- NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.lockup svg { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--paper-dim);
}
.nav-links a { transition: color 120ms ease; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--paper-dim);
  cursor: pointer;
  font-size: 17px;
  transition: color 120ms ease, border-color 120ms ease;
}
.theme-toggle:hover { color: var(--paper); border-color: var(--paper-mute); }
.theme-toggle .ti-moon { display: none; }
.theme-toggle .ti-sun { display: inline-flex; }
:root[data-theme="light"] .theme-toggle .ti-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ti-moon { display: inline-flex; }

/* ---------------------------------------------- BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--signal); color: #06222A; }
:root:not([data-theme="light"]) .btn-primary { color: var(--ink); }
.btn-primary:hover { background: var(--signal-dim); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper-dim);
}
.btn-ghost:hover { background: var(--surface); color: var(--paper); border-color: var(--line-strong); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------------------------------------------- HERO */
.hero {
  position: relative;
  padding: 100px 32px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
:root[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(10,14,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,14,20,0.04) 1px, transparent 1px);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--signal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 32px;
  animation: fadeUp 600ms ease both;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--signal);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin: 0 0 24px;
  animation: fadeUp 700ms ease both;
  animation-delay: 80ms;
}
.hero h1 .accent { color: var(--signal); }
.hero .lede {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--paper-dim);
  animation: fadeUp 800ms ease both;
  animation-delay: 160ms;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp 900ms ease both;
  animation-delay: 240ms;
}

/* terminal demonstration */
.hero-demo {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp 1000ms ease both;
  animation-delay: 320ms;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.demo-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.demo-title { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--paper-mute); }
.demo-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper-dim);
  text-align: left;
}
.demo-line { display: block; }
.demo-prompt { color: var(--paper-mute); }
.demo-cyan { color: var(--signal); }
.demo-mute { color: var(--paper-mute); }
.demo-success { color: var(--success); }
.demo-bar {
  display: inline-block;
  width: 200px;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 8px;
  overflow: hidden;
  position: relative;
}
.demo-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  width: 100%;
  transform: translateX(-100%);
  animation: barFill 2.4s ease-out forwards;
  animation-delay: 1.2s;
}
.demo-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--signal);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

/* ---------------------------------------------- SECTIONS */
section {
  padding: 100px 32px;
  position: relative;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 0 0 20px;
  max-width: 760px;
}
.section-lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper-dim);
  margin: 0 0 56px;
}

/* ---------------------------------------------- WHY NULLSEND */
.why { border-bottom: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { background: var(--surface); padding: 34px 32px; transition: background 200ms ease; }
.why-item:hover { background: var(--surface-2); }
.why-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  color: var(--signal);
  font-size: 18px;
  margin-bottom: 18px;
}
.why-item h3 {
  color: var(--paper);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 10px;
}
.why-item p { font-size: 15px; color: var(--paper-mute); line-height: 1.6; margin: 0; }

/* ---------------------------------------------- LEGAL / LONG-FORM DOC */
/* Rendered as a normal page section so it matches the main page: the generic
   `section` padding and `.section-inner` container apply, just narrowed here
   for comfortable long-form reading. With a stale cached stylesheet the
   `.section-inner` fallback (--max-w) still keeps it centered, never full bleed. */
.legal-page .section-inner { max-width: 820px; }
.legal-page .eyebrow { margin-bottom: 14px; }
.legal-page h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 8px;
}
.legal-page .doc-updated { color: var(--paper-mute); font-size: 14px; margin: 0 0 8px; }
.legal-page h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: none;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-page p { font-size: 16px; line-height: 1.7; color: var(--paper-dim); margin: 0 0 16px; }
.legal-page ul { margin: 0 0 18px; padding-left: 22px; }
.legal-page li { font-size: 16px; line-height: 1.7; color: var(--paper-dim); margin: 0 0 8px; }
.legal-page strong { color: var(--paper); font-weight: 600; }
.legal-page a { color: var(--signal); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 4px 0 24px; font-size: 15px; }
.legal-page th, .legal-page td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
  vertical-align: top;
}
.legal-page thead th {
  color: var(--paper);
  font-weight: 600;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}
.legal-page .doc-sig { color: var(--paper-mute); font-size: 14px; margin-top: 28px; }
@media (max-width: 560px) {
  .legal-page th, .legal-page td { padding: 10px 8px; }
}

/* ---------------------------------------------- WHAT WE CANNOT DO */
.cannot {
  background: linear-gradient(180deg, var(--ink) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cannot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 900px) { .cannot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cannot-grid { grid-template-columns: 1fr; } }
.cannot-item { background: var(--surface); padding: 32px 28px; transition: background 200ms ease; }
.cannot-item:hover { background: var(--surface-2); }
.cannot-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  color: var(--signal);
  font-size: 18px;
  margin-bottom: 20px;
}
.cannot-item h3 {
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px;
}
.cannot-item p { font-size: 14.5px; color: var(--paper-mute); line-height: 1.55; margin: 0; }

/* ---------------------------------------------- HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; position: relative; }
.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-num::before { content: ''; width: 24px; height: 1px; background: var(--signal); }
.how-step h3 { color: var(--paper); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 12px; }
.how-step p { font-size: 15px; color: var(--paper-dim); line-height: 1.6; margin: 0; }
.how-diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px; overflow: hidden; }
.how-diagram svg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------- FEATURES */
.features { background: linear-gradient(180deg, var(--surface) 0%, var(--ink) 100%); border-top: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature { padding: 28px 4px; }
.feature-icon { width: 32px; height: 32px; color: var(--signal); font-size: 24px; margin-bottom: 20px; display: flex; align-items: center; }
.feature h3 { color: var(--paper); font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; }
.feature p { font-size: 14.5px; line-height: 1.6; color: var(--paper-mute); margin: 0; }
.feature .mono-inline { color: var(--paper-dim); font-family: var(--font-mono); font-size: 13px; }

/* ---------------------------------------------- PRICING */
.pricing-teaser { border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; transition: all 200ms ease; position: relative; }
.price-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.price-card.featured { border-color: rgba(0, 229, 255, 0.4); background: linear-gradient(180deg, rgba(0,229,255,0.04) 0%, var(--surface) 60%); }
.price-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--signal);
  color: #06222A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-tier { font-size: 13px; color: var(--paper-mute); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.price-card.featured .price-tier { color: var(--signal); }
.price-num { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-num .amount { font-size: 36px; font-weight: 600; color: var(--paper); letter-spacing: -0.025em; line-height: 1; }
.price-num .per { font-size: 14px; color: var(--paper-mute); }
.price-detail { font-size: 13.5px; color: var(--paper-mute); margin-bottom: 24px; line-height: 1.5; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.price-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--paper-dim); }
.price-list li i { color: var(--signal); font-size: 16px; }
.price-cta { display: flex; width: 100%; justify-content: center; margin-top: 4px; }
.price-note { font-size: 13px; color: var(--paper-mute); margin: 0; text-align: center; }
.price-note a { color: var(--paper-dim); border-bottom: 1px solid var(--line-strong); }
.final-cta-btn { margin: 0 auto; }

/* ---------------------------------------------- RESELLER POINTER BAND */
.reseller-band { border-top: 1px solid var(--line); background: var(--surface); }
.reseller-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.reseller-copy h3 { color: var(--paper); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.reseller-copy p { color: var(--paper-mute); font-size: 15px; margin: 0; max-width: 540px; }

/* ---------------------------------------------- PARTNER PAGE */
.partner-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
@media (max-width: 900px) { .partner-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .partner-steps { grid-template-columns: 1fr; } }
.partner-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.partner-step .how-num { margin-bottom: 16px; }
.partner-step h3 { color: var(--paper); font-size: 17px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; }
.partner-step p { font-size: 14px; color: var(--paper-mute); line-height: 1.55; margin: 0; }
.partner-note {
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--paper-mute);
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
  max-width: 640px;
}
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .safe-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------- FINAL CTA */
.final-cta { border-top: 1px solid var(--line); background: var(--ink); position: relative; overflow: hidden; text-align: center; }
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.final-cta .section-inner { position: relative; max-width: 760px; }
.final-cta h2 { margin: 0 auto 20px; max-width: 100%; }
.final-cta .section-lede { margin: 0 auto 36px; }
.waitlist-note { font-size: 12.5px; color: var(--paper-mute); margin-top: 14px; }

/* ---------------------------------------------- FOOTER */
footer { padding: 60px 32px 40px; border-top: 1px solid var(--line); background: var(--ink); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .lockup { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--paper-mute); line-height: 1.55; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 500; color: var(--paper); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--paper-mute); transition: color 120ms ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--paper-mute);
}
.footer-bottom .legal { display: flex; gap: 20px; }

/* ---------------------------------------------- ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes barFill { to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------- RESPONSIVE */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  section { padding: 72px 24px; }
  .hero { padding: 72px 24px 80px; }
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------------------------------------------- MOBILE NAV */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--paper-dim);
  padding: 0;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav-burger:hover { color: var(--paper); border-color: var(--paper-mute); }
.nav-burger svg { display: block; }
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.overlay-head { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; height: 44px; }
.overlay-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--paper-dim);
}
.overlay-close:hover { color: var(--paper); }
.overlay-close svg { display: block; }
.overlay-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 12px; max-width: 420px; margin: 0 auto; width: 100%; }
.overlay-body a.overlay-link {
  display: block;
  padding: 18px 16px;
  font-size: 20px;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.overlay-body a.overlay-link:active { color: var(--signal); }
.overlay-cta { display: flex; flex-direction: column; gap: 12px; padding: 28px 4px 0; }
.overlay-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 641px) { .nav-overlay { display: none; } }

@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  section { padding: 56px 20px; }
  .hero { padding: 56px 20px 64px; }
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .demo-body { padding: 16px 18px; font-size: 12px; line-height: 1.75; }
  .demo-title { font-size: 11px; }
}
@media (max-width: 480px) {
  .demo-body { font-size: 11.5px; padding: 14px 16px; }
  .demo-bar { display: none; }
}

/* ---------------------------------------------- MOBILE / WAITLIST */
.mobile { border-top: 1px solid var(--line); }
.mobile-inner { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 64px; align-items: center; }
@media (max-width: 860px) { .mobile-inner { grid-template-columns: 1fr; gap: 48px; justify-items: start; } }
.mobile-copy h2 { margin-bottom: 14px; }
.mobile-copy .section-lede { margin-bottom: 32px; }

/* waitlist form (theme-aware via tokens) */
.waitlist-form { max-width: 460px; }
.waitlist-label { display: block; font-size: 13px; font-weight: 500; color: var(--paper); margin-bottom: 10px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist-row input {
  flex: 1; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--paper); font-family: var(--font-sans); font-size: 15px;
}
.waitlist-row input::placeholder { color: var(--paper-mute); }
.waitlist-row input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--signal); }
.waitlist-row .btn { white-space: nowrap; }
.waitlist-consent { font-size: 12.5px; color: var(--paper-mute); margin: 10px 0 0; }
.waitlist-msg { font-size: 13.5px; margin: 10px 0 0; min-height: 1.1em; }
.waitlist-msg.ok { color: var(--success); }
.waitlist-msg.err { color: var(--danger); }
@media (max-width: 460px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; justify-content: center; }
}

/* iOS phone mockup: deliberately dark in BOTH themes (a device showing the
   app's dark UI). Fixed palette, not theme tokens, by design. */
.phone {
  justify-self: center; width: 300px; max-width: 100%;
  background: #0A0E14; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.06);
}
.phone-screen {
  background: #11161F; border-radius: 30px; padding: 26px 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ph-header { display: flex; align-items: center; gap: 8px; color: #F5F7FA; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.ph-title { color: #F5F7FA; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ph-sub { color: #8B95A7; font-size: 12.5px; margin-top: -10px; }
.ph-file { display: flex; align-items: center; gap: 12px; background: #1A2030; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; }
.ph-file-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,229,255,0.10); border: 1px solid rgba(0,229,255,0.20); color: #00E5FF; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ph-file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-file-name { color: #F5F7FA; font-size: 14px; font-weight: 500; }
.ph-file-size { color: #8B95A7; font-size: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ph-addfile { display: flex; align-items: center; gap: 8px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 12px; padding: 11px 14px; color: #8B95A7; font-size: 13px; }
.ph-addfile i { color: #00E5FF; }
.ph-field { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; }
.ph-field-label { color: #8B95A7; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.ph-field-value { color: #F5F7FA; font-size: 14px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile { background: #1A2030; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.ph-tile-k { color: #8B95A7; font-size: 11px; }
.ph-tile-v { color: #F5F7FA; font-size: 14px; font-weight: 500; }
.ph-send { background: #00E5FF; color: #06222A; text-align: center; font-weight: 600; font-size: 15px; padding: 13px; border-radius: 10px; margin-top: 2px; }
.ph-foot { display: flex; align-items: center; gap: 7px; color: #8B95A7; font-size: 11px; margin-top: 2px; }
.ph-dot { width: 6px; height: 6px; border-radius: 2px; background: #00E5FF; display: inline-block; }

/* Explainer video embed. The video is a standalone HTML document served from
   /media/ and embedded via iframe, so its fixed-position stage and fonts are
   fully isolated from this stylesheet (no collision, single-H1 rule intact).
   16:9 responsive container. */
.video-embed { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
