/* The Guidebook & Co. — Waitlist Lockdown styles
 * Loaded sitewide while SITE_MODE='waitlist'. Visually matches the existing
 * navy / gold / cream palette. Premium serif headlines, single-card layout.
 * Uses :where() so specificity stays low and existing styles still win where
 * needed.
 */

.waitlist-block,
.waitlist-block-injected {
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  display: block;
}

.waitlist-card {
  --w-navy: var(--navy, #121214);
  --w-gold: var(--gold, #A88438);
  --w-gold-light: var(--gold-light, #C8A14B);
  --w-cream: var(--cream, #EFE6D2);
  --w-cream-2: var(--cream-2, #F4ECD8);
  --w-ink: var(--ink, #0F1014);
  --w-ink-soft: var(--ink-soft, #4A4A4A);

  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--w-cream);
  border: 1px solid rgba(200, 147, 43, 0.45);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 60px rgba(10, 37, 64, 0.10),
    0 4px 12px rgba(10, 37, 64, 0.06);
  font-family: var(--font-body, "Inter", system-ui, -apple-system, sans-serif);
  text-align: center;
  color: var(--w-ink);
  overflow: hidden;
}

/* Subtle gold rule across the top of the card */
.waitlist-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--w-gold) 35%, var(--w-gold-light) 50%, var(--w-gold) 65%, transparent);
}

.waitlist-badge {
  display: inline-block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w-gold-deep, #8B6914);
  background: rgba(200, 147, 43, 0.10);
  border: 1px solid rgba(200, 147, 43, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.waitlist-headline {
  font-family: var(--font-display, "Cormorant Garamond", "Playfair Display", Georgia, serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.15;
  color: var(--w-navy);
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}

.waitlist-sub {
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.6;
  color: var(--w-ink-soft);
  max-width: 46ch;
  margin: 0 auto 1.4rem;
}

.waitlist-sub em {
  color: var(--w-navy);
  font-style: italic;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
}

.waitlist-form-injected {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto 0.85rem;
}

.waitlist-form-injected input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--w-ink);
  border: 1.5px solid rgba(10, 37, 64, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form-injected input[type="email"]:focus {
  outline: none;
  border-color: var(--w-gold);
  box-shadow: 0 0 0 3px rgba(200, 147, 43, 0.18);
}

.waitlist-form-injected button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.35rem;
  background: var(--w-navy);
  color: var(--w-cream);
  border: 1.5px solid var(--w-navy);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease, border-color 0.15s ease;
}

.waitlist-form-injected button:hover {
  background: var(--w-gold);
  border-color: var(--w-gold);
  color: var(--w-navy);
}

.waitlist-form-injected button:active {
  transform: translateY(1px);
}

.waitlist-form-injected button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.waitlist-fineprint {
  font-size: 0.75rem;
  color: var(--w-ink-soft, #7A7470);
  margin: 0;
  letter-spacing: 0.01em;
}

.waitlist-success {
  display: none;
  margin-top: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(200, 147, 43, 0.08);
  border: 1px solid rgba(200, 147, 43, 0.35);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--w-navy);
}
.waitlist-success[hidden] { display: none !important; }
.waitlist-success strong {
  display: block;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--w-navy);
}
.waitlist-success span {
  display: block;
  color: var(--w-ink-soft);
  font-size: 0.92rem;
}

/* On dark backgrounds (master-manual hero), invert tone */
.flagship-hero .waitlist-card,
[data-theme="dark"] .waitlist-card,
.tier-stack .waitlist-card,
.dark .waitlist-card {
  background: rgba(10, 37, 64, 0.85);
  border-color: rgba(200, 147, 43, 0.55);
  color: var(--w-cream);
}
.flagship-hero .waitlist-headline,
[data-theme="dark"] .waitlist-headline,
.tier-stack .waitlist-headline,
.dark .waitlist-headline {
  color: var(--w-cream);
}
.flagship-hero .waitlist-sub,
[data-theme="dark"] .waitlist-sub,
.tier-stack .waitlist-sub,
.dark .waitlist-sub {
  color: rgba(250, 248, 243, 0.78);
}
.flagship-hero .waitlist-sub em,
[data-theme="dark"] .waitlist-sub em,
.tier-stack .waitlist-sub em,
.dark .waitlist-sub em {
  color: var(--w-gold-light);
}
.flagship-hero .waitlist-form-injected button,
[data-theme="dark"] .waitlist-form-injected button,
.tier-stack .waitlist-form-injected button,
.dark .waitlist-form-injected button {
  background: var(--w-gold);
  color: var(--w-navy);
  border-color: var(--w-gold);
}
.flagship-hero .waitlist-form-injected button:hover,
[data-theme="dark"] .waitlist-form-injected button:hover,
.tier-stack .waitlist-form-injected button:hover,
.dark .waitlist-form-injected button:hover {
  background: var(--w-gold-light);
  border-color: var(--w-gold-light);
}

/* Mobile */
@media (max-width: 540px) {
  .waitlist-form-injected {
    flex-direction: column;
  }
  .waitlist-form-injected button {
    width: 100%;
  }
}

/* Hide vestigial price/format UI within a hidden ladder block */
section.ladder-band .ladder[style*="display: none"] {
  display: none !important;
}
