/* The waitlist form on the launch teaser (/waitlist.js). Shown only before launch, with the teaser. */
.cd-when { margin: 16px 0 0; font-size: 15px; color: var(--ash); }

.wl {
  width: min(100%, 560px); margin-top: clamp(32px, 5vh, 48px); padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(22, 24, 28, .7); text-align: left;
}
.wl-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--bone); letter-spacing: -0.01em; }
.wl-sub { margin: 6px 0 20px; font-size: 15px; color: var(--ash); }

.wl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-email { grid-column: 1 / -1; }
.wl-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mist); }
.wl-field i { font-style: normal; color: var(--steel); }
.wl-field input {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--night);
  color: var(--bone); font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
.wl-field input::placeholder { color: var(--steel); }
/* #202 (b): a field that needs a look, and its own line under it. */
.wl-field input[aria-invalid="true"] { border-color: #FF8A80; }
.wl-err { font-size: 13px; line-height: 1.35; color: #FF8A80; }
.wl-field input:focus-visible, .wl-consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }

.wl-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--ash); cursor: pointer; }
.wl-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.wl-privacy { margin: 8px 0 0 34px; font-size: 14px; }
.wl-privacy a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

.teaser .wl-submit { margin-top: 20px; width: 100%; justify-content: center; padding: 0 24px; min-height: 52px; height: auto; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.wl-submit:disabled { opacity: .6; cursor: progress; }
.wl-status { margin: 12px 0 0; min-height: 1.4em; font-size: 14px; color: var(--ash); }
.wl-status[data-kind="error"] { color: #FF8A80; display: flex; gap: 8px; align-items: baseline; }
.wl-status[data-kind="error"]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #FF8A80; box-shadow: 0 0 8px rgba(255, 138, 128, .7); transform: translateY(-1px); }
.wl-status[data-kind="ok"] { color: var(--bone); font-size: 16px; }

/* Sending: the button holds its size, the label gives way to a small point circling. */
.wl-submit { position: relative; }
.wl.sending .wl-submit-label { opacity: 0; }
.wl.sending .wl-submit::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 1.5px solid rgba(14, 15, 18, .18); border-top-color: var(--night); animation: wl-spin .8s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl.sending { border-color: rgba(93, 204, 255, .35); }

/* --- After a sign-up: the card becomes the confirmation (/waitlist.js). --- */
.wl { transition: border-color .5s, box-shadow .8s; }
.wl.done { overflow: hidden; text-align: center; border-color: rgba(93, 204, 255, .38); box-shadow: 0 0 0 1px rgba(93, 204, 255, .06), 0 20px 80px -20px rgba(0, 175, 255, .35); }
.wl.done > :not(.wl-done):not(.wl-status) { display: none; }
/* The words are in .wl-done for the eye; the live region keeps them for assistive tech only. */
.wl.done .wl-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; min-height: 0; }
.wl-done { padding: 8px 4px 6px; }
.wl-done[hidden] { display: none; }

/* The badge: a ring around the visitor's point of light. The point lifts off, then a tick draws in. */
.wl-badge { position: relative; width: 72px; height: 72px; margin: 0 auto 18px; }
.wl-badge svg { width: 100%; height: 100%; overflow: visible; }
.wl-badge-ring { fill: rgba(0, 175, 255, .07); stroke: rgba(93, 204, 255, .55); stroke-width: 1.2; stroke-dasharray: 189; stroke-dashoffset: 189; animation: wl-draw .8s var(--ease) forwards; }
.wl-badge-check { fill: none; stroke: var(--bone); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.wl.launched .wl-badge-check { animation: wl-draw .55s .35s var(--ease) forwards; }
.wl-badge-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #F4FBFF;
  box-shadow: 0 0 0 4px rgba(93, 204, 255, .18), 0 0 18px 6px rgba(0, 175, 255, .75); animation: wl-glow 1.4s ease-in-out infinite alternate; }
.wl.launched .wl-badge-dot { visibility: hidden; animation: none; }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
@keyframes wl-glow { from { transform: scale(.9); } to { transform: scale(1.15); } }

.wl-done-title { margin: 0; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--bone); }
.wl-done-line { margin: 10px auto 0; max-width: 36ch; font-size: 16px; line-height: 1.5; color: var(--ash); }
.wl-done-count { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(14, 15, 18, .6); font-size: 14px; color: var(--bone); }
.wl-done-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 8px var(--accent); }
.wl-done-count[hidden] { display: none; }
.wl.done .wl-done-title, .wl.done .wl-done-line, .wl.done .wl-done-count { animation: wl-rise .7s var(--ease) both; }
.wl.done .wl-done-title { animation-delay: .08s; }
.wl.done .wl-done-line { animation-delay: .16s; }
.wl.done .wl-done-count { animation-delay: .26s; }
@keyframes wl-rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* The point of light in flight (fixed to the viewport; /waitlist.js moves it), and its short trail. */
.wl-launch, .wl-trail { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; z-index: 30; will-change: transform; }
.wl-launch { background: #F4FBFF; box-shadow: 0 0 0 4px rgba(93, 204, 255, .2), 0 0 22px 8px rgba(0, 175, 255, .8); }
.wl-trail { background: rgba(127, 211, 255, .9); box-shadow: 0 0 14px 4px rgba(0, 175, 255, .5); }

@media (prefers-reduced-motion: reduce) {
  .wl-badge-ring, .wl.launched .wl-badge-check { animation: none; stroke-dashoffset: 0; }
  .wl-badge-dot, .wl.sending .wl-submit::after { animation: none; }
  .wl.done .wl-done-title, .wl.done .wl-done-line, .wl.done .wl-done-count { animation: wl-fade .4s ease both; }
}
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }

/* Off-screen for people, there for bots. */
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .wl-fields { grid-template-columns: 1fr; }
}
