/* ===========================================
   PEPI BLOG POST — apiautomations.com
   Scope: .pepi-post wrapper
   Primary:  #004aad  |  Accent: #b4d4ff
   Hero img: https://inhousevideo.b-cdn.net/Untitled-2-researchHero_1920x720.jpeg
   =========================================== */

/* ── Wrapper & Base ─────────────────────────────────────────── */
.pepi-post {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.75;
}

.pepi-post * { box-sizing: border-box; }

/* ── Hero Banner ────────────────────────────────────────────── */
.pp-hero {
  background-image:
    linear-gradient(to bottom, rgba(0,15,50,0.55) 0%, rgba(0,10,40,0.80) 100%),
    url("https://inhousevideo.b-cdn.net/Untitled-2-researchHero_1920x720.jpeg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
}

/* Accent line at bottom of hero */
.pp-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, #b4d4ff 35%, #004aad 65%, transparent);
}

.pp-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b4d4ff;
  border: 1px solid rgba(180,212,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.pp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  max-width: 860px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.pp-hero-sub {
  font-size: 1.2rem;
  color: #b4d4ff;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  font-weight: 500;
}

.pp-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

.pp-meta span {
  margin: 0 0.6rem 0.35rem;
}

.pp-meta span + span::before {
  content: "·";
  margin-right: 0.6rem;
  opacity: 0.4;
}

/* ── Content Sections ───────────────────────────────────────── */
.pp-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pp-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pp-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 2rem 0 0.75rem;
}

.pp-section p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.pp-section p:last-child { margin-bottom: 0; }

/* ── Pull Quote ─────────────────────────────────────────────── */
.pp-pullquote {
  border-left: 5px solid #b4d4ff;
  background: #f0f7ff;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
}

.pp-pullquote p {
  font-size: 1.25rem !important;
  font-weight: 600;
  color: #004aad;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ── Signal layers list ─────────────────────────────────────── */
.pp-signal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pp-signal-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #f8faff;
  border: 1px solid #dce9ff;
  border-left: 4px solid #004aad;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  color: #374151;
  line-height: 1.65;
}

.pp-signal-num {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #004aad;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-right: 1rem;
  margin-top: 0.1rem;
}

.pp-signal-text strong {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

/* ── Stats Row ──────────────────────────────────────────────── */
.pp-stats {
  background: #004aad;
  padding: 3.5rem 1.5rem;
}

.pp-stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: center;
}

.pp-stat {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 180px;
  flex: 1 1 180px;
  margin: 0.75rem;
}

.pp-stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: #b4d4ff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pp-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Dark Data Sources Band ─────────────────────────────────── */
.pp-dark {
  background-color: #020b1a;
  background-image:
    linear-gradient(to bottom, rgba(2,11,26,0.94) 0%, rgba(2,11,26,0.98) 100%),
    url("https://inhousevideo.b-cdn.net/Untitled-2-researchHero_1920x720.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 5rem 1.5rem;
  position: relative;
}

.pp-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, #b4d4ff 35%, #004aad 65%, transparent);
}

.pp-dark::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, #004aad 35%, #b4d4ff 65%, transparent);
}

.pp-dark-inner {
  max-width: 960px;
  margin: 0 auto;
}

.pp-dark h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #f1f5f9;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.pp-dark .pp-dark-sub {
  text-align: center;
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

/* Source cards grid (no gap) */
.pp-sources {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -0.6rem;
}

.pp-source-card {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 calc(33.333% - 1.2rem);
  flex: 0 0 calc(33.333% - 1.2rem);
  max-width: calc(33.333% - 1.2rem);
  margin: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180,212,255,0.12);
  border-top: 3px solid #004aad;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  -webkit-transition: background 0.25s ease, border-color 0.25s ease;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pp-source-card:hover {
  background: rgba(180,212,255,0.07);
  border-top-color: #b4d4ff;
}

.pp-source-card .pp-source-abbr {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4d4ff;
  margin-bottom: 0.4rem;
}

.pp-source-card .pp-source-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.pp-source-card .pp-source-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

/* ── Pipeline Steps ─────────────────────────────────────────── */
.pp-pipeline {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: #f5f8fe;
}

.pp-pipeline h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.pp-pipeline .pp-pipe-sub {
  text-align: center;
  font-size: 1.05rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.pp-steps {
  position: relative;
}

.pp-step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  position: relative;
}

.pp-step:last-child { margin-bottom: 0; }

.pp-step-badge {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #004aad;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-right: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,74,173,0.3);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.pp-step-content {
  background: #fff;
  border: 1px solid #dce9ff;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  -webkit-box-flex: 1;
  flex: 1;
}

.pp-step-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.pp-step-content span {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
}

.pp-step-arrow {
  text-align: center;
  color: #b4d4ff;
  font-size: 1.4rem;
  margin: -0.5rem 0 -0.5rem 21px;
  line-height: 1;
}

/* ── Why It Matters section ─────────────────────────────────── */
.pp-why {
  background: linear-gradient(135deg, #eef4ff 0%, #f5f8fe 100%);
  border-top: 1px solid #dce9ff;
  border-bottom: 1px solid #dce9ff;
}

/* ── CTA Footer ─────────────────────────────────────────────── */
.pp-cta {
  background: #00245a;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pp-cta::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  width: 700px; height: 300px;
  margin-left: -350px;
  background: radial-gradient(ellipse, rgba(180,212,255,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.pp-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.pp-cta p {
  font-size: 1.1rem;
  color: #b4d4ff;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.pp-btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 2.25rem;
  border-radius: 5px;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  margin: 0.4rem 0.5rem;
}

.pp-btn-primary {
  background: #b4d4ff;
  color: #00245a;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.pp-btn-primary:hover {
  background: #fff;
  color: #004aad;
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pp-btn-ghost {
  border: 1px solid rgba(180,212,255,0.4);
  color: #b4d4ff;
}

.pp-btn-ghost:hover {
  background: rgba(180,212,255,0.1);
  border-color: #b4d4ff;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pp-source-card {
    -ms-flex: 0 0 calc(50% - 1.2rem);
    flex: 0 0 calc(50% - 1.2rem);
    max-width: calc(50% - 1.2rem);
  }
}

@media (max-width: 600px) {
  .pp-hero { background-attachment: scroll; padding: 5rem 1rem 4rem; }
  .pp-dark  { background-attachment: scroll; }
  .pp-hero h1 { font-size: 2rem; }
  .pp-hero-sub { font-size: 1rem; }
  .pp-section h2, .pp-pipeline h2, .pp-dark h2 { font-size: 1.55rem; }
  .pp-section p { font-size: 1rem; }
  .pp-source-card {
    -ms-flex: 0 0 calc(100% - 1.2rem);
    flex: 0 0 calc(100% - 1.2rem);
    max-width: calc(100% - 1.2rem);
  }
  .pp-stat { -ms-flex: 1 1 140px; flex: 1 1 140px; }
  .pp-stat-num { font-size: 2.25rem; }
  .pp-cta h2 { font-size: 1.6rem; }
}
