/* ─────────────────────────────────────────────────────────────
   the funnel. landing
   Self-contained: no dependency on /styles/tokens.css or app.css.
   The app surface keeps its own styling; this landing is a
   separate brand surface.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Signal — the only colour */
  --signal:        #E4346F;
  --signal-hover:  #ef4a82;

  /* Neutrals */
  --ink-0:  #0A0A0A;
  --ink-10: #F3F1EC;
  --paper:  #F3F1EC;
  --paper-1: #ECE9E1;
  --paper-2: #E6E2D8;
  --paper-3: #DCD7CB;
  --paper-4: #C8C2B3;

  --bg:           #FFFFFF;
  --bg-elev:      #FAFAF8;
  --bg-card-hi:   #F4F3EF;
  --fg:           #0A0A0A;
  --fg-2:         #1F1F1D;
  --fg-3:         #3B3A35;
  --fg-meta:      #5A5852;
  --fg-dim:       #7A7770;

  --border:       #E9E7E1;
  --border-2:     #D6D3CA;

  /* Fonts: League Spartan for the brand wordmark only (matches the
     spec and the app). Space Grotesk for everything else on this
     landing surface. JetBrains Mono for labels and stats. */
  --font-brand:   "League Spartan", "Arial Black", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  letter-spacing: -0.005em;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--signal); color: #fff; }

/* ── Pink dot punctuation ────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 0.165em; height: 0.165em;
  background: var(--signal);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.06em;
  flex: none;
}

/* ── Wordmark (League Spartan 900 + glowing pink dot) ────────── */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__dot {
  color: var(--signal);
  margin-left: 0.04em;
  text-shadow: 0 0 10px rgba(228, 52, 111, 0.55);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 56px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; }
.nav__center { display: flex; justify-content: center; gap: 32px; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__login {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-meta);
  white-space: nowrap;
  transition: color 120ms var(--ease);
}
.nav__login:hover { color: var(--signal); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--fg);
  border-radius: 4px;
  transition: all 140ms var(--ease);
  white-space: nowrap;
}
.btn:hover { color: var(--signal); border-color: var(--signal); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn--primary {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
  border-radius: 999px;
  padding: 14px 26px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 22px rgba(228, 52, 111, 0.16);
}
.btn--primary:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 28px rgba(228, 52, 111, 0.26);
  transform: translateY(-1px);
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.eyebrow--neutral { color: var(--fg-meta); }
.eyebrow__pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: signal-pulse 1.8s var(--ease) infinite;
}

/* ── Email capture ───────────────────────────────────────────── */
.capture {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
  max-width: 480px;
}
.capture:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(228, 52, 111, 0.16);
}
.capture input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--fg);
  padding: 16px 22px;
  min-width: 0;
}
.capture input::placeholder { color: var(--fg-dim); }
.capture .btn--primary {
  border-radius: 999px;
  margin: 4px;
  padding: 12px 22px;
  box-shadow: none;
}
.capture--lg { max-width: 540px; }
.capture--lg input { padding: 22px 26px; font-size: 18px; }
.capture--lg .btn--primary { padding: 16px 26px; font-size: 12px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 56px 96px;
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--border);
}
.hero > div { min-width: 0; }
.hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.97;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 18px 0 0;
  color: var(--fg);
  text-wrap: balance;
}
.hero__copy .lede {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  max-width: 460px;
}
.hero__copy .capture { margin-top: 32px; }

/* ── Hero video frame: iframe to /demo.html ──────────────────── */
.heroframe {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 60px -20px rgba(10,10,10,0.18),
    0 12px 30px -16px rgba(10,10,10,0.18);
  isolation: isolate;
}
.heroframe__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.heroframe__pulse {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(228, 52, 111, 0.55);
  animation: signal-pulse 1.8s var(--ease) infinite;
  z-index: 4;
  pointer-events: none;
}

/* ── Old way ─────────────────────────────────────────────────── */
.oldway {
  padding: 140px 56px;
  background: var(--paper-1);
  border-bottom: 1px solid var(--paper-3);
}
.oldway__wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.oldway__copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 60px);
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 14px 0 0;
  color: var(--fg);
  line-height: 0.98;
}
.oldway__copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.oldway__copy p:first-of-type { margin-top: 28px; }
.oldway__copy p:last-child { margin-bottom: 0; }

/* Letter mock */
.letter-stack { position: relative; }
.letter-stack__back2, .letter-stack__back1 {
  position: absolute;
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.12);
}
.letter-stack__back2 {
  inset: -14px 14px 14px -14px;
  background: var(--paper-2);
  transform: rotate(-1.8deg);
}
.letter-stack__back1 {
  inset: -7px 7px 7px -7px;
  background: var(--paper);
  transform: rotate(-0.8deg);
}
.letter {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #FBFAF6;
  border: 1px solid var(--paper-3);
  padding: 38px 42px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.9;
  border-radius: 2px;
  box-shadow:
    inset 0 0 60px rgba(220, 215, 203, 0.25),
    0 24px 50px -24px rgba(0,0,0,0.18);
}
.letter__head {
  display: flex; justify-content: space-between;
  margin-bottom: 26px;
  padding-right: 88px;
  color: var(--fg-3);
}
.letter__to { margin-bottom: 18px; }
.letter__greet { margin-top: 18px; }
.letter__body { margin-top: 14px; color: var(--fg-meta); }
.letter__sic {
  background: rgba(228, 52, 111, 0.16);
  padding: 0 5px;
  color: var(--fg-2);
}
.letter__stamp {
  position: absolute; top: 26px; right: 28px;
  width: 72px; height: 86px;
  border: 1px dashed var(--paper-4);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--fg-meta);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.4;
}
.letter__rts {
  position: absolute; right: 30px; bottom: 26px;
  transform: rotate(-6deg);
  border: 2px solid #b6432f;
  color: #b6432f;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.88;
  box-shadow: inset 0 0 0 1px rgba(182, 67, 47, 0.12);
}

/* ── Comparison table ────────────────────────────────────────── */
.cmp {
  padding: 140px 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.cmp__wrap { max-width: 1100px; margin: 0 auto; }
.cmp__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.cmp__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 60px);
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 0;
  color: var(--fg);
  line-height: 0.98;
}
.cmp__head h2 .dim { color: var(--fg-3); }

.cmp__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.cmp__th {
  padding: 20px 28px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.cmp__th + .cmp__th { border-left: 1px solid var(--border); }
.cmp__td {
  padding: 24px 28px;
  font-size: 16px; line-height: 1.55;
  border-bottom: 1px solid var(--border);
  transition: background 140ms var(--ease);
}
.cmp__td--old { color: var(--fg-3); }
.cmp__td--new { color: var(--fg); font-weight: 500; }
.cmp__td--old + .cmp__td--new { border-left: 1px solid var(--border); }
.cmp__row:last-child .cmp__td { border-bottom: 0; }
.cmp__row { display: contents; }
.cmp__row:hover .cmp__td { background: var(--bg-card-hi); }
.cmp__plus {
  display: inline-block;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-right: 10px;
}
.cmp__minus {
  display: inline-block;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-right: 10px;
  text-decoration: line-through;
  text-decoration-color: var(--paper-4);
}

/* ── Invite only (dark band) ─────────────────────────────────── */
.invite {
  padding: 160px 56px;
  background: var(--ink-0);
  color: var(--ink-10);
  position: relative;
  overflow: hidden;
}
.invite::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 50% 0%, rgba(228, 52, 111, 0.10), transparent 70%);
  pointer-events: none;
}
.invite__inner {
  max-width: 740px; margin: 0 auto;
  text-align: center; position: relative;
}
.invite__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--signal);
  margin: 0 auto 28px;
  box-shadow: 0 0 0 0 rgba(228, 52, 111, 0.55);
  animation: signal-pulse 1.8s var(--ease) infinite;
}
.invite__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #A09C92;
  display: block;
  margin-bottom: 24px;
}
.invite h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.05em;
  text-transform: lowercase;
  margin: 0;
  color: var(--ink-10);
  line-height: 0.97;
}
.invite__body {
  margin: 36px auto 0; max-width: 620px;
  font-size: 18px; line-height: 1.7;
  color: #CFCCC4; text-align: left;
}
.invite__body p { margin: 0 0 18px; }
.invite__body p:last-child { margin-bottom: 0; }

/* ── Final CTA ───────────────────────────────────────────────── */
.finalcta {
  padding: 160px 56px;
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.finalcta__inner { max-width: 720px; margin: 0 auto; }
.finalcta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 80px);
  letter-spacing: -0.05em;
  text-transform: lowercase;
  margin: 0;
  color: var(--fg);
  line-height: 0.95;
}
.finalcta p {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
}
.finalcta .capture { margin: 40px auto 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 56px;
  border-top: 1px solid var(--border);
}
.footer__rt {
  margin-left: auto;
  display: flex; align-items: center; gap: 22px;
}
.footer__rt span, .footer__rt a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-meta);
  white-space: nowrap;
}
.footer__rt a:hover { color: var(--signal); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal__bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 200ms var(--ease);
}
.modal__bg[hidden] { display: none; }
.modal__card {
  position: relative;
  width: 100%; max-width: 540px;
  background: #fff; color: var(--ink-0);
  border-radius: 8px;
  padding: 56px 48px 48px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: scaleIn 220ms var(--ease);
}
.modal__dot {
  position: absolute; top: 22px; left: 22px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--signal);
}
.modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-0);
  border-radius: 4px;
  transition: background 120ms var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__x:hover { background: var(--paper-2); }
.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-meta);
}
.modal__card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 14px 0 18px;
  color: var(--ink-0);
  line-height: 1;
}
.modal__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #1F1F1D;
}
.modal__actions { margin-top: 32px; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes signal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 52, 111, 0.55); }
  60%      { box-shadow: 0 0 0 6px rgba(228, 52, 111, 0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Responsive: stack at narrow widths ──────────────────────── */
@media (max-width: 880px) {
  .hero, .oldway__wrap, .cmp__head {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .nav, .hero, .oldway, .cmp, .invite, .finalcta, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer { flex-wrap: wrap; }
  .heroframe { height: 360px; }
}

/* Narrow mobile: nav reflow + smaller wordmark + tighter button.
   Below 480px the nav was bursting (wordmark wrapping + CTA
   overflowing); shrink things and drop the LOG IN affordance into
   the same flex row. */
@media (max-width: 480px) {
  .nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 18px;
  }
  .nav__center { display: none; }
  .nav__right { gap: 12px; }
  .wordmark { font-size: 18px; }
  .btn { padding: 10px 14px; font-size: 10px; letter-spacing: 0.18em; }
  .btn--primary { padding: 10px 16px; }
  .nav__login { font-size: 9px; letter-spacing: 0.18em; }
  .oldway, .cmp, .invite, .finalcta { padding-top: 96px; padding-bottom: 96px; }
  .hero { padding-top: 32px; padding-bottom: 64px; min-height: auto; }
  .heroframe { height: 320px; }
}
