/*
 * waitlist-modal.css — OptAI Waitlist Popup
 * Requires .modal-overlay / .modal base styles from landing.css
 */

/* ─── Modal shell ─────────────────────────────────────────── */
.wl-modal {
  width: 100%;
  max-width: 500px;
  padding: 36px 36px 32px;
}

/* ─── Badge ───────────────────────────────────────────────── */
.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, "Safiro", sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #008236;
  background: #E6F8F1;
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.wl-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00C479;
  box-shadow: 0 0 0 0 rgba(0, 196, 121, 0.6);
  animation: wl-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes wl-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 196, 121, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 196, 121, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(0, 196, 121, 0);   }
}

/* ─── Typography ──────────────────────────────────────────── */
.wl-h3 {
  font-family: var(--font-heading, "Safiro", sans-serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
  color: #002E3B;
  line-height: 1.1;
  margin-bottom: 10px;
}
.wl-sub {
  font-size: 15px;
  color: #4A5565;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ─── Social proof ────────────────────────────────────────── */
.wl-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #4A5565;
}
.wl-social-proof strong { color: #002E3B; }

.wl-avatars { display: flex; }
.wl-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -7px;
  opacity: 0.9;
  flex-shrink: 0;
}
.wl-avatars .wl-avatar:first-child { margin-left: 0; }
.wl-avatar-photo { object-fit: cover; display: block; }
.wl-avatar-logo  { display: flex; align-items: center; justify-content: center; }

/* ─── Form ────────────────────────────────────────────────── */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid #C8D2D0;
  border-radius: 8px;
  font-family: var(--font-body, "SF Pro Display", -apple-system, sans-serif);
  font-size: 16px;
  color: #101828;
  outline: none;
  background: #F4F3F0;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
.wl-input:focus {
  border-color: #009689;
  box-shadow: 0 0 0 3px rgba(0, 150, 137, 0.12);
  background: #fff;
}
.wl-input::placeholder { color: #6A7282; }

/* ─── Error message ───────────────────────────────────────── */
.wl-error-msg {
  color: #C10007;
  font-size: 13px;
  margin-top: 4px;
  text-align: center;
  line-height: 1.45;
}

/* ─── Primary button ──────────────────────────────────────── */
.wl-btn {
  width: 100%;
  padding: 17px;
  background: #002E3B;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-heading, "Safiro", sans-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 150ms, box-shadow 150ms, opacity 200ms;
}
.wl-btn:hover:not(.wl-btn--inactive) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 46, 59, 0.28);
}
.wl-btn--inactive {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.wl-fine {
  text-align: center;
  font-size: 12px;
  color: #6A7282;
  margin-top: 12px;
}

/* ─── Step indicator ──────────────────────────────────────── */
.wl-steps { display: flex; align-items: center; }
.wl-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wl-step-line {
  width: 28px;
  height: 1.5px;
  background: #C8D2D0;
  margin: 0 5px;
}
.wl-done   { background: #46F1D9; }
.wl-active { background: #002E3B; width: 20px; border-radius: 4px; }

/* ─── Industry grid ───────────────────────────────────────── */
.wl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
  margin-bottom: 2px;
}

.wl-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 14px 12px;
  border: 1.5px solid #C8D2D0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 130ms, box-shadow 160ms;
}
.wl-card:hover {
  border-color: #009689;
  background: #E6F8F1;
  transform: translateY(-1px);
}
.wl-card.wl-selected {
  border-color: #46F1D9;
  background: #E6F8F1;
  box-shadow: 0 0 0 1px #46F1D9;
}

.wl-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 46, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002E3B;
  margin-bottom: 4px;
  transition: background 160ms, color 160ms;
}
.wl-card:hover .wl-card-icon,
.wl-card.wl-selected .wl-card-icon {
  background: #46F1D9;
  color: #002E3B;
}

.wl-card-label {
  font-family: var(--font-heading, "Safiro", sans-serif);
  font-weight: 500;
  font-size: 13px;
  color: #002E3B;
  line-height: 1.25;
}
.wl-card-sub {
  font-size: 11px;
  color: #6A7282;
  line-height: 1.35;
}

/* ─── Success screen ──────────────────────────────────────── */
.wl-success {
  text-align: center;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wl-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E6F8F1;
  color: #008236;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.wl-queue-num {
  font-family: var(--font-heading, "Safiro", sans-serif);
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #46F1D9;
  line-height: 1;
  margin-bottom: 8px;
}
.wl-success .wl-h3 { margin-bottom: 8px; }
.wl-success .wl-sub { margin-bottom: 0; }

.wl-success-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #4A5565;
  background: #F5F5F5;
  padding: 8px 14px;
  border-radius: 100px;
  margin-top: 18px;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 540px) {
  .wl-modal { padding: 28px 24px 24px; }
  .wl-h3    { font-size: 26px; }
}
