:root {
  --maq-nl-ink: #171414;
  --maq-nl-muted: #675f61;
  --maq-nl-line: #e7dfe1;
  --maq-nl-blush: #f4dfe5;
  --maq-nl-blush-strong: #e6b8c4;
  --maq-nl-paper: #fffdfd;
}

.maq-nl,
.maq-nl-dialog { box-sizing: border-box; color: var(--maq-nl-ink); font: inherit; }
.maq-nl *,
.maq-nl-dialog * { box-sizing: border-box; }

.maq-nl--inline {
  margin: 2.2rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--maq-nl-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(230,184,196,.34), transparent 25%),
    var(--maq-nl-paper);
}

.maq-nl__content { max-width: 760px; }
.maq-nl--compact {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.maq-nl--compact .maq-nl__content { max-width: none; }
.maq-nl--compact .maq-nl__row { max-width: none; flex-direction: column; gap: .65rem; }
.maq-nl--compact .maq-nl__email,
.maq-nl--compact .maq-nl__submit { width: 100%; flex-basis: auto; }
.maq-nl--compact .maq-nl__email {
  border-color: #aaa0a3;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23,20,20,.04), 0 1px 2px rgba(23,20,20,.035);
}
.maq-nl--compact .maq-nl__email:hover { border-color: #817679; }
.maq-nl--compact .maq-nl__email:focus {
  border-color: var(--maq-nl-ink);
  box-shadow: 0 0 0 3px rgba(216,77,131,.14);
}
.maq-nl--compact .maq-nl__submit { justify-content: center; }
.maq-nl__eyebrow {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.maq-nl__title {
  margin: 0;
  max-width: 18ch;
  color: var(--maq-nl-ink);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.maq-nl__text {
  margin: 1rem 0 1.25rem;
  max-width: 60ch;
  color: var(--maq-nl-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.maq-nl__form { margin: 0; }
.maq-nl__row { display: flex; gap: .7rem; align-items: stretch; max-width: 690px; }
.maq-nl__email {
  min-width: 0;
  flex: 1 1 320px;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid #cfc5c7;
  border-radius: 999px;
  background: #fff;
  color: var(--maq-nl-ink);
  font: inherit;
  outline: none;
}
.maq-nl__email:focus { border-color: var(--maq-nl-ink); box-shadow: 0 0 0 3px rgba(23,20,20,.08); }
.maq-nl__submit {
  min-height: 50px;
  padding: .8rem 1.3rem;
  border: 1px solid var(--maq-nl-ink);
  border-radius: 999px;
  background: var(--maq-nl-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.maq-nl__submit:hover { transform: translateY(-1px); }
.maq-nl__submit:focus-visible { outline: 3px solid var(--maq-nl-blush-strong); outline-offset: 2px; }
.maq-nl__submit[disabled] { opacity: .62; cursor: wait; transform: none; }
.maq-nl__privacy {
  margin: .75rem 0 0;
  max-width: 68ch;
  color: #81787a;
  font-size: .76rem;
  line-height: 1.45;
}
.maq-nl__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.maq-nl__status { min-height: 1.35em; margin: .55rem 0 0; font-size: .86rem; font-weight: 600; }
.maq-nl__status[data-state="error"] { color: #9b2424; }
.maq-nl__status[data-state="success"] { color: #22633a; }
.maq-nl__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.maq-nl-lock { overflow: hidden; }
.maq-nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 14, 15, .42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.maq-nl-overlay.is-open { opacity: 1; }
.maq-nl-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  background: var(--maq-nl-paper);
  box-shadow: 0 28px 80px rgba(35, 22, 26, .22);
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}
.maq-nl-overlay.is-open .maq-nl-dialog { transform: translateY(0) scale(1); }
.maq-nl-dialog__accent {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 26px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.62), transparent 23%),
    linear-gradient(145deg, #f7e9ed 0%, #eac5cf 52%, #dcaab8 100%);
  color: var(--maq-nl-ink);
}
.maq-nl-dialog__accent span { font-size: .67rem; font-weight: 700; letter-spacing: .16em; }
.maq-nl-dialog__accent strong { margin-top: .35rem; max-width: 7ch; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: .98; letter-spacing: -.045em; }
.maq-nl-dialog__body { padding: clamp(28px, 5vw, 48px); align-self: center; }
.maq-nl-dialog .maq-nl__title { max-width: 13ch; font-size: clamp(2rem, 4vw, 3.15rem); }
.maq-nl-dialog .maq-nl__text { margin-bottom: 1.35rem; }
.maq-nl-dialog .maq-nl__row { flex-direction: column; gap: .55rem; }
.maq-nl-dialog .maq-nl__email,
.maq-nl-dialog .maq-nl__submit { width: 100%; flex-basis: auto; }
.maq-nl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(23,20,20,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--maq-nl-ink);
  font: 400 25px/1 sans-serif;
  cursor: pointer;
}
.maq-nl-close:hover { background: #fff; }
.maq-nl-close:focus-visible { outline: 3px solid var(--maq-nl-blush-strong); outline-offset: 2px; }

@media (max-width: 680px) {
  .maq-nl--inline { border-radius: 20px; }
  .maq-nl__row { flex-direction: column; gap: .55rem; }
  .maq-nl__email,
  .maq-nl__submit { width: 100%; flex-basis: auto; }
  .maq-nl-dialog { grid-template-columns: 1fr; border-radius: 24px; max-height: min(92vh, 720px); overflow-y: auto; }
  .maq-nl-dialog__accent { min-height: 112px; padding: 22px 24px; justify-content: center; }
  .maq-nl-dialog__accent strong { max-width: none; font-size: 1.7rem; }
  .maq-nl-dialog__body { padding: 28px 24px 30px; }
  .maq-nl-dialog .maq-nl__title { max-width: 14ch; font-size: clamp(2rem, 10vw, 2.75rem); }
  .maq-nl-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .maq-nl-overlay,
  .maq-nl-dialog,
  .maq-nl__submit { transition: none !important; transform: none !important; }
}
