/* Newsletter Popup Plugin – popup.css */
:root {
  --nlp-ink: #1a1714;
  --nlp-cream: #f5f0e8;
  --nlp-warm: #c8a97e;
  --nlp-warm-light: #e8d9c3;
  --nlp-muted: #7a6e62;
  --nlp-white: #fefcf9;
  --nlp-success: #4a7c59;
}

/* ─── OVERLAY ─── */
#nlp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,.55);
  backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
#nlp-overlay.nlp-active {
  opacity: 1;
  visibility: visible;
}

/* ─── POPUP ─── */
#nlp-popup {
  position: relative;
  background: var(--nlp-white);
  max-width: 780px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 32px 80px rgba(26,23,20,.25), 0 0 0 1px rgba(200,169,126,.2);
}
#nlp-overlay.nlp-active #nlp-popup {
  transform: translateY(0) scale(1);
}

/* Close button */
.nlp-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--nlp-muted);
  font-size: 1.1rem;
  transition: color .2s, transform .2s;
  z-index: 10;
  background: none; border: none;
  font-family: inherit;
}
.nlp-close:hover { color: var(--nlp-ink); transform: rotate(90deg); }

/* ─── LEFT VISUAL PANEL ─── */
.nlp-visual {
  background: var(--nlp-ink);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.nlp-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,126,.2);
}
.nlp-visual::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,126,.15);
}
.nlp-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nlp-warm);
  border: 1px solid rgba(200,169,126,.4);
  padding: .4rem .8rem;
  width: fit-content;
  font-family: 'DM Sans', sans-serif;
}
.nlp-badge span { font-size: .65rem; opacity: .7; }
.nlp-visual-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--nlp-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 1.25rem 0 1rem;
}
.nlp-visual-text h2 em { font-style: italic; color: var(--nlp-warm); }
.nlp-visual-text p {
  font-size: .85rem;
  color: rgba(254,252,249,.55);
  line-height: 1.65;
  font-family: 'DM Sans', sans-serif;
}
.nlp-gift {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(200,169,126,.1);
  border: 1px solid rgba(200,169,126,.25);
  padding: .9rem 1rem;
  position: relative;
  z-index: 1;
}
.nlp-gift-icon { font-size: 1.5rem; flex-shrink: 0; }
.nlp-gift-text {
  font-size: .8rem;
  color: var(--nlp-warm-light);
  line-height: 1.45;
  font-family: 'DM Sans', sans-serif;
}
.nlp-gift-text strong {
  display: block;
  color: var(--nlp-warm);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

/* ─── RIGHT FORM PANEL ─── */
.nlp-form-panel {
  padding: 2.5rem 2.5rem 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.nlp-eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nlp-warm);
  margin-bottom: .75rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-form-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
  color: var(--nlp-ink);
}
.nlp-form-sub {
  font-size: .82rem;
  color: var(--nlp-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-field { margin-bottom: .85rem; }
.nlp-field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nlp-muted);
  margin-bottom: .4rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-field input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--nlp-warm-light);
  background: var(--nlp-cream);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  color: var(--nlp-ink);
  outline: none;
  transition: border-color .2s, background .2s;
  border-radius: 0;
}
.nlp-field input:focus { border-color: var(--nlp-warm); background: var(--nlp-white); }
.nlp-field input::placeholder { color: #b0a899; }
.nlp-field input.nlp-invalid { border-color: #c0392b; }
.nlp-field-error { font-size: .72rem; color: #c0392b; margin-top: .3rem; font-family: 'DM Sans', sans-serif; }

.nlp-submit {
  width: 100%;
  padding: .85rem;
  background: var(--nlp-ink);
  color: var(--nlp-white);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .5rem;
  transition: background .2s, transform .15s;
  border-radius: 0;
}
.nlp-submit:hover { background: #2d2926; }
.nlp-submit:active { transform: scale(.99); }
.nlp-submit:disabled { opacity: .6; cursor: default; }

.nlp-privacy {
  font-size: .72rem;
  color: #b0a899;
  margin-top: .9rem;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
}
.nlp-privacy a { color: var(--nlp-warm); text-decoration: none; }

/* ─── SUCCESS (popup) ─── */
.nlp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2.5rem;
  gap: 1.25rem;
}
.nlp-success.nlp-visible { display: flex; }
.nlp-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(74,124,89,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--nlp-success);
}
.nlp-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--nlp-ink);
}
.nlp-success p { font-size: .85rem; color: var(--nlp-muted); line-height: 1.65; max-width: 320px; font-family: 'DM Sans', sans-serif; }
.nlp-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--nlp-ink);
  color: var(--nlp-white);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .2s;
  margin-top: .5rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-dl-btn:hover { opacity: .8; color: var(--nlp-white); }

/* ─── DEDICATED LANDING PAGE ─── */
#nlp-signup-page {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: var(--nlp-ink);
  color: var(--nlp-white);
  overflow-y: auto;
}
#nlp-signup-page::before {
  content: '';
  position: fixed;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,126,.1);
  pointer-events: none;
}
#nlp-signup-page::after {
  content: '';
  position: fixed;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,126,.08);
  pointer-events: none;
}
.nlp-page-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}
.nlp-page-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nlp-warm);
  border: 1px solid rgba(200,169,126,.3);
  padding: .4rem .8rem;
  margin-bottom: 2.5rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-page-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nlp-warm);
  animation: nlp-pulse 2s ease-in-out infinite;
}
@keyframes nlp-pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(.8); }
}
#nlp-signup-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  color: var(--nlp-white);
}
#nlp-signup-page h1 em { font-style: italic; color: var(--nlp-warm); }
.nlp-page-sub {
  font-size: 1rem;
  color: rgba(254,252,249,.6);
  line-height: 1.65;
  margin-bottom: 3rem;
  max-width: 480px;
  font-family: 'DM Sans', sans-serif;
}
.nlp-page-gift {
  background: rgba(200,169,126,.08);
  border: 1px solid rgba(200,169,126,.2);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.nlp-page-gift-icon { font-size: 2rem; flex-shrink: 0; margin-top: .1rem; }
.nlp-page-gift-copy strong {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nlp-warm);
  margin-bottom: .4rem;
  font-family: 'DM Sans', sans-serif;
}
.nlp-page-gift-copy p { font-size: .88rem; color: rgba(254,252,249,.65); line-height: 1.55; font-family: 'DM Sans', sans-serif; }

.nlp-page-form { display: flex; flex-direction: column; gap: 1rem; }
.nlp-page-form .nlp-field label { color: rgba(254,252,249,.5); }
.nlp-page-form .nlp-field input {
  background: rgba(254,252,249,.05);
  border-color: rgba(200,169,126,.2);
  color: var(--nlp-white);
}
.nlp-page-form .nlp-field input:focus {
  border-color: var(--nlp-warm);
  background: rgba(254,252,249,.08);
}
.nlp-page-form .nlp-field input::placeholder { color: rgba(254,252,249,.2); }

.nlp-page-submit {
  padding: 1rem;
  background: var(--nlp-warm);
  color: var(--nlp-ink);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  margin-top: .25rem;
  border-radius: 0;
}
.nlp-page-submit:hover { background: var(--nlp-warm-light); }
.nlp-page-submit:active { transform: scale(.99); }
.nlp-page-submit:disabled { opacity: .6; cursor: default; }

.nlp-page-privacy {
  font-size: .72rem;
  color: rgba(254,252,249,.3);
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
}
.nlp-page-privacy a { color: var(--nlp-warm); text-decoration: none; }

.nlp-dates-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(200,169,126,.15);
  font-size: .75rem;
  color: rgba(254,252,249,.3);
  letter-spacing: .06em;
  font-family: 'DM Sans', sans-serif;
}
.nlp-dates-bar span { color: rgba(254,252,249,.5); }

/* Page success */
.nlp-page-success { display: none; text-align: center; padding: 4rem 2rem; }
.nlp-page-success.nlp-visible { display: block; }
.nlp-page-success h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: .75rem;
  color: var(--nlp-white);
}
.nlp-page-success p { color: rgba(254,252,249,.6); margin-bottom: 2rem; line-height: 1.65; font-family: 'DM Sans', sans-serif; }
.nlp-page-dl {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  background: var(--nlp-warm);
  color: var(--nlp-ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .2s;
  font-family: 'DM Sans', sans-serif;
}
.nlp-page-dl:hover { opacity: .85; color: var(--nlp-ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  #nlp-popup { grid-template-columns: 1fr; }
  .nlp-visual { min-height: auto; padding: 2rem; }
  .nlp-visual-text h2 { font-size: 2rem; }
  .nlp-form-panel { padding: 2rem; }
}
