/* ─────────────────────────────────────────────────────────
   pipeline.news — Landing Page CSS
   Palette from logo:
     Navy:   #0D2756
     Blue:   #1E6BC5
     Cyan:   #5BB8F5
     Teal:   #00C4A0   ← CTA / accent
     Bg:     #F0F6FF
───────────────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0D2756;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── CUSTOM PROPERTIES ────────────────────────────────── */
:root {
  --navy:   #0D2756;
  --blue:   #1E6BC5;
  --cyan:   #5BB8F5;
  --teal:   #00C4A0;
  --teal-d: #00A88A;
  --bg:     #F0F6FF;
  --bg-mid: #E4EEFF;
  --white:  #FFFFFF;
  --gray:   #6B7A99;
  --border: #D1DCF0;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13,39,86,.08);
  --shadow-lg: 0 8px 48px rgba(13,39,86,.14);
}

/* ── LAYOUT HELPERS ───────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--teal), #00A88A);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0,196,160,.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(0,196,160,.5);
  background: linear-gradient(135deg, #00D4AE, var(--teal));
}

.btn--xl {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 14px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn--nav {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0,196,160,.3);
}
.btn--nav:hover { box-shadow: 0 4px 18px rgba(0,196,160,.45); }

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 44px; width: auto; }
.nav__logo-text {
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
  gap: 0;
}
.logo-pipe { color: var(--teal); margin-right: 2px; }
.logo-dot  { color: var(--cyan); }
.logo-news { color: var(--blue); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, #1a3d78 60%, #1E6BC5 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,160,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,184,245,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(0,196,160,.18);
  border: 1px solid rgba(0,196,160,.4);
  color: #00E4BC;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.highlight {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── FORM ─────────────────────────────────────────────── */
.hero__form { max-width: 540px; margin: 0 auto; }

.form__row {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 6px;
}

.form__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  padding: 10px 14px;
}
.form__input::placeholder { color: rgba(255,255,255,.55); }

.form__note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ── HERO STATS ───────────────────────────────────────── */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.stat__label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ── LOGOS BAR ────────────────────────────────────────── */
.logos-bar {
  padding: 40px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.logos-bar__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.logos-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logos-bar__company {
  font-size: 15px;
  font-weight: 700;
  color: #b0bdd6;
  letter-spacing: -.3px;
  transition: color .2s;
}
.logos-bar__company:hover { color: var(--blue); }

/* ── SECTIONS ─────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--light  { background: var(--bg); }
.section--white  { background: #fff; }
.section--dark   { background: var(--navy); }
.section--accent {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-mid) 100%);
}

.section__header { text-align: center; margin-bottom: 56px; }
.section__header--white .section__title,
.section__header--white .section__desc { color: #fff; }

.section__tag {
  display: inline-block;
  background: rgba(0,196,160,.12);
  color: var(--teal-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,196,160,.25);
}
.section__tag--light {
  background: rgba(0,196,160,.18);
  color: #00E4BC;
  border-color: rgba(0,196,160,.35);
}
.section__tag--dark {
  background: rgba(13,39,86,.08);
  color: var(--blue);
  border-color: rgba(30,107,197,.2);
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 16px;
}
.section__desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CARDS ────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,107,197,.25);
}
.card__icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}
.card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.card__body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ── CHECKLIST ────────────────────────────────────────── */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.checklist__col { display: flex; flex-direction: column; gap: 16px; }

.check-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  align-items: flex-start;
}
.check-item--yes {
  background: rgba(0,196,160,.1);
  border: 1px solid rgba(0,196,160,.25);
}
.check-item--no {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.check-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.check-item--yes .check-item__icon {
  background: var(--teal);
  color: #fff;
}
.check-item--no .check-item__icon {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
}
.check-item p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
}
.check-item p strong { color: #fff; }

/* ── STEPS ────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--bg-mid);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.step__body { font-size: 14px; color: var(--gray); line-height: 1.6; }

.step__arrow {
  font-size: 28px;
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  opacity: .6;
}

/* ── ISSUES ───────────────────────────────────────────── */
.issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.issue {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.issue:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.issue__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.issue__num {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.issue__date { font-size: 13px; color: var(--gray); }
.issue__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.issue__excerpt { font-size: 14px; color: var(--gray); line-height: 1.6; flex: 1; }
.issue__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.issue__link:hover { color: var(--teal-d); }

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.testimonial__quote {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
}
.testimonial__quote::before {
  content: '"';
  font-size: 64px;
  line-height: 0;
  vertical-align: -22px;
  color: var(--teal);
  opacity: .3;
  margin-right: 4px;
  font-style: normal;
  font-weight: 900;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial__name {
  display: block;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
}
.testimonial__role {
  font-size: 13px;
  color: var(--gray);
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--cyan); }

.faq-item__q {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color .2s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .faq-item__q::after {
  transform: rotate(45deg);
  color: var(--blue);
}
.faq-item[open] .faq-item__q { color: var(--blue); }

.faq-item__a {
  font-size: 15px;
  color: var(--gray);
  padding: 0 24px 20px;
  line-height: 1.7;
}

/* ── CTA SECTION ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(150deg, var(--navy) 0%, #1a3d78 60%, #1E6BC5 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,160,.12) 0%, transparent 70%);
}
.cta-section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  position: relative;
}
.cta-section__sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
  position: relative;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: #080F1F;
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.nav__logo-img--footer { filter: brightness(0) invert(1) opacity(.85); }
.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--teal); }
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__legal p {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.footer__legal a {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover { color: var(--cyan); }

/* ── BEEHIIV EMBED ────────────────────────────────────── */
.beehiiv-embed-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.beehiiv-embed {
  width: 100%;
  border: none;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* ── ISSUES: stati loading / empty ───────────────────── */
.issues__loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  font-size: 15px;
  color: var(--gray);
}
.issues__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.issues__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}
.issues__empty a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FORM SUCCESS ─────────────────────────────────────── */
.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,196,160,.15);
  border: 1px solid rgba(0,196,160,.35);
  border-radius: 12px;
  padding: 18px 24px;
  max-width: 540px;
  margin: 0 auto;
}
.form-success__icon { font-size: 28px; flex-shrink: 0; }
.form-success__msg {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards */
.cards .card:nth-child(1) { transition-delay: .05s; }
.cards .card:nth-child(2) { transition-delay: .10s; }
.cards .card:nth-child(3) { transition-delay: .15s; }
.cards .card:nth-child(4) { transition-delay: .20s; }
.cards .card:nth-child(5) { transition-delay: .25s; }
.cards .card:nth-child(6) { transition-delay: .30s; }

.testimonials .testimonial:nth-child(2) { transition-delay: .1s; }
.testimonials .testimonial:nth-child(3) { transition-delay: .05s; }
.testimonials .testimonial:nth-child(4) { transition-delay: .15s; }

/* Nav scrolled */
.nav--scrolled { box-shadow: 0 2px 20px rgba(13,39,86,.1); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .cards  { grid-template-columns: repeat(2, 1fr); }
  .issues { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 52px; }
  .hero__title { letter-spacing: -1px; }

  .form__row {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }
  .form__input {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
  }
  .btn--primary { width: 100%; justify-content: center; }

  .cards { grid-template-columns: 1fr; }

  .hero__stats { gap: 20px; }
  .stat__divider { display: none; }

  .steps {
    flex-direction: column;
    align-items: stretch;
  }
  .step { max-width: 100%; }
  .step__arrow { transform: rotate(90deg); text-align: center; }

  .section { padding: 60px 0; }

  .logos-bar__row { gap: 20px; }

  .nav__inner { height: 60px; }
}
