/* ============================================================
   LUNCHBOX.KIDS — NEWSLETTER PAGE
   Loads AFTER styles.css + home.css. Namespaced to avoid
   collisions with homepage .newsletter / .nl-* classes.
   ============================================================ */

/* =========================================================
   01 · HERO
   ========================================================= */
.nwsl-hero {
  background: var(--cream);
  padding: 88px 7% 80px;
  overflow: hidden;
}
.nwsl-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.nwsl-hero-text .eyebrow { margin-bottom: 28px; }
.nwsl-hero-text h1 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(46px, 7vw, 72px);
  line-height: .94;
  letter-spacing: -2.4px;
  color: var(--navy);
  margin-bottom: 18px;
}
.nwsl-hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -.6px;
  color: var(--peri-dark);
  margin-bottom: 22px;
}
.nwsl-hero-text .lede {
  max-width: 500px;
  margin-bottom: 30px;
}
.nwsl-hero-text .cta-form { margin-bottom: 16px; }
.nwsl-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.nwsl-social p {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.nwsl-hero-fine {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3px;
  color: var(--ink-soft);
  text-align: left;
}

/* Hero illustration placeholder */
.nwsl-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nwsl-ill-placeholder {
  position: relative;
  width: 100%;
  border-radius: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(18,52,87,.06) 0 2px, transparent 2px 14px),
    rgba(197,204,253,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
  transition: transform .4s;
  box-shadow: 0 20px 50px -24px rgba(18,52,87,.3);
  overflow: hidden;
}
.nwsl-ill-placeholder:hover { transform: rotate(0); }
.nwsl-ill-placeholder .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
  padding: 12px;
}
.nwsl-hero-doodle {
  position: absolute;
  top: -18px;
  right: -12px;
  width: clamp(48px, 5vw, 62px);
  transform: rotate(-13deg);
  opacity: .9;
  pointer-events: none;
  z-index: 2;
}

/* Hero illustration */
.nwsl-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nwsl-hero-ill {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  transform: rotate(-4deg);
  transition: transform .4s;
  filter: drop-shadow(0 16px 32px rgba(18,52,87,.12));
}
.nwsl-hero-ill:hover { transform: rotate(0); }

@media (max-width: 920px) {
  .nwsl-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .nwsl-hero-art { max-width: 280px; margin: 0 auto; }
}

/* =========================================================
   02 · PREVIEW — iPad mockup
   ========================================================= */
.nwsl-preview {
  background: var(--navy);
  padding: 88px 7% 96px;
  position: relative;
  overflow: hidden;
}
.nwsl-preview-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.nwsl-preview-head {
  text-align: center;
  margin-bottom: 56px;
}
.nwsl-preview-head h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--cream);
  margin-bottom: 16px;
}
.nwsl-preview-head h2 em { font-style: italic; color: var(--peri); }
.nwsl-preview-head p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(248,244,236,.68);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- iPad device ---- */
.nwsl-ipad {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #1a1a1d;
  border-radius: 32px;
  padding: 20px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.06),
    0 50px 100px -30px rgba(0,0,0,.6),
    0 16px 36px -16px rgba(0,0,0,.4);
}
.nwsl-ipad-camera {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: #2a2a2e;
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.nwsl-ipad-screen {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.nwsl-ipad-scroll {
  height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(18,52,87,.18) transparent;
}
.nwsl-ipad-scroll::-webkit-scrollbar { width: 5px; }
.nwsl-ipad-scroll::-webkit-scrollbar-track { background: transparent; }
.nwsl-ipad-scroll::-webkit-scrollbar-thumb { background: rgba(18,52,87,.18); border-radius: 10px; }
.nwsl-ipad-home {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 100px;
  z-index: 3;
}
/* Scroll fade hint — removed */

@media (max-width: 720px) {
  .nwsl-ipad { max-width: 100%; border-radius: 24px; padding: 14px; }
  .nwsl-ipad-screen { border-radius: 12px; }
  .nwsl-ipad-scroll { height: 400px; }
}

/* ---- Newsletter email content (inside iPad) ---- */
.nle-screenshot {
  width: 100%;
  display: block;
}

/* =========================================================
   03 · WHAT'S INSIDE
   ========================================================= */
.nwsl-find {
  background: var(--cream);
  padding: 88px 7% 96px;
}
.nwsl-find-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Eyebrow + rule */
.nwsl-find-eyebrow { margin-bottom: 0; }
.nwsl-find-rule {
  border: none;
  border-top: 1px solid var(--navy);
  margin: 16px 0 0;
}

/* Intro: heading + kiwi doodle */
.nwsl-find-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 0 0 56px;
}
.nwsl-find-text {
  flex: 1;
  max-width: 620px;
}
.nwsl-find-text h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  line-height: .98;
  letter-spacing: -1.8px;
  color: var(--navy);
  margin-bottom: 24px;
}
.nwsl-find-text h2 em {
  font-style: italic;
  color: var(--peri-dark);
}
.nwsl-find-text > p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 480px;
}
.nwsl-find-doodle {
  flex-shrink: 0;
  width: clamp(80px, 10vw, 130px);
  margin-top: 16px;
}
.nwsl-find-doodle img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card grid */
.nwsl-find-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Individual card */
.nwsl-find-card {
  display: flex;
  flex-direction: column;
}

/* Image containers */
.nwsl-find-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1.15;
}
.nwsl-find-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo-style images */
.nwsl-find-img--photo {
  background: var(--rule);
}

/* Product-style images (soft bg) */
.nwsl-find-img--product {
  background: var(--peri-soft, #e8e6f4);
  border: 1px solid rgba(197, 204, 253, .35);
}
.nwsl-find-img--product img {
  object-fit: contain;
  padding: 16px;
}

/* Placeholder images */
.nwsl-find-img--placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(18,52,87,.04) 0 2px, transparent 2px 14px),
    rgba(197,204,253,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nwsl-find-img--placeholder .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Card text */
.nwsl-find-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--navy);
  margin-bottom: 6px;
}
.nwsl-find-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
}

@media (max-width: 1000px) {
  .nwsl-find-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nwsl-find-intro { flex-direction: column; gap: 24px; }
  .nwsl-find-doodle { width: 80px; margin-top: 0; }
}
@media (max-width: 540px) {
  .nwsl-find-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   04 · WHY IT'S WORTH JOINING
   ========================================================= */
.nwsl-why {
  background: var(--cream);
  padding: 80px 7%;
  position: relative;
}
.nwsl-why-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Section heading */
.nwsl-why-lead {
  margin-bottom: 48px;
}
.nwsl-why-lead h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -1.6px;
  color: var(--navy);
}
.nwsl-why-lead h2 em { font-style: italic; color: var(--peri-dark); }

/* Photo + quote row */
.nwsl-why-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

/* Clean photo — no frame, no tape */
.nwsl-why-photo {
  position: relative;
}
.nwsl-why-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  display: block;
}

/* Quote text */
.nwsl-why-text {
  padding-top: 4px;
}
.nwsl-why-text blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  letter-spacing: -.2px;
  color: var(--navy);
  margin: 0;
}
.nwsl-why-text blockquote strong {
  font-weight: 400;
  font-style: normal;
  background-image: linear-gradient(
    to bottom,
    transparent 0%, transparent 14%,
    rgba(183,253,196,.85) 14%,
    rgba(183,253,196,.85) 84%,
    transparent 84%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 2px 6px;
}

/* Author */
.nwsl-why-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.nwsl-why-sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -.5px;
}
.nwsl-why-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink-mid);
}

@media (max-width: 700px) {
  .nwsl-why-body { grid-template-columns: 1fr; gap: 32px; }
  .nwsl-why-photo { max-width: 180px; }
}

/* =========================================================
   05 · READY CTA
   ========================================================= */
.nwsl-ready {
  background: var(--navy);
  padding: 48px 7%;
  position: relative;
  overflow: visible;
}
.nwsl-ready-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

/* Headline */
.nwsl-ready-headline {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -.8px;
  color: var(--cream);
  margin: 0;
}
.nwsl-ready-headline em {
  font-style: italic;
  color: var(--mint);
}
.nwsl-ready-headline span {
  font-style: normal;
}

/* Form */
.nwsl-ready-form-block .cta-form {
  background: rgba(248,244,236,.08);
  border-color: rgba(248,244,236,.2);
}
.nwsl-ready-form-block .cta-form input {
  color: var(--cream);
}
.nwsl-ready-form-block .cta-form input::placeholder {
  color: rgba(248,244,236,.35);
}
.nwsl-ready-form-block .cta-btn {
  background: var(--cream);
  color: var(--navy);
}
.nwsl-ready-form-block .cta-btn:hover {
  background: var(--peri);
}
.nwsl-ready-form-block .cta-btn .disc {
  background: var(--peri);
  color: var(--navy);
}
.nwsl-ready-form-block .cta-btn:hover .disc {
  background: var(--navy);
  color: var(--peri);
}

/* Doodle — flush to outer right edge of page */
.nwsl-ready-doodle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: auto;
  display: block;
  filter: invert(1) brightness(2);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .nwsl-ready-doodle {
    display: none;
  }
}
@media (max-width: 800px) {
  .nwsl-ready-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .nwsl-ready-form-block .cta-form {
    margin: 0 auto;
  }
}
