/* ==========================================================================
   TECNICOELHO — DEDICATED SEO, ADS & CONTENT BESPOKE STUDIO EXPERIENCE
   Isolated Stylesheet for /seo/ and page-seo.php
   Design Language: LIRCLE Studio, NordPixel Swiss Architecture, RothFinder
   Strict Rules: Zero Neon-Tech Colors | Warm Studio Architectural Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,600;1,500;1,600;1,700&family=JetBrains+Mono:wght@400;500;600;700&family=Young+Serif&display=swap');

/* ── Reset & CSS Variables ── */
:root {
  --seo-bg-deep: #0a0d13;
  --seo-bg-surface: #111620;
  --seo-bg-surface-elevated: #161c28;
  --seo-bg-light: #ffffff;
  --seo-bg-linen: #f9f8f5;
  --seo-bg-sand: #f0ece3;
  
  --seo-terracotta: #c25e38;
  --seo-terracotta-hover: #ad4f2b;
  --seo-terracotta-soft: rgba(194, 94, 56, 0.12);
  --seo-terracotta-glow: rgba(194, 94, 56, 0.28);
  
  --seo-sage: #233a2e;
  --seo-sage-soft: rgba(35, 58, 46, 0.12);
  --seo-sage-pill: #2e4d3d;
  
  --seo-gold: #c99e52;
  --seo-gold-soft: rgba(201, 158, 82, 0.12);
  
  --seo-text-main: #f5f4ef;
  --seo-text-muted: #8d95a5;
  --seo-text-dark: #0b0e14;
  --seo-text-dark-muted: #4e5768;
  
  --seo-border-dark: rgba(245, 244, 239, 0.08);
  --seo-border-dark-hover: rgba(194, 94, 56, 0.35);
  --seo-border-light: rgba(11, 14, 20, 0.09);
  
  --seo-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --seo-font-serif: 'Cormorant Garamond', Georgia, serif;
  --seo-font-display: 'Young Serif', serif;
  --seo-font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --seo-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --seo-radius-pill: 9999px;
  --seo-radius-band: clamp(32px, 5vw, 56px);
  --seo-radius-card: 24px;
}

/* ── Global Container Isolation ── */
body.page-template-page-seo,
body.page-template-template-seo,
body:has(.seo-page-experience) {
  background-color: var(--seo-bg-deep) !important;
  color: var(--seo-text-main) !important;
  font-family: var(--seo-font-sans) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

/* Bypass default theme wrappers completely */
.page-template-page-seo .standard-page-container,
.page-template-template-seo .standard-page-container,
.page-template-page-seo .standard-page-glass-card,
.page-template-template-seo .standard-page-glass-card {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.seo-page-experience {
  width: 100%;
  position: relative;
  background-color: var(--seo-bg-deep);
  color: var(--seo-text-main);
  overflow-x: clip;
}

/* ── Layout Constraints ── */
.seo-wrap {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.seo-wrap-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

/* ── Typography Styling ── */
.seo-serif-italic {
  font-family: var(--seo-font-serif);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--seo-terracotta);
}

.seo-mono-tag {
  font-family: var(--seo-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Kinetic Text Reveal (LIRCLE & NordPixel) ── */
.seo-reveal-wrap {
  overflow: hidden;
  display: block;
}

.seo-reveal-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--seo-ease-out), opacity 0.6s ease;
  will-change: transform, opacity;
}

.seo-revealed .seo-reveal-line {
  transform: translateY(0);
  opacity: 1;
}

/* ── Bespoke Architectural Top Nav ── */
.seo-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 36px));
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 24px;
  background: rgba(16, 22, 32, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(245, 244, 239, 0.1);
  border-radius: var(--seo-radius-pill);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.seo-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--seo-text-main);
}

.seo-nav-logo-text {
  font-family: var(--seo-font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.seo-nav-badge {
  font-family: var(--seo-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--seo-terracotta-soft);
  color: #ded6c8;
  border: 1px solid rgba(194, 94, 56, 0.25);
  padding: 3px 9px;
  border-radius: var(--seo-radius-pill);
  letter-spacing: 0.08em;
}

.seo-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-nav-links a {
  text-decoration: none;
  color: var(--seo-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.seo-nav-links a:hover {
  color: var(--seo-text-main);
}

.seo-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--seo-terracotta);
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--seo-radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--seo-ease-out);
  box-shadow: 0 6px 18px var(--seo-terracotta-glow);
}

.seo-nav-cta:hover {
  background: var(--seo-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(194, 94, 56, 0.45);
}

/* ── Hero Section (Cinematic Editorial) ── */
.seo-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(60px, 8vh, 100px);
  position: relative;
  box-sizing: border-box;
}

.seo-hero-header {
  margin-bottom: 36px;
}

.seo-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--seo-terracotta-soft);
  border: 1px solid rgba(194, 94, 56, 0.25);
  padding: 7px 18px;
  border-radius: var(--seo-radius-pill);
  color: #ded6c8;
  margin-bottom: 28px;
}

.seo-hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seo-terracotta);
  box-shadow: 0 0 10px var(--seo-terracotta);
}

.seo-hero-h1 {
  font-family: var(--seo-font-sans);
  font-size: clamp(2.6rem, 5.8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--seo-text-main);
  max-width: 1100px;
  margin: 0 0 32px 0;
}

.seo-hero-subgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--seo-border-dark);
}

.seo-hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--seo-text-muted);
  margin: 0 0 32px 0;
  font-weight: 400;
}

.seo-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.seo-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--seo-radius-pill);
  background: var(--seo-terracotta);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s var(--seo-ease-out);
  box-shadow: 0 8px 25px var(--seo-terracotta-glow);
}

.seo-btn-primary:hover {
  background: var(--seo-terracotta-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(194, 94, 56, 0.45);
}

.seo-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--seo-radius-pill);
  background: transparent;
  color: var(--seo-text-main);
  border: 1px solid var(--seo-border-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.seo-btn-secondary:hover {
  border-color: rgba(245, 244, 239, 0.3);
  background: rgba(245, 244, 239, 0.04);
}

/* Quick Metrics Strip */
.seo-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--seo-bg-surface);
  border: 1px solid var(--seo-border-dark);
  border-radius: 20px;
  padding: 24px;
}

.seo-stat-item {
  display: flex;
  flex-direction: column;
}

.seo-stat-num {
  font-family: var(--seo-font-sans);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--seo-text-main);
  line-height: 1.1;
}

.seo-stat-label {
  font-size: 0.78rem;
  color: var(--seo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-weight: 600;
}

/* ── Seamless Marquee Ticker ── */
.seo-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--seo-border-dark);
  border-bottom: 1px solid var(--seo-border-dark);
  background: #080a0e;
  padding: 18px 0;
  position: relative;
  margin-bottom: clamp(60px, 8vh, 100px);
}

.seo-marquee-track {
  display: flex;
  width: max-content;
  animation: seoMarqueeScroll 32s linear infinite;
}

.seo-marquee-track:hover {
  animation-play-state: paused;
}

.seo-marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
}

.seo-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--seo-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 244, 239, 0.75);
}

.seo-marquee-separator {
  color: var(--seo-terracotta);
  font-size: 1.1rem;
}

@keyframes seoMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Architectural Band Section (NordPixel Inspired) ── */
.seo-band-light {
  background: var(--seo-bg-light);
  color: var(--seo-text-dark);
  border-radius: var(--seo-radius-band);
  padding: clamp(70px, 10vh, 130px) 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.seo-band-light .seo-chapter-tag {
  color: var(--seo-sage);
  background: var(--seo-sage-soft);
  border: 1px solid rgba(35, 58, 46, 0.2);
}

.seo-band-light .seo-chapter-h2 {
  color: var(--seo-text-dark);
}

.seo-band-light .seo-lead-desc {
  color: var(--seo-text-dark-muted);
}

/* ── Section Headers ── */
.seo-chapter-header {
  margin-bottom: clamp(48px, 7vh, 80px);
}

.seo-chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--seo-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--seo-radius-pill);
  background: var(--seo-terracotta-soft);
  border: 1px solid rgba(194, 94, 56, 0.25);
  color: #ded6c8;
  margin-bottom: 20px;
}

.seo-chapter-h2 {
  font-family: var(--seo-font-sans);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}

.seo-lead-desc {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--seo-text-muted);
  max-width: 780px;
  margin: 0;
}

/* ── Chapter 1: 3D Technical Audit Grid ── */
.seo-audit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.seo-pill-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.seo-pill-feature-card {
  background: #f8fafc;
  border: 1px solid var(--seo-border-light);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.seo-pill-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(35, 58, 46, 0.3);
}

.seo-feature-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.seo-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--seo-sage-soft);
  color: var(--seo-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.seo-feature-top h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--seo-text-dark);
}

.seo-pill-feature-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--seo-text-dark-muted);
}

/* 3D Flip Card Container */
.seo-flip-stage {
  perspective: 1200px;
  width: 100%;
  min-height: 520px;
}

.seo-flip-card {
  position: relative;
  width: 100%;
  height: 520px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.4, 1.2);
  cursor: pointer;
}

.seo-flip-card.flipped {
  transform: rotateY(180deg);
}

.seo-flip-front,
.seo-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  padding: 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.seo-flip-front {
  background: #0d121c;
  color: var(--seo-text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.seo-flip-back {
  background: #111722;
  color: var(--seo-text-main);
  border: 1px solid rgba(194, 94, 56, 0.35);
  box-shadow: 0 25px 60px rgba(194, 94, 56, 0.15);
  transform: rotateY(180deg);
}

.seo-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.seo-traffic-dots {
  display: flex;
  gap: 6px;
}

.seo-traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.seo-dot-red { background: #ef4444; }
.seo-dot-yellow { background: #f59e0b; }
.seo-dot-green { background: #10b981; }

.seo-card-status-badge {
  font-family: var(--seo-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--seo-radius-pill);
}

.seo-audit-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-audit-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(245, 244, 239, 0.9);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.seo-check-ok {
  color: #10b981;
  font-family: var(--seo-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.seo-card-bottom-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--seo-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.seo-flip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--seo-text-main);
  padding: 6px 14px;
  border-radius: var(--seo-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seo-flip-btn:hover {
  background: var(--seo-terracotta);
  border-color: var(--seo-terracotta);
}

/* Code Snippet on Flip Back */
.seo-code-block {
  font-family: var(--seo-font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  background: #080b11;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  color: #a5b4fc;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 16px 0;
}

/* ── Chapter 2: PageSpeed 99 & Core Web Vitals ── */
.seo-pagespeed-section {
  padding: clamp(70px, 10vh, 120px) 0;
  background: var(--seo-bg-deep);
  position: relative;
}

.seo-pagespeed-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

/* Animated SVG Gauge */
.seo-gauge-box {
  background: var(--seo-bg-surface);
  border: 1px solid var(--seo-border-dark);
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seo-radial-gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}

.seo-radial-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.seo-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 14;
}

.seo-gauge-meter {
  fill: none;
  stroke: var(--seo-terracotta);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440; /* Animated to 4.4 via JS */
  transition: stroke-dashoffset 1.8s var(--seo-ease-out);
}

.seo-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seo-gauge-score {
  font-family: var(--seo-font-sans);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--seo-text-main);
}

.seo-gauge-caption {
  font-family: var(--seo-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10b981;
  margin-top: 4px;
}

.seo-gauge-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--seo-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--seo-text-muted);
}

/* Core Web Vitals 4-Grid */
.seo-cwv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.seo-cwv-card {
  background: var(--seo-bg-surface);
  border: 1px solid var(--seo-border-dark);
  border-radius: 20px;
  padding: 26px;
  transition: all 0.3s ease;
}

.seo-cwv-card:hover {
  border-color: var(--seo-border-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.seo-cwv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.seo-cwv-metric {
  font-family: var(--seo-font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--seo-text-main);
}

.seo-cwv-badge {
  font-family: var(--seo-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 3px 8px;
  border-radius: var(--seo-radius-pill);
}

.seo-cwv-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: var(--seo-text-main);
}

.seo-cwv-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--seo-text-muted);
  margin: 0;
}

/* ── Chapter 3: RothFinder Stacking Sticky Cards ── */
.seo-stack-section {
  padding: clamp(70px, 10vh, 120px) 0 clamp(90px, 12vh, 150px);
  background: var(--seo-bg-deep);
  position: relative;
}

.seo-stack-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.seo-stack-card {
  position: sticky;
  top: 110px;
  background: var(--seo-bg-surface);
  border: 1px solid var(--seo-border-dark);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 60px);
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform-origin: center top;
  transition: transform 0.4s var(--seo-ease-out), filter 0.4s ease, opacity 0.4s ease;
}

.seo-stack-card-1 {
  border-color: rgba(194, 94, 56, 0.35);
  background: #111622;
}

.seo-stack-card-2 {
  border-color: rgba(201, 158, 82, 0.35);
  background: #131a24;
}

.seo-stack-card-3 {
  border-color: rgba(35, 58, 46, 0.5);
  background: #0f161c;
}

.seo-stack-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.seo-stack-kicker {
  font-family: var(--seo-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seo-terracotta);
  margin-bottom: 12px;
  display: block;
}

.seo-stack-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
}

.seo-stack-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--seo-text-muted);
  margin: 0 0 24px 0;
}

.seo-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-stack-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--seo-text-main);
}

.seo-stack-list-icon {
  color: var(--seo-terracotta);
  font-weight: 700;
}

/* Card Visual Box (Data Pill) */
.seo-stack-visual {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-visual-stat-big {
  display: flex;
  flex-direction: column;
}

.seo-visual-stat-big .val {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--seo-text-main);
}

.seo-visual-stat-big .desc {
  font-size: 0.85rem;
  color: var(--seo-text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.seo-visual-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--seo-radius-pill);
  overflow: hidden;
}

.seo-visual-progress-fill {
  height: 100%;
  background: var(--seo-terracotta);
  border-radius: var(--seo-radius-pill);
}

/* ── Chapter 4: LIRCLE Matrix — Creación de Contenido & Video Vertical ── */
.seo-matrix-section {
  background: var(--seo-bg-linen);
  color: var(--seo-text-dark);
  border-radius: var(--seo-radius-band);
  padding: clamp(70px, 10vh, 130px) 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.seo-matrix-section .seo-chapter-tag {
  background: rgba(194, 94, 56, 0.12);
  color: var(--seo-terracotta);
  border-color: rgba(194, 94, 56, 0.25);
}

.seo-matrix-section .seo-chapter-h2 {
  color: var(--seo-text-dark);
}

.seo-matrix-section .seo-lead-desc {
  color: var(--seo-text-dark-muted);
}

/* Day Selector Buttons */
.seo-days-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.seo-day-btn {
  background: #ffffff;
  border: 1px solid var(--seo-border-light);
  padding: 10px 22px;
  border-radius: var(--seo-radius-pill);
  font-family: var(--seo-font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--seo-text-dark-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.seo-day-btn:hover {
  background: #f1f3f7;
  color: var(--seo-text-dark);
}

.seo-day-btn.active {
  background: var(--seo-text-dark);
  color: #ffffff;
  border-color: var(--seo-text-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Matrix Detail Display Box */
.seo-matrix-display {
  background: #ffffff;
  border: 1px solid var(--seo-border-light);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.seo-matrix-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--seo-terracotta-soft);
  color: var(--seo-terracotta);
  font-family: var(--seo-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--seo-radius-pill);
  margin-bottom: 16px;
}

.seo-matrix-day-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
  color: var(--seo-text-dark);
}

.seo-matrix-goal {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--seo-text-dark-muted);
  margin: 0 0 28px 0;
}

.seo-hook-box {
  background: #f8fafc;
  border-left: 4px solid var(--seo-terracotta);
  border-radius: 0 14px 14px 0;
  padding: 18px 24px;
  margin-bottom: 24px;
}

.seo-hook-label {
  font-family: var(--seo-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--seo-terracotta);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.seo-hook-text {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--seo-text-dark);
  margin: 0;
}

/* Phone Mockup Simulation */
.seo-phone-mockup {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #0d1117;
  border: 10px solid #1c222e;
  border-radius: 40px;
  padding: 24px 20px;
  box-sizing: border-box;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.seo-phone-notch {
  width: 90px;
  height: 16px;
  background: #1c222e;
  border-radius: 0 0 12px 12px;
  margin: -24px auto 20px auto;
}

.seo-reel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.seo-reel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--seo-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.seo-reel-username {
  font-size: 0.82rem;
  font-weight: 700;
}

.seo-reel-hook-preview {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 40px;
  text-align: center;
}

.seo-reel-soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-top: 12px;
}

.seo-sound-bar {
  width: 3px;
  background: var(--seo-terracotta);
  border-radius: 2px;
  animation: seoSoundPulse 1.2s ease-in-out infinite alternate;
}

.seo-sound-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.seo-sound-bar:nth-child(3) { animation-delay: 0.4s; height: 12px; }
.seo-sound-bar:nth-child(4) { animation-delay: 0.1s; height: 22px; }
.seo-sound-bar:nth-child(5) { animation-delay: 0.5s; height: 14px; }

@keyframes seoSoundPulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ── Chapter 5: Conversion & Diagnosis ── */
.seo-cta-section {
  padding: clamp(80px, 12vh, 150px) 0;
  background: var(--seo-bg-deep);
  position: relative;
}

.seo-cta-box {
  background: var(--seo-bg-surface);
  border: 1px solid rgba(194, 94, 56, 0.35);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.seo-cta-box::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(194, 94, 56, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.seo-cta-h2 {
  font-family: var(--seo-font-sans);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}

.seo-cta-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--seo-text-muted);
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.seo-cta-button-huge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--seo-terracotta);
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 20px 48px;
  border-radius: var(--seo-radius-pill);
  text-decoration: none;
  box-shadow: 0 12px 35px var(--seo-terracotta-glow);
  transition: all 0.35s var(--seo-ease-out);
}

.seo-cta-button-huge:hover {
  background: var(--seo-terracotta-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(194, 94, 56, 0.5);
}

.seo-guarantee-note {
  display: block;
  font-family: var(--seo-font-mono);
  font-size: 0.8rem;
  color: var(--seo-text-muted);
  margin-top: 24px;
  letter-spacing: 0.04em;
}

/* ── Floating Chapter Tracker Pill (Sticky Navigation) ── */
.seo-floating-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid rgba(245, 244, 239, 0.12);
  border-radius: var(--seo-radius-pill);
  padding: 6px 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: all 0.3s ease;
}

.seo-pill-link {
  font-family: var(--seo-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--seo-text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--seo-radius-pill);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.seo-pill-link:hover {
  color: var(--seo-text-main);
  background: rgba(255, 255, 255, 0.06);
}

.seo-pill-link.active {
  background: var(--seo-terracotta);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--seo-terracotta-glow);
}

/* ── Bespoke Editorial Footer ── */
.seo-footer {
  border-top: 1px solid var(--seo-border-dark);
  padding: 60px 0 120px 0;
  background: #080a0e;
  color: var(--seo-text-muted);
}

.seo-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.seo-footer-brand {
  font-size: 0.88rem;
  font-weight: 600;
}

.seo-footer-backhome {
  font-family: var(--seo-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--seo-terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-footer-backhome:hover {
  color: var(--seo-text-main);
}

/* ── Responsive Adaptations ── */
@media (max-width: 960px) {
  .seo-hero-subgrid,
  .seo-audit-grid,
  .seo-pagespeed-container,
  .seo-stack-inner,
  .seo-matrix-display {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .seo-cwv-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-nav-links {
    display: none;
  }
  
  .seo-floating-pill {
    width: calc(100vw - 32px);
    overflow-x: auto;
    justify-content: flex-start;
  }
}
