/*
 * waitlist.css — Semmble waitlist — bold redesign
 * Dark hero, massive typography, entrance choreography
 */

/* Cursor reset (base.css sets cursor: none globally) */
.waitlist-page,
.waitlist-page *,
.waitlist-page *::before,
.waitlist-page *::after { cursor: auto; }
.waitlist-page a,
.waitlist-page button,
.waitlist-page [role="button"] { cursor: pointer; }
.waitlist-page input { cursor: text; }

:root {
  --wl-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.waitlist-page {
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

/* ============================
   WORDMARK
   ============================ */
.wl-wordmark {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-bg);
  text-decoration: none;
  user-select: none;
}

.wl-wordmark--inverted {
  color: var(--color-bg);
}

/* ============================
   BADGE (replaces plain eyebrow in hero)
   ============================ */
.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(140, 115, 85, 0.38);
  border-radius: 100px;
  padding: 7px 16px 7px 11px;
  margin-bottom: 36px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.wl-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: wl-pulse 2.5s ease-in-out infinite;
}

@keyframes wl-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(140, 115, 85, 0.5);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(140, 115, 85, 0);
  }
}

/* Section eyebrow (used in HiW section on light bg) */
.wl-eyebrow {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 20px;
}

/* ============================
   HERO — dark, drenched
   ============================ */
.wl-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

/* Warm radial spotlight */
.wl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 60% at 50% 36%,
    #393934 0%,
    var(--color-primary) 70%
  );
  pointer-events: none;
}

/* Subtle warm dot-grid texture */
.wl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(245, 242, 236, 0.042) 1.5px,
    transparent 1.5px
  );
  background-size: 30px 30px;
  pointer-events: none;
}

.wl-header {
  display: flex;
  align-items: center;
  padding: 28px 0 22px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  position: relative;
  z-index: 11; /* above skeleton loader */
}

.wl-hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 40px;
  position: relative;
  z-index: 1;
}

/* Entrance choreography */
@keyframes wl-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wl-headline { animation: wl-rise 0.75s var(--wl-ease) 0.05s both; }
.wl-subhead  { animation: wl-rise 0.75s var(--wl-ease) 0.20s both; }
.wl-capture  { animation: wl-rise 0.75s var(--wl-ease) 0.34s both; }

.wl-headline {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(72px, 18vw, 160px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--color-bg);
  margin: 0 0 20px;
}

.wl-tagline {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 32px;
}

.wl-subhead {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-bg);
  opacity: 0.58;
  max-width: 40ch;
  margin: 0 auto 40px;
  animation: wl-rise 0.75s var(--wl-ease) 0.28s both;
}

/* ============================
   FORM CAPTURE
   ============================ */
.wl-capture {
  width: 100%;
  max-width: 520px;
  position: relative;
  animation: wl-rise 0.75s var(--wl-ease) 0.42s both;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s var(--wl-ease), transform 0.3s var(--wl-ease);
}

.wl-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.wl-label {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  opacity: 0.38;
}

.wl-input {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-bg);
  background: rgba(245, 242, 236, 0.07);
  border: 1.5px solid rgba(245, 242, 236, 0.18);
  border-radius: 2px;
  padding: 15px 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s var(--wl-ease), background 0.18s var(--wl-ease);
  -webkit-appearance: none;
  appearance: none;
}

.wl-input::placeholder {
  color: var(--color-bg);
  opacity: 0.25;
}

.wl-input:focus {
  border-color: rgba(245, 242, 236, 0.52);
  background: rgba(245, 242, 236, 0.1);
}

.wl-input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.wl-input.is-invalid {
  border-color: var(--color-accent);
}

/* ============================
   CONSENT CHECKBOX
   ============================ */
.wl-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 4px;
}

.wl-consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wl-consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid rgba(245, 242, 236, 0.32);
  border-radius: 3px;
  background: rgba(245, 242, 236, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color 0.18s var(--wl-ease), background 0.18s var(--wl-ease), color 0.18s var(--wl-ease);
}

.wl-consent-box svg {
  width: 11px;
  height: 11px;
}

.wl-consent-input:checked ~ .wl-consent-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.wl-consent-input:focus-visible ~ .wl-consent-box {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.wl-consent-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-bg);
  opacity: 0.55;
}

.wl-consent-text a {
  color: var(--color-bg);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s var(--wl-ease);
}

.wl-consent-text a:hover { color: var(--color-accent); }

.wl-btn {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  padding: 17px 28px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin-top: 4px;
  transition: background 0.18s var(--wl-ease), transform 0.12s var(--wl-ease);
}

.wl-btn:hover  { background: #7A6449; }
.wl-btn:active { transform: scale(0.975); }
.wl-btn:disabled { opacity: 0.6; pointer-events: none; }

.wl-btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(245, 242, 236, 0.22);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: wl-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.wl-btn.is-loading .wl-btn-text    { opacity: 0; }
.wl-btn.is-loading .wl-btn-spinner { display: block; position: absolute; }

@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-error {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-accent);
  min-height: 18px;
  margin: 0;
  text-align: left;
}

.wl-note {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-bg);
  opacity: 0.3;
  margin: 0;
  text-align: center;
}

/* ============================
   SUCCESS STATE
   ============================ */
.wl-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0;
  animation: wl-rise 0.5s var(--wl-ease) forwards;
}

.wl-success[hidden] { display: none; }

.wl-check-icon {
  color: var(--color-accent);
  margin-bottom: 18px;
}

.wl-success-headline {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-bg);
  margin: 0 0 10px;
}

.wl-success-body {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-bg);
  opacity: 0.52;
  max-width: 30ch;
  margin: 0;
}

/* ============================
   BUTTON WIPE — appears after form slides in
   ============================ */
.wl-btn {
  clip-path: inset(0 100% 0 0 round 2px);
  animation: wl-btn-wipe 0.55s var(--wl-ease) 1.2s both;
}

@keyframes wl-btn-wipe {
  from { clip-path: inset(0 100% 0 0 round 2px); }
  to   { clip-path: inset(0 0%   0 0 round 2px); }
}

/* ============================
   SCROLL CUE
   ============================ */
.wl-scroll-cue {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
  color: var(--color-bg);
  opacity: 0.18;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: wl-float 2.2s ease-in-out infinite;
}

@keyframes wl-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ============================
   HOW IT WORKS — dark card stack
   ============================ */
.wl-steps-section {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 56px 28px 64px;
  position: relative;
  overflow: hidden;
}

/* Warm dry-earth halo behind the focused card */
.wl-steps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 56% at 50% 64%,
    rgba(140, 115, 85, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.wl-steps-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.wl-section-title {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-bg);
  margin: 0 0 12px;
}

/* ---- Stack ---- */
.wl-stack {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
}

.wl-stack-card {
  background: #33322D;
  border: 1px solid rgba(245, 242, 236, 0.10);
  border-radius: 4px;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

.wl-stack-icon {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--color-bg);
  opacity: 0.8;
  margin-bottom: 6px;
}

.wl-stack-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wl-stack-num {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.wl-stack-title {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--color-bg);
  margin: 0;
  line-height: 1.15;
}

.wl-stack-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-bg);
  opacity: 0.55;
  margin: 0;
}

/* ============================
   FOOTER
   ============================ */
.wl-footer {
  background: var(--color-primary);
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(245, 242, 236, 0.06);
}

.wl-social {
  display: flex;
  gap: 22px;
  align-items: center;
}

.wl-social-link {
  color: var(--color-bg);
  opacity: 0.38;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.18s var(--wl-ease);
}

.wl-social-link:hover { opacity: 1; }

.wl-social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wl-footer-contact {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.18s var(--wl-ease);
}

.wl-footer-contact:hover { opacity: 1; }

.wl-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.wl-footer-legal a {
  color: rgba(245, 242, 236, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.wl-footer-legal a:hover { color: rgba(245, 242, 236, 0.7); }

.wl-footer-legal span {
  color: rgba(245, 242, 236, 0.2);
  font-size: 9px;
}

.wl-footer-copy {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-bg);
  opacity: 0.2;
  margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (min-width: 580px) {
  .wl-hero          { padding: 0 52px; }
  .wl-steps-section { padding: 64px 52px 72px; }
  .wl-footer        { padding: 44px 52px; }

  .wl-fields        { flex-direction: row; gap: 12px; }
  .wl-field         { flex: 1; }
}

@media (min-width: 900px) {
  .wl-hero          { padding: 0 80px; }
  .wl-steps-section { padding: 72px 80px 84px; }
  .wl-footer        { padding: 44px 80px; }

  /* Fanned stack: front card centred, 01 + 03 receding behind */
  .wl-stack {
    position: relative;
    height: 320px;
    max-width: 940px;
    margin-top: 32px;
  }

  .wl-stack-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 338px;
    min-height: 212px;
    max-width: none;
    margin: 0;
    transition:
      transform 0.55s var(--wl-ease),
      border-color 0.45s var(--wl-ease),
      background 0.45s var(--wl-ease);
  }

  /* Focused front card: lighter, larger, sharp, accent icon */
  .wl-stack-card--front {
    transform: translate(-50%, -50%);
    z-index: 3;
    background: #3C3A34;
    border-color: rgba(245, 242, 236, 0.24);
  }

  .wl-stack-card--front .wl-stack-icon {
    color: var(--color-accent);
    opacity: 1;
  }

  /* Receding side cards: darker, smaller, angled, opaque so the front occludes them */
  .wl-stack-card--left {
    transform: translate(calc(-50% - 252px), -40%) rotate(-7deg) scale(0.9);
    z-index: 1;
    background: #2C2B27;
  }

  .wl-stack-card--right {
    transform: translate(calc(-50% + 252px), -40%) rotate(7deg) scale(0.9);
    z-index: 1;
    background: #2C2B27;
  }

  /* Bring a side card forward and upright on hover */
  .wl-stack-card--left:hover {
    transform: translate(calc(-50% - 236px), -48%) rotate(-3deg) scale(0.96);
    z-index: 4;
    background: #36352F;
    border-color: rgba(245, 242, 236, 0.2);
  }

  .wl-stack-card--right:hover {
    transform: translate(calc(-50% + 236px), -48%) rotate(3deg) scale(0.96);
    z-index: 4;
    background: #36352F;
    border-color: rgba(245, 242, 236, 0.2);
  }
}
