/* ═══════════════════════════════════════════════════════════
   WAITLIST FORM V2 — phone + email + country picker
   =══════════════════════════════════════════════════════════ */

.waitlist-form-v2 {
  margin-top: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.waitlist-form-v2 .wl-field {
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(10, 10, 10, 0.4);
  border-radius: 14px;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(245, 242, 232, 0.08);
}
.waitlist-form-v2 .wl-field:hover {
  border-color: rgba(10, 10, 10, 0.65);
}
.waitlist-form-v2 .wl-field:focus-within,
.waitlist-form-v2 .wl-field:focus {
  border-color: rgba(10, 10, 10, 0.9);
  outline: none;
}

/* Phone field = country button + tel input side-by-side */
.wl-field-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}
.waitlist-form-v2 .wl-country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  background: rgba(10, 10, 10, 0.96);
  border: 0;
  border-right: 1px solid rgba(245, 242, 232, 0.14);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.waitlist-form-v2 .wl-country-btn:hover { background: #1a1a1a; }
.wl-flag {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
}
.wl-flag-img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.wl-flag-fallback {
  background: rgba(245, 242, 232, 0.2);
}
.wl-dial {
  font-variant-numeric: tabular-nums;
  color: rgba(245, 242, 232, 0.85);
}
.wl-caret {
  color: rgba(245, 242, 232, 0.5);
  margin-left: 2px;
}
.wl-field-phone input[type="tel"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.wl-field-phone input[type="tel"]::placeholder {
  color: rgba(245, 242, 232, 0.4);
}

/* Email field */
.wl-field-email {
  padding: 14px 18px;
  outline: none;
}
.wl-field-email::placeholder {
  color: rgba(245, 242, 232, 0.4);
}

/* Submit */
.waitlist-form-v2 .wl-submit {
  background: var(--yellow);
  color: var(--black);
  border: 0;
  padding: 0 28px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.waitlist-form-v2 .wl-submit:hover {
  background: var(--yellow-deep);
  transform: translateY(-1px);
}
.waitlist-form-v2 .wl-submit:active {
  transform: translateY(0);
}

/* On the yellow CTA band, invert the submit button to black so it's visible. */
.cta-band .waitlist-form-v2 .wl-submit {
  background: var(--black);
  color: var(--cream);
}
.cta-band .waitlist-form-v2 .wl-submit:hover {
  background: #1a1a1a;
}

/* Country dropdown menu */
.wl-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, calc(100vw - 48px));
  background: #121211;
  border: 1px solid rgba(245, 242, 232, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 320px;
}
.wl-country-menu[hidden] { display: none; }
.wl-country-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(245, 242, 232, 0.1);
  color: rgba(245, 242, 232, 0.5);
}
.wl-country-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  padding: 2px 0;
}
.wl-country-search input::placeholder {
  color: rgba(245, 242, 232, 0.4);
}
.wl-country-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 242, 232, 0.2) transparent;
}
.wl-country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--cream);
  transition: background 0.12s ease;
}
.wl-country-list li:hover,
.wl-country-list li.active {
  background: rgba(245, 242, 232, 0.08);
}
.wl-country-list .wl-c-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
}
.wl-country-list .wl-c-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-country-list .wl-c-dial {
  color: rgba(245, 242, 232, 0.5);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* Mobile layout */
@media (max-width: 700px) {
  .waitlist-form-v2 {
    grid-template-columns: 1fr;
  }
  .waitlist-form-v2 .wl-submit {
    padding: 14px 28px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MODAL — plan + period picker
   =══════════════════════════════════════════════════════════ */
.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wl-modal-in 0.22s ease-out;
}
.wl-modal[hidden] { display: none; }
@keyframes wl-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.wl-modal-card {
  position: relative;
  background: var(--cream);
  color: var(--black);
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: wl-modal-card-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wl-modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wl-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 10, 10, 0.06);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.wl-modal-close:hover { background: rgba(10, 10, 10, 0.12); }

.wl-modal-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.55);
  padding: 5px 10px;
  background: rgba(10, 10, 10, 0.06);
  border-radius: 999px;
  margin-bottom: 14px;
}
.wl-modal-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--black);
}
.wl-modal-sub {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.65);
  margin: 0 0 24px;
}

.wl-modal-section { margin-bottom: 22px; }
.wl-modal-section[hidden] { display: none; }
.wl-modal-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.55);
  margin-bottom: 10px;
}

/* Plan radio cards */
.wl-plan-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 520px) {
  .wl-plan-options { grid-template-columns: 1fr; }
}
.wl-plan {
  position: relative;
  display: block;
  cursor: pointer;
}
.wl-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wl-plan-inner {
  border: 1.5px solid rgba(10, 10, 10, 0.14);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wl-plan:hover .wl-plan-inner {
  border-color: rgba(10, 10, 10, 0.3);
}
.wl-plan input:checked + .wl-plan-inner {
  border-color: var(--black);
  background: var(--black);
  color: var(--cream);
}
.wl-plan input:checked + .wl-plan-inner .wl-plan-tag {
  color: rgba(245, 242, 232, 0.6);
}
.wl-plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wl-plan-tag {
  font-size: 12px;
  color: rgba(10, 10, 10, 0.55);
  margin-top: 4px;
}

/* Period radio cards */
.wl-period-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wl-period {
  position: relative;
  display: block;
  cursor: pointer;
}
.wl-period input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wl-period-inner {
  position: relative;
  border: 1.5px solid rgba(10, 10, 10, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wl-period:hover .wl-period-inner {
  border-color: rgba(10, 10, 10, 0.3);
}
.wl-period input:checked + .wl-period-inner {
  border-color: var(--black);
  background: var(--black);
  color: var(--cream);
}
.wl-period input:checked + .wl-period-inner .wl-period-price {
  color: rgba(245, 242, 232, 0.7);
}
.wl-period input:checked + .wl-period-inner .wl-period-badge {
  background: var(--yellow);
  color: var(--black);
}
.wl-period-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.wl-period-price {
  font-size: 13px;
  color: rgba(10, 10, 10, 0.6);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.wl-period-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.1);
  color: rgba(10, 10, 10, 0.7);
}

.wl-modal-submit {
  width: 100%;
  background: var(--black);
  color: var(--cream);
  border: 0;
  padding: 16px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  margin-top: 8px;
}
.wl-modal-submit:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.wl-modal-submit:disabled,
.wl-modal-submit.is-disabled {
  background: rgba(10, 10, 10, 0.18);
  color: rgba(10, 10, 10, 0.4);
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.wl-modal-foot {
  text-align: center;
  font-size: 12px;
  color: rgba(10, 10, 10, 0.5);
  margin-top: 14px;
}

/* Success state (keeps existing .waitlist-form.success behavior but adapted) */
.waitlist-form-v2.success {
  grid-template-columns: 1fr;
  background: rgba(45, 190, 108, 0.12);
  border: 1px solid var(--green);
  padding: 18px 22px;
  border-radius: 16px;
  gap: 0;
}
.waitlist-form-v2.success > * { display: none; }
.waitlist-form-v2.success .wl-success-msg { display: flex; }
.wl-success-msg {
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 15px;
}

body.wl-modal-open { overflow: hidden; }

/* ─────────── Modal submit: loading + error states ─────────── */
.wl-modal-submit.is-loading {
  opacity: 0.7;
  cursor: wait;
  position: relative;
}
.wl-modal-submit.is-loading::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wl-spin 0.7s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-modal-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.4);
  border-radius: 10px;
  color: #ff8a8a;
  font-size: 13px;
  line-height: 1.45;
}

.wl-modal-info {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(45, 190, 108, 0.12);
  border: 1px solid rgba(45, 190, 108, 0.4);
  border-radius: 10px;
  color: #7fd9a5;
  font-size: 13px;
  line-height: 1.45;
}

/* ─────────── OTP step ─────────── */
.wl-otp-phone {
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream, #F5F2E8);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.wl-otp-help {
  text-align: center;
  color: rgba(245, 242, 232, 0.65);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.wl-otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 18px;
}
.wl-otp-cell {
  aspect-ratio: 1 / 1.15;
  background: rgba(10, 10, 10, 0.6);
  border: 1.5px solid rgba(245, 242, 232, 0.12);
  border-radius: 12px;
  color: var(--cream, #F5F2E8);
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
  min-width: 0;
}
.wl-otp-cell:focus {
  outline: none;
  border-color: var(--yellow, #FCC247);
  background: rgba(10, 10, 10, 0.85);
}
.wl-otp-cell.filled { border-color: rgba(245, 242, 232, 0.3); }
.wl-otp-cell.error { border-color: #dc3c3c; animation: wl-shake 0.35s; }
@keyframes wl-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.wl-otp-back {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: rgba(245, 242, 232, 0.55);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  font-family: inherit;
}
.wl-otp-back:hover { color: var(--cream, #F5F2E8); }
.wl-otp-resend {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: rgba(245, 242, 232, 0.65);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.wl-otp-resend:hover { color: var(--yellow, #FCC247); }
.wl-otp-resend:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: none; }

#recaptcha-container { position: fixed; bottom: 0; right: 0; z-index: -1; opacity: 0; pointer-events: none; }
