/* Waitlist landing */

.waitlist-page {
  --wl-ink: #111111;
  --wl-muted: rgba(17, 17, 17, 0.62);
  --wl-line: rgba(17, 17, 17, 0.08);
  --wl-accent: #c8ff1a;
  background:
    radial-gradient(90% 70% at 12% -20%, rgba(200, 255, 26, 0.28), transparent 52%),
    radial-gradient(70% 50% at 100% 0%, rgba(17, 17, 17, 0.06), transparent 48%),
    linear-gradient(180deg, #f8f8f4 0%, #f3f4ef 100%);
}

.wl-main {
  min-height: calc(100dvh - var(--header-h));
}

.wl-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  overflow: hidden;
}

.wl-ambient {
  position: absolute;
  inset: auto -10% -20% auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 26, 0.35), transparent 68%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.wl-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wl-panel {
  width: 100%;
  max-width: 560px;
}

.wl-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5c00;
}

.wl-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--wl-ink);
}

.wl-title .hero-highlight {
  white-space: nowrap;
}

.wl-lead {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--wl-muted);
}

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

.wl-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--wl-ink);
}

.wl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.wl-input {
  flex: 1 1 auto;
  min-width: min(100%, 220px);
  width: auto;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--wl-line);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  color: var(--wl-ink);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wl-input::placeholder {
  color: rgba(17, 17, 17, 0.38);
}

.wl-input:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow:
    0 0 0 4px rgba(200, 255, 26, 0.28),
    0 1px 2px rgba(17, 17, 17, 0.04);
}

.wl-submit {
  flex: 0 0 auto;
  height: 52px;
  padding-inline: 20px;
  white-space: nowrap;
}

.wl-submit.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.wl-turnstile {
  margin-top: 4px;
  min-height: 65px;
}

.wl-error {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #b42318;
}

.wl-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--wl-muted);
}

.wl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wl-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}

.wl-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wl-accent);
  color: var(--wl-ink);
}

.wl-success-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.wl-success-title {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--wl-ink);
}

.wl-success-text {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--wl-muted);
}

@media (max-width: 560px) {
  .wl-hero {
    padding: 28px 0 56px;
    align-items: flex-start;
  }

  .wl-row {
    flex-direction: column;
  }

  /* Column flex uses flex-basis as height — keep the field single-line. */
  .wl-input {
    flex: none;
    width: 100%;
    height: 52px;
  }

  .wl-submit {
    width: 100%;
    justify-content: center;
  }

  .wl-title .hero-highlight {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-input {
    transition: none;
  }
}
