.beta-launch-modal-open {
  overflow: hidden;
}

.beta-launch-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 19, 14, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.beta-launch-modal__panel {
  width: min(100%, 460px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: #ffffff;
  color: #12281f;
  box-shadow: 0 28px 80px rgba(7, 19, 14, 0.28);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.beta-launch-modal.is-open .beta-launch-modal__panel {
  transform: translateY(0) scale(1);
}

.beta-launch-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 26px 0;
}

.beta-launch-modal__eyebrow {
  margin: 0 0 8px;
  color: #2d7a4c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-launch-modal__title {
  margin: 0;
  color: #12281f;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.beta-launch-modal__close {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(18, 40, 31, 0.12);
  border-radius: 999px;
  background: rgba(244, 245, 238, 0.9);
  color: #12281f;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.beta-launch-modal__body {
  display: grid;
  gap: 18px;
  padding: 20px 26px 26px;
}

.beta-launch-modal__body p {
  margin: 0;
  color: #526157;
  font-size: 1rem;
  line-height: 1.6;
}

.beta-launch-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.beta-launch-modal__primary,
.beta-launch-modal__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
}

.beta-launch-modal__primary {
  background: linear-gradient(135deg, #f6b726 0%, #d99c17 100%);
  color: #12281f;
  box-shadow: 0 12px 24px rgba(194, 139, 24, 0.28);
}

.beta-launch-modal__secondary {
  border: 1px solid rgba(18, 40, 31, 0.14);
  background: #ffffff;
  color: #2d7a4c;
  cursor: pointer;
  font: inherit;
}

.beta-launch-modal__primary:focus-visible,
.beta-launch-modal__secondary:focus-visible,
.beta-launch-modal__close:focus-visible {
  outline: 3px solid rgba(45, 122, 76, 0.34);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .beta-launch-modal {
    align-items: end;
    padding: 14px;
  }

  .beta-launch-modal__panel {
    border-radius: 22px;
  }

  .beta-launch-modal__header {
    padding: 22px 20px 0;
  }

  .beta-launch-modal__body {
    padding: 18px 20px 22px;
  }

  .beta-launch-modal__actions {
    display: grid;
  }

  .beta-launch-modal__primary,
  .beta-launch-modal__secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-launch-modal,
  .beta-launch-modal__panel {
    transition: none;
  }
}
