/* ═══════════════════════════════════════════════════════
   IMPECCABLE OVERRIDE LAYER — AI Chat History Pro
   Amber × Dark × Precision. Not purple. Not generic.
   Load order: last. Wins all specificity battles.
   ═══════════════════════════════════════════════════════ */

/* ── 1. FONT IMPORT ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 2. EASING TOKENS ───────────────────────────────── */
:root {
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 3. DARK PALETTE OVERRIDE ───────────────────────── */
:root,
html:not([data-theme="light"]) {
  --bg-dark:        #0e0d0b;
  --bg-surface:     #161410;
  --bg-card:        #1e1b14;
  --primary:        #667eea;
  --primary-hover:  #5a67d8;
  --primary-glow:   rgba(102, 126, 234, 0.25);
  --secondary:      #764ba2;
  --gradient-primary: #667eea;   /* kill the gradient — solid only */
  --gradient-gold:    linear-gradient(135deg, #667eea, #f0b030);
  --text-main:      #f5f0e8;
  --text-secondary: rgba(245, 240, 232, 0.6);
  --text-muted:     rgba(245, 240, 232, 0.35);
  --border:         rgba(102, 126, 234, 0.14);
  --border-subtle:  rgba(245, 240, 232, 0.07);
  --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow:    0 0 32px rgba(102, 126, 234, 0.12);
}

/* ── 4. LIGHT MODE PALETTE OVERRIDE ─────────────────── */
[data-theme="light"] {
  --bg-dark:        #faf7f2;
  --bg-surface:     #f3ede0;
  --bg-card:        #ffffff;
  --primary:        #5a67d8;
  --primary-hover:  #667eea;
  --primary-glow:   rgba(184, 125, 16, 0.18);
  --gradient-primary: #5a67d8;
  --text-main:      #1a1510;
  --text-secondary: rgba(26, 21, 16, 0.6);
  --text-muted:     rgba(26, 21, 16, 0.38);
  --border:         rgba(184, 125, 16, 0.18);
  --border-subtle:  rgba(26, 21, 16, 0.09);
}

/* ── 4b. SEMANTIC COLOR TOKENS (Phase A foundation) ───────────────── */
/* These replace the 38 stray hex values scattered across index.html.
   Defined once here, referenced everywhere via var(). */
:root,
html:not([data-theme="light"]) {
  --success:        #10b981;
  --success-bg:     rgba(16, 185, 129, 0.10);
  --success-border: rgba(16, 185, 129, 0.30);
  --success-soft:   #34d399;
  --danger:         #ef4444;
  --danger-bg:      rgba(239, 68, 68, 0.10);
  --danger-border:  rgba(239, 68, 68, 0.30);
  --danger-soft:    #f87171;
  --warning:        #f59e0b;
  --warning-bg:     rgba(245, 158, 11, 0.10);
  --warning-border: rgba(245, 158, 11, 0.30);
  --warning-soft:   #fbbf24;
  --info:           #3b82f6;
  --info-bg:        rgba(59, 130, 246, 0.10);
  --info-border:    rgba(59, 130, 246, 0.30);
  /* Neutral scale — replaces stray #1a1a2e / #1a1a1a / #2a2a2a / #4a5568 / #718096 / #e2e8f0 / #f8fafc */
  --neutral-50:     #f8fafc;
  --neutral-100:    #e2e8f0;
  --neutral-400:    #94a3b8;
  --neutral-500:    #718096;
  --neutral-600:    #4a5568;
  --neutral-700:    #2d3748;
  --neutral-800:    #1a1a2e;
  --neutral-900:    #141414;
  --neutral-950:    #0a0a0a;
}
[data-theme="light"] {
  --success-bg:     rgba(16, 185, 129, 0.06);
  --danger-bg:      rgba(239, 68, 68, 0.06);
  --warning-bg:     rgba(245, 158, 11, 0.08);
  --info-bg:        rgba(59, 130, 246, 0.06);
}

/* ── 4c. BRAND COLOR TOKENS (AI platform identity) ────────────────── */
/* These are the actual published brand colors of supported AI platforms.
   Used in logos / icon backgrounds. Should not change with light/dark. */
:root {
  --brand-google-blue:    #4285F4;
  --brand-google-red:     #EA4335;
  --brand-google-yellow:  #FBBC05;
  --brand-google-green:   #34A853;
  --brand-microsoft-red:   #F35325;
  --brand-microsoft-green: #7FB900;
  --brand-microsoft-blue:  #00A1F1;
  --brand-microsoft-yellow:#FFB657;
  --brand-huggingface:    #FFD21E;
  --brand-anthropic:      #DE5833;
  --brand-mistral:        #8C48FF;
  --brand-perplexity:     #80397B;
  --brand-deepseek:       #3186FF;
  --brand-grok:           #0D91E1;
  --brand-meta:           #00AEFF;
}

/* ── 4d. FOUNDATION UTILITY CLASSES (Phase A — extract from inline) ─ */
/* Replace the repeating inline-style patterns documented in
   _references/inline-style-audit.md. Class names mirror Tailwind-ish
   conventions for familiarity but stay purpose-named where semantic. */
.row              { display: flex; align-items: center; gap: 8px; }
.row-12           { display: flex; align-items: center; gap: 12px; }
.row-16           { display: flex; align-items: center; gap: 16px; }
.col              { display: flex; flex-direction: column; gap: 8px; }
.center           { text-align: center; }
.mt-10            { margin-top: 10px; }
.mt-12            { margin-top: 12px; }
.mt-14            { margin-top: 14px; }
.mt-16            { margin-top: 16px; }
.mt-40            { margin-top: 40px; }
.mb-8             { margin-bottom: 8px; }
.mb-20            { margin-bottom: 20px; }
.mb-40            { margin-bottom: 40px; }
.p-20             { padding: 20px; }
.text-muted       { color: var(--text-muted); }
.text-secondary   { color: var(--text-secondary); }
.text-success     { color: var(--success); }
.text-danger      { color: var(--danger); }
.text-warning     { color: var(--warning); }
.text-13          { font-size: 13px; }
.text-11          { font-size: 11px; }
.divider-top      { border-top: 1px solid var(--border); padding-top: 16px; }
.divider-bottom   { border-bottom: 1px solid var(--border); padding-bottom: 16px; }

/* Card surface — was 3x repeated as inline style */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* "Most Popular" / "🔥 Best Value" badges — was 6x inline + 1x position-absolute variant */
.badge-popular {
  display: inline-block;
  font-size: 10px;
  background: var(--gradient-gold);
  color: var(--neutral-950);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-corner {
  position: absolute;
  top: 0; right: 0;
  background: var(--gradient-gold);
  color: var(--neutral-950);
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-bottom-left-radius: 4px;
  letter-spacing: 0.03em;
}

/* Hero/section panel — covers the dashed-border boxes around demo blocks */
.panel-dashed {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(102, 126, 234, 0.35);
}

/* Auto-fit responsive grid — was inline grid-template-columns */
.grid-autofit-300 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Section background variant — was 2x inline style */
.section-tinted   { background: var(--bg-surface); padding: 80px 0; }

/* ════════════════════════════════════════════════════════════════
   PHASE B — HERO REFRESH
   ════════════════════════════════════════════════════════════════ */

/* Trust strip above the headline — install count, CWS stars, money-back */
.hero-trust {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px;
  margin-bottom: 28px;
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.hero-trust-item strong {
  color: var(--text-main);
  font-weight: 700;
}
.hero-trust-item svg { color: var(--warning-soft); }
.hero-trust-item:nth-child(3) svg { color: var(--info); }
.hero-trust-item:nth-child(5) svg { color: var(--success-soft); }
.hero-trust-dot {
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

/* Eyebrow — preserve the poetic line as a small tag above the new headline */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Refreshed H1 — solid text (no gradient fill), tighter, more concrete */
.hero h1.hero-h1-refreshed {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-main);
}

/* Beef up the description — heavier emphasis on the privacy + scale claims */
.hero-description strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Product visualization frame — mock chrome around the image/video */
.hero-product {
  margin: 56px auto 0;
  max-width: 1080px;
  width: 100%;
  padding: 0 12px;
}
.hero-product-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.hero-product-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(102, 126, 234, 0.18) inset;
}
.hero-product-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-product-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.hero-product-url {
  margin-left: 14px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-muted);
}
.hero-product-body {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(102, 126, 234, 0.04), transparent 60%),
    var(--bg-dark);
  position: relative;
}
.hero-product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}
.hero-product-placeholder svg { color: var(--text-muted); opacity: 0.5; }
.hero-product-placeholder p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.hero-product-placeholder small {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  opacity: 0.7;
}

/* Real hero screenshot — replaces placeholder once asset exists */
.hero-product-img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-dark);
}

/* Light-mode tweaks */
[data-theme="light"] .hero-trust {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.20);
}
[data-theme="light"] .hero-product-frame {
  background: #ffffff;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.10);
}

/* Mobile — keep trust strip readable, shrink product spacing */
@media (max-width: 720px) {
  .hero-trust {
    font-size: 11.5px;
    padding: 7px 14px;
    gap: 8px;
  }
  .hero-trust-dot { display: none; }
  .hero-product { margin-top: 36px; padding: 0 8px; }
}

/* ════════════════════════════════════════════════════════════════
   PHASE D — BRAND ALIGNMENT (adopt Claude DESIGN.md principles)
   Reference: _references/awesome-design-md/design-md/claude/DESIGN.md
   Principle: take Claude's STRUCTURAL wisdom (typography, spacing,
   depth philosophy) without copying their coral identity — we keep
   #667eea as primary so we don't become a Claude clone.
   ════════════════════════════════════════════════════════════════ */

/* D1. Editorial serif for display headlines (Cormorant Garamond is the
       open-source approximation of Copernicus that Claude recommends).
       Falls back gracefully to system serifs if Google Fonts blocked. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Cormorant Garamond', 'Tiempos Headline', 'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-body:    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

/* D2. Claude spacing scale — 4px base, geometric */
:root {
  --space-xxs:    4px;
  --space-xs:     8px;
  --space-sm:     12px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     32px;
  --space-xxl:    48px;
  --space-section:96px;
}

/* D3. Claude border-radius scale */
:root {
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    8px;   /* buttons, inputs */
  --radius-lg:   12px;   /* cards */
  --radius-xl:   16px;   /* hero containers */
  --radius-pill: 9999px;
}

/* D4. Editorial type scale — adopts Claude's hierarchy values exactly */
:root {
  --display-xl: clamp(40px, 5.5vw, 64px);
  --display-lg: clamp(34px, 4vw, 48px);
  --display-md: clamp(28px, 3vw, 36px);
  --display-sm: 28px;
  --title-lg:   22px;
  --title-md:   18px;
  --title-sm:   16px;
  --body-md:    16px;
  --body-sm:    14px;
  --caption:    13px;
  --caption-up: 12px; /* uppercase tag style */
}

/* D5. Apply editorial display face to all major headings.
       (Body stays Figtree — humanist sans, exactly what Claude recommends.) */
.hero h1,
.hero h1.hero-h1-refreshed,
.section-header h2,
.feature-card h3,
.pricing-name,
.pain-section h2,
.commercial-strip h2,
.faq h2 {
  font-family: var(--font-display) !important;
  font-weight: 500;       /* serif display weight — never bold */
  letter-spacing: -0.02em; /* Claude principle: negative tracking for serif */
  line-height: 1.12;
}

/* H1 specifically gets the strongest typographic hierarchy */
.hero h1.hero-h1-refreshed {
  font-size: var(--display-xl);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
}

/* Section headers — display-lg */
.section-header h2 { font-size: var(--display-lg); }
.section-header p {
  font-size: var(--body-md);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 8px auto 0;
}

/* D6. Tighter, more editorial buttons — Claude radius scale */
.btn {
  border-radius: var(--radius-md) !important; /* was 12px → 8px */
  font-weight: 500 !important;                 /* editorial weight */
  letter-spacing: -0.005em;
}

/* D7. Cards use --radius-lg consistently */
.feature-card,
.pricing-card,
.pain-card,
.commercial-card,
.faq-item {
  border-radius: var(--radius-lg) !important;
}

/* D8. Color-block depth philosophy — remove heavy shadows from cards in favor
       of surface-contrast. Claude principle: "color-block first, shadow rare". */
.feature-card,
.pain-card,
.commercial-card {
  box-shadow: none !important;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s var(--ease-out-quint),
              background 0.2s var(--ease-out-quint),
              transform 0.2s var(--ease-out-quint);
}
.feature-card:hover,
.pain-card:hover,
.commercial-card:hover {
  border-color: rgba(102, 126, 234, 0.35);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

/* D9. Section vertical rhythm — Claude's 96px section padding */
section.use-cases,
section.commercial-strip,
section.pain-section,
section.demo-section,
section.faq,
.section-tinted {
  padding: var(--space-section) 0 !important;
}

/* D10. Caption-uppercase utility for "NEW", "BETA", tags */
.caption-up {
  font-family: var(--font-body);
  font-size: var(--caption-up);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   PHASE C — PRICING TRUST STRIP (replaces fake @designermark testimonial)
   ════════════════════════════════════════════════════════════════ */
.pricing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 24px auto 36px;
  max-width: 760px;
  padding: 14px 20px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pricing-trust-item strong {
  color: var(--text-main);
  font-weight: 700;
}
.pricing-trust-item:nth-child(1) svg { color: var(--warning-soft); }
.pricing-trust-item:nth-child(2) svg { color: var(--success-soft); }
.pricing-trust-item:nth-child(3) svg { color: var(--info); }

@media (max-width: 720px) {
  .pricing-trust-strip {
    font-size: 11.5px;
    gap: 8px 14px;
    padding: 10px 14px;
  }
  .pricing-trust-item:last-child { white-space: normal; }
}

/* ── 5. GLOBAL FONT + BASE ───────────────────────────── */
*,
body,
html {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* JetBrains Mono for code contexts only */
.platform-chip,
.pricing-price .price,
.stat-num,
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* ── 6. KILL GRADIENT TEXT — H1 ─────────────────────── */
.hero h1,
.hero h1 span {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: var(--text-main) !important;
  letter-spacing: -0.02em;
}

/* Single accent word in amber */
.hero h1 em {
  font-style: normal;
  color: var(--primary) !important;
}

/* ── 7. HERO — CENTERED SINGLE COLUMN ───────────────── */
.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 120px 24px 80px !important;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Amber ambient glow */
.hero::before {
  background: radial-gradient(ellipse at 50% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 55%) !important;
  animation: hero-ambient 20s ease-in-out infinite !important;
}

@keyframes hero-ambient {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-content {
  max-width: 780px !important;
  width: 100% !important;
  text-align: center !important;
}

.hero-badge {
  background: rgba(102, 126, 234, 0.1) !important;
  border: 1px solid rgba(102, 126, 234, 0.28) !important;
  color: var(--primary) !important;
  display: inline-flex !important;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
}

.hero-description {
  margin: 0 auto 40px !important;
  max-width: 580px !important;
  font-size: 19px !important;
  line-height: 1.65 !important;
  color: var(--text-secondary) !important;
}

.hero-buttons {
  justify-content: center !important;
}

.hero-platforms, .hero-trust-bar {
  justify-content: center !important;
}

/* (hero-visual removed) */

/* ── 8. NAVIGATION ───────────────────────────────────── */
nav {
  /* Solid by default, no decorative blur */
  background: var(--bg-dark) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Blur only triggers on scroll via JS .scrolled class */
nav.scrolled {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(14, 13, 11, 0.88) !important;
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.3) !important;
}

[data-theme="light"] nav {
  background: rgba(250, 247, 242, 0.96) !important;
}

.logo-icon {
  background: linear-gradient(135deg, #667eea, #f0b030) !important;
}

.nav-cta {
  background: var(--primary) !important;
  color: #0e0d0b !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px var(--primary-glow) !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35) !important;
}

/* ── 9. BUTTONS ──────────────────────────────────────── */
.btn-primary {
  background: var(--primary) !important;
  color: #0e0d0b !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px var(--primary-glow) !important;
  border: none !important;
  transition: background 0.2s var(--ease-out-quint),
              transform 0.2s var(--ease-out-quint),
              box-shadow 0.2s var(--ease-out-quint) !important;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4) !important;
}

.btn-secondary {
  border-color: var(--border) !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

.btn-secondary:hover {
  border-color: var(--primary) !important;
  background: rgba(102, 126, 234, 0.07) !important;
}

/* Sticky CTA */
.sticky-cta-bar .sticky-cta-btn {
  background: var(--primary) !important;
  color: #0e0d0b !important;
  box-shadow: 0 4px 15px var(--primary-glow) !important;
}

.sticky-cta-bar .sticky-cta-btn:hover {
  background: var(--primary-hover) !important;
}

.sticky-cta-bar .trust-dot { background: var(--primary) !important; opacity: 0.5; }

/* ── 10. SECTION EYEBROW PILLS ───────────────────────── */
.section-badge,
.comparison-section .section-badge,
.testimonials-section .section-badge {
  background: rgba(102, 126, 234, 0.1) !important;
  border: 1px solid rgba(102, 126, 234, 0.22) !important;
  color: var(--primary) !important;
}

/* ── 11. FEATURE CARDS ───────────────────────────────── */
.feature-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(240, 176, 48, 0.08)) !important;
}

.feature-card:hover {
  border-color: rgba(102, 126, 234, 0.4) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(102, 126, 234, 0.15) !important;
}

.feature-card.feature-card-highlight {
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 18px 45px rgba(102, 126, 234, 0.1) !important;
}

/* Bento — first feature card spans 2 columns */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.features-grid > .feature-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto;
}

/* Feature points chips — fix grid-stretch + make them readable */
.feature-points {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  align-self: start !important;        /* stop grid from stretching this row */
  gap: 8px !important;
  margin-top: 14px !important;
  height: auto !important;
  min-height: 0 !important;
}

.feature-points li {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;   /* stop flex-stretch on each pill */
  height: auto !important;
  min-height: 0 !important;
  flex-shrink: 0 !important;
  background: rgba(102, 126, 234, 0.12) !important;
  border: 1px solid rgba(102, 126, 234, 0.35) !important;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: 'Figtree', sans-serif !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  letter-spacing: 0.01em !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.feature-points li:hover {
  background: rgba(102, 126, 234, 0.22) !important;
  border-color: rgba(102, 126, 234, 0.55) !important;
}

[data-theme="light"] .feature-points li {
  background: rgba(102, 126, 234, 0.08) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
  color: var(--primary) !important;
}

/* ── 12. COMPARISON TABLE ────────────────────────────── */
.comparison-table thead th {
  background: rgba(102, 126, 234, 0.08) !important;
  color: var(--primary) !important;
}

.comparison-table thead th:first-child { color: var(--text-muted) !important; }
.comparison-table thead th.highlight { color: var(--primary) !important; }
.comparison-table tbody tr:hover { background: rgba(102, 126, 234, 0.04) !important; }
.comparison-table .highlight-cell { color: var(--primary) !important; }

.comparison-table .cross {
  color: rgba(185, 60, 60, 0.55) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .comparison-table .cross {
  color: rgba(185, 60, 60, 0.6) !important;
}

/* ── 13. PRICING CARDS ───────────────────────────────── */
.pricing-card.popular,
.pricing-card:nth-child(2) {
  border-color: rgba(102, 126, 234, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3), 0 24px 64px rgba(0, 0, 0, 0.4) !important;
}

.popular-badge,
.pricing-popular-badge {
  background: linear-gradient(135deg, #667eea, #f0b030) !important;
  color: #0e0d0b !important;
}

/* ── 14. TESTIMONIALS ────────────────────────────────── */
.testimonial-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.testimonial-card:hover {
  border-color: rgba(102, 126, 234, 0.3) !important;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.08) !important;
}

/* ── 15. TRUST / HERO TRUST BAR ──────────────────────── */
.hero-trust-bar {
  background: rgba(102, 126, 234, 0.06) !important;
  border-color: rgba(102, 126, 234, 0.14) !important;
  justify-content: flex-start !important;
}

.hero-trust-bar .trust-item .trust-icon {
  color: var(--primary) !important;
}

.hero-trust-bar .trust-separator { background: rgba(102, 126, 234, 0.35) !important; }

/* ── 16. PLATFORM CHIPS (hero) ───────────────────────── */
.platform-chip {
  background: rgba(102, 126, 234, 0.07) !important;
  border: 1px solid rgba(102, 126, 234, 0.16) !important;
  color: var(--text-secondary) !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.platform-chip:hover {
  background: rgba(102, 126, 234, 0.14) !important;
  border-color: rgba(102, 126, 234, 0.35) !important;
  color: var(--primary) !important;
}

/* ── 17. FINAL CTA — FULL BLEED AMBER STRIP ──────────── */
.cta {
  background: linear-gradient(135deg, #1a1508 0%, #231a08 40%, #1a1508 100%) !important;
  border-top: 1px solid rgba(102, 126, 234, 0.2) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2) !important;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta .cta-card,
.cta > .container > div,
.cta-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

[data-theme="light"] .cta {
  background: linear-gradient(135deg, #fdf6e8 0%, #faf0d4 50%, #fdf6e8 100%) !important;
  border-color: rgba(184, 125, 16, 0.2) !important;
}

/* ── 18. FAQ ACCORDION ───────────────────────────────── */
.faq-item {
  border-color: var(--border-subtle) !important;
  transition: border-color 0.2s ease !important;
}

.faq-item:hover {
  border-color: rgba(102, 126, 234, 0.25) !important;
}

.faq-question {
  transition: color 0.2s ease !important;
}

.faq-question:hover {
  color: var(--primary) !important;
}

/* ── 19. SCROLL REVEAL UTILITIES ─────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-out-quint),
              transform 0.55s var(--ease-out-quint);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-28px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(28px);
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Stagger siblings */
[data-reveal-group] > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-group] > *:nth-child(6) { transition-delay: 350ms; }

/* Hero content — staggered entrance on load */
.hero-badge   { animation: reveal-up 0.6s var(--ease-out-quint) 0.1s both; }
.hero h1      { animation: reveal-up 0.7s var(--ease-out-quint) 0.2s both; }
.hero-description { animation: reveal-up 0.7s var(--ease-out-quint) 0.32s both; }
.hero-buttons { animation: reveal-up 0.7s var(--ease-out-quint) 0.44s both; }
.hero-platforms   { animation: reveal-up 0.6s var(--ease-out-quint) 0.56s both; }
.hero-trust-bar   { animation: reveal-up 0.6s var(--ease-out-quint) 0.64s both; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── 20. SECTION PULSE BADGE FIX ─────────────────────── */
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
  50%     { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0); }
}

/* ── 21. ICON GLOW FIX (amber) ───────────────────────── */
.platform-icons img:hover,
.supported-platforms img:hover,
.platforms-row img:hover,
.hero-platforms img:hover {
  filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.5)) !important;
}

@keyframes icon-glow {
  0%,100% { filter: drop-shadow(0 0 0 transparent); }
  50%     { filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4)); }
}

/* ── 22. COMMERCIAL / FEATURE SUMMARY STRIP ──────────── */
.commercial-card,
.feature-summary-pill {
  background: linear-gradient(180deg,
    rgba(102, 126, 234, 0.08),
    rgba(102, 126, 234, 0.03)) !important;
  border-color: rgba(102, 126, 234, 0.15) !important;
}

/* ── 23. PAIN SECTION CARDS ──────────────────────────── */
.pain-card {
  border-left-color: var(--primary) !important;
}

.pain-callout {
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.12),
    rgba(102, 126, 234, 0.04)) !important;
  border-color: rgba(102, 126, 234, 0.2) !important;
}

/* ── 24. REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  .hero-badge, .hero h1, .hero-description,
  .hero-buttons, .hero-platforms, .hero-trust-bar,
  [data-reveal] {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── 25. RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px !important;
  }
}

@media (max-width: 760px) {
  .features-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .features-grid > .feature-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .features-grid > .feature-card:first-child {
    grid-column: span 1;
  }
  .hero-visual { display: none; }
}

/* ── 26. HERO TRUST BAR (injected by enhancements.js) ── */
.hero-trust-bar {
  background: rgba(102, 126, 234, 0.07) !important;
  border: 1px solid rgba(102, 126, 234, 0.16) !important;
  border-radius: 100px !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 24px !important;
  max-width: 580px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-trust-bar .trust-item {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.hero-trust-bar .trust-item .trust-icon {
  color: var(--primary) !important;
}

.hero-trust-bar .trust-separator {
  background: rgba(102, 126, 234, 0.3) !important;
}

/* ── 27. PRO CARD HIGHLIGHT (animated glow ring) ────── */
@keyframes pro-card-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(102, 126, 234, 0.7),
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(240, 176, 48, 0.55),
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

.pricing-card.popular {
  border: 1px solid rgba(102, 126, 234, 0.5) !important;
  animation: pro-card-glow 3s ease-in-out infinite !important;
}

/* ── 28. PRO TRIAL BADGE ─────────────────────────────── */
.pro-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
}

.pro-trial-badge svg {
  flex-shrink: 0;
}

/* ── 29. PRO GUARANTEE BADGE ─────────────────────────── */
.pro-guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 8px;
  border-top: 1px solid var(--border-subtle);
}

.pro-guarantee-badge svg {
  color: var(--primary);
  opacity: 0.8;
  flex-shrink: 0;
}

/* ── 30. FEATURE EXPAND TOGGLE ───────────────────────── */
.pricing-features-expand {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 12px;
  width: 100%;
  text-align: left;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.pricing-features-expand:hover { opacity: 0.75; }

.pricing-features-expand .expand-open { display: none; }
.pricing-features-expand.open .expand-closed { display: none; }
.pricing-features-expand.open .expand-open { display: inline; }

.pricing-features-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out-quint), opacity 0.35s ease;
  opacity: 0;
  margin-bottom: 0 !important;
}

.pricing-features-more.open {
  max-height: 300px;
  opacity: 1;
}

/* ── 31. PRICING SOCIAL PROOF ────────────────────────── */
.pricing-social-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 18px 24px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 14px;
  flex-wrap: wrap;
}

.pricing-testimonial {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.pricing-testimonial-stars {
  color: #f0b030;
  font-size: 14px;
  letter-spacing: 1px;
}

.pricing-testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.pricing-testimonial-author {
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
}

.pricing-urgency {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 8px 16px;
  background: rgba(240, 176, 48, 0.08);
  border: 1px solid rgba(240, 176, 48, 0.2);
  border-radius: 50px;
  flex-shrink: 0;
}

.pricing-urgency strong { color: #f0b030; }

/* ── 32. STICKY CTA BAR (injected by enhancements.js, top-slide) ── */
.sticky-cta-bar {
  background: rgba(14, 13, 11, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35) !important;
}

.sticky-cta-bar .sticky-cta-btn {
  background: var(--primary) !important;
  color: #0e0d0b !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px var(--primary-glow) !important;
  border-radius: 10px !important;
}

.sticky-cta-bar .sticky-cta-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
}

/* ── 33. CTA SECTION GUARANTEE LINE ─────────────────── */
.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}

.cta-guarantee svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── 34. LIGHT MODE OVERRIDES ────────────────────────── */
[data-theme="light"] .pricing-social-proof {
  background: rgba(102, 126, 234, 0.04);
}

[data-theme="light"] .cta-guarantee {
  color: rgba(26, 21, 16, 0.45);
}

/* ── 35. RESPONSIVE ──────────────────────────────────── */
@media (max-width: 600px) {
  .pricing-social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pricing-urgency { width: 100%; text-align: center; }
  .hero-trust-bar { font-size: 12px !important; padding: 10px 14px !important; }
}
