/* Neuraserv Popups 1.0.0 */
.nsv-pop {
  --nsv-ink: #13302b;
  --nsv-muted: #4e625d;
  --nsv-cream: #faf8f3;
  --nsv-dark: #0e2f2c;
  --nsv-edu: #1c4c63;
  --nsv-biz: #2b5b3c;
  --nsv-lime: #b8e96c;
  --nsv-lime-ink: #16300f;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  font-family: inherit;
  line-height: 1.45;
}
.nsv-pop *, .nsv-pop *::before, .nsv-pop *::after { box-sizing: border-box; }
.nsv-pop::backdrop { background: rgba(3, 18, 16, .62); backdrop-filter: blur(2px); }

/* Fallback for browsers without <dialog>.showModal() */
.nsv-pop--fallback {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgba(3, 18, 16, .62), 0 30px 80px rgba(0, 0, 0, .45);
}

html.nsv-pop-lock, html.nsv-pop-lock body { overflow: hidden; }

.nsv-pop__inner { position: relative; padding: 38px 34px 28px; }

.nsv-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.nsv-pop__close:hover { background: rgba(127, 127, 127, .15); }

.nsv-pop__title { margin: 0 0 6px; padding-right: 36px; font-size: clamp(22px, 4.6vw, 30px); line-height: 1.15; font-weight: 700; color: inherit; }
.nsv-pop__sub { margin: 0 0 22px; font-size: 16px; }

.nsv-pop:focus { outline: none; }
.nsv-pop :focus-visible { outline: 3px solid #43d9f4; outline-offset: 3px; }

/* ---------- Audience ---------- */
.nsv-pop--audience { background: var(--nsv-cream); color: var(--nsv-ink); text-align: center; }
.nsv-pop--audience .nsv-pop__title { padding: 0 36px; }
.nsv-pop--audience .nsv-pop__sub { color: var(--nsv-muted); }

.nsv-pop__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nsv-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 16px 14px;
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease;
}
.nsv-choice:hover { transform: translateY(-2px); filter: brightness(1.12); }
.nsv-choice--edu { background: var(--nsv-edu); }
.nsv-choice--biz { background: var(--nsv-biz); }
.nsv-choice__label { font-size: 19px; font-weight: 700; }
.nsv-choice__sub { font-size: 14px; opacity: .9; }
.nsv-pop__note { margin: 20px 0 0; font-size: 14px; color: var(--nsv-muted); }

/* ---------- Pilot ---------- */
.nsv-pop--pilot { background: var(--nsv-dark); color: #fff; }
.nsv-pop--pilot .nsv-pop__close { color: #fff; }
.nsv-pop__body { margin: 14px 0 24px; color: #cdeee0; font-size: 17px; }
.nsv-pop__body p { margin: 0 0 14px; }
.nsv-pop__body p:last-child { margin-bottom: 0; }
.nsv-pop__body strong { color: var(--nsv-lime); font-size: 1.15em; }
.nsv-pop__cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--nsv-lime);
  color: var(--nsv-lime-ink) !important;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none !important;
  transition: filter .15s ease;
}
.nsv-pop__cta:hover { filter: brightness(1.07); }

/* ---------- Open animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .nsv-pop[open] { animation: nsv-pop-in .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes nsv-pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
}

@media (max-width: 520px) {
  .nsv-pop__inner { padding: 34px 20px 22px; }
  .nsv-pop__choices { grid-template-columns: 1fr; }
  .nsv-choice { min-height: 70px; }
  .nsv-pop__cta { display: block; text-align: center; }
}
