/* Waitlist pop-up, built by assets/js/waitlist.js.
   Separate from academy.css because the live pages don't load that file: its
   reset and older palette would restyle them. */

html:has(.waitlist[open]),
html:has(.waitlist[open]) body { overflow: hidden; }

.waitlist {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #151521;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden auto;
  overscroll-behavior: contain;
  box-shadow: 0 32px 80px rgba(21, 21, 33, 0.45);
}
.waitlist[open] { animation: waitlist-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.waitlist::backdrop {
  background: rgba(36, 22, 69, 0.72);
  backdrop-filter: blur(4px);
  animation: waitlist-fade 0.2s ease-out;
}
@keyframes waitlist-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes waitlist-fade { from { opacity: 0; } to { opacity: 1; } }

.waitlist-panel { position: relative; background: #FFFFFF; }

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s ease;
}
.waitlist-close:hover { background: rgba(255, 255, 255, 0.26); }
.waitlist-close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

.waitlist-head {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 32px 30px;
  background: #241645;
  color: #FFFFFF;
}
/* Same outlined rounded shapes as the page's CTA banners. */
.waitlist-shape {
  position: absolute;
  border: 10px solid rgba(201, 182, 255, 0.14);
  border-radius: 26px;
  pointer-events: none;
}
.waitlist-shape-a { top: -64px; right: -48px; width: 220px; height: 136px; transform: rotate(-10deg); }
.waitlist-shape-b { bottom: -72px; left: -44px; width: 170px; height: 112px; transform: rotate(8deg); }

.waitlist-logo { position: relative; display: block; width: 200px; max-width: calc(100% - 56px); height: auto; margin-bottom: 6px; }
.waitlist-kicker {
  position: relative;
  background: #FF8A6B;
  color: #151521;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.waitlist-title {
  position: relative;
  margin: 0;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  outline: none;
}
.waitlist-title em {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #C9B6FF;
}
.waitlist-desc {
  position: relative;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #DCD3F2;
}

.waitlist-body { padding: 14px 16px 22px; }
.waitlist-form { min-height: 214px; }
.waitlist-fallback,
.waitlist-note {
  margin: 4px 16px 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: #55556A;
}
.waitlist-fallback { margin-bottom: 8px; font-size: 15px; color: #151521; }
.waitlist-fallback[hidden] { display: none; }
.waitlist-body a { color: #7854D4; font-weight: 600; }
.waitlist-body a:hover { color: #5F3DB9; }

@media (max-width: 480px) {
  .waitlist { border-radius: 24px; }
  .waitlist-head { padding: 22px 22px 24px; }
  .waitlist-body { padding: 10px 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist[open],
  .waitlist::backdrop { animation: none; }
}
