/* Waitlist: the email form in the start page's hero and the dialog every "Join the waitlist" button opens.
   Colours and type follow the pages (src/pages): #07080a ground, #f4f4f5 text, #a9afb9 / #7d838d muted,
   #8FB4FF accent, Hanken Grotesk for text and Archivo for headings. */

.wl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wl-hero { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wl-inline { width: 100%; display: flex; gap: 8px; }
.wl-inline[hidden] { display: none; }
.wl-input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; height: 52px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06);
  color: #f4f4f5; font: inherit; font-size: 16px; outline: none; transition: border-color .15s, background-color .15s;
}
.wl-input::placeholder { color: #7d838d; }
.wl-input:focus { border-color: #8FB4FF; background: rgba(255, 255, 255, .09); }
.wl-input[aria-invalid="true"] { border-color: #ff8a8a; }
.wl-submit {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; background: #ffffff; color: #07080a; font: inherit; font-size: 16px; font-weight: 800;
  white-space: nowrap; cursor: pointer;
}
.wl-submit[disabled] { opacity: .6; cursor: default; }
.wl-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #7d838d; text-align: center; }
.wl-note[data-state="error"] { color: #ff8a8a; }
.wl-note[data-state="done"] { color: #f4f4f5; font-size: 15px; font-weight: 700; }
.wl-note a { color: #a9afb9; }

@media (max-width: 520px) {
  .wl-inline { flex-direction: column; }
  .wl-submit { width: 100%; }
}

/* Dialog */
.wl-scrim {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 6, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.wl-scrim.wl-open { opacity: 1; }
.wl-dialog {
  position: relative; box-sizing: border-box; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 32px 28px 26px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px;
  background: linear-gradient(180deg, #10141d 0%, #0b0d12 100%); color: #f4f4f5;
  font-family: 'Hanken Grotesk', system-ui, sans-serif; box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  transform: translateY(10px); transition: transform .18s ease;
}
.wl-scrim.wl-open .wl-dialog { transform: none; }
.wl-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #f4f4f5; font-size: 20px; line-height: 36px; cursor: pointer;
}
.wl-title {
  margin: 0; padding-right: 36px; font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 800;
  font-size: 28px; line-height: 1.05; letter-spacing: -.02em;
}
.wl-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #a9afb9; }
.wl-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.wl-field { display: flex; flex-direction: column; gap: 8px; }
.wl-label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #a9afb9; }
.wl-form .wl-input { width: 100%; height: 50px; border-radius: 14px; padding: 0 16px; }
.wl-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.wl-role { position: relative; }
.wl-role input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wl-role span {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #f4f4f5;
  font-size: 15px; font-weight: 700; transition: background-color .15s, border-color .15s, color .15s;
}
.wl-role input:checked + span { background: #ffffff; border-color: #ffffff; color: #07080a; }
.wl-role input:focus-visible + span { outline: 2px solid #8FB4FF; outline-offset: 2px; }
.wl-roles[aria-invalid="true"] .wl-role span { border-color: #ff8a8a; }
.wl-form .wl-submit { width: 100%; margin-top: 4px; }
.wl-form .wl-note { text-align: left; }
.wl-done { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.wl-done .wl-submit { width: 100%; }
