/* Learn exit-intent / end-of-article offer — additive only */

.nda-exit-root[hidden] {
  display: none !important;
}

.nda-exit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 12, 24, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.nda-exit-dialog {
  position: relative;
  width: min(440px, 100%);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.14) 0%, var(--navy-mid) 55%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nda-exit-dialog h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
  color: var(--white);
}

.nda-exit-dialog p {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.nda-exit-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nda-exit-close:hover {
  border-color: var(--border-hover);
}

.nda-exit-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nda-exit-cta:hover {
  background: var(--gold-light);
}

/* Mobile bottom sheet — compact, not full-screen */
.nda-exit-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  max-height: 42vh;
  overflow: auto;
}

.nda-exit-sheet-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-right: 2.25rem;
}

.nda-exit-sheet h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  color: var(--white);
}

.nda-exit-sheet p {
  color: var(--white-dim);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.nda-exit-sheet .nda-exit-close {
  top: 0;
  right: 0;
}

.nda-exit-sheet .nda-exit-cta {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

body.nda-exit-open {
  overflow: hidden;
}

body.nda-exit-sheet-open {
  /* Keep page scrollable behind compact sheet */
  padding-bottom: 0;
}
