/* ============================================
   ASKSOMA.AI SEO PAGES — Brand Design System v2
   Mirrors asksoma.ai: Tailwind-based brand tokens
   Fonts: Playfair Display (serif) + Inter (sans)
   Mode: Dark-first (matching asksoma.ai dark mode)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

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

:root {
  /* === OFFICIAL ASKSOMA COLOR TOKENS === */
  --soma-50: #FEFCE8; --soma-100: #FEF9C3; --soma-200: #FEF08A;
  --soma-300: #FDE047; --soma-400: #FACC15; --soma-500: #FDD700;
  --soma-600: #EAB308; --soma-700: #CA8A04; --soma-800: #A16207;
  --soma-900: #854D0E; --soma-950: #422006;

  --stone-50: #F1F5F9; --stone-100: #F1F5F9; --stone-200: #E2E8F0;
  --stone-300: #CBD5E1; --stone-400: #94A3B8; --stone-500: #64748B;
  --stone-600: #475569; --stone-700: #334155; --stone-800: #1E293B;
  --stone-900: #0F172A; --stone-950: #020617;

  --indigo-50: #EEF2FF; --indigo-100: #E0E7FF; --indigo-500: #6366F1;
  --indigo-600: #4338CA; --indigo-700: #3730A3; --indigo-900: #312E81;

  --emerald: #16A34A; --emerald-dark: #15803D;
  --rose: #DC2626; --rose-dark: #B91C1C;
  --orange-400: #FB923C; --orange-500: #F97316;
  --violet-400: #A78BFA; --violet-500: #8B5CF6;
  --cyan-400: #22D3EE; --cyan-500: #06B6D4;

  /* === SEMANTIC DESIGN TOKENS === */
  --bg-body: var(--stone-900);
  --bg-card: var(--stone-800);
  --bg-card-hover: rgba(255,255,255,0.04);
  --bg-subtle: rgba(255,255,255,0.025);
  --border-subtle: rgba(255,255,255,0.06);
  --border-hover: rgba(67,56,202,0.25);
  --text-primary: #FFFFFF;
  --text-secondary: var(--stone-400);
  --text-muted: var(--stone-500);
  --accent: var(--soma-500);
  --accent-hover: var(--soma-400);

  /* === GRADIENTS (from brand) === */
  --gradient-solar: linear-gradient(135deg, #FDD700 0%, #EAB308 100%);
  --gradient-royal: linear-gradient(135deg, #4338CA 0%, #312E81 100%);
  --gradient-hero: linear-gradient(135deg, var(--stone-950) 0%, var(--stone-900) 40%, #1a1545 100%);
  --gradient-card-glow: radial-gradient(ellipse at 30% 20%, rgba(67,56,202,0.12) 0%, transparent 60%);

  /* === SHADOWS (from brand) === */
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-solar: 0 4px 15px rgba(253, 215, 0, 0.35);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 40px rgba(67, 56, 202, 0.2);

  /* === SIZING === */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --container-narrow: 900px;
}

/* === LIGHT THEME (sync with main site: #FAF9F6, primary 48 97% 49%) === */
html.light {
  --bg-body: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: rgba(0,0,0,0.03);
  --bg-subtle: rgba(253,215,0,0.04);
  --border-subtle: rgba(0,0,0,0.08);
  --border-hover: rgba(234,179,8,0.4);
  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #57534E;
  --gradient-hero: linear-gradient(135deg, #FAF9F6 0%, #F5F0E6 35%, #FEF9C3 100%);
  --shadow-card: 0 4px 20px rgba(28,25,23,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(234,179,8,0.15);
}
html.light body { color: var(--text-primary); }
html.light .nav,
html.light .site-nav {
  background: rgba(250,249,246,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
html.light .nav-links a,
html.light .site-nav .nav-links a { color: var(--text-secondary); }
html.light .nav-links a:hover,
html.light .site-nav .nav-links a:hover { color: var(--text-primary); }
html.light .site-footer,
html.light .footer {
  background: #F5F0E6;
  border-top: 1px solid rgba(0,0,0,0.08);
}
html.light .footer-links a,
html.light .footer-col a { color: var(--text-secondary); }
html.light .footer-links a:hover,
html.light .footer-col a:hover { color: var(--soma-700); }
html.light .footer-bottom,
html.light .footer-bottom p { color: var(--text-muted); }

/* Light: hero warm gradient + readable breadcrumb/badge/meta */
html.light .hero-section {
  background: var(--gradient-hero);
  box-shadow: 0 4px 24px rgba(28,25,23,0.06);
}
html.light .hero-section::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(253,215,0,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(251,191,36,0.08) 0%, transparent 50%);
}
html.light .breadcrumb {
  color: var(--text-secondary);
}
html.light .breadcrumb a { color: var(--soma-700); }
html.light .breadcrumb a:hover { color: var(--soma-600); }
html.light .hero-badge {
  background: rgba(253,215,0,0.2);
  border-color: rgba(234,179,8,0.5);
  color: #854D0E;
  font-weight: 700;
}
html.light .hero-sub { color: var(--text-secondary); }
html.light .hero-meta { color: var(--text-muted); }
html.light .hero-section h1 .highlight { color: var(--soma-600); }

/* Light: content cards and sections — warm, slight depth */
html.light .section-alt { background: rgba(253,215,0,0.03); }
html.light .content-section { background: var(--bg-body); }
html.light .tldr-box {
  background: linear-gradient(135deg, rgba(253,215,0,0.14) 0%, rgba(254,249,195,0.6) 100%);
  border-color: rgba(234,179,8,0.45);
  border-left-color: var(--soma-600);
  box-shadow: 0 4px 20px rgba(234,179,8,0.1), 0 1px 3px rgba(0,0,0,0.04);
}
html.light .tldr-box .tldr-label { color: var(--soma-800); font-weight: 800; }
html.light .comparison-table-wrap,
html.light .verdict-card,
html.light .faq-item,
html.light .vs-logo-card {
  box-shadow: var(--shadow-card);
}
html.light .comparison-table-wrap { background: #fff; border-color: rgba(0,0,0,0.08); }
/* AskSoma column header: dark gold so it's readable on light background */
html.light .comparison-table thead th.soma-col { color: var(--soma-800); }
/* Nav logo "Soma" and any accent text on light nav: readable dark gold */
html.light .nav-logo .logo-highlight,
html.light .nav-logo .logo-mark { color: var(--soma-800); }
/* Choose AskSoma heading: dark text so readable on light yellow card background */
html.light .choose-card.soma-pick h4 { color: #1C1917; }
html.light .rank-tag.gold { color: var(--soma-800); }
html.light .section-tag { color: var(--soma-800); }
html.light .testimonial-card .stars { color: var(--soma-700); }
html.light .testimonial-card .rating-num { color: #1C1917; }
html.light .related-links a {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
}
html.light .related-links a:hover {
  background: rgba(253,215,0,0.08);
  border-color: rgba(234,179,8,0.35);
  color: var(--soma-700);
}
html.light .winner-banner {
  background: linear-gradient(135deg, rgba(22,163,74,0.08) 0%, rgba(22,163,74,0.03) 100%);
  border-color: rgba(22,163,74,0.3);
  box-shadow: 0 2px 12px rgba(22,163,74,0.06);
}
html.light .section-header { border-bottom-color: rgba(0,0,0,0.08); }
html.light .cta-btn { box-shadow: 0 3px 12px rgba(234,179,8,0.3); }
html.light .cta-btn:hover { box-shadow: 0 6px 20px rgba(234,179,8,0.4); }
/* First content block after hero: clear separation */
.content-section:first-of-type { padding-top: 48px; }
main article .content-section + .content-section { padding-top: 48px; border-top: 1px solid var(--border-subtle); }
html.light main article .content-section + .content-section { border-top-color: rgba(0,0,0,0.08); }
html.light .highlight-box {
  background: rgba(253,215,0,0.12);
  border-left-color: var(--soma-600);
  box-shadow: 0 4px 16px rgba(234,179,8,0.08);
}
html.light .highlight-box.gold {
  background: linear-gradient(135deg, rgba(253,215,0,0.14) 0%, rgba(254,249,195,0.4) 100%);
  border-left-width: 5px;
}
html.light .highlight-box.green {
  background: linear-gradient(135deg, rgba(22,163,74,0.08) 0%, rgba(22,163,74,0.03) 100%);
}
html.light .content-section ul a,
html.light .content-section ol a {
  color: #1C1917 !important;
}
html.light .content-section ul a:hover,
html.light .content-section ol a:hover {
  color: var(--soma-700) !important;
  border-bottom-color: var(--soma-600);
}
/* Most Popular / Top Picks: heading must be dark and readable */
html.light .highlight-box h3,
html.light .highlight-box.gold h3,
html.light .highlight-box.green h3 {
  color: #1C1917 !important;
  font-weight: 800;
  font-size: 1.05rem;
}
html.light .content-section h3 {
  color: #1C1917;
  border-bottom-color: rgba(0,0,0,0.1);
}
html.light .content-section li {
  color: #44403C;
}

/* Compare hub (index): section cards for clarity and hierarchy */
main.container article .content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 40px 32px 48px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
main.container article .content-section:last-of-type { margin-bottom: 0; }
html.light main.container article .content-section {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(28,25,23,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

/* ============ GLOBAL RESET ============ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
/* Light mode: main-site warm background */
html.light body {
  background: var(--bg-body);
}

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

/* Serif headings — "The Vogue Hack" per AskSoma brand */
h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ============ CUSTOM SCROLLBAR (brand) ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-700); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   NAVIGATION — Fixed, frosted glass, matches asksoma.ai nav
   ============================================================ */
.nav,
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(2,6,23,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}
.nav.scrolled,
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.nav-inner,
.site-nav .nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
  padding: 14px 24px;
  gap: 16px;
}
.nav-logo,
.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav .nav-logo img,
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.site-nav .nav-links a {
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.site-nav .nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.nav .nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-solar);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--stone-950);
}
.nav-logo .logo-mark { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

/* Primary CTA button (Solar Yellow — "The Money Button") */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-solar);
  color: var(--stone-950) !important;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-solar);
  color: var(--stone-950) !important;
}
.cta-btn-lg {
  padding: 16px 36px;
  font-size: 1.02rem;
}
.cta-btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.cta-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-section .cta-box { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-section .cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: none;
}
/* Encourage wrap before "Guidance" so the word doesn't split (e.g. "Guidanc" / "e") */
@media (min-width: 380px) {
  .cta-section .cta-box h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION — Dark gradient with radial glow
   ============================================================ */
.hero-section {
  padding: 130px 24px 70px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(67,56,202,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(253,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-section h1,
.hero-section .hero-sub,
.hero-section .hero-meta,
.hero-section .breadcrumb,
.hero-section .hero-badge {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-section .hero-sub { max-width: 640px; }
.hero-section .cta-btn { margin: 0 auto; }

/* Breadcrumb inside hero */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67,56,202,0.12);
  border: 1px solid rgba(67,56,202,0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo-500);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.hero-section h1 .highlight { color: var(--accent); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* VS Logo cards in hero */
.vs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 36px 0;
  position: relative;
  z-index: 1;
}
.vs-logo-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  transition: var(--transition);
}
.vs-logo-card.winner { border-color: var(--emerald); box-shadow: 0 0 30px rgba(22,163,74,0.1); }
.vs-logo-card .app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
}
.vs-logo-card .app-icon.soma { background: var(--gradient-solar); color: var(--stone-950); }
.vs-logo-card .app-icon.competitor { background: rgba(255,255,255,0.08); }
.vs-logo-card .app-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.vs-logo-card .app-type { font-size: 0.78rem; color: var(--text-secondary); }
.vs-divider {
  font-size: 1.4rem; font-weight: 900;
  color: var(--indigo-500);
  background: rgba(67,56,202,0.12);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   WINNER BANNER
   ============================================================ */
.winner-banner {
  background: linear-gradient(135deg, rgba(22,163,74,0.06) 0%, rgba(22,163,74,0.01) 100%);
  border: 1px solid rgba(22,163,74,0.18);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin: 24px auto 40px;
  max-width: 800px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.winner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.winner-banner p { color: var(--text-primary); font-size: 1.02rem; margin: 0; }

/* ============================================================
   SECTIONS — Alternating dark backgrounds
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: rgba(255,255,255,0.015); }
.section-dark { background: var(--stone-950); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ============================================================
   COMPARISON TABLE — Styled, dark-mode, highlighted
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.comparison-table thead th {
  background: rgba(67,56,202,0.08);
  padding: 16px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.comparison-table thead th.soma-col { color: var(--accent); }
.comparison-table tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.comparison-table tbody tr:hover { background: rgba(67,56,202,0.03); }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--text-primary); }
.comparison-table .winner-cell { background: rgba(22,163,74,0.04); }
.check { color: var(--emerald); font-weight: 700; }
.cross { color: var(--rose); opacity: 0.6; }
.partial { color: var(--orange-400); }

/* Quick Comparison Table (.table-wrap + .comp-table) — best-of listicles */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  margin-top: 16px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.comp-table thead th {
  background: rgba(67,56,202,0.08);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}
.comp-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.comp-table tbody tr:hover { background: rgba(67,56,202,0.03); }
.comp-table tbody td:first-child { font-weight: 600; color: var(--text-primary); }
.comp-table .highlight-row td { background: rgba(22,163,74,0.04); }
.comp-table td:nth-child(3) { min-width: 120px; }  /* AI column: room for check/X + text */
.comp-table td:nth-child(4) { min-width: 90px; white-space: nowrap; }  /* Price */
html.light .table-wrap { background: #fff; border-color: rgba(0,0,0,0.08); }
html.light .comp-table thead th { background: rgba(67,56,202,0.06); color: #1C1917; border-bottom-color: rgba(0,0,0,0.08); }
html.light .comp-table tbody td { color: #44403C; border-bottom-color: rgba(0,0,0,0.06); }
html.light .comp-table tbody td:first-child { color: #1C1917; }
html.light .comp-table .highlight-row td { background: rgba(22,163,74,0.06); }

/* ============================================================
   FEATURE CARDS GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.feature-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feature-card .card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(67,56,202,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card .card-icon.green { background: rgba(22,163,74,0.1); }
.feature-card .card-icon.yellow { background: rgba(253,215,0,0.1); }
.feature-card .card-icon.rose { background: rgba(220,38,38,0.08); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* ============================================================
   PRICING COMPARISON
   ============================================================ */
.pricing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.price-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 36px;
  text-align: center;
}
.price-card.recommended {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(253,215,0,0.04) 0%, transparent 100%);
  position: relative;
}
.price-card.recommended::before {
  content: 'BEST VALUE';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-solar);
  color: var(--stone-950);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.price-app { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; color: var(--text-primary); }
.price-amount {
  font-size: 2.4rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
}
.price-period { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; }
.price-features li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-features li.included::before { content: '\2713'; color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.price-features li.excluded::before { content: '\2717'; color: var(--rose); opacity: 0.5; flex-shrink: 0; }

/* ============================================================
   VERDICT / CTA SECTION — Premium card with glow
   ============================================================ */
.verdict-section { padding: 80px 0; text-align: center; }

.verdict-card {
  background: var(--gradient-hero);
  border: 1px solid rgba(67,56,202,0.18);
  border-radius: var(--r-xl);
  padding: 56px 44px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.verdict-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(253,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.verdict-card h2 {
  margin-bottom: 16px;
  position: relative;
  font-size: 1.75rem;
  color: var(--text-primary);
}
.verdict-card p {
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
  line-height: 1.75;
  color: var(--text-primary);
}
.verdict-note {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
html.light .verdict-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(28,25,23,0.08);
}
html.light .verdict-card::before { display: none; }
html.light .verdict-card h2,
html.light .verdict-card p { color: #1C1917 !important; }
html.light .verdict-note { color: #57534E; }

/* ============================================================
   FAQ — Accordion-style
   ============================================================ */
.faq-section {
  padding: 72px 24px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.faq-section h2 {
  margin-bottom: 28px;
  font-size: 1.75rem;
  color: var(--text-primary);
}
/* Two-column FAQ when items are direct children of section */
.faq-section > .faq-item {
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .faq-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    grid-auto-flow: dense;
    align-items: start;
  }
  .faq-section > h2 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  .faq-section > .faq-item {
    margin-bottom: 0;
  }
  /* Odd number of items: last item spans full width so columns stay balanced */
  .faq-section > .faq-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* FAQ wrapped in container-narrow / container: grid is on .faq-list; let wrapper span full width */
.faq-section .container-narrow,
.faq-section .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 640px) {
  .faq-section > .container,
  .faq-section > .container-narrow {
    grid-column: 1 / -1;
  }
}
.faq-list {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    align-items: start;
  }
  /* Odd number of items: last item spans full width so columns stay balanced */
  .faq-list .faq-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  margin-bottom: 0;
  background: var(--bg-subtle);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { background: rgba(67,56,202,0.04); }
.faq-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 24px 20px; }
.faq-answer p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  color: var(--text-secondary);
}
/* Static FAQ (e.g. best-ai-astrology-apps: .faq-item > h3 + p) */
.faq-item > h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
  padding: 0;
  border: none;
}
.faq-item > p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  color: var(--text-secondary);
}
.faq-item:has(> h3) {
  padding: 22px 26px;
}
html.light .faq-item {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
html.light .faq-question { color: #1C1917; }
html.light .faq-answer p { color: #44403C; }
html.light .faq-item > h3 { color: #1C1917; }
html.light .faq-item > p { color: #44403C; }

/* ============================================================
   CONTENT SECTIONS — Long-form editorial (SEO depth)
   ============================================================ */
.content-section {
  padding: 64px 24px;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}
.content-section .container-narrow {
  padding-left: 0;
  padding-right: 0;
}
.content-section h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.content-section h2 + p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
}
.content-section h3 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
}
.content-section p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  color: var(--text-secondary);
}
html.light .content-section p { color: #44403C; }
.content-section ul, .content-section ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.content-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}
/* Hub & list pages: links must be readable — dark by default, accent on hover */
.content-section ul a,
.content-section ol a {
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.content-section ul a:hover,
.content-section ol a:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}
.content-section h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 28px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
/* Compare hub: two-column lists, larger type */
main.container article .content-section ul {
  column-count: 2;
  column-gap: 2.5rem;
  padding-left: 0;
  list-style: none;
}
main.container article .content-section ul li {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 14px;
  padding-left: 1.25rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}
main.container article .content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
main.container article .content-section ul a {
  font-size: 1.05rem !important;
}
@media (max-width: 700px) {
  main.container article .content-section ul {
    column-count: 1;
  }
}

/* Related links — "More Comparisons" style list */
.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-links li {
  margin: 0;
  padding: 0;
}
.related-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.related-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.related-links a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateX(4px);
}
html.light .related-links a {
  background: #fff;
  border-color: var(--stone-200);
  color: var(--stone-800);
}
html.light .related-links a:hover {
  background: var(--stone-50);
  border-color: var(--indigo-200);
  color: var(--indigo-700);
}

/* Highlight callout boxes (Most Popular, Top Picks, etc.) */
.highlight-box {
  background: rgba(67,56,202,0.08);
  border-left: 4px solid var(--indigo-600);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 28px 0 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.highlight-box h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.highlight-box p {
  color: var(--text-primary) !important;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}
.highlight-box.gold { background: rgba(253,215,0,0.12); border-left-color: var(--accent); }
.highlight-box.green { background: rgba(22,163,74,0.08); border-left-color: var(--emerald); }
html.light .highlight-box p { color: #1C1917 !important; }

/* TL;DR summary box (AI/agent friendly) */
.tldr-box {
  background: linear-gradient(135deg, rgba(253,215,0,0.08) 0%, rgba(67,56,202,0.05) 100%);
  border: 1px solid rgba(253,215,0,0.2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
  border-left: 4px solid var(--accent);
  position: relative;
}
.tldr-box .tldr-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.tldr-box p { color: var(--text-primary); margin: 0; font-size: 0.98rem; line-height: 1.75; }

/* ============================================================
   PROS / CONS CARDS
   ============================================================ */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.pros-card {
  background: rgba(22,163,74,0.04);
  border: 1px solid rgba(22,163,74,0.12);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cons-card {
  background: rgba(220,38,38,0.04);
  border: 1px solid rgba(220,38,38,0.12);
  border-radius: var(--r-lg);
  padding: 24px;
}
.pros-card h4 { color: var(--emerald); margin-bottom: 14px; }
.cons-card h4 { color: var(--rose); margin-bottom: 14px; }
.pros-card ul, .cons-card ul { list-style: none; padding: 0; }
.pros-card li, .cons-card li {
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pros-card li::before { content: '\2713'; color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.cons-card li::before { content: '\2717'; color: var(--rose); flex-shrink: 0; }

/* ============================================================
   WHO SHOULD CHOOSE / CHOOSE GRID
   ============================================================ */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.choose-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 26px;
}
.choose-card h4 { margin-bottom: 14px; }
.choose-card.soma-pick { border-color: rgba(253,215,0,0.25); }
.choose-card.soma-pick h4 { color: var(--accent); }
.choose-card ul { list-style: none; padding: 0; margin-top: 12px; }
.choose-card li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0;
}
.stat-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }

/* ============================================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
  align-items: start;
}
@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  min-height: 0;
}
.testimonial-card .stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card p,
.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 14px;
}
.testimonial-card blockquote { font-style: italic; }
.testimonial-card .author,
.testimonial-card .testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-card .author-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}
html.light .testimonial-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(28,25,23,0.04);
}
html.light .testimonial-card p,
html.light .testimonial-card blockquote { color: #44403C; }
html.light .testimonial-card .author,
html.light .testimonial-card .testimonial-author { color: #1C1917; }

/* ============================================================
   RANK CARDS (Best-of / Listicle pages)
   ============================================================ */
.rank-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: var(--transition);
}
.rank-card:hover { border-color: var(--border-hover); }
.rank-card.top-pick {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(253,215,0,0.04) 0%, transparent 100%);
}
.rank-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.rank-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-royal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
  color: var(--text-primary);
}
.rank-card.top-pick .rank-number {
  background: var(--gradient-solar);
  color: var(--stone-950);
}
.rank-info h3 { margin-bottom: 2px; }
.rank-info .rank-meta { font-size: 0.82rem; color: var(--text-secondary); }
.rank-body { margin-top: 12px; }
.rank-body p { font-size: 0.92rem; line-height: 1.7; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rank-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.rank-tag.gold { background: rgba(253,215,0,0.08); border-color: rgba(253,215,0,0.2); color: var(--accent); }

/* ============================================================
   PAIN POINTS / SOLUTION CARDS (Alternative & Why-Switch pages)
   ============================================================ */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.pain-card {
  background: rgba(220,38,38,0.03);
  border: 1px solid rgba(220,38,38,0.1);
  border-radius: var(--r-md);
  padding: 22px;
}
.pain-card .pain-icon { font-size: 1.5rem; margin-bottom: 10px; }
.pain-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.pain-card p { font-size: 0.84rem; margin: 0; line-height: 1.7; }

.solution-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.solution-card {
  background: rgba(22,163,74,0.03);
  border: 1px solid rgba(22,163,74,0.1);
  border-radius: var(--r-md);
  padding: 22px;
}
.solution-card .solution-icon { font-size: 1.5rem; margin-bottom: 10px; }
.solution-card h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--emerald); }
.solution-card p { font-size: 0.84rem; margin: 0; line-height: 1.7; }

/* ============================================================
   SITE FOOTER — Compare hub & subpages (consistent layout)
   ============================================================ */
.site-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 24px 28px;
  margin-top: 40px;
}
.site-footer .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 48px;
}
.site-footer .footer-inner .footer-grid {
  min-width: 0;
}
.site-footer .footer-inner > .footer-brand {
  margin-bottom: 0;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.site-footer .footer-links .footer-brand {
  min-width: 240px;
  flex: 1 1 240px;
  overflow: visible;
}
.site-footer .footer-brand p {
  overflow: visible;
  overflow-wrap: break-word;
  min-width: 0;
}
/* When footer uses columns (e.g. COMPARE / EXPLORE / CONNECT) */
.site-footer .footer-links .footer-col {
  min-width: 140px;
}
.site-footer .footer-links .footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.site-footer .footer-links .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links .footer-col li { margin-bottom: 9px; }
.site-footer .footer-links .footer-col a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.site-footer .footer-links .footer-col a:hover { color: var(--accent); }
.footer-load-more-li { margin-top: 6px; margin-bottom: 0; list-style: none; }
.footer-load-more-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  transition: var(--transition);
}
.footer-load-more-btn:hover { color: var(--accent); }
html.light .footer-load-more-btn { color: var(--text-muted); }
html.light .footer-load-more-btn:hover { color: var(--soma-700); }
@media (min-width: 640px) {
  .site-footer .footer-inner:not(:has(.footer-grid)) {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-inner:has(.footer-grid) {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-links {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(140px, 1fr));
    gap: 24px 32px;
    align-items: start;
  }
  .site-footer .footer-links .footer-brand {
    min-width: 0;
  }
}
.site-footer .footer-inner > .footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.site-footer .footer-bottom a { color: var(--text-muted); }
.site-footer .footer-bottom a:hover { color: var(--accent); }
.site-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.site-footer .footer-inner > .footer-bottom { grid-column: 1 / -1; }

/* Unified footer: logo + 5 columns (Account, Free Tools, Features, Learn, Company) */
.site-footer.footer-unified .footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
}
@media (min-width: 640px) {
  .site-footer.footer-unified .footer-links {
    grid-template-columns: minmax(200px, 1.4fr) repeat(5, minmax(120px, 1fr));
    gap: 24px 28px;
  }
}
.site-footer.footer-unified .footer-brand { min-width: 0; }
.site-footer.footer-unified .footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
  font-size: 0;
  color: transparent;
  overflow: hidden;
  background: url('https://asksoma.ai/AskSoma-ai_Logo.png') no-repeat center left / contain;
  width: 160px;
  height: 44px;
}
html.light .site-footer.footer-unified .footer-logo {
  background-image: url('https://asksoma.ai/AskSoma-ai_Logo.png');
}

/* Comparisons & Guides section */
.site-footer .footer-compare-section {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
html.light .site-footer .footer-compare-section { border-top-color: rgba(0,0,0,0.08); }
.site-footer .footer-compare-section h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.site-footer .footer-compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer .footer-compare-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.site-footer .footer-compare-links a:hover { color: var(--accent); }

/* Footer bottom: copyright + social */
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-social {
  display: flex;
  gap: 20px;
}
.site-footer .footer-social a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.site-footer .footer-social a:hover { color: var(--accent); }

.theme-toggle-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--transition);
  padding: 0;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
}
.theme-toggle-btn span { display: block; }
html.light .theme-toggle-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-primary);
}
html.light .theme-toggle-btn:hover {
  background: rgba(253,215,0,0.15);
  border-color: var(--soma-500);
}
.nav .nav-links li:has(.theme-toggle-btn),
.site-nav .nav-links li:has(.theme-toggle-btn) {
  margin: 0;
  padding: 0;
}

/* ============================================================
   FOOTER — 4-column grid
   ============================================================ */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 40px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(280px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 36px 48px;
  }
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 100%;
  margin-top: 12px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.86rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   ANIMATIONS — Intersection Observer driven
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(2,6,23,0.96);
    backdrop-filter: blur(24px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-mobile-toggle { display: block; }
  .hero-section { padding: 110px 18px 50px; }
  .vs-logos { flex-direction: column; gap: 14px; }
  .vs-divider { margin: 0; }
  .comparison-table-wrap { margin: 0 -24px; border-radius: 0; }
  .pricing-compare, .pros-cons, .choose-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .verdict-card { padding: 36px 22px; }
  .cta-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pain-points, .solution-points { grid-template-columns: 1fr; }
  .hero-section { padding: 100px 16px 40px; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
/* ============================================================
   FOOTER SIGN-UP CTA BANNER — Strong internal linking for SEO
   ============================================================ */
.footer-signup-cta {
  background: linear-gradient(135deg, rgba(67,56,202,0.12) 0%, rgba(253,215,0,0.08) 100%);
  border-top: 1px solid rgba(67,56,202,0.2);
  border-bottom: 1px solid rgba(253,215,0,0.15);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.footer-signup-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(253,215,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(67,56,202,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.signup-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.signup-cta-content {
  flex: 1;
  min-width: 0;
}
.signup-cta-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.signup-cta-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
}
.signup-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.signup-cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 768px) {
  .signup-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .signup-cta-content p {
    max-width: 100%;
  }
}
html.light .footer-signup-cta {
  background: linear-gradient(135deg, rgba(253,215,0,0.12) 0%, rgba(254,249,195,0.5) 100%);
  border-top-color: rgba(234,179,8,0.3);
  border-bottom-color: rgba(234,179,8,0.2);
}
html.light .footer-signup-cta::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(253,215,0,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(254,249,195,0.3) 0%, transparent 50%);
}
html.light .signup-cta-content h3 { color: #1C1917; }
html.light .signup-cta-content p { color: #44403C; }
html.light .signup-cta-note { color: #57534E; }

/* Inline Sign-Up CTA — Mid-content internal linking */
.inline-signup-cta {
  background: linear-gradient(135deg, rgba(253,215,0,0.08) 0%, rgba(67,56,202,0.04) 100%);
  border: 1px solid rgba(253,215,0,0.2);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 28px;
  text-align: center;
}
.inline-signup-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.inline-signup-cta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-signup-cta a:hover {
  color: var(--accent-hover);
}
html.light .inline-signup-cta {
  background: linear-gradient(135deg, rgba(253,215,0,0.12) 0%, rgba(254,249,195,0.4) 100%);
  border-color: rgba(234,179,8,0.3);
}
html.light .inline-signup-cta p { color: #1C1917; }
html.light .inline-signup-cta a { color: var(--soma-700); }
html.light .inline-signup-cta a:hover { color: var(--soma-600); }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
