:root {
  --nlgp-ink: #081014;
  --nlgp-navy: #0e1c24;
  --nlgp-blue: #004466;
  --nlgp-turquoise: #00afb5;
  --nlgp-muted: #53666d;
  --nlgp-line: #aebfc2;
}

body.nlgp-open {
  overflow: hidden;
}

.nlgp-overlay,
.nlgp-overlay * {
  box-sizing: border-box;
}

.nlgp-overlay[hidden],
.nlgp-dialog [hidden] {
  display: none !important;
}

.nlgp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 20, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: nlgp-fade 180ms ease-out both;
}

.nlgp-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  width: min(1050px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  color: var(--nlgp-ink);
  background: #fff;
  border-top: 6px solid var(--nlgp-turquoise);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(2, 12, 17, 0.36);
  font-family: "Mona Sans", Mona, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: nlgp-rise 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nlgp-cover {
  min-height: 650px;
  overflow: hidden;
  background: var(--nlgp-navy);
}

.nlgp-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.nlgp-content {
  align-self: center;
  padding: 42px 50px 38px;
}

.nlgp-kicker {
  margin: 0 0 12px;
  color: var(--nlgp-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nlgp-content h2 {
  max-width: 500px;
  margin: 0 0 14px;
  color: var(--nlgp-navy);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.nlgp-content h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 6px;
  margin-top: 12px;
  background: var(--nlgp-turquoise);
  border-radius: 50%;
  transform: rotate(-1.5deg);
}

.nlgp-content > p:not(.nlgp-kicker) {
  max-width: 530px;
  margin: 0 0 22px;
  color: #31464d;
  font-size: 16px;
  line-height: 1.48;
}

.nlgp-form {
  display: grid;
  gap: 0;
}

.nlgp-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.nlgp-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  color: var(--nlgp-navy);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
}

.nlgp-field small {
  color: #66777c;
  font-size: 0.9em;
  font-weight: 500;
}

.nlgp-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  color: var(--nlgp-ink);
  background: #fff;
  border: 1px solid var(--nlgp-line);
  border-radius: 11px;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.nlgp-field input::placeholder {
  color: #66777c;
  opacity: 1;
}

.nlgp-field input:focus {
  border-color: var(--nlgp-blue);
  box-shadow: 0 0 0 3px rgba(0, 175, 181, 0.22);
}

.nlgp-field input[aria-invalid="true"] {
  border-color: #9c2626;
  box-shadow: 0 0 0 3px rgba(156, 38, 38, 0.12);
}

.nlgp-email-field {
  margin-top: 12px;
}

.nlgp-submit,
.nlgp-download,
.nlgp-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 14px 0 0;
  padding: 0 22px;
  color: #fff;
  background: var(--nlgp-navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.nlgp-submit:hover,
.nlgp-download:hover,
.nlgp-secondary:hover {
  color: #fff;
  background: var(--nlgp-blue);
  transform: translateY(-1px);
}

.nlgp-submit:active,
.nlgp-download:active,
.nlgp-secondary:active {
  transform: translateY(1px);
}

.nlgp-submit:focus-visible,
.nlgp-download:focus-visible,
.nlgp-secondary:focus-visible,
.nlgp-close:focus-visible,
.nlgp-consent input:focus-visible {
  outline: 3px solid var(--nlgp-turquoise);
  outline-offset: 3px;
}

.nlgp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.nlgp-submit.is-loading span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nlgp-spin 650ms linear infinite;
}

.nlgp-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 14px;
  color: var(--nlgp-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.nlgp-consent input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--nlgp-blue);
}

.nlgp-error {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  color: #751c1c !important;
  background: #fff1f1;
  border-left: 3px solid #9c2626;
  border-radius: 6px;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.nlgp-privacy {
  margin: 10px 0 0 !important;
  color: #5d6e73 !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

.nlgp-privacy a {
  color: var(--nlgp-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nlgp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0;
  padding: 0 0 3px;
  color: var(--nlgp-navy);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(14, 28, 36, 0.13);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(8, 16, 20, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.nlgp-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.nlgp-success h2 {
  font-size: clamp(34px, 4vw, 46px);
}

.nlgp-download[hidden] {
  display: none;
}

.nlgp-secondary {
  width: auto;
  margin-top: 4px;
  background: var(--nlgp-blue);
}

@keyframes nlgp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nlgp-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nlgp-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .nlgp-overlay {
    align-items: end;
    padding: 0;
    background: rgba(8, 16, 20, 0.54);
  }

  .nlgp-dialog {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    border-top-width: 5px;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 54px rgba(2, 12, 17, 0.28);
  }

  .nlgp-cover {
    height: 118px;
    min-height: 0;
  }

  .nlgp-cover img {
    object-fit: cover;
    object-position: center 24%;
  }

  .nlgp-content {
    padding: 24px 22px max(24px, env(safe-area-inset-bottom));
  }

  .nlgp-kicker {
    margin-bottom: 9px;
    font-size: 10.5px;
  }

  .nlgp-content h2,
  .nlgp-success h2 {
    margin-bottom: 11px;
    font-size: clamp(28px, 8.6vw, 34px);
    line-height: 1.02;
  }

  .nlgp-content h2::after {
    width: 65px;
    height: 5px;
    margin-top: 9px;
  }

  .nlgp-content > p:not(.nlgp-kicker) {
    margin-bottom: 17px;
    font-size: 15px;
    line-height: 1.42;
  }

  .nlgp-name-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nlgp-email-field {
    margin-top: 10px;
  }

  .nlgp-field input {
    height: 48px;
    font-size: 16px;
  }

  .nlgp-submit {
    min-height: 50px;
    margin-top: 12px;
  }

  .nlgp-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-height: 700px) and (min-width: 768px) {
  .nlgp-dialog {
    max-height: calc(100dvh - 28px);
  }

  .nlgp-cover {
    min-height: 560px;
  }

  .nlgp-content {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .nlgp-content h2 {
    font-size: 34px;
  }

  .nlgp-content > p:not(.nlgp-kicker) {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nlgp-overlay,
  .nlgp-dialog,
  .nlgp-submit,
  .nlgp-secondary,
  .nlgp-submit.is-loading span::after {
    animation: none !important;
    transition: none !important;
  }
}
