/* ============================================================
   The funnel's only stylesheet.

   Same tokens as apply/apply.css and waitlist/spark.css — see
   apply/apply.css's header for where these come from and the
   standing obligation to keep every copy in step with
   client/src/theme.ts. Four copies now, one per Vercel project.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #0b0b0f;
  --surface: #16181f;
  --fill-grey: #1c1c1e;
  --border: #2a2e3d;
  --border-strong: #3a3f52;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --primary: #e11d48;
  --primary-ink: #fb7185;
  --primary-pressed: #c81e4a;
  --on-primary: #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-2xl: 32px;
  --s-3xl: 48px;
}

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

/* No scrolling anywhere on this page, by request — it's a logo and
   two buttons, nothing below the fold is ever meant to exist. 100dvh
   (falling back to 100vh) accounts for mobile browsers' address bar
   resizing the viewport, which is what was leaving just enough
   overflow to show a scroll indicator on phones even though nothing
   visible needed scrolling to. */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a:focus-visible,
.door:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: 2px;
}

/* The logo and the doors are two separate entities now, by request —
   the logo sits fixed near the top, the doors centre themselves
   (both axes) in whatever space is left below it, rather than the
   two moving together as one centred block. */
.wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: var(--s-3xl) var(--s-xl);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* flex: 1 against .doors' flex: 3 — the logo lands at 1/4 of the
   available space, roughly halfway between "pinned at the very top"
   (0) and where the doors used to centre themselves (~1/2) when they
   alone filled the remaining space. */
.top-spacer {
  flex: 1;
}

.wordmark {
  display: block;
  margin: 0 auto var(--s-xl);
  width: auto;
  height: auto;
  max-width: 94px;
}

@media (min-width: 720px) {
  .wordmark {
    max-width: 112px;
  }
}

/* ---------- the two doors ---------- */

/* flex: 1 claims all the space .wordmark doesn't use, and
   justify-content centres the doors within THAT space — vertically
   and (via .wrap's own max-width + margin: 0 auto) horizontally. */
.doors {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-md);
}

.door {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-lg) var(--s-xl);
  border-radius: 14px;
  text-align: left;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.door:hover {
  transform: translateY(-1px);
}

.door-label {
  font-size: 17px;
  font-weight: 600;
}

.door-sub {
  font-size: 13px;
}

/* The e-dates door: filled, the brand red. */
.door-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.door-primary .door-sub {
  color: rgba(255, 255, 255, 0.8);
}

.door-primary:hover {
  background: var(--primary-pressed);
}

/* The waitlist door: grey, by request — visually secondary to the
   e-dates option. */
.door-secondary {
  background: var(--fill-grey);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.door-secondary:hover {
  border-color: var(--border-strong);
}

/* ---------- footer ---------- */

footer {
  flex: 0 0 auto;
  padding: var(--s-xl);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

footer a {
  margin: 0 var(--s-md);
  white-space: nowrap;
  color: var(--text-muted);
}

footer a:hover,
footer a:focus-visible {
  color: var(--primary-ink);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
