.waitlist-modal {
  --waitlist-modal-max-height: min(720px, calc(100dvh - 48px));
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.waitlist-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, .68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.waitlist-modal__dialog {
  position: relative;
  z-index: 1001;
  width: min(900px, calc(100vw - 48px));
  max-height: var(--waitlist-modal-max-height);
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  background: #fff;
  color: #111;
  box-shadow: 0 36px 110px rgba(0, 0, 0, .32);
  transform: translateY(18px);
  transition: transform 260ms var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.waitlist-modal.is-open .waitlist-modal__dialog {
  transform: translateY(0);
}

.waitlist-modal__dialog:focus {
  outline: none;
}

.waitlist-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr);
  max-height: var(--waitlist-modal-max-height);
  overflow: hidden;
  min-height: 0;
}

.waitlist-modal__brand {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 4vw, 42px);
  background: #050505;
  color: #fff;
}

.waitlist-modal__brand h2 {
  max-width: 330px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.15rem, 3.3vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
}

.waitlist-modal__brand p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .98rem;
  line-height: 1.65;
}

.waitlist-modal__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.waitlist-modal__form-panel .waitlist-modal__eyebrow,
.waitlist-success .waitlist-modal__eyebrow {
  color: #686868;
}

.waitlist-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.waitlist-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .88);
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.35;
}

.waitlist-benefits li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .1);
}

.waitlist-modal__form-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 46px);
  padding-right: clamp(36px, 5.4vw, 58px);
  background: #fff;
}

.waitlist-modal__scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
  padding-bottom: 28px;
}

.waitlist-modal__scroll-area::-webkit-scrollbar {
  width: 10px;
}

.waitlist-modal__scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.waitlist-modal__scroll-area::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: rgba(5, 5, 5, .22);
}

.waitlist-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(5, 5, 5, .12);
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 30px rgba(5, 5, 5, .12);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.waitlist-modal__close:hover {
  border-color: rgba(5, 5, 5, .24);
  background: #f6f6f3;
  box-shadow: 0 16px 34px rgba(5, 5, 5, .16);
  transform: translateY(-1px);
}

.waitlist-modal__close:active {
  transform: translateY(0);
}

.waitlist-modal__head {
  flex: 0 0 auto;
  max-width: 440px;
  padding-right: 30px;
}

.waitlist-modal__head h2,
.waitlist-success h2 {
  margin: 0 0 12px;
  color: #111;
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
  text-transform: none;
}

.waitlist-modal__head p,
.waitlist-success p {
  margin: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.58;
}

.waitlist-form {
  display: grid;
  gap: 15px;
  margin-top: 0;
}

.waitlist-field {
  display: grid;
  gap: 8px;
}

.waitlist-field label {
  color: #1b1b1b;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.25;
}

.waitlist-field input,
.waitlist-phone {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(5, 5, 5, .14);
  border-radius: 16px;
  background: #fafaf7;
  color: #111;
  font: inherit;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.waitlist-field input {
  padding: 0 15px;
}

.waitlist-field input::placeholder {
  color: #8a8a8a;
  font-weight: 700;
}

.waitlist-phone {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.waitlist-phone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border-right: 1px solid rgba(5, 5, 5, .12);
  background: #efefeb;
  color: #111;
  font-weight: 900;
}

.waitlist-phone input {
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.waitlist-phone:focus-within,
.waitlist-field input:focus {
  border-color: #050505;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 5, 5, .1);
  outline: none;
}

.waitlist-field input[aria-invalid="true"],
.waitlist-phone.is-invalid {
  border-color: #b42318;
}

.waitlist-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 2px;
}

.waitlist-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #050505;
  cursor: pointer;
}

.waitlist-consent label {
  min-width: 0;
  color: #3f3f3f;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
}

.waitlist-consent a {
  color: #050505;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.waitlist-turnstile {
  width: 100%;
  min-height: 65px;
  overflow: hidden;
}

.waitlist-error {
  min-height: 17px;
  margin: 0;
  color: #b42318;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.35;
}

.waitlist-status {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.4;
}

.waitlist-submit,
.waitlist-success__done {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #050505;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.waitlist-submit:hover,
.waitlist-success__done:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(5, 5, 5, .18);
}

.waitlist-submit:active,
.waitlist-success__done:active {
  transform: translateY(0);
}

.waitlist-submit:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.waitlist-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: waitlistSpin 740ms linear infinite;
}

.waitlist-form.is-submitting .waitlist-submit__spinner {
  display: inline-block;
}

.waitlist-success {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 18px;
}

.waitlist-success__done {
  margin-top: 8px;
}

.waitlist-modal :focus-visible {
  outline: 3px solid rgba(5, 5, 5, .34);
  outline-offset: 3px;
}

body.waitlist-open {
  width: 100%;
  overflow: hidden;
}

@keyframes waitlistSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 899px) {
  .waitlist-modal {
    --waitlist-modal-max-height: calc(100dvh - 32px);
    align-items: flex-start;
    padding: 16px;
  }

  .waitlist-modal__dialog {
    width: min(640px, calc(100vw - 32px));
    border-radius: 24px;
  }

  .waitlist-modal__layout {
    grid-template-columns: 1fr;
  }

  .waitlist-modal__brand {
    display: none;
    gap: 14px;
    padding: 24px 70px 22px 24px;
  }

  .waitlist-modal__brand h2 {
    max-width: 520px;
    font-size: clamp(1.65rem, 4.5vw, 2.3rem);
  }

  .waitlist-modal__brand p {
    max-width: 520px;
    font-size: .92rem;
  }

  .waitlist-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .waitlist-benefits li {
    align-items: flex-start;
    font-size: .82rem;
  }

  .waitlist-modal__form-panel {
    padding: 26px;
    min-height: 0;
    overflow: hidden;
  }

  .waitlist-modal__head {
    max-width: none;
    padding-right: 26px;
  }
}

@media (max-width: 560px) {
  .waitlist-modal {
    --waitlist-modal-max-height: calc(100dvh - 24px);
    align-items: flex-start;
    padding: 12px;
  }

  .waitlist-modal__dialog {
    width: calc(100vw - 24px);
    border-radius: 22px;
  }

  .waitlist-modal__brand {
    display: none;
  }

  .waitlist-modal__form-panel {
    padding: 24px 16px 18px;
  }

  .waitlist-modal__scroll-area {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    scrollbar-gutter: auto;
  }

  .waitlist-modal__scroll-area::-webkit-scrollbar {
    width: 0;
  }

  .waitlist-modal__head {
    padding-right: 48px;
  }

  .waitlist-modal__head h2,
  .waitlist-success h2 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  .waitlist-form {
    gap: 13px;
    margin-top: 20px;
  }

  .waitlist-modal__close {
    top: 12px;
    right: 12px;
  }

  .waitlist-field input,
  .waitlist-phone {
    min-height: 50px;
    border-radius: 15px;
  }

  .waitlist-submit,
  .waitlist-success__done {
    min-height: 52px;
  }
}

@media (max-width: 374px) {
  .waitlist-modal__form-panel {
    padding-inline: 14px;
  }

  .waitlist-modal__head {
    padding-right: 46px;
  }
}

@media (max-height: 720px) and (min-width: 900px) {
  .waitlist-modal__brand,
  .waitlist-modal__form-panel {
    padding-block: 28px;
  }

  .waitlist-form {
    gap: 12px;
    margin-top: 18px;
  }

  .waitlist-modal__brand {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-modal,
  .waitlist-modal__dialog,
  .waitlist-modal__close,
  .waitlist-submit,
  .waitlist-success__done {
    transition: none;
  }

  .waitlist-submit__spinner {
    animation-duration: 1.4s;
  }
}
