/* popup-newsletter.css — The Agentic CMO newsletter popup.
   Exit-intent capture on single posts only. Selectors prefixed .rbt-popup-.
   Site already loads Montserrat. Source: Claude Design 2026-06-09. */

.rbt-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 14, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.rbt-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}

.rbt-popup-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #171925;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 40px 38px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}
.rbt-popup-overlay.is-open .rbt-popup-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .rbt-popup-overlay,
  .rbt-popup-modal { transition: opacity 120ms ease; transform: none; }
}

/* Visually-hidden label */
.rbt-popup-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Close button */
.rbt-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #AEB2BE;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.rbt-popup-close:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.rbt-popup-close:focus-visible { outline: 2px solid #E93381; outline-offset: 2px; }
.rbt-popup-close svg { width: 20px; height: 20px; }

.rbt-popup-kicker {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E93381;
}

.rbt-popup-headline {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
}
.rbt-popup-subhead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.58;
  color: #C6CAD4;
  text-wrap: pretty;
}

.rbt-popup-form { display: flex; flex-direction: column; gap: 12px; }
.rbt-popup-field-wrap { display: flex; flex-direction: column; gap: 6px; }

.rbt-popup-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: #FFFFFF;
  background: #1E2130;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.rbt-popup-input::placeholder { color: #8A8F9C; }
.rbt-popup-input:focus {
  border-color: #E93381;
  box-shadow: 0 0 0 3px rgba(233, 51, 129, 0.22);
}
.rbt-popup-input--error {
  border-color: #F26D6D;
  box-shadow: 0 0 0 3px rgba(242, 109, 109, 0.18);
}

.rbt-popup-error {
  display: none;
  font-size: 12.5px;
  font-weight: 500;
  color: #F58A8A;
  text-align: left;
}
.rbt-popup-error.is-visible { display: block; }

.rbt-popup-submit {
  width: 100%;
  height: 54px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: #E93381;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease;
}
.rbt-popup-submit:hover { background: #9F1657; }
.rbt-popup-submit:active { transform: translateY(1px); }
.rbt-popup-submit:disabled { opacity: 0.6; cursor: default; }
.rbt-popup-submit:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.rbt-popup-microcopy {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #AEB2BE;
  text-align: center;
}

.rbt-popup-legal {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8A8F9C;
  text-align: center;
}
.rbt-popup-legal a {
  color: #AEB2BE;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rbt-popup-legal a:hover { color: #FFFFFF; }

.rbt-popup-decline-wrap { text-align: center; }
.rbt-popup-decline {
  display: inline-block;
  margin: 16px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #8A8F9C;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}
.rbt-popup-decline:hover { color: #C6CAD4; }
.rbt-popup-decline:focus-visible { outline: 2px solid #E93381; outline-offset: 2px; border-radius: 3px; }

/* Success state */
.rbt-popup-success { display: none; text-align: center; padding: 8px 0 4px; }
.rbt-popup-success.is-visible { display: block; }
.rbt-popup-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 138, 91, 0.16);
  color: #34C77B;
}
.rbt-popup-success-icon svg { width: 28px; height: 28px; }
.rbt-popup-success-title {
  margin: 0 0 8px;
  font-size: 21px; font-weight: 800; color: #FFFFFF;
  letter-spacing: -0.01em;
}
.rbt-popup-success-text {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: #C6CAD4;
}
.rbt-popup-form-wrap.is-hidden { display: none; }

@media (max-width: 520px) {
  .rbt-popup-modal { padding: 34px 24px 26px; }
  .rbt-popup-headline { font-size: 23px; }
}
