/* contrail-app.com's waiting list, option 1b of design/handoffs/design_handoff_website_waitlist
   (inline email + Beta Squad as a second path). One responsive layout that centres a column; values
   from the mock's inline styles (desktop 1280 × 800, phone 393 × 852). */
:root {
  --ink: #F2F3F5;
  --page: #06070A;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-focus: rgba(255, 255, 255, 0.12);
  --placeholder: rgba(242, 243, 245, 0.4);
  --pill: rgba(143, 177, 255, 0.12);
  --pill-ink: #8FB1FF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The sky: a fixed layer under the page. Its mask clears an ellipse around the column and the band
   behind the footer (waitlist.js keeps both on the real elements as the page scrolls or grows), so
   no trail ever crosses the form or the links. */
.wl-sky {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  --cx: 50%; --cy: 46%; --rx: 300px; --ry: 240px; --fy: 88%;
  -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy), transparent 70%, #000 100%),
    linear-gradient(180deg, #000 0, #000 calc(var(--fy) - 32px), transparent var(--fy));
  mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy), transparent 70%, #000 100%),
    linear-gradient(180deg, #000 0, #000 calc(var(--fy) - 32px), transparent var(--fy));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.wl-trail { position: absolute; height: 1px; transform-origin: 0 50%; }
.wl-run { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; }
.wl-run .line { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 100%); }
.wl-run .head { position: absolute; right: -2px; top: -1.5px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }

/* The page scrolls; the column is centred by margin: auto, and the footer sits in normal flow after
   it, so nothing can overlap it. */
.wl-page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 24px 0;
}
.wl-col {
  position: relative; margin: auto 0; padding: 16px 0 24px;
  width: 420px; max-width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

.wl-wordmark {
  margin: 0; font-size: 32px; font-weight: 800; letter-spacing: 0.32em; padding-left: 0.32em; line-height: 1;
  color: var(--ink); perspective: 400px;
}
.wl-grey {
  margin: 16px 0 0; min-height: 1.25em; font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  color: rgba(242, 243, 245, 0.5); perspective: 400px; white-space: nowrap;
}
.flip { display: inline-flex; white-space: pre; }
.flip .slot { position: relative; display: inline-block; }
.flip .ghost { visibility: hidden; }
.flip .ghost::before { content: attr(data-c); }
.flip .glyph { position: absolute; inset: 0; text-align: center; transform-origin: 50% 55%; }

/* Errors (the launch screens' pill), just above the wordmark. */
.wl-pill-row { position: absolute; left: 0; right: 0; top: -40px; display: flex; justify-content: center; pointer-events: none; }
.wl-pill-row.is-floating { position: fixed; top: 12px; z-index: 2; padding: 0 24px; }
.pill {
  height: 32px; padding: 0 14px; border-radius: 999px; background: var(--pill); max-width: 100%;
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--pill-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: drop 0.35s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.wl-form, .wl-done { margin-top: 32px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
/* One even rhythm through the form (Caleb, 26 Oct 2026: "fix the spacing on the request beta
   squad"): 16 between every field, the button and both pills, as between the email and the
   button in the handoff's waiting-list form; the same 16 between First name and Your iPhone. */
.wl-form { gap: 16px; }
.wl-beta { display: flex; flex-direction: column; gap: 16px; }

/* The email: a 60 pt capsule with Join inside on the waiting list; a 56 pt field in Beta Squad mode. */
.wl-email {
  position: relative; height: 60px; border-radius: 999px; background: var(--fill);
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 22px;
  transition: background-color 0.15s ease;
}
.wl-email:focus-within { background: var(--fill-focus); }
.wl-email input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent;
  color: var(--ink); font: 400 16px var(--font);
}
.wl-form.is-beta .wl-email { height: 56px; border-radius: 16px; padding: 0 18px; }
.wl-form.is-beta .wl-join { display: none; }
input::placeholder { color: var(--placeholder); }

.wl-join {
  flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #FFFFFF; color: #06070A;
  font: 700 14.5px var(--font); cursor: pointer; transition: opacity 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.wl-field {
  width: 100%; height: 56px; padding: 0 18px; border: 0; outline: none; border-radius: 16px; background: var(--fill);
  color: var(--ink); font: 400 16px var(--font); transition: background-color 0.15s ease;
}
.wl-field:focus { background: var(--fill-focus); }
.wl-row { display: flex; gap: 16px; }
.wl-row > * { flex: 1; min-width: 0; }
.wl-select { position: relative; }
.wl-select select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding: 0 38px 0 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-select select:invalid { color: var(--placeholder); }
.wl-select select option { color: var(--ink); background: #111316; }
.wl-select svg { position: absolute; right: 14px; top: 50%; margin-top: -3px; pointer-events: none; }
.wl-request {
  width: 100%; height: 52px; border: 0; border-radius: 999px; background: #FFFFFF; color: #06070A;
  font: 700 15px var(--font); cursor: pointer; transition: opacity 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wl-join[aria-disabled="true"], .wl-request[aria-disabled="true"] { opacity: 0.4; }
.wl-join.is-busy, .wl-request.is-busy { opacity: 1; }
.spinner { width: 18px; height: 18px; display: block; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wl-center { display: flex; justify-content: center; }
.wl-path {
  height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px var(--font); cursor: pointer;
}
.wl-privacy-pill {
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 243, 245, 0.6); display: inline-flex; align-items: center; gap: 7px;
  font: 600 12px var(--font); cursor: pointer;
}
.wl-privacy-pill .chevron { transition: transform 0.25s ease; }
.wl-privacy-pill[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.wl-privacy {
  margin: 0; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px; font-weight: 400; line-height: 1.6; color: rgba(242, 243, 245, 0.6); text-align: center; text-wrap: pretty;
}

/* After Join or Request. */
.wl-sent {
  min-height: 56px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; gap: 12px;
}
.wl-tick { width: 28px; height: 28px; border-radius: 50%; background: rgba(74, 222, 128, 0.14);
  display: flex; align-items: center; justify-content: center; flex: none; }
.wl-sent-text { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-again {
  height: 48px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink);
  font: 600 14px var(--font); cursor: pointer;
}

.wl-foot { flex: none; padding: 24px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.wl-links a { font-size: 13px; font-weight: 600; color: rgba(242, 243, 245, 0.55); text-decoration: none; }
.wl-links a:hover, .wl-links a:focus-visible { color: var(--ink); }
/* The mock's 30% ink fails text contrast (2.4:1) and with it the README's Lighthouse ≥ 95;
   50% is the least that passes (4.7:1). */
.wl-copy { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; color: rgba(242, 243, 245, 0.5); }

button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #7C9CFF; outline-offset: 3px; }

/* The entrance (launch screens §4): everything under the grey line fades in after the wordmark. */
.enter { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) 1.85s both; }
.enter-soon { animation: rise 0.3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* The footer only fades: a moving footer would make the page scroll for a moment. */
.wl-foot.enter { animation-name: fade; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 700px) {
  .wl-wordmark { font-size: 44px; }
  .wl-grey { font-size: 24px; }
  .wl-foot { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .enter-soon, .pill, .spinner { animation: none; }
  .wl-privacy-pill .chevron { transition: none; }
}

/* "Not affiliated" line (23 Nov 2026). */
.wl-note { max-width: 320px; padding: 0 16px; text-align: center; font-size: 11px; line-height: 1.5; color: rgba(242, 243, 245, 0.4); }
