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

.waitlist-section {
  display: grid;
  place-items: center;
  min-height: 510px;
  padding: 100px 24px 110px;
  border-top: 1px solid #f0f0f2;
  background: #fff;
  color: var(--glide-text-primary);
}

.waitlist-inner {
  width: min(100%, 1100px);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.waitlist-inner h2 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
  color: var(--glide-text-primary);
}

.waitlist-form {
  box-sizing: border-box;
  width: min(100%, 680px);
  min-height: 76px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 54px;
  padding: 7px;
  border: 1px solid #dadde3;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 7px rgba(244, 246, 249, .9),
    0 0 42px 9px rgba(199, 205, 216, .55),
    0 16px 42px rgba(63, 70, 83, .11);
  animation: waitlist-glow 5s ease-in-out infinite;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.waitlist-form:hover {
  animation: none;
  border-color: #c6cbd3;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 8px rgba(244, 246, 249, .96),
    0 0 56px 13px rgba(187, 195, 209, .7),
    0 20px 48px rgba(63, 70, 83, .15);
}

.waitlist-form:focus-within {
  animation: none;
  border-color: #a9afb9;
  box-shadow:
    0 0 0 7px rgba(243, 245, 248, .95),
    0 0 56px 13px rgba(184, 193, 208, .7),
    0 16px 42px rgba(63, 70, 83, .12);
}

.hero-waitlist-form {
  width: 100%;
  max-width: 520px;
  margin-top: 30px;
}

.waitlist-form input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--glide-text-primary);
  font: 400 18px/1.25 var(--font-sans);
  letter-spacing: -.02em;
}

.waitlist-form input::placeholder { color: #86868b; opacity: 1; }
.waitlist-form input:-webkit-autofill { -webkit-text-fill-color: var(--glide-text-primary); }

.waitlist-form button {
  min-width: 172px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e1e3e7;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f5f6f8 100%);
  color: #171719;
  font: 600 17px/1.1 var(--font-sans);
  letter-spacing: -.02em;
  box-shadow: 0 3px 9px rgba(34, 42, 55, .08), inset 0 1px 0 #fff;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.waitlist-form button:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 42, 55, .15), inset 0 1px 0 #fff;
}
.waitlist-form button:active { transform: scale(.985); }
.waitlist-form button:focus-visible { outline: 2px solid #0066cc; outline-offset: 3px; }
.waitlist-form button:disabled { cursor: progress; opacity: .65; }
.waitlist-form:has(input[aria-invalid="true"]) { border-color: #b42318; }
.waitlist-feedback {
  min-height: 1.5em;
  max-width: 42.5rem;
  margin-top: 1rem;
  color: #b42318;
  font: 400 0.9375rem/1.5 var(--font-sans);
}
.hero-content .waitlist-feedback { max-width: 32.5rem; }
.waitlist-arrow { font-size: 20px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.waitlist-form button:hover .waitlist-arrow { transform: translateX(3px); }

@keyframes waitlist-glow {
  0%, 100% {
    box-shadow: 0 0 0 7px rgba(244, 246, 249, .9), 0 0 42px 9px rgba(199, 205, 216, .55), 0 16px 42px rgba(63, 70, 83, .11);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(244, 246, 249, .96), 0 0 54px 14px rgba(199, 205, 216, .7), 0 18px 46px rgba(63, 70, 83, .14);
  }
}

@media (max-width: 680px) {
  .waitlist-section { min-height: 430px; padding: 88px 20px 94px; }
  .waitlist-inner h2 { font-size: clamp(39px, 8vw, 52px); }
  .waitlist-form { margin-top: 44px; }
}

@media (max-width: 440px) {
  .waitlist-inner h2 { font-size: clamp(36px, 9.5vw, 42px); }
  .waitlist-form { width: 100%; flex-wrap: wrap; gap: 5px; border-radius: 25px; }
  .waitlist-form input { flex-basis: 100%; min-height: 52px; font-size: 16px; }
  .waitlist-form button { width: 100%; min-height: 52px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-form,
  .waitlist-form button,
  .waitlist-arrow { transition: none; }
  .waitlist-form { animation: none; }
}
