/* Email signup popup (inc/signup-popup.php). Sits just below the age gate. */
.ps-nlp {
  --n-ink: #0E1220; --n-ink-2: #4A5064; --n-ink-3: #7A8093; --n-line: #E6E8EE;
  --n-brand: #2B45E0; --n-tint: #F3F5FF; --n-mint: #C9F7DD;
  position: fixed; inset: 0; z-index: 2147482000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(14, 18, 32, .5);
  font-family: var(--ps-font-body, "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--n-ink); -webkit-font-smoothing: antialiased;
  animation: ps-nlp-fade .25s ease-out;
}
.ps-nlp[hidden], .ps-nlp [hidden] { display: none !important; }
.ps-nlp *, .ps-nlp *::before, .ps-nlp *::after { box-sizing: border-box; }
html.ps-nlp-open, html.ps-nlp-open body { overflow: hidden; }

.ps-nlp__card {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 24px; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(14, 18, 32, .45);
  animation: ps-nlp-rise .4s cubic-bezier(.2, .9, .25, 1.2);
}

/* Gradient header */
.ps-nlp__top {
  position: relative; overflow: hidden; padding: 30px 24px 30px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(140deg, #2B45E0 0%, #4B3BEA 55%, #7B4CF6 100%);
}
.ps-nlp__top::before, .ps-nlp__top::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.ps-nlp__top::before { width: 220px; height: 220px; left: -90px; bottom: -120px; }
.ps-nlp__top::after { width: 140px; height: 140px; right: -40px; top: -50px; }
.ps-nlp__pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.ps-nlp__pill i { width: 7px; height: 7px; border-radius: 9px; background: #7CF2B0; box-shadow: 0 0 0 4px rgba(124,242,176,.25); animation: ps-nlp-pulse 1.8s infinite; }
.ps-nlp__head {
  position: relative; margin: 16px 0 8px; padding: 0; color: #fff; text-transform: none;
  font-family: var(--ps-font-display, "Switzer", "DM Sans", sans-serif); font-weight: 600;
  font-size: 34px; line-height: 1.2; letter-spacing: -.02em;
}
.ps-nlp__head--done { font-size: 40px; }
.ps-nlp__mark { position: relative; z-index: 0; display: inline-block; padding: 0 10px; color: var(--n-ink); transform: rotate(-2deg); }
.ps-nlp__mark::before { content: ""; position: absolute; inset: 4px -2px 0; z-index: -1; background: var(--n-mint); border-radius: 8px; transform: skewX(-8deg); }
.ps-nlp__sub { position: relative; margin: 0; font-size: 14.5px; line-height: 1.5; opacity: .9; color: #fff; }

.ps-nlp__x {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.ps-nlp__x:hover, .ps-nlp__x:focus-visible { background: rgba(255,255,255,.3); }

/* Body */
.ps-nlp__body { padding: 22px 26px 20px; }
.ps-nlp__perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; text-align: left; }
.ps-nlp__perks li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--n-ink-2); }
.ps-nlp__perks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: var(--n-tint); color: var(--n-brand); }
.ps-nlp__form { margin: 0; }
.ps-nlp__input {
  display: block; width: 100%; height: 52px; margin: 0 0 10px; padding: 0 16px;
  border: 1.5px solid #D5D8E0; border-radius: 14px; background: #fff;
  font: 16px var(--ps-font-body, "DM Sans", sans-serif); color: var(--n-ink);
}
.ps-nlp__input:focus { outline: none; border-color: var(--n-brand); box-shadow: 0 0 0 4px rgba(43,69,224,.14); }
.ps-nlp__btn {
  position: relative; overflow: hidden; display: block; width: 100%; height: 54px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  font: 600 16px var(--ps-font-body, "DM Sans", sans-serif); letter-spacing: 0; text-transform: none;
  background: linear-gradient(140deg, #2B45E0, #6A4CF5); box-shadow: 0 10px 24px -10px rgba(43,69,224,.8);
  transition: transform .15s;
}
.ps-nlp__btn:hover { transform: translateY(-1px); color: #fff; }
.ps-nlp__btn[disabled] { opacity: .7; cursor: wait; }
.ps-nlp__btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: ps-nlp-shine 3.2s ease-in-out infinite; }
.ps-nlp__err { margin: 10px 0 0; font-size: 13.5px; color: #B42318; }
.ps-nlp__fine { margin: 12px auto 0; max-width: 340px; font-size: 11.5px; line-height: 1.5; color: var(--n-ink-3); }
.ps-nlp__fine a { color: var(--n-ink-2); text-decoration: underline; }
.ps-nlp__no {
  display: inline-block; margin-top: 8px; padding: 4px; border: 0; background: none; cursor: pointer;
  font: 13px var(--ps-font-body, "DM Sans", sans-serif); color: var(--n-ink-3); text-decoration: underline; text-underline-offset: 3px;
}
.ps-nlp__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ps-nlp .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Success */
.ps-nlp__ticket { margin: 4px 0 18px; padding: 16px; border: 2px dashed #9FB0FF; border-radius: 16px; background: var(--n-tint); }
.ps-nlp__ticket small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--n-ink-3); font-weight: 600; }
.ps-nlp__ticket strong { display: block; margin-top: 4px; font-family: var(--ps-font-display, "Switzer", "DM Sans", sans-serif); font-size: 26px; font-weight: 600; color: var(--n-brand); }
.ps-nlp__lede { margin: 0 auto 18px; max-width: 330px; font-size: 15px; line-height: 1.55; color: var(--n-ink-2); }

@keyframes ps-nlp-fade { from { opacity: 0; } }
@keyframes ps-nlp-rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes ps-nlp-pulse { 50% { box-shadow: 0 0 0 7px rgba(124,242,176,0); } }
@keyframes ps-nlp-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .ps-nlp, .ps-nlp * { animation: none !important; } }
@media (max-width: 420px) {
  .ps-nlp__top { padding: 26px 20px 26px; }
  .ps-nlp__head { font-size: 30px; }
  .ps-nlp__body { padding: 20px 20px 18px; }
}
