/*
Theme Name: CriteriaIQ
Theme URI: https://criteriaiq.com
Author: CriteriaIQ
Author URI: https://criteriaiq.com
Description: Official CriteriaIQ marketing theme — Medical Necessity Intelligence for Kipu EMR
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: criteriaiq
*/

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — exact match to the Chrome extension
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Core palette */
  --bg:     #080c14;
  --bg2:    #0d1422;
  --bg3:    #050810;
  --bg4:    #0a0f1a;
  --bd:     #1a2235;
  --bd2:    #243048;
  --tx:     #f1f5f9;
  --tx2:    #9ca3af;
  --tx3:    #374151;
  --tx4:    #4b5563;

  /* Brand accents */
  --blue:   #3b82f6;
  --blue2:  #2563eb;
  --purple: #a855f7;
  --purple2:#7c3aed;
  --green:  #10b981;
  --amber:  #f59e0b;
  --cyan:   #0891b2;
  --red:    #ef4444;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, var(--blue), var(--purple));
  --grad-hero:     linear-gradient(135deg, #060c18 0%, #0d1a2e 50%, #0a0c18 100%);
  --grad-card:     linear-gradient(145deg, #0d1422, #080c14);
  --grad-asam:     linear-gradient(135deg, #2563eb, #7c3aed);
  --grad-milliman: linear-gradient(135deg, #7c3aed, #c026d3);
  --grad-iq:       linear-gradient(135deg, #0369a1, #0891b2);
  --grad-locus:    linear-gradient(135deg, #047857, #059669);
  --grad-bcbs:     linear-gradient(135deg, #0e7490, #0891b2);

  /* Shadows */
  --shadow-glow:  0 0 40px rgba(59,130,246,.15), 0 0 80px rgba(168,85,247,.08);
  --shadow-card:  0 4px 24px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-btn:   0 4px 20px rgba(59,130,246,.35);
  --shadow-logo:  0 8px 32px rgba(99,102,241,.4);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --max-w: 1200px;
  --section-pad: 100px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--tx);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND TEXTURE
   ═══════════════════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,.05) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(16,185,129,.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID OVERLAY (subtle dot grid like a medical monitor)
   ═══════════════════════════════════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26,34,53,.8);
  transition: all .3s;
}

.site-header.scrolled {
  background: rgba(5,8,16,.95);
  box-shadow: 0 4px 40px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-logo);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx2);
  transition: color .2s;
  letter-spacing: -.1px;
}

.nav-links a:hover { color: var(--tx); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.2px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59,130,246,.45);
  color: #fff;
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--bd2);
  color: var(--tx2);
}

.btn-outline:hover {
  background: var(--bg2);
  border-color: var(--blue);
  color: var(--tx);
}

.btn-ghost {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  color: var(--blue);
}

.btn-ghost:hover {
  background: rgba(59,130,246,.15);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--tx2);
  border-radius: 2px;
  transition: all .3s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Hero background glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: float1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,.1) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: float2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes float3 { 0%,100%{transform:translate(-50%,-50%)} 50%{transform:translate(-45%,-55%)} }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(59,130,246,.4)}
  50%{opacity:.8;box-shadow:0 0 0 6px rgba(59,130,246,0)}
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--tx);
}

.hero-title .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--tx2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--tx3);
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.hero-avatar:first-child { margin-left: 0; }

/* Extension mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.extension-mockup {
  width: 360px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(59,130,246,.1), 0 0 120px rgba(168,85,247,.06);
  position: relative;
  animation: mockup-float 6s ease-in-out infinite;
}

@keyframes mockup-float {
  0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-10px) rotate(.5deg)}
}

.mockup-header {
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--bd);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-logo {
  width: 28px; height: 28px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  box-shadow: 0 3px 10px rgba(99,102,241,.4);
  flex-shrink: 0;
}

.mockup-title { font-size: 13px; font-weight: 700; }
.mockup-sub   { font-size: 9px; color: var(--tx3); margin-top: 1px; }

.mockup-status {
  margin: 0 16px 0;
  padding: 7px 11px;
  background: #0a2010;
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 7px;
  font-size: 11px;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 12px;
}

.mockup-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.mockup-buttons {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}

.mockup-divider::before,
.mockup-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--bd);
}

.mockup-divider span {
  font-size: 8px;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}

.mockup-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.mockup-result {
  margin: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 10px 12px;
}

.mockup-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mockup-result-label {
  font-size: 9px;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mockup-result-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  color: var(--green);
}

.mockup-prob-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mockup-prob {
  background: rgba(59,130,246,.05);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 7px 9px;
}

.mockup-prob-lbl { font-size: 8px; color: var(--tx3); margin-bottom: 2px; }
.mockup-prob-val { font-size: 18px; font-weight: 900; font-family: var(--font-mono); }

.mockup-bar {
  height: 3px;
  background: var(--bd);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.mockup-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.mockup-footer {
  padding: 8px 12px;
  background: var(--bg3);
  border-top: 1px solid var(--bd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--tx3);
}

/* Floating badges around mockup */
.mockup-badge {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.badge-asam  { top: -20px; right: -30px; border-color: rgba(59,130,246,.3); animation: badge-float1 7s ease-in-out infinite; }
.badge-mcg   { bottom: 60px; left: -40px; border-color: rgba(168,85,247,.3); animation: badge-float2 9s ease-in-out infinite; }
.badge-saved { bottom: -20px; right: 0; border-color: rgba(16,185,129,.3); animation: badge-float3 8s ease-in-out infinite; }

@keyframes badge-float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes badge-float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
@keyframes badge-float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGOS STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.logos-strip {
  padding: 40px 24px;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  position: relative; z-index: 1;
}

.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 8px 16px;
}

.logo-pill-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.logo-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════════════════════════════ */
section { padding: var(--section-pad); position: relative; z-index: 1; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--tx);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--tx2);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 60px;
}

.section-header { margin-bottom: 60px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════════ */
.how-it-works { background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  background: var(--bg2);
  padding: 48px 40px;
  position: relative;
  transition: background .3s;
}

.step:hover { background: var(--bg4); }

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(59,130,246,.12);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.step-icon {
  width: 48px; height: 48px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(59,130,246,.25);
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.4px;
}

.step-desc { font-size: 15px; color: var(--tx2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.features { background: var(--bg3); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 30px rgba(59,130,246,.08);
}

.feature-card:hover::before { opacity: .03; }

.feature-card > * { position: relative; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.feature-desc { font-size: 14px; color: var(--tx2); line-height: 1.65; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANALYSIS SHOWCASE
   ═══════════════════════════════════════════════════════════════════════════ */
.showcase { background: var(--bg); }

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-inner.reverse { direction: rtl; }
.showcase-inner.reverse > * { direction: ltr; }

.showcase-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}

.showcase-tab {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx3);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.showcase-tab.active {
  background: var(--grad-primary);
  color: #fff;
}

.showcase-panel {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.showcase-panel-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--bd);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-panel-body { padding: 20px; }

.score-hero {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.score-card {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.score-label { font-size: 9px; color: var(--tx3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.score-val { font-size: 28px; font-weight: 900; font-family: var(--font-mono); line-height: 1; }
.score-sub { font-size: 9px; color: var(--tx3); margin-top: 4px; }

.score-bar {
  height: 4px;
  background: var(--bd);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.score-bar-fill { height: 100%; border-radius: 2px; }

.dim-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 4px;
}

.dim-chip {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
}

.dim-dot { width: 7px; height: 7px; border-radius: 50%; margin: 0 auto 3px; }
.dim-lbl { font-size: 8px; color: var(--tx3); }

/* ═══════════════════════════════════════════════════════════════════════════
   STATS BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-banner {
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(168,85,247,.06) 100%);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 60px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
}

.stat {
  background: var(--bg2);
  padding: 40px 32px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: 15px; color: var(--tx2); font-weight: 500; }
.stat-sub { font-size: 12px; color: var(--tx3); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.pricing { background: var(--bg3); }

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--tx2);
}

.toggle-switch {
  width: 48px; height: 26px;
  background: var(--bd2);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.toggle-switch.active { background: var(--grad-primary); }

.toggle-knob {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.toggle-switch.active .toggle-knob { transform: translateX(22px); }

.save-badge {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: all .3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 20px 60px rgba(59,130,246,.12);
  transform: scale(1.03);
}

.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }

.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.plan-price-val {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.plan-price-period { font-size: 14px; color: var(--tx3); }
.plan-seats { font-size: 13px; color: var(--tx3); margin-bottom: 24px; }

.plan-features {
  list-style: none;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.4;
}

.plan-feature-check {
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature-x {
  color: var(--tx3);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-feature.locked { color: var(--tx3); }

.plan-cta { display: block; text-align: center; width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */
.testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .3s;
}

.testimonial-card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.testimonial-stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx2);
  flex: 1;
  font-style: italic;
}

.testimonial-quote::before { content: '"'; color: var(--blue); font-size: 20px; }
.testimonial-quote::after  { content: '"'; color: var(--blue); font-size: 20px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.author-role { font-size: 12px; color: var(--tx3); }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */
.faq { background: var(--bg3); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--tx);
  user-select: none;
  transition: background .2s;
}

.faq-question:hover { background: rgba(59,130,246,.04); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--tx2);
  flex-shrink: 0;
  transition: all .2s;
}

.faq-item.open .faq-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg);
  padding: 120px 24px;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(168,85,247,.06) 100%);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.cta-sub { font-size: 18px; color: var(--tx2); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-note { font-size: 13px; color: var(--tx3); margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg3);
  border-top: 1px solid var(--bd);
  padding: 60px 24px 32px;
  position: relative; z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--tx3);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--tx3);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--tx3);
  transition: color .2s;
}

.footer-links a:hover { color: var(--tx); }

.footer-bottom {
  border-top: 1px solid var(--bd);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--tx3);
}

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--tx3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS — entrance on scroll
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }
.fade-in-delay-5 { transition-delay: .5s; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Tablet (max 1024px) ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-inner.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Nav hidden at 900px ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(8,12,20,.99); backdrop-filter: blur(20px);
    padding: 16px 20px 100px; gap: 2px; align-items: center;
    border-top: 1px solid var(--bd);
    z-index: 200; overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open li a {
    text-align: center;
    display: block; padding: 13px 16px;
    font-size: 15px; border-radius: 10px;
    color: var(--tx2); border-bottom: 1px solid var(--bd2);
  }
  .nav-links.open li:last-child a { border-bottom: none; }
  .nav-cta.open {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 20px 20px;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(8,12,20,.99);
    border-top: 1px solid var(--bd);
    z-index: 201;
  }
  .nav-cta.open .btn { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
  .nav-dropdown {
    position: static !important; transform: none !important;
    box-shadow: none !important; border: none !important;
    border-left: 2px solid var(--bd) !important;
    border-radius: 0 !important; margin: 4px 0 4px 16px !important;
    padding: 4px 0 !important; background: transparent !important;
    display: none !important;
  }
  .nav-dropdown::before { display: none !important; }
  .nav-links li.has-dropdown.mobile-open .nav-dropdown { display: block !important; }
  .nav-dropdown a { padding: 8px 12px !important; font-size: 13px !important; }
  .has-dropdown > a::after { content: ' ▾'; }
}

/* ── Mobile (max 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 50px 16px; }

  .container { padding-left: 16px; padding-right: 16px; }

  /* Hero */
  .hero { padding: 100px 16px 56px; }
  .hero-title { font-size: clamp(26px, 8vw, 48px); }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-orb { display: none; }
  .extension-mockup { width: 100%; max-width: 320px; font-size: 11px; }
  .mockup-btn { font-size: 10px; padding: 7px 10px; }
  .mockup-badge { display: none; }

  /* Typography */
  .section-title { font-size: clamp(22px, 6vw, 38px); }
  .section-subtitle { font-size: 15px; }
  .section-header { text-align: center; }
  .section-header .section-eyebrow { justify-content: center; }

  /* Logos */
  .logos-row { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .logo-pill { padding: 6px 10px; }
  .logo-pill-name { font-size: 10px; }

  /* How it works */
  .steps-grid { grid-template-columns: 1fr; gap: 0; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-val { font-size: clamp(24px, 7vw, 40px); }

  /* Showcase */
  .showcase-tabs { flex-wrap: wrap; gap: 6px; }
  .showcase-tab { font-size: 11px; padding: 6px 12px; }
  .score-hero { grid-template-columns: 1fr 1fr; gap: 8px; }
  .score-val { font-size: 24px !important; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card.popular { transform: scale(1); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-inner { padding: 40px 20px; }
  .cta-title { font-size: clamp(22px, 6vw, 36px); }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Force all 2-col and 3-col inline grids to 1 col on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:280px 1fr"],
  [style*="grid-template-columns: 280px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Keep 2-col for stat cards and btn chips */
  .stats-grid,
  .btn-grid { grid-template-columns: 1fr 1fr !important; }

  /* Dashboard */
  .dash-header { flex-direction: column; gap: 12px; }
  .dash-grid { grid-template-columns: 1fr !important; }

  /* Sticky → static on mobile */
  [style*="position:sticky"],
  [style*="position: sticky"] { position: static !important; }

  /* Section padding override */
  section[style*="padding"] { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROSE CONTENT (blog posts)
   ═══════════════════════════════════════════════════════════════════════════ */
.prose-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--tx2);
}
.prose-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -.8px;
  margin: 52px 0 16px;
  line-height: 1.2;
}
.prose-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -.4px;
  margin: 36px 0 12px;
}
.prose-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
  margin: 24px 0 8px;
}
.prose-content p { margin-bottom: 20px; }
.prose-content strong { color: var(--tx); font-weight: 700; }
.prose-content em { font-style: italic; }
.prose-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(59,130,246,.3); text-underline-offset: 3px; }
.prose-content a:hover { color: var(--purple); }
.prose-content ul, .prose-content ol { padding-left: 24px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose-content li { color: var(--tx2); }
.prose-content ul li::marker { color: var(--blue); }
.prose-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  background: rgba(59,130,246,.05);
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--tx);
}
.prose-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
}
.prose-content pre {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.prose-content pre code {
  background: none;
  border: none;
  padding: 0;
}
.prose-content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bd);
  margin: 24px 0;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.prose-content table th {
  background: var(--bg3);
  border: 1px solid var(--bd);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--tx);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.prose-content table td {
  border: 1px solid var(--bd);
  padding: 10px 14px;
  color: var(--tx2);
}
.prose-content table tr:nth-child(even) td { background: rgba(255,255,255,.01); }
.prose-content hr {
  border: none;
  border-top: 1px solid var(--bd);
  margin: 40px 0;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────────── */
.breadcrumbs {
  font-size: 12px;
  color: var(--tx3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--tx3); transition: color .2s; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--tx3); }

/* ── Page header utility ────────────────────────────────────────────────────── */
.page-header { padding: 80px 0 60px; background: var(--bg); }

/* ── WP pagination ──────────────────────────────────────────────────────────── */
.wp-pagenavi .nav-links, .navigation .nav-links { display: flex; gap: 8px; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
  background: var(--bg2);
  border: 1px solid var(--bd);
  text-decoration: none;
  transition: all .2s;
}
.page-numbers.current, .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.prev.page-numbers, .next.page-numbers { width: auto; padding: 0 14px; }

/* ── Search results ─────────────────────────────────────────────────────────── */
.search-results-header { padding: 60px 0 20px; }
.search-result-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--bd);
}
.search-result-item h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.search-result-item h2 a { color: var(--tx); }
.search-result-item h2 a:hover { color: var(--blue); }
.search-result-excerpt { font-size: 14px; color: var(--tx3); line-height: 1.6; }

/* ── Category / tag archive ─────────────────────────────────────────────────── */
.archive-header {
  padding: 60px 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
}
.archive-title { font-family: var(--font-display); font-size: clamp(28px,4vw,48px); font-weight: 800; letter-spacing: -1.5px; }
.archive-desc { font-size: 16px; color: var(--tx2); margin-top: 12px; max-width: 600px; }

/* ── 404 ──────────────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 120px 24px; }
.error-404 .error-code { font-family: var(--font-mono); font-size: 120px; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }

/* ── WP admin bar offset ────────────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ── Mobile nav centering fix ────────────────────────────────── */
@media (max-width: 900px) {
  .nav-inner {
    justify-content: space-between;
  }
  .nav-links.open {
    align-items: stretch !important;
  }
  .nav-links.open li {
    width: 100%;
    text-align: left;
  }
  .nav-links.open li a {
    text-align: left !important;
    display: block;
    width: 100%;
  }
  .nav-links.open li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Force mobile nav on small screens ──────────────────────── */
@media screen and (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-toggle { display: flex !important; }
}
