/* The beta waitlist page, made for phones and tablets opening the link from Instagram or TikTok (their in-app browsers).
   One narrow column at every size: wider screens just centre it. Big tap targets, 16px fields (no zoom on iPhone), room
   for the notch and home bar, no hover-only states.
   The site's dark look: main #D8D6E3, secondary #0A0903, accent #52BAE6; text on dark #F3F2F7; dark fields #262520. */
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-v31-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-v4-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-v4-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-v4-latin-700.woff2") format("woff2"); }

:root {
  --ink: #F3F2F7; --ink-2: #D8D6E3; --page: #0A0903; --field: #262520; --line: rgba(243,242,247,.3);
  --accent: #52BAE6; --dark: #0A0903; --err: #FF8A80;
  --logo: "Montserrat", "Helvetica Neue", Arial, sans-serif; --body: "Instrument Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.app { width: 100%; max-width: 520px; min-height: 100dvh; margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.logo { font: 800 22px/1 var(--logo); letter-spacing: -.04em; }
.dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dots li { width: 22px; height: 4px; background: rgba(243,242,247,.22); }
.dots li.on { background: var(--accent); }

/* One question at a time */
#wl { margin-top: 40px; }
.step { display: flex; flex-direction: column; animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.back { align-self: flex-start; min-height: 44px; margin: -6px 0 8px; padding: 0; border: 0; background: none; color: var(--ink-2);
  font: 600 14px/1 var(--body); cursor: pointer; }
.back::before { content: "←  "; }
.q { display: block; margin: 0 0 12px; font: 800 26px/1.15 var(--logo); letter-spacing: -.03em; }
.req { color: var(--accent); }
.hint { margin: -6px 0 14px; font-size: 14px; color: var(--ink-2); }
.input { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; background: var(--field); color: var(--ink);
  font: inherit; font-size: 17px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23F3F2F7' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 22px; }
select.input option { background: var(--field); color: var(--ink); }
.handle { display: flex; align-items: center; border: 1px solid var(--line); background: var(--field); }
.handle > span { padding-left: 16px; font-size: 17px; color: var(--ink-2); }
.handle .input { border: 0; padding-left: 4px; background: transparent; }
.handle:focus-within { outline: 2px solid var(--accent); border-color: var(--accent); }
.handle .input:focus { outline: none; }

/* Devices: square chips, several can be chosen (chosen = light fill, near-black text) */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 8px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-align: center; user-select: none; }
.chips input:checked + span { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.chips input:checked + span::before { content: "✓"; margin-right: 6px; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check + .err { margin-top: 6px; }
.err { display: block; margin-top: 8px; font-size: 14px; color: var(--err); }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--err) !important; }

/* The two buttons side by side: "That's all, submit" on the left, "Next" on the right (alone, it takes the full width) */
.acts { display: flex; gap: 10px; margin-top: 24px; }
.btn { flex: 1 1 0; min-width: 0; min-height: 56px; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--dark);
  font: 700 13px/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: transform .12s ease-out; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(243,242,247,.6); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; transform: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin: 14px 0 0; }

.done { padding: 36px 0 8px; }
.done:focus { outline: none; }
.done h2 { margin: 0; font: 800 34px/1.08 var(--logo); letter-spacing: -.04em; }
.done p { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); }

.notice { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); scroll-margin-top: 16px;
  animation: step-in .3s ease-out; }
.notice:focus { outline: none; }
.notice h2 { margin: 0 0 8px; font: 800 20px/1.2 var(--logo); letter-spacing: -.03em; color: var(--ink); }
.notice p { margin: 8px 0; }
.notice b { color: var(--ink); }
/* Footer: the trademark line, the two social icons and the copyright, all centred */
.foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); text-align: center; }
.foot p { margin: 0 auto 14px; text-align: center; }
.foot .tm { max-width: 34em; text-wrap: balance; }
.foot .social { display: flex; justify-content: center; gap: 14px; margin: 0 auto; }
.foot .social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); }
.foot .social a:active { transform: scale(.94); }
.foot .social svg { width: 22px; height: 22px; }
.foot .copy { margin: 0 auto; }

/* Tablets: the same column, a little more air */
@media (min-width: 600px) {
  .app { padding-top: calc(28px + env(safe-area-inset-top)); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .step { animation: none; } .btn { transition: none; } }
