/* Homepage hero — waitlist mode (see /api/site-config) */

.hero-cta__mode--hidden {
  display: none !important;
}

.hero-cta__mode--waitlist {
  align-items: center;
  text-align: center;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-subtitle--waitlist {
  margin-bottom: 0.25rem;
}

.hero-waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 22rem);
  pointer-events: auto;
}

.hero-waitlist-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-waitlist-email {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px;
  font-family: var(--font-sans, system-ui, sans-serif);
  border: 1px solid var(--color-gray-300, #ccc);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
}

.hero-waitlist-email:focus {
  outline: 2px solid var(--color-black, #000);
  outline-offset: 2px;
}

.hero-waitlist-message {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--color-gray-600);
  margin: 0.25rem 0 0;
}

/* Success-only state: form panel hidden, message is the sole CTA content */
#hero-cta-waitlist .hero-waitlist-message:not(.hero-cta__mode--hidden) {
  margin-top: 0;
}

.hero-waitlist-message--error {
  color: #b42318;
}
