/* ==========================================================================
   Newsletter page (v3) - theme/assets/css/newsletter.css
   Visual style matches storefront.css (dark navy/gold, light theme support)
   Class prefix: nl3-
   ========================================================================== */

/* Navigation additions */
.nl3-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nl3-nav-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}

.nl3-nav-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

html[data-theme="light"] .nl3-nav-link {
  color: var(--gold);
}

html[data-theme="light"] .nl3-nav-link:hover {
  color: #8a5600;
}

/* Why section - 2x2 grid matching reference */
.nl3-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.nl3-why-card h3 {
  position: relative;
  padding-top: 14px;
}

.nl3-why-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

html[data-theme="light"] .nl3-why-card h3::before {
  background: var(--gold);
}

/* Schedule section badge & CTA */
.nl3-week-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 8px 18px;
  border: 1px solid rgba(222, 51, 40, .45);
  border-radius: 999px;
  background: rgba(222, 51, 40, .14);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: .03em;
}

.nl3-wk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  display: inline-block;
}

html[data-theme="light"] .nl3-week-label {
  border-color: rgba(238, 42, 30, .35);
  background: rgba(238, 42, 30, .08);
  color: #ee2a1e;
}

html[data-theme="light"] .nl3-wk-dot {
  background: #ee2a1e;
}

.nl3-sched-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.nl3-sched-cta .cta-btn,
.nl3-sched-cta .ghost-btn {
  font-size: 1.125rem;
  min-height: 52px;
  padding: 14px 28px;
}

/* Plans / Tiers upsell & overrides */
.nl3-upsell {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  transition: color .2s ease;
}

.nl3-upsell:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

html[data-theme="light"] .nl3-upsell {
  color: #9a6200;
  border-top-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .nl3-upsell:hover {
  color: #c47c00;
}

/* Free card: email box + "Join free" stacked under the list */
.nlp-plan-form {
  flex-direction: column !important;
  max-width: none;
  width: 100%;
  margin: 0;
}

.nlp-plan-form .fn-email,
.nlp-plan-form button {
  width: 100%;
  flex: none;
}

.nlp-plan-form .nl-msg:empty,
.nlp-plan-form .nl-error:empty {
  display: none;
}

/* Responsive / Mobile layout */
@media (max-width: 860px) {
  .nl3-nav-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .nl3-why-grid {
    grid-template-columns: 1fr;
  }

  .nlp-days-grid {
    grid-template-columns: 1fr;
  }

  .nlp-writer-wrap {
    grid-template-columns: 1fr;
  }

  .nlp-proof-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .nlp-plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .nlp-stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nl3-sched-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nl3-sched-cta .cta-btn,
  .nl3-sched-cta .ghost-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nlp-stat-strip {
    grid-template-columns: 1fr;
  }

  .nlp-form {
    flex-direction: column;
  }

  .nlp-form .fn-email,
  .nlp-form button {
    width: 100%;
    min-width: 0;
  }
}

/* Ensure no horizontal overflow at 360px */
@media (max-width: 360px) {
  .inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nlp-plan-card {
    padding: 24px 16px;
  }

  .nlp-stat-tile {
    padding: 16px 12px;
  }
}
