@font-face {
  font-family: "Laterne Serif";
  src: local("New York Medium"), url("/assets/source-serif-4-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f4f2ee;
  --fg: #1b1915;
  --muted: #5f584e;
  --faint: #736b60;
  --accent: #a6550c;
  --line: rgb(27 25 21 / 0.12);
  --card: rgb(255 255 255 / 0.55);
  --chip: rgb(27 25 21 / 0.05);
  --chip-on: rgb(166 85 12 / 0.12);
  --shadow: 0 1px 2px rgb(27 25 21 / 0.06), 0 12px 32px -12px rgb(27 25 21 / 0.18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Laterne Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --fg: #f0eae0;
    --muted: #a69e92;
    --faint: #8c8478;
    --accent: #f2b562;
    --line: rgb(240 234 224 / 0.12);
    --card: rgb(255 255 255 / 0.04);
    --chip: rgb(240 234 224 / 0.06);
    --chip-on: rgb(242 181 98 / 0.16);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.1875rem/1.5 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible + span, input[type="email"]:focus-visible, .joined:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem max(1.25rem, env(safe-area-inset-right)) 3rem max(1.25rem, env(safe-area-inset-left));
}
@media (max-width: 639.98px) {
  body { font-size: 1.0625rem; }
  .prose { margin-top: 2.75rem; }
}
@media (min-width: 1024px) {
  .page { max-width: 46rem; padding-top: 3.5rem; padding-bottom: 4rem; }
  main > .shot-tv { width: min(60rem, calc(100vw - 6rem)); max-width: none; margin-left: 50%; translate: -50% 0; }
}

.mark {
  display: inline-flex; align-items: center; gap: 0.625rem;
  color: var(--fg); text-decoration: none;
  font: 500 1.375rem/1 var(--serif); letter-spacing: -0.01em;
}
.mark img { border-radius: 7px; }

.hero {
  min-height: min(56vh, 30rem);
  display: flex; align-items: center;
  padding: 4rem 0 3rem;
}
.headline {
  margin: 0;
  font: 500 clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem)/1.08 var(--serif);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lead { display: block; }
.wheel {
  display: block;
  position: relative;
  height: 1.08em;
  perspective: 600px;
  color: var(--accent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 1.15em, transparent 4.5em);
  mask-image: linear-gradient(to bottom, #000 0, #000 1.15em, transparent 4.5em);
  padding-bottom: 3.5em;
  box-sizing: content-box;
}
.wheel > span {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transform-origin: 0 50%;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out), color 700ms var(--ease-out), filter 700ms var(--ease-out);
  will-change: transform, opacity;
}
.wheel > span:not(:first-child) { opacity: 0; }
.wheel.is-ready > span { opacity: 0; }
.wheel > span[data-offset="0"] { opacity: 1; transform: none; }
.wheel > span[data-offset="1"] { opacity: 0.32; color: var(--faint); transform: translateY(1.15em) rotateX(-24deg) scale(0.96); filter: blur(0.4px); }
.wheel > span[data-offset="2"] { opacity: 0.16; color: var(--faint); transform: translateY(2.2em) rotateX(-44deg) scale(0.9); filter: blur(1px); }
.wheel > span[data-offset="3"] { opacity: 0; color: var(--faint); transform: translateY(3.1em) rotateX(-60deg) scale(0.84); filter: blur(1.5px); }
.wheel > span[data-offset="-1"] { opacity: 0; transform: translateY(-1em) rotateX(40deg) scale(0.96); filter: blur(1px); }
.wheel > span[data-offset="far"] { opacity: 0; transition: none; transform: translateY(3.1em) rotateX(-60deg) scale(0.84); }
@media (prefers-reduced-motion: reduce) {
  .wheel > span { transition: opacity 300ms ease; }
  .wheel > span[data-offset] { transform: none; filter: none; }
  .wheel > span:not([data-offset="0"]) { opacity: 0; }
}

/* Below the desktop layout the hero is type alone: no card, and one faded line under the headline. */
@media (max-width: 1023.98px) {
  .hero { min-height: 0; padding: clamp(2.5rem, 12vw, 4.5rem) 0 0.5rem; }
  .headline { font-size: clamp(2rem, 8.6vw, 2.875rem); }
  .wheel {
    padding-bottom: 1.4em;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 1.1em, rgb(0 0 0 / 0.4) 1.55em, transparent 2.3em);
    mask-image: linear-gradient(to bottom, #000 0, #000 1.1em, rgb(0 0 0 / 0.4) 1.55em, transparent 2.3em);
  }
  .wheel > span[data-offset="2"] { opacity: 0; }
}
@media (min-width: 1024px) {
  .hero { min-height: 0; padding: 5.5rem 0 1rem; }
  .wheel {
    padding-bottom: 2.3em;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 1.15em, transparent 3.3em);
    mask-image: linear-gradient(to bottom, #000 0, #000 1.15em, transparent 3.3em);
  }
}

.beta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.125rem;
  align-items: center;
  padding: 1rem 1.25rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.beta img { grid-row: span 2; align-self: start; width: 3.5rem; height: 3.5rem; border-radius: 0.8rem; box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.45); }
.beta p { margin: 0; line-height: 1.35; text-wrap: pretty; }
.beta p span { color: var(--muted); }
.beta-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.beta-links a { text-decoration: none; font-weight: 500; }
.beta-links a:last-child { color: var(--muted); }
.beta-links a:last-child::after { content: " ↗"; }
@media (hover: hover) { .beta-links a:hover { text-decoration: underline; } }
@media (max-width: 639.98px) {
  .beta { align-items: start; gap: 0 0.875rem; padding: 1rem; }
  .beta img { grid-row: auto; width: 3rem; height: 3rem; border-radius: 0.7rem; }
  .beta p { font-size: 1rem; }
  .beta-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1rem; }
  .beta-links a { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0 0.75rem; border-radius: 999px; font-size: 1rem; white-space: nowrap; }
  .beta-links a:first-child { background: var(--fg); color: var(--bg); }
  .beta-links a:last-child { color: var(--fg); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
  .beta-links a:last-child::after { content: "\00a0↗"; }
}
@media (min-width: 640px) {
  .beta { grid-template-columns: auto 1fr auto; padding-right: 1.5rem; }
  .beta img { grid-row: auto; align-self: center; }
  .beta-links { flex-direction: column; align-items: flex-end; gap: 0.125rem; text-align: right; }
}

.prose { margin-top: 3.5rem; }
.prose p, .prose li { text-wrap: pretty; }
.prose p { margin: 0 0 1.15em; }
h2 {
  margin: 0 0 0.75em;
  font: 500 1.1875rem/1.3 var(--sans);
  letter-spacing: -0.011em;
  color: var(--fg);
}
.features { margin-top: 5rem; }
.features ul { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.25rem; }
.features li { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .features ul { grid-template-columns: 1fr 1fr; } }
.step { display: block; color: var(--fg); font-weight: 500; }

.shot { margin: 4rem 0 0; }
.shot img { border-radius: 0.875rem; box-shadow: var(--shadow); background: #0b0a08; }
.shot figcaption { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); }
.shot-tv img { width: 100%; aspect-ratio: 16 / 9; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 34rem; }
.phones img { border-radius: 1.75rem; aspect-ratio: 800 / 1274; width: 100%; border: 1px solid var(--line); }

.waitlist { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.waitlist > p { color: var(--muted); margin: 0 0 2rem; text-wrap: pretty; }
.join { display: grid; gap: 1.5rem; }
[hidden] { display: none !important; }
.label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.5rem; }
.optional { color: var(--faint); font-weight: 400; margin-left: 0.25rem; }
input[type="email"] {
  width: 100%; height: 3.25rem; padding: 0 1rem;
  font: inherit; font-size: 1.0625rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 0.875rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input[type="email"]::placeholder { color: var(--faint); }
input[type="email"]:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--chip-on); border-radius: 0.875rem; }
input[type="email"][aria-invalid="true"] { border-color: #c2412d; }
.platforms { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.platforms legend { padding: 0; float: left; width: 100%; }
.platforms label { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.platforms input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.platforms label span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--chip);
  font-size: 0.9375rem; color: var(--fg); user-select: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.platforms label input:checked + span { background: var(--chip-on); border-color: var(--accent); }
.platforms label input:checked + span::before { content: "✓"; margin-right: 0.4rem; color: var(--accent); font-weight: 600; }
.platforms label:active span { transform: scale(0.97); }
.challenge:empty { display: none; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
button {
  height: 3.25rem; padding: 0 1.5rem;
  font: 500 1.0625rem/1 var(--sans); letter-spacing: -0.011em;
  color: var(--bg); background: var(--fg);
  border: 0; border-radius: 0.875rem; cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
button:active { transform: scale(0.97); }
button[disabled] { opacity: 0.6; cursor: progress; }
.status { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.status[data-kind="error"] { color: #c2412d; }
@media (prefers-color-scheme: dark) {
  .status[data-kind="error"] { color: #ff8a73; }
  input[type="email"][aria-invalid="true"] { border-color: #ff8a73; }
}
.fineprint { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--faint); }
.joined { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--card); animation: rise 500ms var(--ease-out) both; }
.joined p { margin: 0; color: var(--muted); }
.joined .joined-title { color: var(--fg); font: 500 1.5rem/1.2 var(--serif); margin-bottom: 0.35rem; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .joined { animation: none; } }

.footer { margin-top: 6rem; font-size: 0.875rem; color: var(--faint); }
.footer p { margin: 0 0 0.35rem; }
.footer a { color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; }

.doc { padding-top: 3rem; }
.doc h1 { font: 500 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.doc .date { color: var(--faint); font-size: 0.9375rem; margin: 0 0 2.5rem; }
.doc h2 { margin-top: 2.25rem; }
.doc ul { padding-left: 1.25rem; color: var(--muted); }
.doc li { margin: 0 0 0.5rem; }
.doc p { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.875rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--fg); font-weight: 600; white-space: nowrap; }
.doc td:not(:first-child) { white-space: nowrap; }
.doc td.win { color: var(--fg); font-weight: 600; }
.doc code { font-size: 0.9em; }
.doc .stats, .stats { list-style: none; margin: 2rem 0 2.5rem; padding: 0; display: grid; gap: 0.75rem; }
.stats li { display: grid; gap: 0.2rem; padding: 1rem 1.125rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow); }
.stat-label { font-size: 0.875rem; color: var(--muted); }
.stat-value { color: var(--muted); font-size: 0.9375rem; }
.stat-value b { display: block; font: 500 2.25rem/1.05 var(--serif); letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-rival { font-size: 0.9375rem; color: var(--fg); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.doc tr.cont td:first-child { font-size: 0; }
.stat-label { line-height: 1.3; }
@media (min-width: 720px) { .stat-label { min-height: 2.6em; } }
@media (min-width: 1024px) {
  .doc .table-wrap { width: min(60rem, calc(100vw - 6rem)); max-width: none; margin-left: 50%; translate: -50% 0; }
  .doc td:first-child { min-width: 12rem; }
  .doc th { white-space: normal; }
}
.doc .note { font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 639.98px) {
  .table-wrap { overflow: visible; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .doc td, .doc td:not(:first-child) { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; border: 0; white-space: normal; text-align: right; }
  .doc td::before { content: attr(data-label); color: var(--faint); text-align: left; font-weight: 400; }
  .doc td:first-child { display: block; text-align: left; color: var(--fg); font-weight: 600; padding-bottom: 0.35rem; }
  .doc td:first-child::before { content: none; }
  .doc tr.cont td:first-child { font-size: inherit; }
}
