/* MCA — Newsletter subscription popup */

.nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 22, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: nl-fade 0.4s ease forwards;
}
@keyframes nl-fade { to { opacity: 1; } }

.nl-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #E3E8EA);
  border-radius: var(--r-lg, 24px);
  padding: 44px 40px 38px;
  box-shadow: 0 40px 100px -30px rgba(10, 22, 28, 0.5);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  animation: nl-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
@keyframes nl-pop { to { transform: translateY(0) scale(1); opacity: 1; } }

@media (max-width: 480px) {
  .nl-card { padding: 36px 26px 30px; border-radius: var(--r-md, 16px); }
}

.nl-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted, #5F6B73);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease;
}
.nl-close:hover { background: var(--surface, #F6F8F9); color: var(--ink, #000); }

.nl-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--teal, #00A5A1) 12%, transparent);
  color: var(--teal, #00A5A1);
  margin-bottom: 22px;
}

.nl-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal, #00A5A1);
  font-weight: 500;
  margin: 0 0 12px;
}

.nl-title {
  font-family: var(--font-head, sans-serif);
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink, #000);
  margin: 0 0 12px;
}

.nl-sub {
  font-family: var(--font-body, sans-serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted, #5F6B73);
  margin: 0 0 26px;
}

.nl-field { margin-bottom: 12px; }

.nl-input {
  width: 100%;
  font-family: var(--font-body, sans-serif);
  font-size: 15.5px;
  color: var(--ink, #000);
  background: var(--surface, #F6F8F9);
  border: 1px solid var(--border, #E3E8EA);
  border-radius: var(--r-sm, 8px);
  padding: 14px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
}
.nl-input::placeholder { color: color-mix(in oklab, var(--muted, #5F6B73) 80%, transparent); }
.nl-input:focus {
  border-color: var(--teal, #00A5A1);
  background: var(--bg, #fff);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal, #00A5A1) 16%, transparent);
}
.nl-input--error { border-color: #d9534f; }

.nl-submit {
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-head, sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--teal, #00A5A1);
  border: none;
  border-radius: var(--r-sm, 8px);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.18s ease, transform 0.12s ease;
}
.nl-submit:hover:not(:disabled) { filter: brightness(1.06); }
.nl-submit:active:not(:disabled) { transform: translateY(1px); }
.nl-submit:disabled { opacity: 0.65; cursor: default; }

.nl-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nl-spin 0.7s linear infinite;
}
@keyframes nl-spin { to { transform: rotate(360deg); } }

.nl-fineprint {
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #5F6B73);
  text-align: center;
  margin: 16px 0 0;
}

.nl-error {
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  color: #d9534f;
  margin: 8px 0 0;
}

/* success state */
.nl-success { text-align: center; padding: 8px 0 4px; }
.nl-success .nl-mark { margin: 0 auto 22px; }
.nl-success .nl-title { margin-bottom: 10px; }
