/* ==========================================================================
   Amex offer popups — entry (4s auto) and exit-intent
   Same fixed-overlay pattern as .playbook-popup (see popup.css) — lives
   outside .hero-scale-wrapper/.hero-stage so position:fixed isn't broken
   by the scaled/transformed page stage.
   ========================================================================== */

.amex-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.amex-popup.is-open {
  display: flex;
}

.amex-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(3px);
}

.amex-popup__card {
  position: relative;
  width: 92%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #14284a 0%, #0a1830 55%, #060f1e 100%);
  border: 1px solid rgba(217, 195, 138, 0.25);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: amexPopupIn 0.25s ease-out;
}

@keyframes amexPopupIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.amex-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.amex-popup__close:hover {
  color: #ffffff;
}

/* ---------- Entry popup's big number ---------- */
.amex-popup__bignum {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  background-image: linear-gradient(160deg, #c9a84c 10%, #e4be5b 50%, #c9a84c 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.amex-popup__title-sm {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
}

/* ---------- Exit popup's regular title ---------- */
.amex-popup__title {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  background-image: linear-gradient(160deg, #c9a84c 10%, #e4be5b 50%, #c9a84c 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.amex-popup__body {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.amex-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  background-image: linear-gradient(
    200.59deg,
    rgb(208, 195, 161) 9.28%,
    rgb(217, 195, 138) 16.8%,
    rgb(199, 195, 187) 30.14%,
    rgb(173, 147, 81) 47.57%,
    rgb(139, 111, 37) 78.34%
  );
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.amex-popup__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.amex-popup__btn span {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.amex-popup__fineprint {
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .amex-popup__card {
    padding: 30px 22px 24px;
  }
  .amex-popup__bignum {
    font-size: 42px;
  }
  .amex-popup__title {
    font-size: 22px;
  }
}
