/* ─── Overlay ──────────────────────────────────────────────────────────────── */

#a2z-signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 280ms ease;
}

#a2z-signup-overlay.a2z-popup--visible {
  opacity: 1;
}

#a2z-signup-overlay.a2z-popup--hiding {
  opacity: 0;
  pointer-events: none;
}

/* ─── Card ─────────────────────────────────────────────────────────────────── */

.a2z-popup-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 32px 72px rgba(48, 213, 200, 0.12);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: scale(0.95) translateY(16px);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease;
}

.a2z-popup--visible .a2z-popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── Logo ─────────────────────────────────────────────────────────────────── */

.a2z-popup-logo {
  text-align: center;
  margin-bottom: 14px;
}

.a2z-popup-logo img {
  height: 40px;
  width: auto;
  display: inline-block;
}

/* ─── Sparkle + headline ───────────────────────────────────────────────────── */

.a2z-popup-sparkle {
  text-align: center;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.a2z-popup-headline {
  font-size: 26px;
  font-weight: 800;
  color: #30D5C8;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  line-height: 1.15;
  font-family: inherit;
}

.a2z-popup-sub {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.5;
  font-family: inherit;
}

/* ─── Trust badges ─────────────────────────────────────────────────────────── */

.a2z-popup-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.a2z-popup-badge {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  font-family: inherit;
}

/* ─── Google button (full-width in popup context) ──────────────────────────── */

.a2z-popup-google {
  width: 100%;
  margin-bottom: 16px;
}

/* ─── Divider ──────────────────────────────────────────────────────────────── */

.a2z-popup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.a2z-popup-divider::before,
.a2z-popup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.09);
}

.a2z-popup-divider span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
}

/* ─── Email input — no icon so reset the left padding ─────────────────────── */

.a2z-popup-email-input {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* ─── Error message ────────────────────────────────────────────────────────── */

.a2z-popup-error {
  font-size: 13px;
  color: #dc2626;
  text-align: center;
  margin: 8px 0 0;
  min-height: 0;
  font-weight: 500;
  line-height: 1.4;
  font-family: inherit;
  display: none;
}

.a2z-popup-error a {
  color: #30D5C8;
  font-weight: 600;
}

/* ─── Success state ────────────────────────────────────────────────────────── */

.a2z-popup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0 8px;
  text-align: center;
}

.a2z-popup-success-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}

.a2z-popup-success p {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  font-family: inherit;
}

.a2z-popup-success small {
  font-size: 13px;
  color: #6b7280;
  font-family: inherit;
  line-height: 1.4;
}

/* ─── Dismiss link ─────────────────────────────────────────────────────────── */

.a2z-popup-dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  line-height: 1.4;
  transition: color 150ms ease;
}

.a2z-popup-dismiss:hover {
  color: #6b7280;
  text-decoration: underline;
}

/* ─── Mobile: bottom-sheet slide-up ───────────────────────────────────────── */

@media (max-width: 540px) {
  #a2z-signup-overlay {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }

  .a2z-popup-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 28px 20px 24px;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .a2z-popup--visible .a2z-popup-card {
    transform: translateY(0);
    opacity: 1;
  }

  .a2z-popup-headline {
    font-size: 22px;
  }

  .a2z-popup-sub {
    font-size: 13px;
  }
}
