@font-face { font-family: "Oxanium"; src: url("/waitlist/assets/oxanium-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root { --bg: #0a0a0a; --surface: rgba(18, 18, 18, 0.86); --line: #2a2a2a; --ink: #f5f5f5; --muted: #9a9a9a; --accent: #ff6600; --yellow: #ffc800; --gold: #e3b341; --up: #22d07a; --down: #ff2d55; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
body { position: relative; min-height: 100svh; overflow-x: hidden; }
[hidden] { display: none !important; }

/* yellow glow from the two sides */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 75% at 0% 50%, rgba(255, 200, 0, 0.24), transparent 72%), radial-gradient(38% 75% at 100% 50%, rgba(255, 200, 0, 0.24), transparent 72%); }

body.page .bg::after { opacity: 0.7; }
::selection { background: var(--yellow); color: #000; }
input { caret-color: var(--yellow); }

header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.brand { display: block; }
.brand img { display: block; height: 22px; width: auto; }
nav { display: flex; gap: clamp(14px, 2.4vw, 28px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: #c8c8c8; text-decoration: none; transition: color 150ms; }
nav { align-items: center; }
nav a:hover { color: var(--yellow); }
/* the app isn't open yet: a label, not a link */
nav .nav-app { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 700; cursor: default; }
nav a:focus-visible, .brand:focus-visible, footer a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

main { width: 100%; margin: 0 auto; padding: clamp(24px, 4vh, 44px) clamp(20px, 4vw, 48px) 40px; text-align: center; }
h1 { font-family: "Oxanium", sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.08; text-wrap: balance; }
h1 em { font-style: normal; color: var(--yellow); }
.typeline { min-height: 1.3em; margin-top: 8px; font: 800 clamp(20px, 2.4vw, 34px) / 1.3 "Oxanium", sans-serif; color: var(--accent); }
.ch { position: relative; }
.ch.ghost { visibility: hidden; }
.caret { display: inline-block; width: 0.09em; height: 0.95em; margin-left: 0.06em; vertical-align: -0.08em; background: currentColor; animation: blink 1s steps(2, jump-none) infinite; }
.ch.at::after { content: ""; position: absolute; right: -0.09em; top: 0.08em; width: 0.08em; height: 0.92em; background: var(--yellow); }
@keyframes blink { 50% { opacity: 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { max-width: 640px; margin: 10px auto 0; font-size: 16px; line-height: 1.5; color: #d2d2d2; }

/* the form keeps its width while the headline takes the screen */
.stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }

/* three avatars hop as they wander: .mate carries the path, its img the hop. 16px art at a whole multiple stays crisp */
.crew { --size: 48px; --hop: 14px; position: relative; height: 72px; margin-top: 14px; overflow: hidden; pointer-events: none; container-type: inline-size; }
.mate { position: absolute; left: 0; bottom: 0; animation: strip 19s ease-in-out infinite alternate; }
.mate img { display: block; box-sizing: content-box; width: var(--size); height: var(--size); border: 3px solid var(--gold); border-radius: 8px; image-rendering: pixelated; transform-origin: 50% 100%; animation: hop 2.2s infinite; }
.mate-2 { animation-duration: 27s; animation-delay: -11s; }
.mate-2 img { animation-duration: 2.7s; animation-delay: -0.9s; }
.mate-3 { animation-duration: 23s; animation-delay: -6s; animation-direction: alternate-reverse; }
.mate-3 img { animation-duration: 2.4s; animation-delay: -1.6s; }
@keyframes strip { to { transform: translateX(calc(100cqw - var(--size) - 6px)); } }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1.1, 0.88); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  10% { transform: translateY(calc(var(--hop) * -0.3)) scale(0.95, 1.06); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  50% { transform: translateY(calc(var(--hop) * -1)) scale(1, 1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  94% { transform: translateY(0) scale(0.97, 1.04); animation-timing-function: linear; }
}

/* room beside the form: each one wanders its own side of the page, clear of the headline */
@media (min-width: 1000px) {
  .crew { --size: 64px; --hop: 26px; --reach: calc((100vw - 520px) / 2 - var(--size) - 44px); position: fixed; inset: 0; z-index: 0; height: auto; margin: 0; }
  .mate { top: 0; bottom: auto; }
  .mate-1 { left: 16px; animation: roam-a 31s ease-in-out infinite; }
  .mate-2 { left: auto; right: 16px; animation: roam-b 37s ease-in-out infinite; animation-delay: -9s; }
  .mate-3 { left: 16px; animation: roam-c 43s ease-in-out infinite; animation-delay: -20s; }
  .stage > form, .stage > .done { position: relative; z-index: 1; }
}
@keyframes roam-a {
  0%, 100% { transform: translate(calc(var(--reach) * 0.15), 30vh); }
  25% { transform: translate(calc(var(--reach) * 0.85), 46vh); }
  50% { transform: translate(calc(var(--reach) * 0.4), 80vh); }
  75% { transform: translate(0, 56vh); }
}
@keyframes roam-b {
  0%, 100% { transform: translate(calc(var(--reach) * -0.2), 74vh); }
  30% { transform: translate(calc(var(--reach) * -0.95), 52vh); }
  60% { transform: translate(calc(var(--reach) * -0.35), 30vh); }
  80% { transform: translate(0, 50vh); }
}
@keyframes roam-c {
  0%, 100% { transform: translate(calc(var(--reach) * 0.7), 82vh); }
  35% { transform: translate(0, 66vh); }
  65% { transform: translate(calc(var(--reach) * 0.95), 62vh); }
}

.card-title { margin-bottom: 14px; font: 800 20px "Oxanium", sans-serif; color: var(--yellow); }
.card { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: left; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.step + .step { margin-top: 16px; }
.step { transition: opacity 200ms; }
.step.locked { opacity: 0.38; pointer-events: none; }
label, .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }

.field { position: relative; }
input { width: 100%; height: 52px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #0e0e0e; color: var(--ink); font: 500 16px ui-monospace, "SF Mono", Menlo, monospace; outline: none; }
input:focus { border-color: var(--yellow); }
input::placeholder { color: #8a8a8a; }
.field .tick { position: absolute; right: 14px; top: 15px; }
.field.ok input { border-color: var(--up); }

.tick { flex: none; display: block; width: 22px; height: 22px; border: 1px solid #4a4a4a; border-radius: 50%; }
.field .tick { visibility: hidden; }
.field.ok .tick { visibility: visible; }
.field.ok .tick, .task.done .tick, .tick.big { border: 0; background: var(--up) url("/waitlist/assets/check.svg") center / 13px no-repeat; }
.tick.big { width: 44px; height: 44px; margin: 0 auto 10px; background-size: 24px; }

.tasks { list-style: none; padding: 0; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0e0e0e; }
.task .name { flex: 1 1 0; min-width: 0; font-size: 15px; font-weight: 700; text-align: left; }
.task.waiting { opacity: 0.4; }
.task.waiting .go { pointer-events: none; }
.task.done { border-color: var(--up); }
.task.done .go, .task.done .confirm { display: none; }
.go, .confirm { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 104px; height: 42px; padding: 0 12px; border-radius: 10px; font: 700 14px system-ui, sans-serif; text-decoration: none; }
.go { border: 1px solid var(--yellow); color: var(--yellow); }
.confirm { border: 0; background: var(--up); color: #000; cursor: pointer; }
.confirm:disabled { background: #242424; color: var(--muted); cursor: default; }

.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.join { display: block; width: 100%; margin-top: 18px; height: 60px; border: 0; border-radius: 14px; background: var(--accent); color: #000; font: 800 20px "Oxanium", sans-serif; cursor: pointer; box-shadow: 0 5px 0 0 #a84400; transition: transform 80ms, box-shadow 80ms; }
.join:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.join:disabled { background: #242424; color: #6d6d6d; box-shadow: none; cursor: not-allowed; }
.join:focus-visible, .go:focus-visible, .confirm:focus-visible, .share:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.error { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--down); text-align: center; }

.done { text-align: center; border-color: var(--up); }
.done h2 { font: 800 30px "Oxanium", sans-serif; color: var(--up); }
.done p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #d2d2d2; }
.share { display: inline-flex; align-items: center; height: 44px; margin-top: 14px; padding: 0 18px; border: 1px solid var(--yellow); border-radius: 10px; color: var(--yellow); font-weight: 700; font-size: 14px; text-decoration: none; }
.share { margin-top: 0; background: none; font-family: inherit; cursor: pointer; }
.share.save { border: 0; background: var(--yellow); color: #000; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.share-card { display: block; width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }

.count { margin-top: 14px; font: 600 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--yellow); }
.fine { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .join, .step { transition: none; } .mate, .mate img, .caret { animation: none; } }

footer { display: flex; justify-content: center; gap: 24px; padding: 10px 20px 28px; }
footer a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--yellow); }

.prose { max-width: 680px; padding-inline: 20px; text-align: left; }
.prose h1 { margin: 12px 0 14px; font-size: clamp(36px, 6vw, 56px); }
.prose h2 { margin-top: 24px; font: 800 22px "Oxanium", sans-serif; color: var(--yellow); }
.prose p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: #d2d2d2; }
