/* Styles for the Genesis waitlist dialog (markup at the foot of
   src/html/genesis.html, behaviour in genesis-waitlist.js). Split out of
   genesis.css to keep both files under the 300-LOC cap. */

/* ================= Waitlist dialog =================
   Opened by the [data-waitlist] app CTAs. The campaign runs before Foundry is
   publicly open, so these CTAs capture an email instead of navigating out. */
.wl-scrim {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4,20,14,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: wl-fade .18s ease both;
}
.wl-scrim[hidden] { display: none; }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.wl-card {
  position: relative; width: 100%; max-width: 460px;
  padding: 38px 34px 30px; border-radius: 26px;
  background: linear-gradient(150deg, var(--deep) 0%, var(--base) 72%);
  border: 1px solid var(--hair-2);
  box-shadow: 0 30px 70px -24px rgba(2,14,9,0.7);
  animation: wl-rise .28s cubic-bezier(.16,1,.3,1) both;
  max-height: calc(100dvh - 40px); overflow-y: auto;
}
.wl-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-dim); border: 1px solid var(--hair); background: transparent;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.wl-close:hover { color: var(--on); border-color: var(--hair-2); background: rgba(255,255,255,0.05); }

.wl-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-direction: row-reverse;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.wl-eyebrow .nav-live-dot { margin-left: 0; background: var(--accent); box-shadow: 0 0 0 3px rgba(124,231,176,0.16); }
.wl-title {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800;
  font-size: clamp(34px, 8vw, 46px); line-height: 0.94; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--on); margin: 0 0 12px;
}
.wl-sub { font-size: 15.5px; line-height: 1.6; color: var(--on-dim); margin: 0 0 24px; }

.wl-form { display: flex; flex-direction: column; gap: 14px; }

/* Honeypot. Taken out of the layout entirely rather than `display: none` or
   `hidden`, because the better bots skip fields hidden those two obvious ways.
   The form is a flex column, so `position: absolute` also keeps it from
   contributing a gap. */
.wl-botcheck {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.wl-field { display: flex; flex-direction: column; gap: 7px; }
.wl-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dim-2);
}
.wl-field input {
  height: 50px; padding: 0 16px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hair-2);
  font-family: inherit; font-size: 16px; color: var(--on);
  transition: border-color .2s, background .2s;
}
.wl-field input::placeholder { color: rgba(214,240,225,0.42); }
.wl-field input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.09); }
.wl-field input[aria-invalid="true"] { border-color: #F2A98F; }

.wl-error { margin: 0; font-size: 13.5px; line-height: 1.5; color: #F2A98F; }
.wl-error[hidden] { display: none; }

.wl-submit {
  height: 54px; margin-top: 6px; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--cta-violet-emerald); color: #F4F2FF;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 14px 36px -14px rgba(2,14,9,0.6);
}
.wl-submit:hover { transform: translateY(-1px); }
.wl-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.wl-fine { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--on-dim-2); text-align: center; }

.wl-done { text-align: center; padding: 8px 0 4px; }
.wl-done[hidden] { display: none; }
.wl-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 20px; border-radius: 50%;
  color: var(--accent); background: rgba(124,231,176,0.12); border: 1px solid var(--hair-2);
}
.wl-done .wl-sub { margin-bottom: 26px; }
.wl-done .wl-submit { width: 100%; }

@media (max-width: 720px) {
  .wl-card { padding: 34px 22px 26px; border-radius: 24px; }
  .wl-sub { font-size: 15px; }
}
