/* Beta signup modal — shared across all pages.
   Loaded on every page; the modal HTML is injected by beta-signup.js.
   Paired classes mirror the "Got a minute?" feedback modal styles so the
   look & feel is consistent. Scoped under .beta-overlay / .beta-modal. */

.beta-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 36, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.beta-overlay.active {
  display: flex;
}

.beta-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(14, 30, 37, 0.25);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  animation: beta-fadein 160ms ease-out;
}
@keyframes beta-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.beta-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #5b6470;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.beta-close:hover { color: #0b1324; }

.beta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b1324;
  margin: 0 0 6px;
}
.beta-subtitle {
  color: #5b6470;
  margin: 0 0 20px;
  font-size: 0.98rem;
}

.beta-label {
  display: block;
  font-weight: 700;
  color: #0b1324;
  font-size: 0.95rem;
  margin: 16px 0 8px;
}

.beta-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.beta-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
  font-weight: 600;
  color: #0b1324;
}
.beta-option:hover {
  border-color: #00bfff;
  background: rgba(0, 191, 255, 0.04);
}
.beta-option input[type="radio"] {
  accent-color: #00bfff;
  transform: scale(1.1);
  margin: 0;
}
.beta-option.selected {
  border-color: #00bfff;
  background: rgba(0, 191, 255, 0.08);
}

.beta-other-input {
  margin-top: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e7edf3;
  border-radius: 10px;
  font-size: 0.95rem;
}
.beta-other-input:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.12);
}

.beta-email-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  font-size: 1rem;
}
.beta-email-input:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.12);
}

.beta-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin: 6px 0 0;
  display: none;
}
.beta-error.active { display: block; }

.beta-overlay .beta-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.beta-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
  transition: filter 120ms ease, opacity 120ms ease;
}
.beta-btn-primary {
  background: #00bfff;
  color: #fff;
}
.beta-btn-primary:hover:not(:disabled) { filter: brightness(0.95); }
.beta-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.beta-btn-secondary {
  background: #fff;
  color: #0b1324;
  border: 1px solid #e7edf3;
}
.beta-btn-secondary:hover { background: #f7fbff; }

.beta-success {
  text-align: center;
  padding: 20px 0 8px;
}
.beta-success-icon {
  font-size: 2.4rem;
  color: #90be6d;
  margin-bottom: 10px;
}
.beta-success-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b1324;
  margin: 0 0 8px;
}
.beta-success-text {
  color: #5b6470;
  margin: 0 0 22px;
}

@media (max-width: 575.98px) {
  .beta-modal { padding: 24px 20px; }
  .beta-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .beta-modal { animation: none; }
}
