@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;
}

/* The beam: a lantern's light at the edge of the page, after the app icon. */
.beam {
  position: fixed;
  inset: 0.75rem 0.75rem 0.75rem auto;
  width: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: #0b0a08;
  isolation: isolate;
}
.beam-light, .beam::after { position: absolute; inset: 0; }
.beam-light {
  background:
    radial-gradient(42% 26% at 18% 88%, #ffd79a 0%, #f2b562 18%, rgb(242 181 98 / 0.35) 42%, transparent 70%),
    conic-gradient(from 20deg at 18% 88%, transparent 0deg, rgb(255 236 204 / 0.0) 4deg, rgb(255 236 204 / 0.55) 14deg, rgb(244 214 170 / 0.32) 30deg, rgb(255 236 204 / 0.0) 44deg, transparent 360deg),
    radial-gradient(120% 80% at 70% 0%, #2a1d33 0%, transparent 60%),
    #0b0a08;
}
.beam::after {
  content: "";
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 1023.98px) {
  .beam-light { background: linear-gradient(to bottom, #3b2b4a 0%, #1a1416 34%, #2a1d12 62%, #a8641f 84%, #f2b562 93%, #ffe3b4 100%); }
}
@media (min-width: 1024px) {
  .beam { inset: 1rem 1rem 1rem auto; width: calc(36vw - 2rem); border-radius: 1.5rem; }
}
@media (prefers-color-scheme: dark) {
  .beam { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
  .beam::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); pointer-events: none; }
}

.page {
  max-width: 42rem;
  padding: 2.5rem 1.75rem 3rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
}
@media (min-width: 1024px) {
  .page { max-width: none; width: 64vw; padding: 3.5rem 0 4rem 5.5rem; }
  .page > *, main > * { max-width: 40rem; }
  main > .shot-tv { max-width: min(52rem, calc(64vw - 9rem)); }
  .hero { min-height: min(68vh, 40rem); }
}

.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; }
}

.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; }
.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 (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);
}
.plan { margin-top: 5rem; }
.plan ol { list-style: none; counter-reset: step; margin: 1.5rem 0 2rem; padding: 0; }
.plan li { counter-increment: step; position: relative; padding-left: 2.75rem; margin: 0 0 1.15rem; color: var(--muted); }
.plan li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1em;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 0.875rem/1 var(--sans); font-variant-numeric: tabular-nums;
  color: var(--fg); background: var(--chip); border: 1px solid var(--line);
}
.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 / 1193; 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; }
.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); }

.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); }
