/* Newsletter signup: homepage band and the /newsletter page. */

.nl-band {
  max-width: 1200px;
  margin: 72px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Same card language as the homepage review cards: dark 2px border, 14px radius. */
.nl-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #fafaf8;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.nl-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.nl-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.nl-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
  min-width: 0;
}

.nl-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  margin-bottom: 14px;
}

.nl-eyebrow i { font-size: 15px; }

.nl-title {
  font-family: 'Poppins', Inter, system-ui, sans-serif;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 10px;
}

.nl-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.nl-perks {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.nl-perks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: #334155;
}

.nl-perks i {
  flex: none;
  font-size: 19px;
  line-height: 1.1;
  color: #2563eb;
}

.nl-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.nl-more:hover { text-decoration: underline; }

/* The form */

.nl-form { margin: 0; min-width: 0; }

.nl-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.nl-row {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nl-row:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.nl-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.nl-input:focus { outline: none; }

.nl-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.nl-btn:hover { background: #1d4ed8; }
.nl-btn:focus-visible { outline: 2px solid #1e3a8a; outline-offset: 2px; }
.nl-btn:disabled { opacity: 0.65; cursor: default; }

.nl-fine {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
}

.nl-fine a { color: #2563eb; }

.nl-msg {
  margin: 10px 0 0;
  padding: 9px 12px;
  font-size: 13.5px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
}

.nl-msg.is-error { background: #fef2f2; color: #991b1b; }

.nl-done {
  margin: 0;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}

/* Bot trap: off-screen rather than display:none, which some bots skip. */
.nl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* /newsletter page */

.nl-page-figure {
  max-width: 720px;
  margin: 4px auto 24px;
}

.nl-page-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.nl-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "intro form" "trust trust";
  gap: 20px 32px;
  align-items: center;
  margin: 0 0 36px;
  padding: 28px 30px 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nl-panel__intro { grid-area: intro; display: flex; gap: 14px; align-items: flex-start; }
.nl-panel__form  { grid-area: form; min-width: 0; }

.nl-panel__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 12px;
}

.legal-main .nl-panel .nl-panel__title {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 4px;
}

.legal-main .nl-panel .nl-panel__sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* These rules are prefixed so the doc template's own p/ul/li styles don't win.
   The trust row replaces the fine print, so hide the form's own copy here. */
.nl-panel .nl-fine { display: none; }

.legal-main .nl-panel .nl-panel__trust {
  grid-area: trust;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #f1f5f9;
}

.legal-main .nl-panel .nl-panel__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.nl-panel__trust i { font-size: 16px; color: #2563eb; }
.nl-panel__trust a { color: #2563eb; font-weight: 600; }

@media (max-width: 900px) {
  .nl-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "trust";
    padding: 22px 20px 18px;
  }
}

@media (max-width: 860px) {
  .nl-band { margin: 48px auto; }
  .nl-card { grid-template-columns: minmax(0, 1fr); }
  .nl-card__media { padding: 18px; border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .nl-card__body { padding: 28px 24px; }
}

@media (max-width: 420px) {
  .nl-band { padding: 0 16px; }
  .nl-card__body { padding: 24px 18px; }
  .nl-btn { padding: 0 14px; }
}
