/* ============================================================
   API Waitlist — enterprise early-access page
   Tokenised against colors_and_type.css. No page-local hex.
   Layered on top of auth.css (reuses header, form-group, btns).
   ============================================================ */

.wl-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--auth-navy-1) 0%, var(--auth-navy-2) 52%, var(--auth-navy-3) 100%);
}

/* ---- Layout shell --------------------------------------------------- */
.wl-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--header-h-desktop) + 56px) var(--container-pad) 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

/* ---- Left: value proposition ---------------------------------------- */
.wl-value { color: #fff; max-width: 520px; }

.wl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(75, 142, 255, 0.16);
  border: 1px solid rgba(123, 155, 255, 0.35);
  color: var(--auth-accent-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.wl-eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--auth-accent-2);
  box-shadow: 0 0 0 4px rgba(107, 163, 255, 0.25);
}

.wl-title {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.wl-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--auth-accent) 0%, var(--auth-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--auth-accent-2);
}
.wl-lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 36px;
}

/* Feature checklist */
.wl-features { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; }
.wl-feature { display: flex; gap: 14px; align-items: flex-start; }
.wl-feature__check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(75, 142, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.wl-feature__check svg { width: 15px; height: 15px; color: var(--auth-accent-soft); }
.wl-feature__title { font-size: 15px; font-weight: 700; color: #fff; }
.wl-feature__desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin-top: 2px; }

/* Social proof */
.wl-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.wl-avatars { display: flex; }
.wl-avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--auth-navy-2);
  margin-left: -10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.wl-avatars span:first-child { margin-left: 0; }
.wl-avatars span:nth-child(1) { background: linear-gradient(135deg, #4B8EFF, #6BA3FF); }
.wl-avatars span:nth-child(2) { background: linear-gradient(135deg, #0FA958, #34c77d); }
.wl-avatars span:nth-child(3) { background: linear-gradient(135deg, #7B61FF, #a18bff); }
.wl-avatars span:nth-child(4) { background: linear-gradient(135deg, #FFB648, #ffce85); color: var(--auth-navy-1); }
.wl-proof__text { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.45; }
.wl-proof__text strong { color: #fff; font-weight: 700; }

/* ---- Right: form card ----------------------------------------------- */
.wl-form-side { display: flex; justify-content: center; }
.wl-card {
  width: 100%;
  max-width: 460px;
  background: var(--auth-form-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.wl-card__head { margin-bottom: 26px; }
.wl-card__title { font-size: 24px; font-weight: 800; color: var(--auth-navy-1); letter-spacing: -0.025em; margin: 0 0 8px; }
.wl-card__sub { font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

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

/* Perks strip inside the card */
.wl-perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 16px;
  background: var(--xe-blue-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: grid;
  gap: 9px;
}
.wl-perks li { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.wl-perks svg { width: 15px; height: 15px; color: var(--xe-blue); flex-shrink: 0; }

.wl-fineprint { font-size: 12px; color: var(--text-tertiary); text-align: center; margin: 2px 0 0; line-height: 1.5; }
.wl-fineprint a { color: var(--xe-blue); font-weight: 600; text-decoration: none; }
.wl-fineprint a:hover { text-decoration: underline; }

/* Submit button + spinner reuse auth .btn-signup look */
.wl-submit {
  height: 50px; padding: 0 24px;
  background: linear-gradient(135deg, var(--xe-blue-hover) 0%, var(--xe-blue-active) 100%);
  color: #fff; font-size: 16px; font-weight: 700; font-family: inherit;
  border: none; border-radius: 10px; cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-shadow: 0 8px 24px rgba(22, 59, 255, 0.25);
}
.wl-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(22, 59, 255, 0.35); }
.wl-submit:active { transform: translateY(0); }
.wl-submit:disabled { background: var(--btn-disabled); cursor: not-allowed; box-shadow: none; transform: none; }
.wl-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22,59,255,0.3), 0 8px 24px rgba(22, 59, 255, 0.25); }
.wl-submit .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 600ms linear infinite; }

/* ---- Success state -------------------------------------------------- */
.wl-success { display: none; text-align: center; padding: 8px 4px 4px; }
.wl-success.show { display: block; animation: wl-pop 320ms var(--motion-ease); }
.wl-success__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(15, 169, 88, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.wl-success__icon svg { width: 32px; height: 32px; color: var(--success-text); }
.wl-success__title { font-size: 24px; font-weight: 800; color: var(--auth-navy-1); margin: 0 0 10px; letter-spacing: -0.02em; }
.wl-success__text { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.6; }
.wl-success__pos { font-size: 14px; color: var(--text-primary); margin: 0 0 24px; }
.wl-success__pos strong { color: var(--xe-blue); font-weight: 800; }
.wl-success__home {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border-secondary-btn); border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 140ms ease;
}
.wl-success__home:hover { border-color: var(--xe-blue-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.wl-success__home:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22,59,255,0.25); }

/* ---- Footer trust bar ----------------------------------------------- */
.wl-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px var(--container-pad);
}
.wl-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.wl-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.wl-trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.wl-trust__item svg { width: 15px; height: 15px; color: var(--auth-accent-soft); }
.wl-footer__copy { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wl-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .wl-submit, .wl-success__home { transition: none; }
  .wl-submit:hover, .wl-success__home:hover { transform: none; }
  .wl-success.show { animation: none; }
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .wl-wrapper { grid-template-columns: 1fr; gap: 44px; padding-top: calc(var(--header-h-mobile) + 40px); }
  .wl-value { max-width: 600px; }
  .wl-form-side { justify-content: stretch; }
  .wl-card { max-width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .wl-wrapper { padding: calc(var(--header-h-mobile) + 28px) var(--container-pad) 48px; gap: 36px; }
  .wl-features { gap: 13px; }
  .wl-card { padding: 28px 22px; }
  .wl-footer__inner { justify-content: center; text-align: center; }
  .wl-trust { justify-content: center; gap: 16px; }
}
