/* Waitlist modal — shared by index.html and login.html */

.wl-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(0.10 0.010 55 / 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wl-backdrop.open { display: flex; }

.wl-modal {
  background: #fff;
  border-radius: 24px;
  padding: 48px 44px 44px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 80px oklch(0.10 0.010 55 / 0.22);
  position: relative;
  animation: wl-in 0.28s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes wl-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.wl-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none; background: none;
  cursor: pointer;
  color: #888;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms, color 140ms;
}
.wl-close:hover { background: #f0f0f0; color: #222; }

.wl-icon {
  width: 48px; height: 48px;
  background: oklch(0.75 0.195 130 / 0.14);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: oklch(0.58 0.175 130);
}

.wl-modal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.wl-modal p {
  font-size: 14.5px;
  color: #555;
  margin: 0 0 28px;
  line-height: 1.6;
}

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

.wl-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.wl-input:focus {
  border-color: oklch(0.75 0.195 130);
  box-shadow: 0 0 0 3px oklch(0.75 0.195 130 / 0.18);
}
.wl-input::placeholder { color: #aaa; }

.wl-btn {
  height: 50px;
  background: oklch(0.75 0.195 130);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 240ms;
}
@media (hover: hover) and (pointer: fine) {
  .wl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px oklch(0.75 0.195 130 / 0.38);
  }
}
.wl-btn:active { transform: scale(0.97) !important; box-shadow: none !important; transition-duration: 100ms !important; }
.wl-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.wl-success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.wl-success .wl-check {
  width: 52px; height: 52px;
  background: oklch(0.75 0.195 130 / 0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: oklch(0.58 0.175 130);
}
.wl-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; color: #1a1a1a; }
.wl-success p { font-size: 14px; color: #555; margin: 0; }

.wl-error {
  display: none;
  font-size: 13px;
  color: oklch(0.48 0.18 25);
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.88 0.10 25);
  padding: 10px 14px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .wl-modal { padding: 36px 24px 32px; }
}
