/* ===================================================
   GLOBAL DARK MODE — applied to all pages via modern.css
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:          #0d1117;
  --bg-1:        #161b22;
  --bg-card:     #1c2128;
  --bg-card-hover:#21262d;
  --border:      rgba(255,255,255,0.09);
  --border-hover:rgba(56,189,248,0.55);
  --accent:      #38bdf8;
  --accent-2:    #7dd3fc;
  --accent-dim:  rgba(56,189,248,0.15);
  --tag-bg:      rgba(56,189,248,0.15);
  --tag-text:    #7dd3fc;
  --text:        #f1f5f9;
  --text-dim:    rgba(241,245,249,0.80);
  --text-muted:  rgba(241,245,249,0.55);
  --font-sans:   'Inter','Inter var',system-ui,sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

/* Nav / header */
header, nav, .nav, .site-header, .header {
  background: rgba(13,17,23,0.92) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
header a, nav a, .nav a, .nav__logo, .nav__links a {
  color: var(--text-dim) !important;
}
header a:hover, nav a:hover { color: var(--text) !important; }

/* Main content area */
main, .main, article, .content, .post, .blog-post,
.post-body, .page-content, .container, .wrapper {
  background: transparent !important;
  color: var(--text) !important;
}

/* All headings */
h1,h2,h3,h4,h5,h6 {
  color: var(--text) !important;
}

/* Paragraphs & text */
p, li, span, td, th, blockquote, label, figcaption {
  color: var(--text-dim) !important;
}

/* Links */
a { color: var(--accent) !important; }
a:hover { color: var(--accent-2) !important; }

/* Cards & sections */
.card, .post-card, .blog-card, .article-card,
.feature-card, .plan-card, .preview-card,
[class*="card"], section, .section {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.card:hover, .post-card:hover, .blog-card:hover,
[class*="card"]:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-hover) !important;
}

/* Sections with explicit bg */
.bg-white, .bg-gray-50, .bg-gray-100,
[style*="background: #fff"], [style*="background:#fff"],
[style*="background: white"], [style*="background-color: white"],
[style*="background-color:#fff"] {
  background: var(--bg-1) !important;
}

/* Tags / badges / chips */
.tag, .badge, .chip, .label,
[class*="tag-"], [class*="-tag"],
[class*="badge"], [class*="chip"] {
  background: var(--tag-bg) !important;
  color: var(--tag-text) !important;
  border: 1px solid rgba(56,189,248,0.2) !important;
}

/* Inputs & forms */
input, textarea, select {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn, button, [class*="btn-"], [class*="-btn"],
a.cta, .cta-btn {
  background: var(--accent) !important;
  color: #0d1117 !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
.btn:hover, button:hover { opacity: 0.88 !important; }

/* Blog listing page specific */
.blog-index, .post-list, .posts-grid,
.blog-grid, .articles, .article-list {
  background: var(--bg) !important;
}
.post-meta, .post-date, .meta, .date,
.author, .read-time {
  color: var(--text-muted) !important;
}
.post-title, .article-title, h2 a, h3 a {
  color: var(--text) !important;
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
th { background: var(--bg-card) !important; color: var(--text) !important; }
td { border-color: var(--border) !important; color: var(--text-dim) !important; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02) !important; }

/* Horizontal rules & dividers */
hr, .divider { border-color: var(--border) !important; }

/* Footer */
footer, .footer, .site-footer {
  background: var(--bg-1) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}
footer a, .footer a { color: var(--text-dim) !important; }
footer a:hover, .footer a:hover { color: var(--accent) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,0.5); }


/* Jeevan AI — Modern UI: scroll-reveal, gradient text, card polish */

/* Gradient text on section headings */
.section-title {
  background: linear-gradient(135deg, #111827 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll-reveal base (JS adds .revealed) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Shimmer on CTA buttons */
@keyframes jaiShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.btn--primary, .cta__btn, a[href*="auth/login"].btn {
  background: linear-gradient(90deg,#0ea5e9,#0284c7,#38bdf8,#0ea5e9) !important;
  background-size: 300% auto !important;
  animation: jaiShimmer 4s linear infinite !important;
  border: none !important;
  color: #fff !important;
}

/* Card hover lift */
.step, .plan, .preview-card, .audit-card {
  transition: transform 0.22s, box-shadow 0.22s;
}
.step:hover, .plan:hover, .preview-card:hover, .audit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99,102,241,0.14) !important;
}

/* Glassmorphism on step cards */
.step {
  background: rgba(255,255,255,0.76) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56,189,248,0.18) !important;
}
.step__num {
  background: linear-gradient(135deg,#38bdf8,#0284c7) !important;
  color: #fff !important;
  border: none !important;
}

/* Stats as individual cards */
.stats__inner { background: transparent !important; border: none !important; gap: 16px !important; }
.stat {
  background: #fff !important;
  border: 1px solid #e0f2fe !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(56,189,248,0.07) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(99,102,241,0.13) !important; }
.stat__num {
  background: linear-gradient(135deg,#38bdf8,#0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label pill */
.section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  font-size: 0.72rem !important;
}

/* Factor items */
.factor-item {
  border-left: 3px solid #38bdf8 !important;
  transition: transform 0.2s;
}
.factor-item:hover { transform: translateX(4px); }

/* Platform chips */
.platform-chip { transition: all 0.2s; }
.platform-chip:hover {
  border-color: rgba(56,189,248,0.4);
  background: rgba(99,102,241,0.05);
  color: #38bdf8;
}

/* Featured plan glow */
@keyframes borderGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(56,189,248,0.5), 0 8px 32px rgba(56,189,248,0.18); }
  50%      { box-shadow: 0 0 0 2px rgba(14,165,233,0.6), 0 12px 40px rgba(14,165,233,0.22); }
}
.plan--featured { animation: borderGlow 3s ease-in-out infinite !important; }

/* Preview card hover border */
.preview-card { border: 1px solid #e5e7eb; }
.preview-card:hover {
  border-color: transparent;
  box-shadow: 0 0 0 2px #38bdf8, 0 8px 24px rgba(56,189,248,0.12) !important;
}

/* Tinted section backgrounds */
.blog-preview { background: linear-gradient(180deg,#f8faff 0%,#fff 100%) !important; }
.factors      { background: linear-gradient(180deg,#f5f3ff 0%,#eff6ff 100%) !important; }


/* =====================================================
   ISSUE FIXES
   ===================================================== */

/* Fix 1: Prevent horizontal overflow on all pages */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
* { max-width: 100%; }
img, video, iframe, embed, object { max-width: 100% !important; height: auto; }

/* Fix 2: Step cards — force dark background (overrides gray inline styles) */
.step, .step-card, [class*="step"],
.how-it-works .card, .steps .card,
.step__body, .step-body {
  background: #1c2128 !important;
  border: 1px solid rgba(56,189,248,0.15) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
}
.step h3, .step h2, .step__title, .step-title,
[class*="step"] h3, [class*="step"] h2 {
  color: #f1f5f9 !important;
}
.step p, .step__desc, [class*="step"] p {
  color: rgba(241,245,249,0.80) !important;
}
/* Step number circle */
.step__num, .step-num, .step__number, .step-number {
  background: linear-gradient(135deg,#0ea5e9,#38bdf8) !important;
  color: #fff !important;
  border: none !important;
}

/* Fix 3: Platform chips — fix invisible text */
.platform, .platform-chip, [class*="platform"],
.platforms span, .platform-list span,
.platform-tag, .ai-platform {
  background: rgba(56,189,248,0.12) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56,189,248,0.25) !important;
  border-radius: 100px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  display: inline-block !important;
}
/* Also target white/light pill shapes directly */
[style*="background: white"] span,
[style*="background:#fff"] span,
[style*="background: #fff"] span,
[style*="border-radius: 9999"] {
  background: rgba(56,189,248,0.12) !important;
  color: #7dd3fc !important;
}

/* Fix 4: Two-column / sidebar layouts — collapse on all screens */
.two-col, .two-column, .layout-two-col,
.content-sidebar, .sidebar-layout,
.grid-2, [class*="col-2"],
.features-grid, .feature-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}
/* Remove any fixed left margins/padding from content areas */
.content, .post-content, .article-content,
.main-content, .page-content, .post-body {
  margin-left: 0;
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
}
/* Fix sidebar pushing content */
.sidebar, .side-nav, .left-sidebar, [class*="sidebar"] {
  display: none !important;
}
/* Sections: full width, no overflow */
section, .section {
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Fix 5: Factor items (Trust, Use Case Fit etc.) */
.factor, .factor-item, [class*="factor"],
.buying-factor, [class*="buying"] {
  background: #1c2128 !important;
  border: 1px solid rgba(56,189,248,0.12) !important;
  border-left: 3px solid #38bdf8 !important;
  color: #f1f5f9 !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
}
.factor h3, .factor h4, .factor__name,
[class*="factor"] h3, [class*="factor"] h4 {
  color: #f1f5f9 !important;
}
.factor p, .factor__desc, [class*="factor"] p {
  color: rgba(241,245,249,0.75) !important;
}

/* Fix 6: Container max-width and centering */
.container, .wrapper, .inner, .content-wrap,
[class*="container"], [class*="wrapper"] {
  max-width: min(1200px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  box-sizing: border-box !important;
}

/* Fix 7: Horizontal rule / section divider white lines */
hr {
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  margin: 32px 0 !important;
}

/* Fix 8: CTA button at bottom — dark outline button fix */
.cta-outline, .btn-outline, [class*="btn-ghost"],
a[style*="border: 1px solid"] {
  background: transparent !important;
  border: 1px solid rgba(56,189,248,0.5) !important;
  color: #38bdf8 !important;
}
.cta-outline:hover, .btn-outline:hover {
  background: rgba(56,189,248,0.1) !important;
}

/* Fix 9: Mobile nav — hamburger menu */
@media(max-width: 768px) {
  /* Hide nav links, show hamburger */
  .nav__links, .nav-links, .header__links, header ul,
  nav ul:not(.active) {
    display: none !important;
  }
  .nav__links.open, .nav-links.open,
  nav ul.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 60px !important; left: 0 !important; right: 0 !important;
    background: #0d1117 !important;
    padding: 24px !important;
    border-bottom: 1px solid rgba(56,189,248,0.15) !important;
    z-index: 9999 !important;
    gap: 16px !important;
  }
  .nav__links.open a, .nav-links.open a { font-size: 1rem !important; }

  /* Hamburger icon injected by modern.js */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 8px !important;
    margin-left: auto !important;
  }
  .nav-hamburger span {
    display: block !important;
    width: 22px !important; height: 2px !important;
    background: #f1f5f9 !important;
    border-radius: 2px !important;
    transition: 0.25s !important;
  }

  /* Stack grids vertically on mobile */
  .grid, .steps, .features, .plans, .cards,
  [class*="grid"], [class*="-row"], [class*="flex-row"] {
    flex-direction: column !important;
    display: flex !important;
  }

  /* Full width cards on mobile */
  .step, .plan, .card, .feature-card, [class*="card"] {
    width: 100% !important;
    min-width: unset !important;
  }

  /* Hero font size */
  h1 { font-size: clamp(1.8rem, 7vw, 3rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }

  /* Hide heavy decorative elements */
  .hero-mockup, .hero__visual, [class*="orb"],
  [class*="decoration"], [class*="bg-blob"] {
    display: none !important;
  }
}


/* ── FAQ question text fix ──────────────────────────────────── */
/* Questions must be fully bright — not muted */
details summary,
.faq__question, .faq-question,
.accordion__question, .accordion-question,
[class*="faq"] dt, [class*="faq"] summary,
[class*="accordion"] summary,
[class*="question"], dt {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  list-style: none !important;
}
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; }

/* FAQ answer text */
details p, details li, details div,
.faq__answer, .faq-answer,
[class*="faq"] dd, [class*="accordion"] .content {
  color: rgba(241,245,249,0.82) !important;
}

/* FAQ container */
details, .faq-item, .faq__item,
[class*="faq-item"], [class*="accordion-item"] {
  background: #1c2128 !important;
  border: 1px solid rgba(56,189,248,0.12) !important;
  border-radius: 10px !important;
  padding: 18px 22px !important;
  margin-bottom: 10px !important;
}
details[open] {
  border-color: rgba(56,189,248,0.35) !important;
}

/* FAQ expand arrow */
details summary::after {
  content: '+';
  float: right;
  font-size: 1.2rem;
  color: #38bdf8;
  transition: transform 0.2s;
}
details[open] summary::after {
  content: '−';
}

/* Also fix: any heading inside a faq/accordion that was getting muted */
[class*="faq"] h2, [class*="faq"] h3, [class*="faq"] h4,
[class*="question"] h2, [class*="question"] h3 {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
}


/* =====================================================
   ROOT VAR OVERRIDE — beats page-level :root declarations
   All pages define --text:#111827 etc in their own <style>.
   Using !important on custom properties overrides them.
   ===================================================== */
:root {
  --bg:          #0d1117 !important;
  --bg-1:        #161b22 !important;
  --bg-card:     #1c2128 !important;
  --bg-card-hover:#21262d !important;
  --border:      rgba(255,255,255,0.09) !important;
  --border-hover:rgba(56,189,248,0.55) !important;
  --accent:      #38bdf8 !important;
  --accent-dim:  rgba(56,189,248,0.15) !important;
  --accent-2:    #7dd3fc !important;
  --tag-bg:      rgba(56,189,248,0.15) !important;
  --tag-text:    #7dd3fc !important;
  --text:        #f1f5f9 !important;
  --text-dim:    rgba(241,245,249,0.80) !important;
  --text-muted:  rgba(241,245,249,0.55) !important;
  --font-sans:   'Inter','Inter var',system-ui,sans-serif !important;
}

/* Override hardcoded light-mode colors from individual pages */

/* Dark paragraph text (#374151, #4b5563, #6b7280, #1f2937, #111827) */
p, li, td, th, blockquote, figcaption, dd, dt,
.answer-block p, .prose p, .content p, .post p,
[class*="answer"] p, [class*="block"] p {
  color: rgba(241,245,249,0.82) !important;
}

/* h2/h3 that use var(--text) — now resolves to white via root override
   but also hardcode just in case */
h1, h2, h3, h4, h5, h6,
.answer-block h2, .answer-block h3 {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
}

/* Query cards — was #f9fafb (near white) */
.query-card, [class*="query-card"],
[style*="background:#f9fafb"], [style*="background: #f9fafb"],
[style*="background:#f3f4f6"], [style*="background: #f3f4f6"],
[style*="background:#f8fafc"], [style*="background: #f8fafc"] {
  background: #1c2128 !important;
  border-color: rgba(56,189,248,0.15) !important;
}
.query-card p, .query-card span, .query-card__text {
  color: rgba(241,245,249,0.82) !important;
}

/* Answer block links */
.answer-block a {
  color: #38bdf8 !important;
}

/* Any element with hardcoded dark text colors */
[style*="color:#374151"] { color: rgba(241,245,249,0.82) !important; }
[style*="color:#4b5563"] { color: rgba(241,245,249,0.72) !important; }
[style*="color:#6b7280"] { color: rgba(241,245,249,0.60) !important; }
[style*="color:#1f2937"] { color: #f1f5f9 !important; }
[style*="color:#111827"] { color: #f1f5f9 !important; }
[style*="color:#000"]    { color: #f1f5f9 !important; }
[style*="color:black"]   { color: #f1f5f9 !important; }

/* Any element with hardcoded white/light backgrounds */
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background:white"],
[style*="background: white"],
[style*="background-color:#fff"],
[style*="background-color: #fff"],
[style*="background-color:white"] {
  background: #1c2128 !important;
  color: #f1f5f9 !important;
}
[style*="background:#f9fafb"],
[style*="background:#f3f4f6"],
[style*="background:#e5e7eb"],
[style*="background:#d1d5db"] {
  background: #161b22 !important;
}

/* Borders that are light gray */
[style*="border-color:#e5e7eb"],
[style*="border:#e5e7eb"],
[style*="border: 1px solid #e5e7eb"] {
  border-color: rgba(255,255,255,0.09) !important;
}


/* =====================================================
   BLOG PAGE DARK MODE FIXES
   Targets specific classes from blog/index.html template
   ===================================================== */

/* Nav — override white sticky nav */
.nav {
  background: rgba(13,17,23,0.92) !important;
  border-bottom-color: rgba(255,255,255,0.09) !important;
}
.nav__links a { color: rgba(241,245,249,0.72) !important; }
.nav__links a:hover { color: #f1f5f9 !important; background: rgba(255,255,255,0.06) !important; }

/* Article prose text */
.article-intro p, .article-section p,
.article-prose p, .prose p {
  color: rgba(241,245,249,0.85) !important;
}
.article-section h2, .article-section h3,
.article-prose h2, .article-prose h3,
.article-intro h2, .article-intro h3 {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(255,255,255,0.09) !important;
}

/* Service list items (the dim headings in screenshot) */
.service-title, .service-item__title { color: #f1f5f9 !important; }
.service-desc, .service-item__desc { color: rgba(241,245,249,0.75) !important; }
.service-icon {
  background: rgba(56,189,248,0.12) !important;
  border-color: rgba(56,189,248,0.25) !important;
}
.service-item { border-bottom-color: rgba(255,255,255,0.07) !important; }

/* Decision cards — white/light purple & green boxes */
.decision-card {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.09) !important;
  color: #f1f5f9 !important;
}
.decision-card.agency {
  background: rgba(109,40,217,0.12) !important;
  border-color: rgba(109,40,217,0.3) !important;
}
.decision-card.tool {
  background: rgba(21,128,61,0.12) !important;
  border-color: rgba(21,128,61,0.3) !important;
}
.decision-card h3, .decision-card__label { color: #f1f5f9 !important; }
.decision-card li { color: rgba(241,245,249,0.82) !important; border-bottom-color: rgba(255,255,255,0.06) !important; }
.decision-card.agency .decision-card__label { color: #a78bfa !important; }
.decision-card.tool .decision-card__label { color: #4ade80 !important; }
.decision-card.agency li::before { color: #a78bfa !important; }
.decision-card.tool li::before { color: #4ade80 !important; }

/* Pricing table */
.pricing-table th {
  background: #1c2128 !important;
  color: #f1f5f9 !important;
  border-bottom-color: rgba(56,189,248,0.3) !important;
}
.pricing-table td {
  color: rgba(241,245,249,0.82) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
}
.pricing-table tr:hover td { background: rgba(255,255,255,0.03) !important; }

/* Insight box — the orange/cream box (white in dark mode) */
.insight-box, [class*="insight-box"], [class*="callout"],
[class*="info-box"], [class*="note-box"], [class*="tip-box"] {
  background: rgba(249,115,22,0.08) !important;
  border-color: rgba(249,115,22,0.3) !important;
  border-left-color: #f97316 !important;
}
.insight-box p, [class*="insight-box"] p {
  color: rgba(241,245,249,0.85) !important;
}

/* Summary / intro block */
.summary-block {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.09) !important;
  border-left-color: #38bdf8 !important;
}
.summary-block p { color: rgba(241,245,249,0.80) !important; }

/* FAQ section in blog */
.faq-q { color: #f1f5f9 !important; font-weight: 700 !important; }
.faq-a { color: rgba(241,245,249,0.80) !important; }
.faq-item { border-bottom-color: rgba(255,255,255,0.07) !important; }
.faq-section h2 { color: #f1f5f9 !important; }

/* Inline CTA box */
.inline-cta, [class*="inline-cta"], [class*="cta-box"] {
  background: rgba(56,189,248,0.07) !important;
  border-color: rgba(56,189,248,0.25) !important;
}
.inline-cta h3, .inline-cta p { color: #f1f5f9 !important; }

/* Article layout — collapse sidebar on all screens for blog */
.article-wrap {
  display: block !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 48px 24px 80px !important;
}
/* TOC sidebar — hide on desktop too for cleaner read */
.article-sidebar, .toc, .table-of-contents,
[class*="sidebar"], [class*="toc-"] {
  display: none !important;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #38bdf8 !important;
  background: rgba(56,189,248,0.05) !important;
  padding: 12px 20px !important;
  color: rgba(241,245,249,0.85) !important;
}

/* Code blocks */
code, pre {
  background: #161b22 !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* Breadcrumb */
.article-hero__breadcrumb, .breadcrumb { color: rgba(255,255,255,0.75) !important; }

/* General: any remaining hardcoded dark text */
.article-prose [style*="color:#111827"],
.article-prose [style*="color:#374151"],
.article-prose [style*="color:#4b5563"] {
  color: rgba(241,245,249,0.85) !important;
}

/* Any remaining white/cream colored boxes in prose */
.article-prose [style*="background:#fff"],
.article-prose [style*="background: #fff"],
.article-prose [style*="background:#f9fafb"],
.article-prose [style*="background:#fff8f0"],
.article-prose [style*="background:#f0fdf4"],
.article-prose [style*="background:#f5f3ff"],
.article-prose [style*="background:#fffbeb"] {
  background: #1c2128 !important;
  color: #f1f5f9 !important;
}

/* Mobile: collapse 2-column layouts */
@media (max-width: 900px) {
  .decision-grid { grid-template-columns: 1fr !important; }
  .article-wrap { padding: 32px 16px 64px !important; }
}

/* ── bg-soft override (pill/chip light bg fix) ── */
:root { --bg-soft: #161b22 !important; }
.pill, [class*="chip"], [class*="tag"] {
  background: #161b22 !important;
  color: rgba(241,245,249,0.82) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

/* ── inline-cta strong/heading fix ── */
.inline-cta__text strong,
.inline-cta strong,
.inline-cta h2, .inline-cta h3, .inline-cta h4 {
  color: #f1f5f9 !important;
}
.inline-cta__text p, .inline-cta p {
  color: rgba(241,245,249,0.75) !important;
}
/* Button inside inline-cta stays teal */
.inline-cta .btn-primary, .inline-cta a[class*="btn"] {
  background: #38bdf8 !important;
  color: #0d1117 !important;
}

/* ── features.html section h2, factors, feat-cards ── */
.section h2, .section__label { color: #f1f5f9 !important; }
.factor__name { color: #f1f5f9 !important; }
.factor__desc { color: rgba(241,245,249,0.78) !important; }
.factor {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
.feat-card {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
.feat-card h3 { color: #f1f5f9 !important; }
.feat-card p  { color: rgba(241,245,249,0.78) !important; }
.callout {
  background: rgba(99,102,241,0.06) !important;
  border-color: rgba(99,102,241,0.22) !important;
}
.callout h3 { color: #f1f5f9 !important; }
.callout p  { color: rgba(241,245,249,0.78) !important; }

/* ── nav fix ── */
.nav {
  background: rgba(13,17,23,0.95) !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
.nav__links a { color: rgba(241,245,249,0.72) !important; }
.nav__links a:hover { background: rgba(255,255,255,0.05) !important; color: #f1f5f9 !important; }

/* == GLOBAL WHITE-CARD FIX =========================================
   Forces any white/near-white card backgrounds to dark.
   Needed because text overrides above make all text light,
   so white-bg cards would show invisible light-on-white text.
   =================================================================== */

[style*="background:#ffffff"],
[style*="background: #ffffff"],
[style*="background:white"],
[style*="background: white"],
[style*="background-color:#ffffff"],
[style*="background-color: #ffffff"] {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f1f5f9 !important;
}

[style*="background:#f9fafb"],
[style*="background: #f9fafb"],
[style*="background:#f8fafc"],
[style*="background:#f3f4f6"],
[style*="background:#eff6ff"],
[style*="background:#f5f3ff"],
[style*="background:#fefce8"],
[style*="background:#fff7ed"],
[style*="background:#fef2f2"],
[style*="background:#e7f0ff"],
[style*="background:#e5f4fd"],
[style*="background:#e6f4ea"] {
  background: #161b22 !important;
  border-color: rgba(255,255,255,0.07) !important;
}

a[style*="background:#fff"],
a[style*="background: #fff"],
a[style*="background:#ffffff"],
a[style*="background: #ffffff"] {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f1f5f9 !important;
}
a[style*="background:#ffffff"]:hover {
  border-color: rgba(56,189,248,0.4) !important;
}

.testimonial, .review-card, .case-study,
[class*="testimonial"], [class*="review"],
[class*="quote"], [class*="profile"] {
  background: #1c2128 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f1f5f9 !important;
}


/* ===================================================
   BLOG PAGE OVERRIDES — fix light-bg elements on dark theme
   =================================================== */

/* Article header — was background:#fafafa, now dark */
.article-header {
  background: var(--bg-1) !important;
  border-bottom-color: var(--border) !important;
}
.article-header h1 {
  color: var(--text) !important;
}
.article-header__tag {
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
}
.article-header__meta {
  color: var(--text-muted) !important;
}

/* Article body text */
.article-body p, .article-body li {
  color: var(--text-dim) !important;
}
.article-body h2, .article-body h3 {
  color: var(--text) !important;
}
.article-body strong {
  color: var(--text) !important;
}

/* Callout box — was light blue, now dark-tinted */
.callout {
  background: rgba(56,189,248,0.06) !important;
  border-color: rgba(56,189,248,0.25) !important;
  border-left-color: #38bdf8 !important;
}
.callout p {
  color: #e2e8f0 !important;
}

/* Example box — was light yellow, now dark-tinted amber */
.example-box {
  background: rgba(251,191,36,0.06) !important;
  border-color: rgba(251,191,36,0.2) !important;
}
.example-box__label {
  color: #fbbf24 !important;
}
.example-box p {
  color: #e2e8f0 !important;
}

/* Insight box — was light gray */
.insight-box {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
.insight-box__label {
  color: var(--accent) !important;
}
.insight-box p {
  color: var(--text-dim) !important;
}

/* FAQ items — was light gray */
.faq-item {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
.faq-item h3 {
  color: var(--text) !important;
}
.faq-item p {
  color: var(--text-dim) !important;
}

/* Related links section */
.related-links {
  background: var(--bg-1) !important;
  border-top-color: var(--border) !important;
}
.related-links h3 {
  color: var(--text-muted) !important;
}
.link-card {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
.link-card h4 {
  color: var(--text) !important;
}
.link-card__tag {
  color: var(--accent) !important;
}

/* Tables in articles */
table {
  border-collapse: collapse;
  width: 100%;
}
table th {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
table td {
  color: var(--text-dim) !important;
  border-color: var(--border) !important;
}

/* Comparison tables / data tables */
.compare-table th, .data-table th {
  background: var(--bg-card) !important;
  color: var(--text) !important;
}
.compare-table td, .data-table td {
  color: var(--text-dim) !important;
}

/* Footer */
.footer {
  border-top-color: var(--border) !important;
}
.footer span, .footer p {
  color: var(--text-muted) !important;
}

/* ── Brand report pages (report/brand-ai-search-visibility/) ───────────── */
/* Navbar - was light glass */
.nav{background:rgba(13,17,23,0.96)!important;border-color:rgba(255,255,255,0.07)!important}
.nav__logo,.nav__logo *{color:#f1f5f9!important}
.nav__cta{color:#fff!important}

/* Light-colored CTA strip */
.improve-cta{background:rgba(22,163,74,0.08)!important;border-color:rgba(134,239,172,0.2)!important}
.improve-cta-text .label{color:#4ade80!important}
.improve-cta-text .title{color:#86efac!important}
.improve-cta-text .sub{color:rgba(134,239,172,0.75)!important}

/* Pill tags - light backgrounds with dark text */
.tag-red{background:rgba(220,38,38,0.15)!important;color:#fca5a5!important}
.tag-purple{background:rgba(99,102,241,0.15)!important;color:#a5b4fc!important}
.tag-green{background:rgba(22,163,74,0.15)!important;color:#86efac!important}
.tag-blue{background:rgba(59,130,246,0.15)!important;color:#93c5fd!important}

/* Methodology box */
.meth-box{background:rgba(99,102,241,0.05)!important;border-color:rgba(99,102,241,0.18)!important}
.meth-label{color:#a5b4fc!important}
.meth-intro{color:#94a3b8!important}
.meth-factor{background:rgba(255,255,255,0.04)!important;border-color:rgba(255,255,255,0.08)!important}
.meth-factor-name{color:#e2e8f0!important}
.meth-factor-desc{color:#94a3b8!important}

/* Analyst note - light yellow */
.analyst-note{background:rgba(251,191,36,0.05)!important;border-color:rgba(251,191,36,0.18)!important}
.analyst-note-label,.analyst-note-label *{color:#fbbf24!important}
.analyst-note-text{color:#fde68a!important}

/* Muted text in divs (not p/span, so not caught by body rules) */
.gap-why,.cat-finding,.comp-relation,.faq-a,.ai-context-label,.meth-intro{color:#94a3b8!important}
.gap-topic,.cat-name,.faq-q,.comp-brand{color:#f1f5f9!important}
.section-head h2{color:#f1f5f9!important}

/* Competitor link */
.comp-domain{color:#64748b!important}
.comp-cta{color:#818cf8!important}

/* AI context box label */
.ai-context-label{color:#64748b!important}

/* Source tag */
.source-tag{background:rgba(99,102,241,0.15)!important;color:#a5b4fc!important}

/* Footer */
.footer{color:#475569!important;border-color:rgba(255,255,255,0.06)!important}
.footer a{color:#475569!important}

/* ── Brand report card backgrounds missed by [class*="card"] ───────────── */
.cat,.ai-context,.fix-item{background:#1c2128!important;border-color:rgba(255,255,255,0.07)!important}
.bar{background:#21262d!important}
.cat-score{color:#94a3b8!important}
.score-ring{box-shadow:0 0 0 4px rgba(255,255,255,0.1)!important}

/* ── AI readiness analyzer (tools/ai-readiness-analyzer.html) ─────────── */
.share-bar{background:#1c2128!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:12px!important}
.share-bar__label{color:#f1f5f9!important}
.share-bar__sub{color:#94a3b8!important}
.cache-notice{background:rgba(251,191,36,0.05)!important;border-color:rgba(251,191,36,0.2)!important}
.btn-reanalyze{background:#21262d!important;color:#fbbf24!important;border-color:rgba(251,191,36,0.3)!important}
.result-cta{background:linear-gradient(135deg,rgba(99,102,241,0.12),rgba(124,58,237,0.08))!important;border:1px solid rgba(99,102,241,0.2)!important;border-radius:14px!important}

/* ── GEO guide page (generative-engine-optimization-guide.html) ──────────── */
/* Override light-theme CSS variables */
.comparison-row,.comparison-col{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important;color:#94a3b8!important}
.comparison-col h3,.comparison-row h3{color:#f1f5f9!important}
.comparison-col p,.comparison-col li,.comparison-row p,.comparison-row li{color:#94a3b8!important}
.accent-col{background:rgba(56,189,248,0.06)!important;border-color:rgba(56,189,248,0.2)!important}
.accent-col h3{color:#38bdf8!important}
.pillar-box{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.pillar-item{background:#21262d!important;border-color:rgba(255,255,255,0.07)!important}
.pillar-item__text{color:#94a3b8!important}
.pillar-item__icon{color:#38bdf8!important}
.substack-strip{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.substack-strip__text{color:#f1f5f9!important}
.substack-strip__text p{color:#94a3b8!important}
.inline-cta{background:rgba(99,102,241,0.06)!important;border-color:rgba(99,102,241,0.2)!important}
.inline-cta__text{color:#94a3b8!important}
.summary-block{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important;color:#94a3b8!important}
.signal-table{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.signal-table th{background:#161b22!important;color:#e2e8f0!important;border-color:rgba(255,255,255,0.07)!important}
.signal-table td{color:#94a3b8!important;border-color:rgba(255,255,255,0.05)!important}
.signal-name{color:#f1f5f9!important}
.stat-highlight{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.stat-item__num{color:#38bdf8!important}
.stat-item__label{color:#94a3b8!important}
.sidebar-card{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.sidebar-toc{background:#161b22!important;border-color:rgba(255,255,255,0.08)!important}
.toc-list li,.toc-list a{color:#94a3b8!important}
.toc-list a:hover{color:#38bdf8!important}
.related-card{background:#1c2128!important;border-color:rgba(255,255,255,0.08)!important}
.related-link{color:#38bdf8!important}
.citation-ready{background:rgba(34,197,94,0.06)!important;border-color:rgba(34,197,94,0.2)!important}
.citation-ready p{color:#86efac!important}

/* ── Blog card child text overrides (light-theme var(--text-dim) on dark bg) ─ */
/* sidebar-card */
.sidebar-card p,.sidebar-card li,.sidebar-card span{color:#94a3b8!important}
.sidebar-card h3,.sidebar-card h4,.sidebar-card strong{color:#e2e8f0!important}
.sidebar-card a{color:#38bdf8!important}
/* related-card */
.related-card h3,.related-card h4{color:#f1f5f9!important}
.related-card p,.related-card li,.related-card span{color:#94a3b8!important}
.related-card a{color:#38bdf8!important}
/* summary-block */
.summary-block p,.summary-block li{color:#94a3b8!important}
.summary-block h3,.summary-block h4,.summary-block strong{color:#e2e8f0!important}
/* sidebar-toc */
.sidebar-toc h4,.sidebar-toc h3{color:#e2e8f0!important}
.sidebar-toc p,.sidebar-toc li,.sidebar-toc span{color:#94a3b8!important}
.sidebar-toc a{color:#94a3b8!important}
.sidebar-toc a:hover{color:#38bdf8!important}
/* sign-item (10-signs type pages) */
.sign-item{background:#1c2128!important;border-color:rgba(255,255,255,0.07)!important}
.sign-item__title{color:#f1f5f9!important}
.sign-item__body,.sign-item p,.sign-item li{color:#94a3b8!important}
/* factor-card */
.factor-card{background:#1c2128!important;border-color:rgba(255,255,255,0.07)!important}
.factor-card h3,.factor-card h4,.factor-card strong{color:#f1f5f9!important}
.factor-card p,.factor-card li{color:#94a3b8!important}
/* callout-box */
.callout-box{background:rgba(56,189,248,0.06)!important;border-color:rgba(56,189,248,0.2)!important}
.callout-box p,.callout-box li{color:#93c5fd!important}
/* contrast-col, link-card, cta-block, disclosure */
.contrast-col{background:#1c2128!important;border-color:rgba(255,255,255,0.07)!important;color:#94a3b8!important}
.contrast-col h3,.contrast-col h4{color:#f1f5f9!important}
.link-card{background:#1c2128!important;border-color:rgba(255,255,255,0.07)!important}
.link-card h3,.link-card h4{color:#f1f5f9!important}
.link-card p{color:#94a3b8!important}
.cta-block{background:linear-gradient(135deg,rgba(56,189,248,0.07),rgba(129,140,248,0.07))!important;border:1px solid rgba(56,189,248,0.2)!important;border-radius:12px!important}
.cta-block h3,.cta-block h4{color:#f1f5f9!important}
.cta-block p{color:#94a3b8!important}
.disclosure{background:rgba(251,191,36,0.05)!important;border-color:rgba(251,191,36,0.2)!important}
.disclosure p,.disclosure li{color:#fde68a!important}
/* table-related */
.table-wrap table,.comparison-table{background:#161b22!important}
.table-wrap th,.comparison-table th{background:#1c2128!important;color:#e2e8f0!important;border-color:rgba(255,255,255,0.07)!important}
.table-wrap td,.comparison-table td{color:#94a3b8!important;border-color:rgba(255,255,255,0.05)!important}
/* Generic catch-all: any div/section with inline white bg */
[style*="background: #fff"],[style*="background:#fff"],[style*="background: white"],[style*="background-color: #fff"]{background:#1c2128!important}
[style*="color: #111"],[style*="color:#111"],[style*="color: #374"],[style*="color: #1f"]{color:#94a3b8!important}
