/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER SIGNUP — "The Founder's Edge"
   Shared by index.html and the guide. Brand navy + amber.
   Drop-in MailerLite form: paste your form action URL where marked.
   ═══════════════════════════════════════════════════════════════ */

.newsletter {
  background: var(--navy);
  color: #f5f5f7;
  padding: clamp(64px, 11vh, 130px) 0;
}
.newsletter .nl-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter, clamp(24px, 6vw, 96px));
  text-align: center;
}
.newsletter .eyebrow { color: var(--amber); }
.newsletter h2 {
  color: #fff;
  margin-top: 16px;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.newsletter h2 em { font-style: italic; font-weight: 500; color: var(--amber); }
.newsletter .nl-sub {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: rgba(245,245,247,0.78);
  font-weight: 400;
}

/* form */
.newsletter form {
  margin: 40px auto 0;
  display: flex;
  gap: 12px;
  max-width: 520px;
  width: 100%;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 17px 20px;
  font-size: 16px;
  font-family: inherit;
  color: #1d1d1f;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.newsletter input[type="email"]::placeholder { color: #8a8a90; }
.newsletter input[type="email"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--amber);
}
.newsletter button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 17px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #1d1d1f;
  background: var(--amber);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}
.newsletter button[type="submit"]:hover { transform: translateY(-2px); background: #d8924a; }
@media (max-width: 540px) {
  .newsletter form { flex-direction: column; }
  .newsletter button[type="submit"] { width: 100%; }
}

.newsletter .nl-fine {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(245,245,247,0.5);
  font-weight: 500;
}

/* tiny success / status note (optional, shown by MailerLite or your JS) */
.newsletter .nl-status { margin-top: 14px; font-size: 14px; color: var(--amber); min-height: 1em; }

@media print { .newsletter { display: none !important; } }

/* ═══════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED POPUP — same offer, appears once per visitor
   ═══════════════════════════════════════════════════════════════ */
.nlpop-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(8,11,20,0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.nlpop-overlay.is-open { opacity: 1; pointer-events: auto; }

.nlpop {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--navy);
  color: #f5f5f7;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 360ms cubic-bezier(.2,.9,.25,1);
}
.nlpop-overlay.is-open .nlpop { transform: translateY(0) scale(1); }

.nlpop .nlpop-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(245,245,247,0.8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.nlpop .nlpop-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

.nlpop .eyebrow { color: var(--amber); }
.nlpop h3 {
  color: #fff;
  margin: 14px 0 0;
  font-size: clamp(26px, 4.4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.nlpop h3 em { font-style: italic; font-weight: 500; color: var(--amber); }
.nlpop p {
  margin: 16px auto 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(245,245,247,0.78);
}
.nlpop form { margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.nlpop input[type="email"] {
  appearance: none; border: 0; border-radius: 12px;
  padding: 16px 18px; font-size: 16px; font-family: inherit;
  color: #1d1d1f; background: #fff;
}
.nlpop input[type="email"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber); }
.nlpop button[type="submit"] {
  appearance: none; border: 0; border-radius: 12px;
  padding: 16px 18px; font-size: 16px; font-weight: 600; font-family: inherit;
  color: #1d1d1f; background: var(--amber); cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.nlpop button[type="submit"]:hover { transform: translateY(-2px); background: #d8924a; }
.nlpop .nlpop-fine {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(245,245,247,0.5);
}
.nlpop .nlpop-fine button {
  background: none; border: 0; color: rgba(245,245,247,0.6);
  font: inherit; text-decoration: underline; cursor: pointer; padding: 0;
}
.nlpop .nl-status { margin-top: 14px; font-size: 14px; color: var(--amber); min-height: 1em; }

@media print { .nlpop-overlay { display: none !important; } }
