﻿/* Ball Chamber waitlist. Sources for every value: ../README.md */
@font-face {
  font-family: "Barlow SC";
  src: url("/assets/barlow-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #06070a;
  --navy: #10131c;
  --navy-hi: #1b2130;
  --text: #f3f4f6;
  --text-2: #b0b6c4;
  --text-3: #8b92a3;
  --gold: #ffcf5a;
  --line: rgba(255, 255, 255, .15);
  --field: rgba(255, 255, 255, .05);
  --ring: rgba(255, 255, 255, .92);
  --glow: rgba(255, 255, 255, .35);
  --err: #ff8fa3;
  --display: "Barlow SC", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-big: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 70% at 50% 34%, var(--navy-hi) 0%, var(--navy) 38%, var(--bg) 78%) var(--bg) no-repeat;
  color: var(--text);
  font: 400 17px/1.45 var(--ui);
  overflow-x: hidden;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: #fff; color: #000; padding: 10px 14px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 16px; max-width: 1180px; margin: 0 auto; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--display); letter-spacing: 3px; color: var(--text-2); }
.mark-ring { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ring); box-shadow: 0 0 8px var(--glow); position: relative; flex: none; }
.mark-ring::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; left: 5px; top: 7px; background: radial-gradient(circle at 35% 30%, #ffd0da 0 18%, #ff4d6d 55%, #c2193d 100%); }
.mark { white-space: nowrap; }
.mark.small { font-size: 14px; }
@media (max-width: 379px) { .tag { display: none; } }
.tag { font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* Hero */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "form"; gap: 18px; padding: 12px 0 40px; }
.copy { grid-area: copy; text-align: center; }
h1 { font: 600 44px/1 var(--display); letter-spacing: -.88px; margin: 0; color: #fff; }
.lead { margin: 12px auto 0; max-width: 30em; color: var(--text-2); font-size: 17px; }

.stage { grid-area: stage; position: relative; display: grid; place-items: center; height: 320px; }
.ring {
  position: absolute; width: min(290px, 82vw); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--ring);
  box-shadow: 0 0 18px var(--glow), inset 0 0 18px rgba(255, 255, 255, .12);
}
.phone {
  position: relative; margin: 0; height: 100%; aspect-ratio: 406 / 720;
  border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 60px rgba(0, 0, 0, .65);
  animation: rise 1.2s var(--ease-big) both;
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-toggle {
  position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.clip-toggle span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.clip-toggle.is-paused span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

/* Form */
.formwrap { grid-area: form; width: 100%; max-width: 460px; margin: 0 auto; }
.wl { margin: 0; }
.lbl { display: block; font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px 4px; }
.row { display: flex; flex-direction: column; gap: 10px; }
input[type=email] {
  width: 100%; height: 52px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--line);
  color: #fff; font: 400 17px var(--ui); transition: box-shadow .18s var(--ease);
}
input[type=email]::placeholder { color: var(--text-3); }
input[type=email]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ring), 0 0 14px var(--glow); }
input[aria-invalid=true] { box-shadow: inset 0 0 0 1.5px var(--err); }
.btn {
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #000; font: 600 19px/1 var(--display); letter-spacing: .3px;
  transition: transform .15s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { box-shadow: 0 0 18px var(--glow); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-pro {
  display: block; width: 100%; height: 48px; margin: 14px 0 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .55);
  font: 600 17px/1 var(--display); letter-spacing: .3px; transition: border-color .15s var(--ease), color .15s var(--ease);
}
.btn-pro:hover { border-color: var(--gold); color: var(--gold); }
.pro-note {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.45; color: var(--text-2);
  background: rgba(255, 207, 90, .07); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, .35);
}
.pro-note strong { display: block; color: var(--gold); font: 600 17px/1.3 var(--display); letter-spacing: .3px; }
.linkish { display: inline; background: none; border: 0; padding: 6px 0 0; margin: 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.wl.is-pro .btn { background: var(--gold); }
.err { min-height: 0; margin: 8px 4px 0; color: var(--err); font-size: 15px; }
.err:empty { margin: 0; }
.fine { margin: 10px 4px 0; color: var(--text-3); font-size: 14px; line-height: 1.4; }
.fine a { color: var(--text-2); }
.fine.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 22px 16px; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--ring), 0 0 18px var(--glow); }
.done:focus { outline: none; }
.done-h { margin: 0; font: 600 30px/1.1 var(--display); color: #fff; }
.done-s { margin: 8px 0 0; color: var(--text-2); }

/* Points */
.points ul { list-style: none; margin: 0; padding: 8px 0 48px; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: start; }
.points img {
  grid-row: span 2; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--navy);
  box-shadow: 0 0 0 1.5px var(--ring), 0 0 12px var(--glow);
}
.points h3 { margin: 4px 0 2px; font: 600 22px/1.15 var(--display); letter-spacing: -.2px; color: #fff; }
.points p { margin: 0; color: var(--text-2); font-size: 16px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; overflow-wrap: anywhere; }
.foot a { color: var(--text-2); }

@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

@media (min-width: 560px) {
  .row { flex-direction: row; }
  .row input { flex: 1; min-width: 0; }
  .btn { flex: none; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "copy stage" "form stage";
    align-items: end; column-gap: 48px; row-gap: 28px; padding: 40px 0 72px;
  }
  .copy { text-align: left; align-self: end; }
  .formwrap { margin: 0; align-self: start; max-width: 500px; }
  h1 { font-size: 80px; letter-spacing: -1.6px; }
  .lead { margin-left: 0; font-size: 19px; }
  .stage { height: 600px; }
  .ring { width: 540px; }
  .phone { border-radius: 40px; }
  .points ul { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 24px 0 80px; }
  .points li { grid-template-columns: 1fr; row-gap: 14px; }
  .points img { width: 120px; height: 120px; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
