/* Newsletter signup page (page-newsletter.php). Values from the "Newsletter signup — desktop" mockup. */
.nl { font-family: var(--font-sans); color: #1a1a2e; background: #fffbf5; overflow-x: hidden; }
.nl-wrap { max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* Eyebrow */
.nl-eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 1.15px; text-transform: uppercase; color: #c81e5c;
}
.nl-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #f93576; }

/* Hero */
.nl-hero {
  padding-top: 100px; padding-bottom: 110px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 64px; align-items: center;
}
.nl-hero__copy { min-width: 0; }
.nl-h1 {
  margin: 20px 0 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.05;
  letter-spacing: -1.6px; font-weight: 300; color: #1a1a2e;
}
.nl-grad {
  font-weight: 500;
  background: linear-gradient(90deg, #F93576 0%, #1A1A2E 28%, #F93576 56%, #1A1A2E 84%, #F93576 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nlShift 6s ease infinite;
}
@keyframes nlShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.nl-sub { margin: 26px 0 0; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.2px; color: #1a1a2e; }
.nl-lede { margin: 12px 0 0; max-width: 540px; font-size: 17px; line-height: 1.7; color: #5a5a6e; }
.nl-legal { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #6a6e80; }
.nl-legal a { color: #1a1a2e; }
.nl-legal a:hover { color: #d81b5a; }

/* Form */
.nl-form {
  margin-top: 34px; max-width: 540px; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px;
  background: #fff; border: 1.1px solid #e8e4dd; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.06);
  transition: border-color .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-form:focus-within { border-color: #f93576; box-shadow: 0 0 0 4px rgba(249, 53, 118, 0.14); }
.nl-form input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 20px; border: 0; outline: none;
  background: transparent; font-family: inherit; font-size: 16px; color: #1a1a2e;
}
.nl-form input::placeholder { color: #6a6e80; }
.nl-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: #d81b5a; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249, 53, 118, 0.3); }
.nl-btn:active { transform: scale(0.98); }
.nl-btn:focus-visible, .nl a:focus-visible { outline: 2px solid #f93576; outline-offset: 3px; }

/* Email mockup */
.nl-mock { position: relative; min-width: 0; display: flex; justify-content: center; padding: 28px 0; }
.nl-mock__glow {
  position: absolute; top: 50%; left: 50%; width: 440px; height: 440px; max-width: 100%;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(30px);
  background: radial-gradient(circle, rgba(255,163,16,0.30) 0%, rgba(249,53,118,0.14) 45%, rgba(255,251,245,0) 70%);
}
.nl-mock__back {
  position: absolute; top: 4px; left: 50%; width: 86%; max-width: 400px; height: 90%;
  transform: translateX(-50%); background: #fff; border: 1.1px solid #e8e4dd; border-radius: 18px; opacity: 0.7;
}
.nl-mock__frame {
  position: relative; width: 100%; max-width: 460px; height: 600px; overflow: hidden;
  background: #fff; border: 1.1px solid #e8e4dd; border-radius: 18px;
  box-shadow: 0 27px 54px -13px rgba(255, 163, 16, 0.28);
}
.nl-mock__frame::before, .nl-mock__frame::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
}
.nl-mock__frame::before { top: 0; height: 90px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.nl-mock__frame::after { bottom: 0; height: 140px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.nl-mock__track { animation: nlScroll 36s linear infinite; will-change: transform; }
.nl-mock__track img { display: block; width: 100%; height: auto; }
@keyframes nlScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }


@media (prefers-reduced-motion: reduce) {
  .nl-mock__track, .nl-grad { animation: none; }
}
@media (max-width: 720px) {
  .nl-wrap { padding-left: 20px; padding-right: 20px; }
  .nl-hero { padding-top: 56px; padding-bottom: 56px; }
  .nl-mock__frame { height: 480px; }
  .nl-mock__back { display: none; }
  .nl-form { border-radius: 20px; }
  .nl-btn { width: 100%; justify-content: center; }
}

/* Desktop: whole hero fits in the first screen (viewport minus the nav). Type, gaps and the mockup scale with height. */
@media (min-width: 900px) {
  .nl-hero {
    box-sizing: border-box;
    min-height: calc(100svh - var(--fos-nav-h, 84px));
    padding-top: clamp(24px, 5vh, 72px);
    padding-bottom: clamp(24px, 5vh, 72px);
    gap: 48px;
  }
  .nl-h1 { margin-top: clamp(10px, 1.8vh, 20px); font-size: clamp(40px, min(5vw, 8vh), 72px); }
  .nl-sub { margin-top: clamp(12px, 2.4vh, 26px); font-size: clamp(18px, 2.6vh, 22px); }
  .nl-lede { font-size: clamp(15px, 2vh, 17px); line-height: 1.6; }
  .nl-hero .nl-form { margin-top: clamp(16px, 3.2vh, 34px); }
  .nl-mock { padding: 0; }
  .nl-mock__frame { height: clamp(320px, calc(100svh - var(--fos-nav-h, 84px) - 120px), 600px); }
}
