html.ns-nl-open { overflow: hidden; }

.ns-nl-dialog {
  width: min(730px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #241527;
  box-shadow: 0 18px 78px #180b22a3;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
  line-height: 1.52;
  overscroll-behavior: contain;
}

.ns-nl-dialog *, .ns-nl-dialog *::before, .ns-nl-dialog *::after { box-sizing: border-box; }
.ns-nl-dialog::backdrop { background: #180a23b8; }
.ns-nl-panel { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.25fr); }
.ns-nl-art {
  min-height: 100%;
  padding: 1.25rem;
  background: linear-gradient(158deg, #281532 5%, #482b5890 53%, #2c1842a7), url('/assets/neurospan-home-hero.webp') 51% center / cover #342043;
  color: #fff;
}
.ns-nl-art span { display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; font-weight: 760; }
.ns-nl-art img { border-radius: 6px; }
.ns-nl-content { padding: 2.35rem 2rem 1.9rem; }
.ns-nl-dialog h2 { max-width: 20ch; margin: 0; color: #241527; font-size: clamp(1.65rem, 4.5vw, 2.45rem); line-height: 1.06; letter-spacing: -.045em; }
.ns-nl-dialog #ns-nl-lead { margin: .75rem 0 1.05rem; color: #594961; font-size: .98rem; }
.ns-nl-dialog .ns-nl-close {
  position: absolute;
  z-index: 1;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #e5d2ea;
  border-radius: 50%;
  background: #fff;
  color: #552469;
  font: 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.ns-nl-dialog .ns-nl-close:hover { background: #f7f1f9; }
.ns-nl-dialog .ns-nl-form { display: grid; gap: .52rem; margin: 0; }
.ns-nl-dialog .ns-nl-form label { font-size: .92rem; font-weight: 700; }
.ns-nl-dialog .ns-nl-form input[type='email'] { width: 100%; min-height: 48px; margin: 0; padding: .55rem .75rem; border: 1px solid #c7adce; border-radius: 7px; background: #fff; color: #241527; font: inherit; font-size: 1rem; }
.ns-nl-dialog .ns-nl-form button { min-height: 48px; margin: .15rem 0 0; padding: .55rem .75rem; border: 1px solid transparent; border-radius: 7px; background: #74258d; color: #fff; font: inherit; font-weight: 730; cursor: pointer; }
.ns-nl-dialog .ns-nl-form button:hover { background: #552067; }
.ns-nl-dialog :focus-visible { outline: 2px solid #8425a3; outline-offset: 3px; }
.ns-nl-dialog .ns-nl-note, .ns-nl-dialog .ns-nl-status { margin: .65rem 0 0; color: #594961; font-size: .86rem; }
.ns-nl-dialog .ns-nl-status:empty { display: none; }
.ns-nl-dialog .ns-nl-fallback { display: inline-block; margin-top: .55rem; color: #74258d; text-underline-offset: .18em; }
.ns-nl-dialog [hidden] { display: none !important; }

@media (max-width: 610px) {
  .ns-nl-dialog { width: min(440px, calc(100% - 1.5rem)); }
  .ns-nl-panel { grid-template-columns: minmax(0, 1fr); }
  .ns-nl-art { min-height: 67px; padding: .95rem 1.1rem; background-position: center 48%; }
  .ns-nl-content { padding: 1.25rem 1.12rem 1.35rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .ns-nl-dialog[open] { animation: ns-nl-enter 340ms cubic-bezier(.2,.85,.25,1) both; }
  .ns-nl-dialog[open]::backdrop { animation: ns-nl-shade 250ms ease-out both; }
  @keyframes ns-nl-enter { from { opacity: .36; transform: translateY(11px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes ns-nl-shade { from { opacity: 0; } to { opacity: 1; } }
}
