/* =========================================================================
   Full Coverage — Adapt Newsletter Landing Page
   Static rebuild of "Adapt Newsletter Landing.dc.html" (Claude Design handoff)
   ========================================================================= */

/* Aspekta — the same typeface used across adaptinsurance.com */
@font-face {
  font-family: "Aspekta";
  src: url("assets/fonts/aspekta-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  src: url("assets/fonts/aspekta-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  src: url("assets/fonts/aspekta-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green-50:  #F0FDF5;
  --green-400: #4ADE88;
  --green-500: #23CE6B;
  --green-600: #16A351;
  --green-700: #14532F;
  --green-900: #052E18;

  --blue-300:  #7184C0;
  --blue-600:  #424874;
  --blue-900:  #282A43;

  --orange-400: #F3AA3E;
  --orange-500: #E94E1B;

  --ink:          #000000;
  --ink-soft:     rgba(0,0,0,0.6);
  --ink-softer:   rgba(0,0,0,0.4);
  --paper:        #FFFFFF;
  --paper-warm:   #FAFAFA;

  --font-display: "Aspekta", system-ui, sans-serif;
  --font-body:    "Aspekta", system-ui, -apple-system, sans-serif;
  --font-mono:    "Aspekta", system-ui, -apple-system, sans-serif;

  --grad-mark: linear-gradient(180deg, var(--green-400) 0%, var(--green-500) 100%);
  --shadow-inset-glow: inset 4px 4px 4px rgba(134,239,178,0.4);
  --shadow-card: 0 1px 0 rgba(40,42,67,0.04), 0 12px 32px -8px rgba(40,42,67,0.10);
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) prevents horizontal scroll WITHOUT making
   the body a scroll container, so the sticky header stays frozen on scroll. */
html, body { margin: 0; padding: 0; background: var(--paper); overflow-x: clip; }
body { font-family: var(--font-body); color: var(--ink); }
img { max-width: 100%; display: block; }
.page { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media (max-width: 900px) { .page { padding: 0 24px; } }

/* ---------- Header (matches adaptinsurance.com) ---------- */
/* --nav-ink is the homepage's nav text/button color (#343846). */
.site-nav { --nav-ink: #343846; position: sticky; top: 0; z-index: 100; background: #fff; }
.site-nav .inner { display: flex; align-items: center; gap: 28px; height: 88px; }
.brand-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-logo img { height: 26px; width: auto; display: block; }
.nav-collapse { flex: 1; display: flex; align-items: center; gap: 28px; }
.nav-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--nav-ink);
  letter-spacing: normal; padding: 10px 14px; border: none; background: none; cursor: pointer;
  border-radius: 8px; text-decoration: none; line-height: 1;
}
.nav-top:hover { background: rgba(52,56,70,0.06); color: var(--nav-ink); }
.nav-caret { width: 11px; height: 11px; color: var(--nav-ink); opacity: 0.6; transition: transform 160ms var(--ease-out); }
.nav-item.open .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px;
  box-shadow: 0 6px 20px -4px rgba(40,42,67,0.16); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 140ms;
}
.nav-item.has-menu:hover .nav-menu,
.nav-item.has-menu:focus-within .nav-menu,
.nav-item.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--nav-ink); text-decoration: none; letter-spacing: normal; white-space: nowrap; }
.nav-menu a:hover { background: var(--green-50); color: var(--green-900); }
.nav-menu-soon { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; font-family: var(--font-display); font-size: 15px; font-weight: 400; color: rgba(52,56,70,0.5); letter-spacing: normal; white-space: nowrap; }
.nav-menu-soon em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--green-700); background: var(--green-50); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.nav-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; }
.nav-actions .signin { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--nav-ink); text-decoration: none; letter-spacing: normal; }
.nav-actions .signin:hover { opacity: 0.7; }
.nav-demo { font-family: var(--font-display); font-size: 16px; font-weight: 500; background: var(--nav-ink); color: #F6F7F9; border-radius: 8px; padding: 14px 20px; }
.nav-demo:hover { background: #454a5e; color: #F6F7F9; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 40px; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto; margin-left: auto; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--nav-ink); border-radius: 2px; }

/* "A publication by [Adapt]" tagline — used in footer */
.pub { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-softer); letter-spacing: -0.01em; }
.pub img { height: 15px; width: auto; display: inline-block; }

/* Full Coverage brand lockup (hero kicker) */
.fc-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.fc-brand-mark { width: 34px; height: 34px; flex: 0 0 auto; display: block; }
.fc-brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.fc-brand-tag { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-softer); letter-spacing: -0.01em; padding-left: 10px; border-left: 1px solid rgba(0,0,0,0.15); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); font-weight: 500; font-size: 15px;
       letter-spacing: -0.01em; padding: 12px 22px; border-radius: 999px;
       border: none; cursor: pointer; display:inline-flex; align-items:center; gap: 8px;
       text-decoration: none;
       transition: background 140ms var(--ease-out), color 140ms; }
.btn.primary { background: #23CE6B; color: #052E18; }
.btn.primary:hover { background: #16A351; color: #F0FDF5; }

/* ---------- Hero ---------- */
.hero { padding-top: 96px; padding-bottom: 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -340px; right: -220px; width: 780px; height: 780px;
  border-radius: 999px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(74,222,136,0.30) 0%, rgba(113,132,192,0.16) 38%, rgba(255,255,255,0) 70%);
  animation: orbBreathe 90s ease-in-out infinite;
}
.hero .page { position: relative; z-index: 1; }
@keyframes orbBreathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-20px, 18px); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .grid { display: grid; grid-template-columns: 1fr; }
.hero-col { max-width: 920px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color: var(--ink-soft); font-size: 14px; font-weight:500; letter-spacing:-0.01em; padding: 6px 12px; border:1px solid rgba(0,0,0,0.12); border-radius: 999px; background: rgba(255,255,255,0.6); }
.eyebrow .dot { width: 6px; height:6px; border-radius:50%; background: #23CE6B; }
.h-title {
  font-family: var(--font-display); font-weight: 500; font-size: 80px;
  line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); margin: 18px 0 24px;
}
.h-title em { font-style: normal; color: var(--green-500); }
.h-sub { font-size: 22px; line-height: 1.45; color: var(--ink-soft); max-width: 720px; letter-spacing:-0.01em; margin: 0; }
.h-meta { margin-top: 14px; color: var(--ink-softer); font-size: 13px; letter-spacing:-0.01em; }
.nl-subscribe { margin-top: 36px; max-width: 480px; }

/* Subscribe pill — email + button, posts to HubSpot Forms API */
.nl-form {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px;
  border: 1px solid rgba(0,0,0,0.2); border-radius: 999px; background: #fff;
  max-width: 480px; transition: border-color 140ms var(--ease-out);
}
.nl-form:focus-within { border-color: #23CE6B; }
.nl-form[hidden] { display: none; }
.nl-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
}
.nl-input::placeholder { color: var(--ink-softer); }
.nl-form .btn { flex: 0 0 auto; }

/* Success + error states */
.nl-success {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 999px;
  background: #F0FDF5; border: 1px solid rgba(35,206,107,0.4); max-width: 480px;
}
.nl-success[hidden] { display: none; }
.nl-success-check {
  width: 28px; height: 28px; border-radius: 999px; background: var(--grad-mark);
  box-shadow: var(--shadow-inset-glow); flex: 0 0 auto; display: flex; align-items: center;
  justify-content: center; color: #052E18; font-weight: 700; font-size: 15px;
}
.nl-success-text { font-size: 15px; color: var(--green-700); font-weight: 500; letter-spacing: -0.01em; }
.nl-form-error { font-size: 13px; color: var(--orange-500); margin: 10px 0 0; letter-spacing: -0.01em; }

/* ---------- Latest issues strip ---------- */
.issues { padding: 8px 0 72px; }
.issue-strip {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; background: var(--blue-900);
  box-shadow: 0 20px 50px -20px rgba(40,42,67,0.35); overflow: hidden;
}
.issue-link {
  display: flex; align-items: center; gap: 28px; padding: 24px 28px;
  text-decoration: none; color: #fff; transition: background 160ms var(--ease-out);
}
.issue-link + .issue-link { border-top: 1px solid rgba(229,233,244,0.14); }
.issue-link:hover { background: rgba(255,255,255,0.03); }
.issue-date {
  flex: 0 0 92px; padding-right: 28px; border-right: 1px solid rgba(229,233,244,0.2);
  font-family: var(--font-mono); font-size: 12px; color: rgba(229,233,244,0.6); letter-spacing: 0.02em;
}
.issue-headline {
  flex: 1; margin: 0; color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; text-wrap: pretty;
}
.issue-cta { flex: 0 0 auto; justify-content: center; }

/* ---------- Topics / pillars ---------- */
.pillars { padding-top: 40px; padding-bottom: 88px; }
.section-eye { display:flex; align-items:center; gap: 12px; color: var(--ink-softer); font-size: 14px; font-weight:500; letter-spacing:-0.01em; }
.section-eye .line { flex: 0 0 32px; height: 1px; background: rgba(0,0,0,0.2); }
.section-title { font-family: var(--font-display); font-weight: 500; margin: 12px 0 0; font-size: 50px; line-height: 1.04; letter-spacing: -0.02em; white-space: nowrap; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 52px; }
.nl-topic-card { border: 1px solid rgba(0,0,0,0.12); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.nl-topic-card--accent { border: none; background: linear-gradient(180deg, #4ADE88 0%, #23CE6B 100%); box-shadow: var(--shadow-inset-glow); }
.nl-topic-index { font-family: var(--font-mono); font-size: 12px; color: var(--green-700); letter-spacing: 0.04em; }
.nl-topic-index--accent { color: rgba(5,46,24,0.65); }
.nl-topic-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0 0; }
.nl-topic-title--accent { color: #052E18; }
.nl-topic-text { font-size: 16px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.nl-topic-text--accent { color: rgba(5,46,24,0.72); }

/* ---------- CTA / product funnel ---------- */
.cta-row { padding-top: 88px; padding-bottom: 64px; }
.cta-card {
  background: var(--blue-900); color: #E5E9F4; border-radius: 28px;
  padding: 56px 64px; display:flex; gap: 32px; justify-content:space-between; align-items:center; position:relative; overflow:hidden;
}
.cta-card .orb-mini { position:absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #4ADE88 0%, #7184C0 30%, transparent 70%); opacity: 0.6; }
.nl-cta-copy { position: relative; z-index: 1; max-width: 680px; }
.nl-cta-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: rgba(229,233,244,0.7); margin-bottom: 20px; }
.nl-cta-rule { flex: 0 0 32px; height: 1px; background: rgba(229,233,244,0.4); }
.nl-cta-title { font-family: var(--font-display); font-size: 52px; line-height: 1.06; letter-spacing: -0.02em; margin: 0; font-weight: 500; }
.nl-cta-sub { font-size: 18px; line-height: 1.5; color: rgba(229,233,244,0.78); margin: 22px 0 0; letter-spacing: -0.01em; max-width: 560px; }
.nl-cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: relative; z-index: 1; }
.nl-cta-actions .btn { justify-content: center; }

/* ---------- Trusted-by logo wall ---------- */
.nl-trusted { padding: 80px 0 88px; }
.nl-trusted-inner { text-align: center; }
.nl-trusted-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-soft); margin: 0 auto 40px; max-width: 720px; text-wrap: pretty; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 64px; max-width: 1040px; margin: 0 auto; }
.logo-slot { display: flex; align-items: center; justify-content: center; }
/* Normalize by height so every wordmark reads at the same text size; widths vary naturally. */
.logo-slot img { height: 40px; width: auto; max-width: 230px; object-fit: contain; display: block; }

/* ---------- Final subscribe ---------- */
.nl-final { padding: 88px 0 96px; background: var(--paper-warm); border-top: 1px solid rgba(0,0,0,0.06); }
.nl-final-inner { max-width: 760px; text-align: center; margin: 0 auto; }
.nl-final-title { font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.nl-final-sub { font-size: 19px; color: var(--ink-soft); line-height: 1.5; margin: 0 auto 32px; max-width: 520px; letter-spacing: -0.01em; }
.nl-final-form-wrap { display: flex; justify-content: center; }
.nl-form--final { margin: 0 auto; width: 100%; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 56px; padding-bottom: 56px; }
footer .row { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
footer h4 { font-family: var(--font-body); font-size: 13px; font-weight:500; color: var(--ink-soft); margin: 0 0 16px; letter-spacing:-0.01em; }
footer ul { list-style: none; padding:0; margin:0; display:flex; flex-direction:column; gap: 10px; }
footer a { font-size: 15px; color: var(--ink); text-decoration:none; letter-spacing:-0.01em; }
footer a:hover { color: var(--green-700); }
footer .legal { margin-top: 56px; display:flex; justify-content:space-between; color: var(--ink-softer); font-size: 13px; letter-spacing:-0.01em; }
.nl-footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nl-footer-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.nl-footer-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.5; margin: 18px 0 0; max-width: 300px; letter-spacing: -0.01em; }

/* ---------- Responsive: header ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-collapse {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08); box-shadow: 0 12px 32px -8px rgba(40,42,67,0.12);
    padding: 12px 24px 20px; display: none;
  }
  .site-nav.open .nav-collapse { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-top { justify-content: space-between; width: 100%; font-size: 16px; padding: 12px 10px; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 6px 12px; min-width: 0; }
  .nav-caret { display: none; }
  .nav-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.08); justify-content: space-between; }
  .nav-demo { flex: 1; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .h-title { font-size: 52px; }
  .fc-brand { flex-wrap: wrap; gap: 8px 10px; }
  .fc-brand-tag { border-left: none; padding-left: 0; flex-basis: 100%; }
  .h-sub { font-size: 19px; }
  footer .row { grid-template-columns: 1fr 1fr; }
  .section-title { white-space: normal; font-size: 36px; }
  .nl-cta-title { font-size: 36px; }
  .nl-final-title { font-size: 38px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .logo-wall { gap: 28px 40px; }
  .logo-slot img { height: 32px; max-width: 40vw; }
  .issue-link { flex-direction: column; align-items: flex-start; gap: 14px; }
  .issue-date { border-right: none; padding-right: 0; flex-basis: auto; }
  .issue-headline { font-size: 20px; }
  .issue-cta { width: 100%; }
}
