/* ═══════════════════════════════════════════════════════════════════════════
   MilestoneMe Blog — Design System "Cosmic Observatory"
   Standalone stylesheet — all design tokens self-contained
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:  #030711;
  --bg2: #0A0818;

  /* Surfaces — layered glass */
  --surface:  rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.06);
  --surface3: rgba(255,255,255,0.10);

  /* Borders */
  --border:  rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --border3: rgba(255,255,255,0.22);

  /* Text hierarchy */
  --text:  #F1F5F9;
  --text2: #CBD5E1;
  --muted: rgba(203,213,225,0.50);

  /* Brand accents */
  --indigo:  #6366F1;
  --violet:  #8B5CF6;
  --amber:   #F59E0B;
  --emerald: #10B981;
  --rose:    #F43F5E;
  --cyan:    #06B6D4;

  /* Dim versions */
  --indigo-dim:  rgba(99,102,241,0.12);
  --violet-dim:  rgba(139,92,246,0.12);
  --amber-dim:   rgba(245,158,11,0.12);
  --emerald-dim: rgba(16,185,129,0.10);
  --rose-dim:    rgba(244,63,94,0.10);
  --cyan-dim:    rgba(6,182,212,0.10);

  /* Radii */
  --radius-card: 18px;
  --radius-pill: 100px;

  /* Blog-specific */
  --article-max: 720px;
  --reading-lh:  1.80;
}

/* ─── LIGHT MODE ─────────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:  #FAFBFF;
  --bg2: #F3F4FA;
  --surface:  rgba(51,65,85,0.04);
  --surface2: rgba(51,65,85,0.08);
  --surface3: rgba(51,65,85,0.12);
  --border:  rgba(51,65,85,0.10);
  --border2: rgba(51,65,85,0.18);
  --border3: rgba(51,65,85,0.28);
  --text:  #1E293B;
  --text2: #475569;
  --muted: rgba(71,85,105,0.65);
  --indigo:  #4F46E5;
  --violet:  #7C3AED;
  --amber:   #D97706;
  --emerald: #059669;
  --rose:    #E11D48;
  --cyan:    #0891B2;
  --indigo-dim:  rgba(79,70,229,0.10);
  --violet-dim:  rgba(124,58,237,0.10);
  --amber-dim:   rgba(217,119,6,0.08);
  --emerald-dim: rgba(5,150,105,0.08);
  --rose-dim:    rgba(225,29,72,0.08);
  --cyan-dim:    rgba(8,145,178,0.08);
}

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

/* ─── SMOOTH THEME TRANSITIONS ───────────────────────────────────────────── */
*, *::before, *::after {
  transition: background-color 0.30s ease, border-color 0.30s ease, color 0.30s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; }
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: var(--violet); }

/* ─── AURORA BACKGROUND ──────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(99,102,241,0.12)  0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 90%,  rgba(139,92,246,0.10)  0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 45%,  rgba(245,158,11,0.04)  0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 75% 15%,  rgba(6,182,212,0.07)   0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 20% 78%,  rgba(244,63,94,0.06)   0%, transparent 60%);
  animation: nebulaShift 12s ease-in-out infinite alternate;
}

:root[data-theme="light"] body::before { opacity: 0.20; }

@keyframes nebulaShift {
  0%   { opacity: 0.8; }
  100% { opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ─── AURORA LAYER ───────────────────────────────────────────────────────── */
.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(100deg, transparent 0%, transparent 7%, rgba(99,102,241,0.04) 10%, transparent 12%, transparent 16%),
    repeating-linear-gradient(100deg, rgba(99,102,241,0.08) 10%, rgba(139,92,246,0.06) 15%, rgba(6,182,212,0.05) 20%, rgba(139,92,246,0.04) 25%, rgba(99,102,241,0.07) 30%);
  background-size: 300% 300%, 200% 200%;
  animation: auroraMove 20s linear infinite;
  filter: blur(8px);
}

:root[data-theme="light"] .aurora-layer { opacity: 0.25; }

@keyframes auroraMove {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 10;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99,102,241,0.35);
}

.site-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-logo-text span {
  font-weight: 400;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface2);
  border-color: var(--border2);
}

.nav-link--cta {
  background: var(--indigo-dim);
  border-color: rgba(99,102,241,0.30);
  color: #818CF8;
}

.nav-link--cta:hover {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.50);
  color: #A5B4FC;
}

/* ─── THEME TOGGLE ───────────────────────────────────────────────────────── */
.theme-toggle-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
}

.btn-theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.18s ease;
}

.btn-theme-toggle:hover {
  background: var(--surface3);
  border-color: var(--border3);
  color: var(--text);
}

.btn-theme-toggle:active { transform: scale(0.93); }

.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun  { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

@media (max-width: 640px) {
  .theme-toggle-wrap { top: 16px; right: 16px; }
  .btn-theme-toggle  { width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG LISTING PAGE — HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-hero {
  text-align: center;
  padding: 80px 20px 64px;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.30);
  color: #818CF8;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.blog-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #ffffff 0%, rgba(226,232,240,0.80) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

:root[data-theme="light"] .blog-hero-title {
  background: linear-gradient(145deg, #1E293B 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--amber) 0%, var(--violet) 55%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.10rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.70;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

/* ─── ARTICLE CARD ───────────────────────────────────────────────────────── */
.article-card {
  background: linear-gradient(140deg, rgba(99,102,241,0.05), var(--surface));
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Left accent bar */
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--card-accent, var(--indigo)), transparent);
  border-radius: 3px 0 0 3px;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--border3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
  color: inherit;
}

.article-card--indigo { --card-accent: var(--indigo); }
.article-card--amber  { --card-accent: var(--amber);  }
.article-card--emerald{ --card-accent: var(--emerald);}
.article-card--violet { --card-accent: var(--violet); }

/* Card icon */
.article-card-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}

/* Card meta row */
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-card-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--indigo-dim);
  color: #818CF8;
  border: 1px solid rgba(99,102,241,0.25);
}

.article-card--amber  .article-card-tag { background: var(--amber-dim);   color: var(--amber);   border-color: rgba(245,158,11,0.25); }
.article-card--emerald .article-card-tag{ background: var(--emerald-dim); color: var(--emerald); border-color: rgba(16,185,129,0.25); }
.article-card--violet .article-card-tag { background: var(--violet-dim);  color: var(--violet);  border-color: rgba(139,92,246,0.25); }

.article-card-readtime {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Card title */
.article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.30;
  color: var(--text);
  margin-bottom: 12px;
}

/* Card excerpt */
.article-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

/* Read link */
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.18s ease, color 0.18s ease;
}

.article-card--amber  .article-card-link { color: var(--amber);   }
.article-card--emerald .article-card-link{ color: var(--emerald); }
.article-card--violet .article-card-link { color: var(--violet);  }

.article-card:hover .article-card-link { gap: 11px; }

.article-card-link svg {
  transition: transform 0.18s ease;
}

.article-card:hover .article-card-link svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE PAGE — HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.article-hero {
  padding: 64px 20px 56px;
  text-align: center;
  max-width: var(--article-max);
  margin: 0 auto;
}

.article-back-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--border3);
  background: var(--surface2);
}

.back-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border2);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.30);
  color: #818CF8;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #ffffff 0%, rgba(226,232,240,0.80) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

:root[data-theme="light"] .article-title {
  background: linear-gradient(145deg, #1E293B 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE BODY
   ═══════════════════════════════════════════════════════════════════════════ */
.article-body {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 20px 80px;
  position: relative;
  z-index: 1;
}

/* Divider line after hero */
.article-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  border-radius: 2px;
  margin: 0 auto 48px;
}

/* Prose — paragraphs, lists */
.article-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text2);
  line-height: var(--reading-lh);
  margin-bottom: 1.4em;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body em { font-style: italic; }

/* Section headings */
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin: 2.4em 0 0.9em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border2), transparent);
}

.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8em 0 0.6em;
  letter-spacing: 0.01em;
}

/* Lists */
.article-body ul,
.article-body ol {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: var(--text2);
  line-height: var(--reading-lh);
  margin-bottom: 1.4em;
  padding-left: 1.4em;
}

.article-body ul { list-style: none; padding-left: 0; }

.article-body ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
}

.article-body ol li { margin-bottom: 0.5em; }

/* ─── PULL QUOTE ─────────────────────────────────────────────────────────── */
.pull-quote {
  position: relative;
  margin: 2.4em 0;
  padding: 28px 32px 28px 40px;
  background: linear-gradient(135deg, var(--indigo-dim), var(--violet-dim));
  border-radius: 16px;
  border-left: 3px solid var(--indigo);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 3rem;
  line-height: 1;
  color: var(--indigo);
  opacity: 0.5;
  font-family: Georgia, serif;
}

/* ─── FUN FACT BOX ───────────────────────────────────────────────────────── */
.fun-fact {
  background: linear-gradient(135deg, var(--amber-dim), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.20);
  border-left: 3px solid var(--amber);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 1.8em 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.65;
}

.fun-fact .fun-fact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--amber);
  margin-bottom: 8px;
}

.fun-fact p { margin-bottom: 0; color: var(--text2); font-size: 0.95rem; }

.fun-fact--indigo {
  background: linear-gradient(135deg, var(--indigo-dim), rgba(99,102,241,0.04));
  border-color: rgba(99,102,241,0.20);
  border-left-color: var(--indigo);
}
.fun-fact--indigo .fun-fact-label { color: #818CF8; }

.fun-fact--emerald {
  background: linear-gradient(135deg, var(--emerald-dim), rgba(16,185,129,0.04));
  border-color: rgba(16,185,129,0.20);
  border-left-color: var(--emerald);
}
.fun-fact--emerald .fun-fact-label { color: var(--emerald); }

.fun-fact--violet {
  background: linear-gradient(135deg, var(--violet-dim), rgba(139,92,246,0.04));
  border-color: rgba(139,92,246,0.20);
  border-left-color: var(--violet);
}
.fun-fact--violet .fun-fact-label { color: var(--violet); }

.fun-fact--rose {
  background: linear-gradient(135deg, var(--rose-dim), rgba(244,63,94,0.04));
  border-color: rgba(244,63,94,0.20);
  border-left-color: var(--rose);
}
.fun-fact--rose .fun-fact-label { color: var(--rose); }

/* ─── TABLE OF CONTENTS ──────────────────────────────────────────────────── */
.toc {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 2.4em;
}

.toc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li { padding-left: 0; }
.toc-list li::before { display: none; }

.toc-list a {
  font-family: 'Inter', sans-serif;
  font-size: 0.90rem;
  color: var(--text2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.toc-list a:hover { color: var(--indigo); }

.toc-list a .toc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 18px;
}

/* ─── ARTICLE CTA ────────────────────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, var(--indigo-dim), var(--violet-dim));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  margin: 3em 0 2em;
}

.article-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}

.article-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.60;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.90rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(99,102,241,0.55);
  color: #fff;
}

.btn-cta:hover .btn-arrow { transform: translateX(4px); }

.btn-cta:active { transform: translateY(0) scale(0.98); }

.btn-arrow {
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex;
}

@keyframes shimmer {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── INLINE CTA (top of article) ──────────────────────────────────────── */
.cta-inline {
  margin: 1.8em 0;
  padding: 22px 28px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.6s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.cta-inline .btn-cta { padding: 11px 22px; font-size: 0.85rem; }

/* ─── MID-ARTICLE CTA ──────────────────────────────────────────────────── */
.cta-mid {
  text-align: center;
  margin: 2em 0;
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.6;
}

.cta-mid a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(99,102,241,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-mid a:hover {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

/* ─── EDITORIAL MENTIONS ───────────────────────────────────────────────── */
.editorial-mention {
  margin: 1.8em 0;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 16px;
  border-left: 3px solid rgba(99,102,241,0.25);
}

.editorial-mention a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(99,102,241,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.editorial-mention a:hover {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

/* ─── FINAL CTA (enhanced) ─────────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, var(--indigo-dim), var(--violet-dim));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  margin: 3em 0 2em;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.08), transparent 70%);
  animation: ctaGlow 4s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.1); }
}

/* ─── SCROLL REVEAL ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fun-fact {
  animation: fadeSlideUp 0.5s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* ─── MILESTONE BADGES (animated) ──────────────────────────────────────── */
.milestone-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.milestone-badge--past {
  background: var(--surface2);
  color: var(--muted);
}

.milestone-badge--soon {
  background: rgba(245,158,11,0.15);
  color: var(--amber);
  animation: pulseBadge 2s ease-in-out infinite;
}

.milestone-badge--future {
  background: var(--indigo-dim);
  color: var(--indigo);
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta::before, .article-cta::before { animation: none; }
  .btn-cta { animation: none; }
  .fun-fact, .cta-inline { animation: none; }
  .milestone-badge--soon { animation: none; }
}

/* ─── RELATED ARTICLES ───────────────────────────────────────────────────── */
.related-articles {
  margin-top: 2.4em;
  padding-top: 2.4em;
  border-top: 1px solid var(--border);
}

.related-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.90rem;
  transition: all 0.18s ease;
}

.related-link:hover {
  background: var(--surface2);
  border-color: var(--border3);
  color: var(--text);
}

.related-link-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ─── FAQ ITEMS ─────────────────────────────────────────────────────────── */
.faq-item {
  margin-bottom: 1.6em;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  transition: border-color 0.18s ease;
}

.faq-item:hover {
  border-color: var(--border3);
}

.faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.faq-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.70;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text2); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-hero { padding: 48px 16px 40px; }
  .article-body { padding: 0 16px 60px; }
  .article-cta  { padding: 28px 22px; }

  .pull-quote { padding: 22px 22px 22px 32px; }
  .pull-quote::before { font-size: 2.4rem; left: 10px; top: 10px; }

  .site-nav .nav-link:not(.nav-link--cta) { display: none; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 56px 16px 44px; }
  .article-card { padding: 24px 20px; }
  .article-body h2 { font-size: 1.20rem; }
  .article-back-row { gap: 8px; }
  .back-sep { display: none; }
  .toc { padding: 18px 20px; }
}

/* =============================================
   BREADCRUMB — Fil d'ariane (pSEO pages)
   ============================================= */

.breadcrumb {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Separator between items via CSS counter (::before on li + li) */
.breadcrumb li + li::before {
  content: "\203A";
  color: var(--border3);
  font-size: 0.88rem;
  line-height: 1;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .breadcrumb { font-size: 0.72rem; }
  .breadcrumb li[aria-current="page"] { max-width: 160px; }
}

/* Language toggle button */
.lang-toggle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-transform: uppercase;
}

.lang-toggle:hover {
  color: var(--text);
  background: var(--surface3);
  border-color: var(--indigo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   pSEO PRODUCT CARDS — visual product blocks for SEO pages
   ═══════════════════════════════════════════════════════════════════════════ */
.pseo-product-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pseo-product-card:hover {
  border-color: rgba(129,140,248,0.3);
  background: var(--surface2);
}
.pseo-product-link {
  flex-shrink: 0;
}
.pseo-product-img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.pseo-product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pseo-product-rating {
  color: var(--amber);
  font-size: 0.82rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pseo-product-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pseo-product-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pseo-product-card h3 a:hover { color: var(--indigo); }
.pseo-product-card p {
  font-size: 0.88rem;
  color: var(--text2);
  margin: 0;
  line-height: 1.55;
}
.pseo-product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.pseo-price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.88rem;
}
.pseo-price-current {
  color: var(--amber);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
}
.pseo-product-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  width: fit-content;
  transition: opacity 0.2s;
}
.pseo-product-cta:hover { opacity: 0.85; color: #fff; }

/* Screenshot intégré */
.pseo-screenshot {
  margin: 28px 0;
  border-radius: 14px;
  border: 1px solid var(--border2);
  overflow: hidden;
  background: var(--surface);
}
.pseo-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.pseo-screenshot figcaption {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

/* Responsive mobile */
@media (max-width: 640px) {
  .pseo-product-card {
    flex-direction: column;
  }
  .pseo-product-img {
    width: 100%;
    height: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   pSEO VISUAL COMPONENTS — Infographic / Dashboard style
   Added 2026-03 — DO NOT remove, used by 400+ pSEO pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── HERO STAT BANNER ───────────────────────────────────────────────────── */
/* Large dashboard-style numbers shown right after the article hero           */
.pseo-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  margin: 0 0 2.4em;
  padding: 0;
}

.pseo-hero-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  /* Subtle top accent line */
  --stat-color: var(--indigo);
}

.pseo-hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stat-color), transparent);
}

/* Glow on hover */
.pseo-hero-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--stat-color) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pseo-hero-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stat-color) 40%, transparent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.pseo-hero-stat:hover::after { opacity: 1; }

/* Colour variants */
.pseo-hero-stat--indigo { --stat-color: var(--indigo); }
.pseo-hero-stat--violet { --stat-color: var(--violet); }
.pseo-hero-stat--amber  { --stat-color: var(--amber);  }
.pseo-hero-stat--emerald{ --stat-color: var(--emerald);}
.pseo-hero-stat--rose   { --stat-color: var(--rose);   }
.pseo-hero-stat--cyan   { --stat-color: var(--cyan);   }

.pseo-hero-stat__emoji {
  font-size: 1.7rem;
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
}

.pseo-hero-stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--stat-color);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  /* tabular nums so digits don't jump */
  font-variant-numeric: tabular-nums;
}

.pseo-hero-stat__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Entrance animation — staggered via nth-child */
@keyframes pseoStatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.pseo-hero-stat {
  animation: pseoStatIn 0.45s cubic-bezier(.22,1,.36,1) both;
}
.pseo-hero-stat:nth-child(1) { animation-delay: 0.05s; }
.pseo-hero-stat:nth-child(2) { animation-delay: 0.12s; }
.pseo-hero-stat:nth-child(3) { animation-delay: 0.19s; }
.pseo-hero-stat:nth-child(4) { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .pseo-hero-stat { animation: none; }
}

/* ─── QUICK SUMMARY BOX ──────────────────────────────────────────────────── */
/* TL;DR checklist — appears after hero stats, before prose                   */
.pseo-summary {
  background: linear-gradient(135deg, var(--indigo-dim), var(--violet-dim));
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 0 0 2.2em;
  position: relative;
  overflow: hidden;
}

/* Cosmic glow top-right */
.pseo-summary::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  pointer-events: none;
}

.pseo-summary__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #818CF8;
  margin-bottom: 14px;
}

.pseo-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pseo-summary__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--text2);
  line-height: 1.55;
  padding-left: 0;
}

/* Override the bullet from article-body ul li */
.pseo-summary__list li::before { display: none; }

.pseo-summary__list li .pseo-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(99,102,241,0.20);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #818CF8;
  font-size: 0.62rem;
}

/* ─── INFOGRAPHIC GRID ───────────────────────────────────────────────────── */
/* Replaces a series of .fun-fact divs with a bold, Spotify-Wrapped grid      */
.pseo-infographic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 2em 0 2.4em;
}

.pseo-infographic__card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  --card-color: var(--indigo);
}

/* Left accent bar */
.pseo-infographic__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--card-color), transparent);
  border-radius: 3px 0 0 3px;
}

/* Subtle inner glow */
.pseo-infographic__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, color-mix(in srgb, var(--card-color) 7%, transparent), transparent 60%);
}

.pseo-infographic__card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* Colour variants */
.pseo-infographic__card--indigo  { --card-color: var(--indigo); }
.pseo-infographic__card--violet  { --card-color: var(--violet); }
.pseo-infographic__card--amber   { --card-color: var(--amber);  }
.pseo-infographic__card--emerald { --card-color: var(--emerald);}
.pseo-infographic__card--rose    { --card-color: var(--rose);   }
.pseo-infographic__card--cyan    { --card-color: var(--cyan);   }

.pseo-infographic__icon {
  font-size: 1.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.pseo-infographic__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--card-color);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.pseo-infographic__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.pseo-infographic__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Scroll-driven entrance */
.pseo-infographic__card {
  animation: fadeSlideUp 0.5s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

@media (prefers-reduced-motion: reduce) {
  .pseo-infographic__card { animation: none; }
}

/* ─── CROSS-PROMO BANNER ─────────────────────────────────────────────────── */
/* Horizontal strip that promotes related pages mid-article                   */
.pseo-cross-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 28px;
  margin: 2.4em 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  /* Animated gradient border via pseudo */
}

/* Gradient top border */
.pseo-cross-promo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--indigo), transparent);
}

/* Glow blob top-left */
.pseo-cross-promo::after {
  content: '';
  position: absolute;
  top: -40px; left: -20px;
  width: 160px; height: 120px;
  background: radial-gradient(circle, rgba(99,102,241,0.10), transparent 70%);
  pointer-events: none;
}

.pseo-cross-promo__body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.pseo-cross-promo__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pseo-cross-promo__text {
  min-width: 0;
}

.pseo-cross-promo__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pseo-cross-promo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pseo-cross-promo__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  padding: 5px 12px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.pseo-cross-promo__pill:hover {
  color: var(--text);
  background: var(--indigo-dim);
  border-color: rgba(99,102,241,0.35);
}

.pseo-cross-promo__cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: var(--radius-pill);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
  box-shadow: 0 4px 16px rgba(99,102,241,0.30);
  letter-spacing: 0.03em;
}

.pseo-cross-promo__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(99,102,241,0.50);
  color: #fff;
}

/* ─── RELATED ARTICLES GRID ─────────────────────────────────────────────── */
/* Visual card grid replacing the bare <ul> "Voir aussi" list                */
.pseo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0.8em 0 2em;
}

.pseo-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease;
  position: relative;
  overflow: hidden;
}

/* Hover glow  */
.pseo-related-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pseo-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.30);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  color: inherit;
}

.pseo-related-card:hover::before { opacity: 1; }

.pseo-related-card__emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
}

.pseo-related-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.30;
  position: relative;
  z-index: 1;
}

.pseo-related-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.50;
  position: relative;
  z-index: 1;
}

/* Arrow indicator */
.pseo-related-card__arrow {
  margin-top: auto;
  padding-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s ease;
  position: relative;
  z-index: 1;
}

.pseo-related-card:hover .pseo-related-card__arrow { gap: 8px; }

/* ─── RESPONSIVE OVERRIDES ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pseo-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pseo-hero-stat {
    padding: 18px 12px 16px;
  }

  .pseo-hero-stat__number {
    font-size: 1.45rem;
  }

  .pseo-infographic {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pseo-infographic__card {
    padding: 16px 14px;
  }

  .pseo-infographic__number {
    font-size: 1.35rem;
  }

  .pseo-cross-promo {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .pseo-cross-promo__cta {
    align-self: stretch;
    justify-content: center;
  }

  .pseo-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pseo-summary {
    padding: 20px 20px;
  }
}

@media (max-width: 380px) {
  .pseo-hero-stats { grid-template-columns: 1fr 1fr; }
  .pseo-infographic { grid-template-columns: 1fr; }
  .pseo-related-grid { grid-template-columns: 1fr; }
}

/* Compare grid (article gravure-impression-broderie) */
.article-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.compare-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.compare-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-accent, #818cf8);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-card li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 768px) {
  .article-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   pSEO — APP BANNER (accès rapide calculateur + couple)
   ═══════════════════════════════════════════════════════════════════════════ */

.pseo-app-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: var(--article-max);
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.pseo-app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 76px;
}

.pseo-app-card:hover {
  transform: translateY(-2px);
  color: inherit;
}

/* Card stats — indigo */
.pseo-app-card--stats {
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0.07) 100%);
  border-color: rgba(99,102,241,0.30);
  box-shadow: 0 0 0 0 rgba(99,102,241,0);
}
.pseo-app-card--stats:hover {
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 6px 24px rgba(99,102,241,0.18);
}

/* Card couple — violet/rose */
.pseo-app-card--couple {
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(244,63,94,0.08) 100%);
  border-color: rgba(139,92,246,0.28);
  box-shadow: 0 0 0 0 rgba(139,92,246,0);
}
.pseo-app-card--couple:hover {
  border-color: rgba(139,92,246,0.52);
  box-shadow: 0 6px 24px rgba(139,92,246,0.18);
}

.pseo-app-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.pseo-app-card__content {
  flex: 1;
  min-width: 0;
}

.pseo-app-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pseo-app-card--stats .pseo-app-card__title { color: #a5b4fc; }
.pseo-app-card--couple .pseo-app-card__title { color: #c4b5fd; }

:root[data-theme="light"] .pseo-app-card--stats .pseo-app-card__title { color: var(--indigo); }
:root[data-theme="light"] .pseo-app-card--couple .pseo-app-card__title { color: var(--violet); }

.pseo-app-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pseo-app-card__arrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.pseo-app-card--stats:hover .pseo-app-card__arrow { color: #a5b4fc; transform: translateX(3px); }
.pseo-app-card--couple:hover .pseo-app-card__arrow { color: #c4b5fd; transform: translateX(3px); }

@media (max-width: 600px) {
  .pseo-app-banner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 32px;
  }
  .pseo-app-card {
    min-height: 68px;
  }
  .pseo-app-card__desc {
    /* Allow wrap on narrow screens */
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pseo-app-card { transition: none; }
  .pseo-app-card__arrow { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   pSEO — COMPACT ARTICLE BODY
   ═══════════════════════════════════════════════════════════════════════════ */

.article-body--compact p {
  line-height: 1.65;
  margin-bottom: 1.1em;
}

.article-body--compact h2 {
  margin-top: 1.9em;
  margin-bottom: 0.7em;
}

.article-body--compact h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

/* Fun facts — 2-col grid on desktop */
.article-body--compact .fun-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 24px;
}

/* Each .fun-fact in a compact body gets a card treatment */
.article-body--compact .fun-fact {
  /* Override the default block margin */
  margin: 0;
}

/* FAQ items — tighter */
.article-body--compact .faq-item {
  padding: 14px 18px;
}

.article-body--compact .faq-item h3 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .article-body--compact .fun-fact-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   pSEO — SIDEBAR LAYOUT (produits sticky desktop)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Outer wrapper — takes full width, holds the two columns */
.pseo-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max)) 240px;
  gap: 36px;
  max-width: calc(var(--article-max) + 240px + 36px + 40px);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* When the layout wrapper is active, the inner article-body loses its own
   max-width centering (the grid column handles it) */
.pseo-article-layout > .article-body {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ─── Sticky sidebar ─────────────────────────────────────────────────── */
.pseo-sidebar-products {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Hide on mobile — sidebar collapses below */
}

.pseo-sidebar-products .pseo-sidebar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Compact product card in sidebar */
.pseo-sidebar-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pseo-sidebar-product:hover {
  border-color: rgba(99,102,241,0.35);
  background: var(--surface2);
  transform: translateY(-2px);
}

.pseo-sidebar-product img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pseo-sidebar-product__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pseo-sidebar-product__rating {
  color: var(--amber);
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.pseo-sidebar-product__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.pseo-sidebar-product__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pseo-sidebar-product__price .old {
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: line-through;
}

.pseo-sidebar-product__price .current {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber);
}

.pseo-sidebar-product__cta {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.pseo-sidebar-product__cta:hover { opacity: 0.85; color: #fff; }

/* Hide inline product cards on desktop when sidebar is present */
.pseo-article-layout .pseo-products-inline {
  display: none;
}

/* ─── Responsive collapse ───────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Below 900px the sidebar column is hidden — products stay inline */
  .pseo-article-layout {
    grid-template-columns: 1fr;
    max-width: var(--article-max);
    padding: 0;
  }
  .pseo-article-layout > .article-body {
    padding: 0 20px 80px;
  }
  .pseo-sidebar-products {
    display: none;
  }
  /* Restore inline products on mobile */
  .pseo-article-layout .pseo-products-inline {
    display: block;
  }
}

@media (max-width: 600px) {
  .pseo-article-layout > .article-body {
    padding: 0 16px 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pseo-sidebar-product { transition: none; }
  .pseo-sidebar-product__cta { transition: none; }
}

