/* ================================================================
   CONNECT — seo-pages-v2.css  (drop-in upgrade)
   Link after style.css:
   <link rel="stylesheet" href="../../style/seo-pages-v2.css">
   ================================================================ */

/* ── TOKENS ── */
:root {
  --blue:        #3f51b5;
  --blue-light:  #5c6bc0;
  --accent:      #3f51b5;
  --accent-2:    #a78bfa;
  --bg:          #f5f6fa;
  --text:        #1a1d2e;
  --text-2:      #3d4166;
  --muted:       #6b7280;
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 8px 40px rgba(63,81,181,.13);
  --shadow-xs:   0 2px 12px rgba(63,81,181,.07);
  --glow:        0 0 60px rgba(124,143,245,.25);
}

/* ── READING PROGRESS ── */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--accent-2));
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(167,139,250,.6);
}

/* ================================================================
   HERO — full-bleed image banner
   ================================================================ */
.seo-hero {
  position: relative;
  width: 100%; 
  min-height: 520px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-bottom: 64px;
}
.seo-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.52) saturate(1.1);
}
.seo-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(26,29,46,.1) 0%,
    rgba(63,81,181,.45) 55%,
    rgba(26,29,46,.92) 100%);
}
.seo-hero-content {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto 56px;
  padding: 0 40px; width: 100%;
}
.seo-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,143,245,.22);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  color: #e0e4ff; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.seo-hero-badge svg { width: 13px; height: 13px; }
.seo-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);;
  font-weight: 800; line-height: 1.15;
  color: #fff; margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.seo-hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.4rem); color: rgba(255,255,255,.84);
  max-width: 600px; line-height: 1.75; margin: 0 0 32px;
}
.seo-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.seo-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--blue);
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; padding: 14px 28px;
  border-radius: 100px; text-decoration: none;
  transition: all .2s;
}
.seo-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.seo-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none; transition: all .2s;
}
.seo-btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ================================================================
   STATS BAR
   ================================================================ */
.seo-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: #e5e7ef;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 56px;
  max-width: 860px;
  box-shadow: var(--shadow-xs);
}
.seo-stat {
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 22px 20px;
  transition: background .2s;
}
.seo-stat:hover { background: #f7f8ff; }
.seo-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.seo-stat-icon svg { width: 20px; height: 20px; }
.seo-stat-val {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.25rem; color: var(--text); line-height: 1;
  margin-bottom: 3px;
}
.seo-stat-label {
  font-size: .75rem; color: var(--muted);
  font-weight: 500; letter-spacing: .03em;
}

/* ================================================================
   CONTENT WRAPPER
   ================================================================ */
.seo-body {
  max-width: 70% !important; 
  margin-bottom: 40px !important;
  font-family: 'DM Sans', sans-serif;
}

/* Lead paragraph */
.seo-body > p:first-of-type {
  font-size: 1.12rem; color: var(--text-2);
  line-height: 1.85; margin-bottom: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f2ff 0%, #f8f0ff 100%);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* H2 */
.seo-body h2 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text); margin: 64px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #eaecf4;
  position: relative;
}
.seo-body h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}

/* H3 — FAQ style */
.seo-body h3 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--text);
  margin: 20px 0 10px;
  background: #f7f8ff;
  border-radius: var(--radius-sm);
  position: relative; cursor: default;
}

.seo-body h3 + p {
  padding: 16px 20px 16px 54px;
  background: #fff; border: 1px solid #e1e1e1;
  border-radius: var(--radius-sm);
  margin-top: -2px; color: var(--text-2);
  line-height: 1.8;
}

/* Paragraphs */
.seo-body .seo-mid-cta-content p { color: #fff }

/* UL list — card style */
.seo-body ul {
  list-style: none; padding: 0; margin: 28px 0;
  display: grid; gap: 10px;
}
.seo-body ul li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: #fff; border-radius: var(--radius-sm);
  border: 1px solid #eaecf4;
  color: var(--text-2); line-height: 1.7;
  transition: box-shadow .2s, transform .2s;
}
.seo-body ul li:hover {
  box-shadow: var(--shadow-xs);
  transform: translateX(4px);
}
.seo-body ul li::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue);
}

/* ================================================================
   HOW IT WORKS — 3 steps
   ================================================================ */
.seo-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: #e5e7ef;
  border-radius: var(--radius); overflow: hidden;
  margin: 48px 0; box-shadow: var(--shadow-xs);
}
.seo-step {
  background: #fff; padding: 32px 24px; position: relative;
  transition: background .2s;
}
.seo-step:hover { background: #f7f8ff; }
.seo-step-num {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.seo-step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background-color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #fff;
}
.seo-step-icon svg { width: 24px; height: 24px; }
.seo-step-title {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--text); margin-bottom: 10px;
}
.seo-step-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ================================================================
   INSIGHT CARDS (injected near use cases / key facts)
   ================================================================ */
.seo-insight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 40px 0;
}
.seo-insight-card {
  padding: 28px 24px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.seo-insight-card.--blue {
  background: linear-gradient(135deg, var(--blue) 0%, #5563c7 100%);
  color: white;
}
.seo-insight-card.--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: white;
}
.seo-insight-card.--teal {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  color: white;
}
.seo-insight-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.seo-insight-num {
  font-family: 'Sora', sans-serif; font-weight: 900;
  font-size: 2.6rem; line-height: 1; margin-bottom: 6px;
  letter-spacing: -.02em;
}
.seo-insight-label {
  font-size: 1rem; opacity: .88; line-height: 1.5;
}
.seo-insight-icon {
  position: absolute; bottom: 16px; right: 20px;
  opacity: .18;
}
.seo-insight-icon svg { width: 48px; height: 48px; }

/* ================================================================
   IMAGE + TEXT SPLIT SECTION
   ================================================================ */
.seo-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; margin: 56px 0;
}
.seo-split.--reverse { direction: rtl; }
.seo-split.--reverse > * { direction: ltr; }
.seo-split-img {
  border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  position: relative;
}
.seo-split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.seo-split-img:hover img { transform: scale(1.04); }
.seo-split-text {}
.seo-split-text h3 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.4rem; color: var(--text);
  margin: 0 0 10px; background: none; border: none;
  padding: 0; position: static;
}
.seo-split-text h3::before { display: none; }
.seo-split-text p { color: var(--text-2); line-height: 1.8; margin: 0 0 18px; }
.seo-split-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dbdeee; color: var(--blue);
  font-size: .78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 100px; margin-bottom: 5px;
}

/* ================================================================
   CALLOUTS
   ================================================================ */
.seo-callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius-sm);
  margin: 28px 0;
}
.seo-callout--tip {
  background: #eef0ff; border-left: 3px solid var(--blue);
}
.seo-callout--warning {
  background: #fffbeb; border-left: 3px solid #f59e0b;
}
.seo-callout--stat {
  background: #f0fdfa; border-left: 3px solid #14b8a6;
}
.seo-callout-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.seo-callout--tip .seo-callout-icon { background: var(--blue); color: #fff; }
.seo-callout--warning .seo-callout-icon { background: #f59e0b; color: #fff; }
.seo-callout--stat .seo-callout-icon { background: #14b8a6; color: #fff; }
.seo-callout-icon svg { width: 16px; height: 16px; }
.seo-callout-title {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 4px;
  color: var(--text);
}
.seo-callout-text { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin: 0; }

/* ================================================================
   MID-PAGE CTA
   ================================================================ */
.seo-mid-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 50%, var(--accent-2) 100%);
  border-radius: var(--radius); padding: 48px 40px;
  margin: 56px 0; display: flex; gap: 32px;
  align-items: center; justify-content: space-between;
}
.seo-mid-cta::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.seo-mid-cta::after {
  content: '';
  position: absolute; bottom: -40px; left: 10%;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.seo-mid-cta-content { position: relative; z-index: 1; }
.seo-mid-cta-title {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.5rem; color: #fff; margin-bottom: 8px;
}
.seo-mid-cta-sub { font-size: .92rem; color: rgba(255,255,255,.78); margin: 0; }
.seo-mid-cta-actions {
  display: flex; gap: 12px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; padding: 13px 24px;
  border-radius: 100px; text-decoration: none;
  white-space: nowrap;
  transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-cta-white:hover { transform: translateY(-2px); }
.btn-ghost-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.88); font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.3);
  padding: 13px 20px; border-radius: 100px;
  transition: all .2s;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.08);
}
.btn-ghost-cta:hover { background: rgba(255,255,255,.18); }

/* ================================================================
   PLATFORM PILL STRIP
   ================================================================ */
.seo-platforms {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 32px 0; align-items: center;
}
.seo-platform-label {
  font-size: 1rem; color: var(--muted); font-weight: 600;
  margin-right: 4px; letter-spacing: .04em; text-transform: uppercase;
}
.seo-platform-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 100px;
  background: #fff; border: 1px solid #e5e7ef;
  font-size: 1rem; font-weight: 600; color: var(--text-2);
  transition: all .2s;
}
.seo-platform-pill:hover { border-color: var(--accent); color: var(--blue); }
.seo-platform-pill svg { width: 14px; height: 14px; color: var(--blue); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .seo-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .seo-steps     { grid-template-columns: 1fr; }
  .seo-insight-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-split     { grid-template-columns: 1fr; }
  .seo-split.--reverse { direction: ltr; }
  .seo-mid-cta   { flex-direction: column; gap: 24px; }
  .seo-hero      { min-height: 400px; }
  .seo-hero-content { padding: 0 24px; margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .seo-stats-bar    { grid-template-columns: 1fr 1fr; }
  .seo-insight-grid { grid-template-columns: 1fr; }
  .seo-hero h1      { font-size: 1.8rem; }
  .seo-mid-cta-actions { flex-direction: column; }
  .seo-hero-actions { flex-direction: column; }
  .seo-body         { padding: 0 16px 60px; }
}

/* hide old section hero when we inject new one */
.features {
  max-width: 100vw !important;
  padding: 0 !important;
}
.features .section-label,
.features .section-title,
.features .section-sub {
  display: none;
}
