/* Spark AI brand overrides — colors + layout polish for mirrored offers.
   Fonts stay as each Lovable offer originally defined (do not force Manrope). */

:root,
:host {
  --spark-ink: #000000;
  --spark-ink-2: #1a1a1a;
  --spark-muted: #4a4a4a;
  --spark-bg: #ffffff;
  --spark-canvas: #eef0ff;
  --spark-surface: #f3f1fc;
  --spark-surface-2: #eae2fc;
  --spark-border: #ddd8f0;
  --spark-signal: #000000;
  --spark-signal-soft: #eae2fc;
  --spark-on-brand: #f4f5f7;

  /* Full color values — offer CSS often uses var(--token) directly (not hsl()) */
  --background: #eef0ff;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #f3f1fc;
  --secondary-foreground: #000000;
  --muted: #f3f1fc;
  --muted-foreground: #4a4a4a;
  /* Accent must be high-contrast ink — Lucide checks use text-accent / var(--accent).
     Soft lavender wash lives in --accent-wash / --brand-soft / --spark-signal-soft. */
  --accent: #000000;
  --accent-wash: #eae2fc;
  --accent-foreground: #000000;
  --border: #ddd8f0;
  --input: #ddd8f0;
  --ring: #000000;

  /* Remap common custom tokens from offer themes */
  --ink: #000000;
  --ink-foreground: #f4f5f7;
  --sand: #f3f1fc;
  --sand-deep: #eae2fc;
  --gold: #000000;
  --accent-strong: #000000;
  --brand: #000000;
  --brand-violet: #000000;
  --brand-soft: #eae2fc;
  --whatsapp: #25d366;
}

.gradient-brand-text,
[class*="gradient-brand-text"] {
  background-image: linear-gradient(135deg, #2233ee 0%, #6b7aff 100%) !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.gradient-brand,
[class*="gradient-brand"]:not([class*="gradient-brand-text"]) {
  background-image: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.gradient-brand *,
[class*="gradient-brand"]:not([class*="gradient-brand-text"]) * {
  color: #ffffff !important;
}

html,
body {
  background: #eef0ff !important;
  background-color: #eef0ff !important;
  color: #000000 !important;
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Host iframe embed: bridge adds .spark-offer-embedded — one outer scrollbar only */
html.spark-offer-embedded,
html.spark-offer-embedded body {
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
}

html.spark-offer-embedded .min-h-screen,
html.spark-offer-embedded .min-h-dvh,
html.spark-offer-embedded .min-h-svh,
html.spark-offer-embedded .h-screen,
html.spark-offer-embedded .h-dvh,
html.spark-offer-embedded .h-svh {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

html.spark-offer-embedded,
html.spark-offer-embedded body,
html.spark-offer-embedded #root,
html.spark-offer-embedded [data-tsd-source] {
  overflow: hidden !important;
}

/* Hide nested scrollbars inside the embed (page scroll lives on the host) */
html.spark-offer-embedded * {
  scrollbar-width: none;
}
html.spark-offer-embedded *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Headings + body copy — black ink on light surfaces (not washed grey) */
h1,
h2,
h3,
h4,
h1 *:not([class*="bg-"]):not([class*="gradient"]),
h2 *:not([class*="bg-"]):not([class*="gradient"]),
h3 *:not([class*="bg-"]):not([class*="gradient"]),
p,
li,
label,
td,
th,
.Text,
.text-foreground,
.text-ink {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Secondary copy — theme muted, still readable on canvas */
.text-muted-foreground,
[class*="text-muted"],
.text-ink-muted,
[class*="text-ink-muted"],
.eyebrow,
[class*="eyebrow"] {
  color: #4a4a4a !important;
  -webkit-text-fill-color: #4a4a4a !important;
}

/* Secondary headline lines designed as faded white on dark heroes */
h1 .opacity-45,
h1 .opacity-40,
h1 .opacity-50,
h1 .opacity-55,
h2 .opacity-45,
h2 .opacity-40,
h2 .opacity-50,
h2 .opacity-55,
h3 .opacity-45,
.opacity-45,
.opacity-40,
.opacity-55 {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  opacity: 1 !important;
}

/* Keep intentional soft hierarchy without going invisible */
h1 .opacity-45,
h2 .opacity-45 {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  opacity: 1 !important;
}

/* Inline text links only — never restyle pill/outline CTAs or nav chips */
a:not([class*="bg-"]):not([class*="button"]):not([class*="btn"]):not([class*="rounded"]):not([class*="border"]):not(.inline-flex) {
  color: #000000 !important;
}
a:not([class*="bg-"]):not([class*="button"]):not([class*="btn"]):not([class*="rounded"]):not([class*="border"]):not(.inline-flex):hover {
  color: #000000 !important;
}

/* ========== Backgrounds ========== */
.bg-background,
.bg-white,
.min-h-screen,
.min-h-dvh,
.min-h-svh,
[class*="bg-[#f"],
[class*="bg-[#F"],
[class*="bg-[#FAF"],
[class*="bg-[#faf"],
[class*="bg-[#EEF"],
[class*="bg-[#eef"] {
  background-color: #eef0ff !important;
}

.bg-card,
.bg-popover,
.bg-muted\/40,
.bg-muted\/30,
.bg-muted\/20 {
  background-color: #ffffff !important;
}

.bg-muted,
.bg-secondary,
.bg-accent,
.bg-sand-deep {
  background-color: #f3f1fc !important;
}

/* Light-theme pages: convert full-bleed dark bands to Spark canvas */
section.bg-foreground,
section[class~="bg-foreground"],
section.bg-ink,
section[class~="bg-ink"],
section.bg-black,
section[class~="bg-black"],
main > .bg-black,
main > .bg-ink,
main > [class~="bg-black"],
main > [class~="bg-ink"],
.bg-black.w-full:not([class*="rounded"]),
.bg-ink.w-full:not([class*="rounded"]) {
  background-color: #eef0ff !important;
  background-image: none !important;
  color: #000000 !important;
}

/* Compact dark chips / solid CTAs — monochrome black (no blue) */
.bg-foreground:not(section):not(main):is(a, button, span, div)[class*="rounded"],
[class~="bg-foreground"]:not(section):is(a, button, span)[class*="rounded"],
a.bg-black,
button.bg-black,
a.bg-ink,
button.bg-ink,
span.bg-black[class*="rounded"],
span.bg-ink[class*="rounded"],
div.bg-black[class*="rounded-full"],
div.bg-ink[class*="rounded-full"],
div.bg-black[class*="px-"][class*="py-"],
div.bg-ink[class*="px-"][class*="py-"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

a.text-background,
button.text-background,
a[class~="text-background"],
button[class~="text-background"],
.bg-foreground .text-background,
.bg-ink .text-background,
.bg-foreground[class*="text-background"],
.bg-ink[class*="text-background"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ========== Accents → Spark signal ========== */
.text-purple-600,
.text-violet-600,
.text-purple-700,
.text-violet-700,
.text-fuchsia-600,
.text-primary,
.text-blue-600,
.text-indigo-600,
.text-gold,
[class*="text-gold"],
.text-accent-strong,
[class*="text-accent"] {
  color: #000000 !important;
}

.bg-purple-600,
.bg-violet-600,
.bg-purple-700,
.bg-violet-700,
.bg-fuchsia-600,
.bg-primary,
.bg-blue-600,
.bg-indigo-600,
.bg-gold,
[class*="bg-gold"]:not([class*="bg-gold/"]),
.bg-accent-strong {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Solid signal surfaces always get white type (fixes blue-on-blue pills) */
.bg-primary,
.bg-primary *,
[class~="bg-primary"],
[class~="bg-primary"] *,
a.bg-primary,
button.bg-primary,
a[class~="bg-primary"],
button[class~="bg-primary"],
[class~="bg-gold"],
[class~="bg-gold"] * {
  color: #ffffff !important;
}

/* Soft signal washes keep signal ink */
.bg-primary\/10,
.bg-primary\/5,
.bg-primary\/20,
[class*="bg-primary/10"],
[class*="bg-primary/5"],
[class*="bg-primary\\/10"],
[class*="bg-primary\\/5"],
.bg-gold\/10,
.bg-gold\/20,
.bg-gold\/40,
[class*="bg-gold/"],
[class*="bg-gold\\/"] {
  background-color: #eae2fc !important;
  color: #000000 !important;
}

.bg-primary\/10 *,
.bg-primary\/5 *,
[class*="bg-primary/10"] *,
[class*="bg-primary/5"] *,
[class*="bg-gold/"] * {
  color: #000000 !important;
}

.border-purple-600,
.border-violet-600,
.border-primary,
.border-blue-600,
.border-gold,
[class*="border-gold"] {
  border-color: #000000 !important;
}

.bg-purple-50,
.bg-violet-50,
.bg-fuchsia-50,
.bg-primary\/10,
.bg-primary\/5,
.bg-blue-50,
.bg-indigo-50,
.bg-gold\/10,
.bg-gold\/20,
.bg-gold\/40 {
  background-color: #eae2fc !important;
}

[style*="color:#7c3aed"],
[style*="color: #7c3aed"],
[style*="color:#a855f7"],
[style*="color: #a855f7"],
[style*="color:#8b5cf6"],
[style*="color: #8b5cf6"],
[style*="color:#6366f1"],
[style*="color: #6366f1"] {
  color: #000000 !important;
}

[style*="background:#a855f7"],
[style*="background: #a855f7"],
[style*="background:#8b5cf6"],
[style*="background: #8b5cf6"],
[style*="background:#7c3aed"],
[style*="background: #7c3aed"],
[style*="background:#6366f1"],
[style*="background: #6366f1"] {
  background: #000000 !important;
}

/* Purple / violet / gold gradients on buttons → solid black (no blue) */
a[class*="from-"],
button[class*="from-"],
a[class*="bg-gradient"],
button[class*="bg-gradient"],
[class*="from-purple"]:is(a, button),
[class*="from-violet"]:is(a, button),
[class*="from-indigo"]:is(a, button),
[class*="from-gold"]:is(a, button) {
  --tw-gradient-from: #000000 !important;
  --tw-gradient-to: #000000 !important;
  --tw-gradient-stops: #000000, #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

/* Text gradients keep a soft brand wash (not black) */
.bg-clip-text,
[class*="bg-clip-text"],
[class*="from-purple"]:not(a):not(button),
[class*="from-violet"]:not(a):not(button),
[class*="from-gold"]:not(a):not(button) {
  --tw-gradient-from: #000000 !important;
  --tw-gradient-to: #6b7aff !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
  background-image: linear-gradient(135deg, #2233ee 0%, #6b7aff 100%) !important;
}

em.bg-clip-text,
span.bg-clip-text,
h1 [class*="bg-clip-text"],
h1 em,
h1 [class*="text-transparent"] {
  background-image: linear-gradient(135deg, #2233ee, #000000) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

[style*="linear-gradient"][style*="purple"],
[style*="linear-gradient"][style*="violet"],
[style*="linear-gradient"][style*="#a855f7"],
[style*="linear-gradient"][style*="#8b5cf6"],
[style*="linear-gradient"][style*="#7c3aed"] {
  background-image: linear-gradient(135deg, #2233ee, #000000) !important;
}

[style*="background:#f7f6f2"],
[style*="background: #f7f6f2"],
[style*="background:#F7F6F2"],
[style*="background:#FAF9F6"],
[style*="background: #FAF9F6"] {
  background: #eef0ff !important;
}

/* ========== Cards / panels ========== */
section .rounded-2xl,
section .rounded-3xl,
section .rounded-xl,
.bg-card,
[class*="rounded-2xl"].border,
[class*="rounded-3xl"].border,
[class*="rounded-2xl"].bg-card,
[class*="rounded-3xl"].bg-white,
[class*="rounded-2xl"].bg-background {
  border-color: #ddd8f0 !important;
  box-shadow: 0 1px 0 rgba(34, 51, 238, 0.05), 0 14px 36px rgba(26, 22, 48, 0.06) !important;
}

.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-soft {
  box-shadow: 0 1px 0 rgba(34, 51, 238, 0.06), 0 12px 32px rgba(26, 22, 48, 0.06) !important;
}

.border-border,
.border {
  border-color: #ddd8f0 !important;
}

/* Section rhythm + centered intros */
section {
  scroll-margin-top: 1rem;
}

section > .mx-auto > h2,
section > div > h2,
section h2.text-center,
section .text-center > h2 {
  text-wrap: balance;
}

section h2 + p,
section .text-center > h2 + p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: #000000 !important;
}

/* Eyebrow / badge polish — never override solid brand chips */
[class*="tracking-widest"]:not([class*="bg-primary"]):not([class*="bg-gold"]):not([class*="bg-foreground"]):not([class*="bg-ink"]),
[class*="tracking-wider"].uppercase:not([class*="bg-primary"]):not([class*="bg-gold"]):not([class*="bg-foreground"]),
.uppercase.tracking-widest:not([class*="bg-primary"]):not([class*="bg-gold"]),
.uppercase[class*="text-xs"]:not([class*="bg-primary"]):not([class*="bg-gold"]):not([class*="bg-foreground"]):not([class*="text-primary-foreground"]) {
  letter-spacing: 0.12em !important;
  color: #000000 !important;
}

/* Mono chips on solid signal always white */
.bg-primary.font-mono,
.bg-primary[class*="font-mono"],
.bg-primary[class*="tracking-wider"],
.bg-primary.text-primary-foreground,
[class~="bg-primary"][class*="tracking-wider"],
[class~="bg-primary"].text-primary-foreground,
.bg-gold-gradient,
[class*="bg-gold-gradient"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bg-gold-gradient,
[class*="bg-gold-gradient"] {
  background-image: none !important;
  background-color: #000000 !important;
  box-shadow: none !important;
}

/* ========== CTAs ========== */
/* Solid buttons — exact tokens only (hover:bg-foreground/* must NOT match) */
/* Solid CTAs — black fill / white type (no blue) */
a.bg-primary,
button.bg-primary,
a[class~="bg-primary"],
button[class~="bg-primary"],
a.bg-foreground,
button.bg-foreground,
a[class~="bg-foreground"],
button[class~="bg-foreground"],
a.bg-black,
button.bg-black,
a[class~="bg-black"],
button[class~="bg-black"],
a.bg-ink,
button.bg-ink,
a[class~="bg-ink"],
button[class~="bg-ink"],
a[class*="bg-gradient"],
button[class*="bg-gradient"],
a.gradient-brand,
button.gradient-brand {
  background-image: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

a.bg-primary:hover,
button.bg-primary:hover,
a[class~="bg-primary"]:hover,
button[class~="bg-primary"]:hover,
a.bg-foreground:hover,
button.bg-foreground:hover,
a[class~="bg-foreground"]:hover,
button[class~="bg-foreground"]:hover,
a.bg-black:hover,
button.bg-black:hover,
a.bg-ink:hover,
button.bg-ink:hover,
a[class*="bg-gradient"]:hover,
button[class*="bg-gradient"]:hover,
a.gradient-brand:hover,
button.gradient-brand:hover {
  background-image: none !important;
  background-color: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

a.bg-primary:hover *,
button.bg-primary:hover *,
a.bg-foreground:hover *,
button.bg-foreground:hover *,
a.bg-black:hover *,
button.bg-black:hover *,
a.bg-ink:hover *,
button.bg-ink:hover *,
a.gradient-brand:hover *,
button.gradient-brand:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Outline / ghost CTAs — transparent + black border + black type */
a.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]),
button.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]),
a.bg-transparent,
button.bg-transparent,
a[class~="bg-transparent"],
button[class~="bg-transparent"],
a[class~="bg-secondary"],
button[class~="bg-secondary"],
a[class~="bg-background"],
button[class~="bg-background"],
a[class~="bg-muted"],
button[class~="bg-muted"],
a[class~="bg-sand"],
button[class~="bg-sand"],
a[class~="bg-card"],
button[class~="bg-card"] {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: transparent !important;
  border: 1.5px solid #000000 !important;
  box-shadow: none !important;
}

a.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]):hover,
button.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]):hover,
a.bg-transparent:hover,
button.bg-transparent:hover,
a[class~="bg-secondary"]:hover,
button[class~="bg-secondary"]:hover,
a[class~="bg-card"]:hover,
button[class~="bg-card"]:hover,
a[class~="bg-background"]:hover,
button[class~="bg-background"]:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

a.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]):hover *,
button.border:not([class~="bg-primary"]):not([class~="bg-foreground"]):not([class~="bg-black"]):not([class~="bg-ink"]):hover *,
a.bg-transparent:hover *,
button.bg-transparent:hover *,
a[class~="bg-secondary"]:hover *,
button[class~="bg-secondary"]:hover *,
a[class~="bg-card"]:hover *,
button[class~="bg-card"]:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* CTAs on dark cards — never leave black type on ink surfaces */
div.bg-ink a[class~="bg-background"],
div.bg-black a[class~="bg-background"],
div.bg-ink a[class~="bg-card"],
div.bg-black a[class~="bg-card"],
div.bg-ink a[class~="bg-secondary"],
div.bg-black a[class~="bg-secondary"],
div.bg-ink a[class~="bg-muted"],
div.bg-black a[class~="bg-muted"],
div.bg-ink a.bg-transparent,
div.bg-black a.bg-transparent,
div.bg-ink button[class~="bg-background"],
div.bg-black button[class~="bg-background"],
div.bg-ink a.border:not([class~="bg-primary"]):not([class~="bg-black"]),
div.bg-black a.border:not([class~="bg-primary"]):not([class~="bg-black"]) {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #ffffff !important;
}

div.bg-ink a[class~="bg-background"]:hover,
div.bg-black a[class~="bg-background"]:hover,
div.bg-ink a[class~="bg-card"]:hover,
div.bg-black a[class~="bg-card"]:hover,
div.bg-ink a[class~="bg-secondary"]:hover,
div.bg-black a[class~="bg-secondary"]:hover,
div.bg-ink a.bg-transparent:hover,
div.bg-black a.bg-transparent:hover,
div.bg-ink a.border:not([class~="bg-primary"]):hover,
div.bg-black a.border:not([class~="bg-primary"]):hover,
div.bg-ink button[class~="bg-background"]:hover,
div.bg-black button[class~="bg-background"]:hover {
  background-color: #f3f3f3 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #f3f3f3 !important;
}

div.bg-ink a[class~="bg-background"] *,
div.bg-black a[class~="bg-background"] *,
div.bg-ink a[class~="bg-background"]:hover *,
div.bg-black a[class~="bg-background"]:hover *,
div.bg-ink a.border:not([class~="bg-primary"]):hover *,
div.bg-black a.border:not([class~="bg-primary"]):hover * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Solid primary CTAs on dark cards — white fill so they stay visible */
div.bg-ink a.bg-primary,
div.bg-black a.bg-primary,
div.bg-ink a.bg-foreground,
div.bg-black a.bg-foreground,
div.bg-ink a.gradient-brand,
div.bg-black a.gradient-brand,
div.bg-ink a[class~="bg-primary"],
div.bg-black a[class~="bg-primary"] {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #ffffff !important;
}

div.bg-ink a.bg-primary:hover,
div.bg-black a.bg-primary:hover,
div.bg-ink a.bg-foreground:hover,
div.bg-black a.bg-foreground:hover,
div.bg-ink a.gradient-brand:hover,
div.bg-black a.gradient-brand:hover {
  background-color: #f3f3f3 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

div.bg-ink a.bg-primary *,
div.bg-black a.bg-primary *,
div.bg-ink a.bg-primary:hover *,
div.bg-black a.bg-primary:hover *,
div.bg-ink a.bg-foreground *,
div.bg-black a.bg-foreground *,
div.bg-ink a.gradient-brand *,
div.bg-black a.gradient-brand * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Fix text-primary-foreground misused on light surfaces */
a.text-primary-foreground:not([class*="bg-primary"]):not([class*="bg-foreground"]):not([class*="bg-black"]):not([class*="bg-ink"]),
button.text-primary-foreground:not([class*="bg-primary"]):not([class*="bg-foreground"]):not([class*="bg-black"]):not([class*="bg-ink"]),
a[class*="text-primary-foreground"]:not([class*="bg-primary"]):not([class*="bg-foreground"]):not([class*="bg-black"]):not([class*="bg-ink"]),
button[class*="text-primary-foreground"]:not([class*="bg-primary"]):not([class*="bg-foreground"]):not([class*="bg-black"]):not([class*="bg-ink"]),
a[class*="text-ink-foreground"]:not([class*="bg-ink"]):not([class*="bg-foreground"]):not([class*="bg-black"]),
button[class*="text-ink-foreground"]:not([class*="bg-ink"]):not([class*="bg-foreground"]):not([class*="bg-black"]) {
  color: #000000 !important;
}

/* Lightened former-dark sections → ink text */
section.bg-black,
section.bg-ink,
section[class~="bg-black"],
section[class~="bg-ink"],
section.bg-black h1,
section.bg-black h2,
section.bg-black h3,
section.bg-black h4,
section.bg-black h1 *,
section.bg-black h2 *,
section.bg-black h3 *,
section.bg-black h4 *,
section.bg-ink h1,
section.bg-ink h2,
section.bg-ink h3,
section.bg-ink h4,
section.bg-ink h1 *,
section.bg-ink h2 *,
section.bg-ink h3 *,
section.bg-ink h4 *,
section.bg-black li,
section.bg-ink li,
section.bg-black label,
section.bg-ink label,
section.bg-black span:not(.gradient-brand-text):not([class*="gradient-brand-text"]),
section.bg-ink span:not(.gradient-brand-text):not([class*="gradient-brand-text"]),
section.bg-black p,
section.bg-ink p,
section.bg-black a:not([class*="bg-"]):not(.gradient-brand):not([class*="gradient-brand"]),
section.bg-ink a:not([class*="bg-"]):not(.gradient-brand):not([class*="gradient-brand"]),
section.bg-black .opacity-45,
section.bg-ink .opacity-45,
section.bg-black .opacity-40,
section.bg-ink .opacity-40,
section.bg-black .opacity-55,
section.bg-ink .opacity-55,
section.bg-black .text-ink-foreground,
section.bg-ink .text-ink-foreground,
section.bg-black [class*="text-ink-foreground"],
section.bg-ink [class*="text-ink-foreground"] {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Compact brand pills / chips still use white type */
a.bg-black,
button.bg-black,
a.bg-ink,
button.bg-ink,
a.bg-foreground,
button.bg-foreground,
span.bg-black,
span.bg-ink,
div.bg-black[class*="rounded-full"],
div.bg-ink[class*="rounded-full"],
a.bg-primary,
button.bg-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bg-black .gradient-brand-text,
.bg-ink .gradient-brand-text,
[class~="bg-black"] .gradient-brand-text,
[class~="bg-ink"] .gradient-brand-text,
h1 .gradient-brand-text,
h2 .gradient-brand-text {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(135deg, #6b7aff 0%, #2233ee 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Keep signal accents readable on dark */
.bg-black .text-primary,
.bg-ink .text-primary,
[class~="bg-black"] .text-primary,
[class~="bg-ink"] .text-primary {
  color: #6b7aff !important;
}

/* Solid brand gradient CTAs — black fill + white type */
a.gradient-brand,
button.gradient-brand,
a[class*="gradient-brand"]:not([class*="gradient-brand-text"]),
button[class*="gradient-brand"]:not([class*="gradient-brand-text"]) {
  background-image: none !important;
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

/* White type ONLY on real dark cards/chips — not lightened section.bg-ink bands */
div.bg-black[class*="rounded"] .text-muted-foreground,
div.bg-ink[class*="rounded"] .text-muted-foreground,
div[class~="bg-black"][class*="rounded"] .text-muted-foreground,
div[class~="bg-ink"][class*="rounded"] .text-muted-foreground,
div.bg-black[class*="rounded"] p,
div.bg-ink[class*="rounded"] p,
div.bg-black[class*="rounded"] li,
div.bg-ink[class*="rounded"] li,
div.bg-black[class*="rounded"] span,
div.bg-ink[class*="rounded"] span,
div.bg-black[class*="rounded"] h1,
div.bg-ink[class*="rounded"] h1,
div.bg-black[class*="rounded"] h2,
div.bg-ink[class*="rounded"] h2,
div.bg-black[class*="rounded"] h3,
div.bg-ink[class*="rounded"] h3,
div.bg-black[class*="rounded"] h4,
div.bg-ink[class*="rounded"] h4,
div.bg-black[class*="rounded"] [class*="text-muted"],
div.bg-ink[class*="rounded"] [class*="text-muted"],
div.bg-black[class*="rounded"] [class*="text-zinc"],
div.bg-ink[class*="rounded"] [class*="text-zinc"],
div.bg-black[class*="rounded"] [class*="text-neutral"],
div.bg-ink[class*="rounded"] [class*="text-neutral"],
div.bg-black[class*="rounded"] [class*="text-gray"],
div.bg-ink[class*="rounded"] [class*="text-gray"],
div.bg-black[class*="rounded"] [class*="text-slate"],
div.bg-ink[class*="rounded"] [class*="text-slate"] {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

div.bg-ink[class*="rounded"] p,
div.bg-black[class*="rounded"] p {
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}

div.bg-ink[class*="rounded"] h3,
div.bg-black[class*="rounded"] h3,
div.bg-ink[class*="rounded"] .font-display,
div.bg-black[class*="rounded"] .font-display {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Light cards nested in dark bands stay black type */
.bg-black .bg-white,
.bg-black .bg-background,
.bg-black .bg-card,
.bg-black .bg-sand,
.bg-ink .bg-white,
.bg-ink .bg-background,
.bg-ink .bg-card,
.bg-ink .bg-sand,
.bg-black [class~="bg-white"],
.bg-black [class~="bg-background"],
.bg-ink [class~="bg-white"],
.bg-ink [class~="bg-background"],
.bg-black .bg-white h1,
.bg-black .bg-white h2,
.bg-black .bg-white h3,
.bg-black .bg-white h4,
.bg-black .bg-white h1 *,
.bg-black .bg-white h2 *,
.bg-black .bg-white p,
.bg-black .bg-white li,
.bg-black .bg-white span,
.bg-black .bg-white [class*="text-muted"],
.bg-black .bg-background h1,
.bg-black .bg-background h2,
.bg-black .bg-background p,
.bg-black .bg-background span,
.bg-ink .bg-white h1,
.bg-ink .bg-white h2,
.bg-ink .bg-white p,
.bg-ink .bg-white span,
.bg-ink .bg-white [class*="text-muted"] {
  color: #000000 !important;
}

/* Dark-section outline CTAs */
.bg-black a.border,
.bg-ink a.border,
[class*="bg-black"] a.border,
[class*="bg-ink"] a.border,
.bg-black a[class*="border-"],
.bg-ink a[class*="border-"] {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.bg-black a.bg-primary,
.bg-ink a.bg-primary,
[class*="bg-black"] a[class*="bg-primary"],
[class*="bg-ink"] a[class*="bg-primary"],
.bg-black a[class*="bg-gold"],
.bg-ink a[class*="bg-gold"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* ========== Forms ========== */
input,
textarea,
select {
  background-color: #ffffff !important;
  border-color: #ddd8f0 !important;
  color: #000000 !important;
  border-radius: 0.75rem !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(34, 51, 238, 0.15) !important;
}

/* ========== Why / feature cards ========== */
section [class*="grid"] > [class*="rounded"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

section [class*="grid"] > [class*="rounded"]:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover {
  transform: translateY(-2px);
  border-color: #ddd8f0 !important;
  box-shadow: 0 1px 0 rgba(23, 19, 31, 0.04), 0 18px 40px rgba(26, 22, 48, 0.08) !important;
}

/* Icon chips */
[class*="rounded-full"].bg-primary\/10,
[class*="rounded-xl"].bg-primary\/10,
[class*="rounded-2xl"].bg-primary\/5,
[class*="size-"][class*="bg-primary"],
[class*="size-"][class*="bg-secondary"] {
  background-color: #eae2fc !important;
  color: #000000 !important;
}

/* Pricing / compare cards */
[class*="Most Popular"],
[class*="ring-"],
.ring-2,
.ring-primary {
  --tw-ring-color: #000000 !important;
  border-color: #000000 !important;
}

/* ========== Chrome hide ========== */
header.sticky,
header.fixed,
header[class*="sticky"],
header[class*="fixed"],
header.inset-x-0,
footer,
footer[class*="border"],
[data-offer-chrome="header"],
[data-offer-chrome="footer"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

.pt-24,
.pt-20,
.pt-28 {
  padding-top: 2.75rem !important;
}

/* Hero first-viewport breathing room */
main > section:first-child,
body > div > section:first-child,
.min-h-screen > section:first-of-type,
[class*="min-h"] > section:first-of-type {
  padding-top: clamp(2.5rem, 6vh, 4rem) !important;
}

/* Hide sticky bottom offer CTA bars (bottom strips only — not full-page overlays) */
.fixed.inset-x-0.bottom-0,
.fixed.inset-x-3.bottom-3,
.fixed.inset-x-4.bottom-4,
.fixed[class*="inset-x"][class*="bottom-0"],
.fixed[class*="inset-x"][class*="bottom-3"],
.fixed[class*="inset-x"][class*="bottom-4"],
.fixed[class*="inset-x"][class*="bottom-5"],
.fixed[class*="inset-x"][class*="bottom-6"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Exit-intent / overlay modals (marked by bridge) */
.spark-hide-popup,
[data-spark-popup="1"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Full-viewport exit-intent backdrops (Revenue OS / 72h / etc.) */
.fixed.inset-0.z-50,
.fixed.inset-0[class*="z-5"],
.fixed.inset-0[class*="backdrop-blur"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep in-page content usable — no sticky-bar spacer */
body {
  padding-bottom: 0 !important;
}

/* Hide WhatsApp FABs + Lovable badges */
.salesos-whatsapp-fab,
a.salesos-whatsapp-fab,
a[href*="wa.me"],
a[href*="api.whatsapp.com"],
a[aria-label*="WhatsApp" i],
a[aria-label*="whatsapp" i],
button[aria-label*="WhatsApp" i],
[class*="whatsapp-fab"],
[class*="WhatsApp"],
[class*="whatsapp-float"],
[data-whatsapp],
#whatsapp-button,
.fixed.bottom-5.right-5,
.fixed.bottom-4.right-4.z-50 a[href*="wa.me"],
.fixed.bottom-6.right-6,
.fixed.z-50.bottom-4.right-4,
a[href*="lovable.dev"],
[class*="lovable"],
#lovable-badge {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Video */
video {
  background: #eae2fc;
  border-radius: 1.25rem;
}

/* FAQ accordion polish */
button[aria-expanded] {
  color: #000000 !important;
}

button[aria-expanded]:hover {
  color: #000000 !important;
}

/* ========== Type / section — keep original offer scales (no forced clamps) ========== */
/* Only fix washed-out hero copy visibility; sizes stay from each offer's CSS */
section#top p.opacity-70,
main > section:first-of-type p.opacity-70,
section#top .opacity-45,
main > section:first-of-type .opacity-45 {
  opacity: 1 !important;
}

section#top [class*="gap-"][class*="text-[0"],
main > section:first-of-type [class*="gap-"][class*="text-[0"],
section#top .flex.flex-wrap[class*="gap"],
main > section:first-of-type .flex.flex-wrap[class*="gap"] {
  opacity: 1 !important;
}

/* Alternating sand bands — soft Spark surface, not flat white */
.bg-sand {
  background-color: #f3f1fc !important;
}

.bg-sand-deep {
  background-color: #eae2fc !important;
}

/* Feature / diagram chips on light — force ink */
section [class*="rounded"][class*="border"] .font-semibold,
section [class*="rounded-lg"].border,
section [class*="rounded-xl"].border,
section [class*="rounded-2xl"].border {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

section .opacity-40,
section .opacity-55,
section .opacity-60,
section .opacity-65:not(a):not(button) {
  opacity: 1 !important;
  color: #000000 !important;
}

section.bg-ink .opacity-40,
section.bg-ink .opacity-55,
section.bg-ink .opacity-60,
section.bg-ink .opacity-65,
section.bg-black .opacity-40,
section.bg-black .opacity-55,
section.bg-black .opacity-60,
section.bg-black .opacity-65 {
  color: #4a4a4a !important;
  -webkit-text-fill-color: #4a4a4a !important;
}

/* CTA / card type — leave original sizes; contrast handled elsewhere */

/* Pricing / plan titles */
section [class*="text-4xl"],
section [class*="text-5xl"] {
  letter-spacing: -0.015em;
}

/* Pricing card price lines */
section [class*="rounded"] .font-display.tabular-nums,
section [class*="rounded"] [class*="tabular-nums"],
section [class*="rounded"] p.font-display.text-lg,
section [class*="rounded"] p.font-display.text-xl {
  letter-spacing: 0.01em !important;
  font-variant-numeric: tabular-nums;
}

/* ========== FINAL: dark + solid signal surfaces always win ========== */
/* Blue / primary cards (e.g. "Two Ways To Start" business path) */
.bg-primary:not([class*="bg-primary/"]),
[class~="bg-primary"],
.bg-accent-strong,
[class~="bg-accent-strong"],
.bg-blue-600,
.bg-indigo-600,
div.bg-primary,
div[class~="bg-primary"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bg-primary:not([class*="bg-primary/"]) *,
[class~="bg-primary"] *,
.bg-accent-strong *,
div.bg-primary *:not(svg):not(path),
div[class~="bg-primary"] *:not(svg):not(path) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bg-primary:not([class*="bg-primary/"]) p,
[class~="bg-primary"] p,
.bg-primary:not([class*="bg-primary/"]) .eyebrow,
[class~="bg-primary"] .eyebrow,
.bg-primary:not([class*="bg-primary/"]) .text-gold,
[class~="bg-primary"] .text-gold,
.bg-primary:not([class*="bg-primary/"]) [class*="text-muted"],
[class~="bg-primary"] [class*="text-muted"],
.bg-primary:not([class*="bg-primary/"]) .opacity-70,
[class~="bg-primary"] .opacity-70 {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

.bg-primary:not([class*="bg-primary/"]) .font-serif,
[class~="bg-primary"] .font-serif,
.bg-primary:not([class*="bg-primary/"]) [class*="font-serif"],
[class~="bg-primary"] [class*="font-serif"],
.bg-primary:not([class*="bg-primary/"]) .font-display,
[class~="bg-primary"] .font-display {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Nested CTAs on blue cards — dark chip, white label */
.bg-primary:not([class*="bg-primary/"]) a,
[class~="bg-primary"] a,
.bg-primary:not([class*="bg-primary/"]) button,
[class~="bg-primary"] button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Light path cards — pure black copy */
.bg-card p,
.bg-card .eyebrow,
.bg-card .font-serif,
.bg-card [class*="font-serif"],
.bg-card [class*="text-muted"],
.bg-card .text-muted-foreground,
div.bg-card p,
div.bg-card span {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  opacity: 1 !important;
}

.bg-primary:not([class*="bg-primary/"]) a[class*="rounded"],
[class~="bg-primary"] a[class*="rounded"],
.bg-primary:not([class*="bg-primary/"]) button[class*="rounded"],
[class~="bg-primary"] button[class*="rounded"] {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Large primary panels use soft brand surface (light UI) — ALL descendants black */
div[class~="bg-primary"][class*="rounded-3xl"],
div.bg-primary[class*="rounded-3xl"],
div[class~="bg-gold"][class*="rounded-3xl"],
div[class~="bg-accent-strong"][class*="rounded-3xl"],
div[class~="bg-primary"][class*="rounded-3xl"] *:not(svg):not(path),
div.bg-primary[class*="rounded-3xl"] *:not(svg):not(path),
div[class~="bg-gold"][class*="rounded-3xl"] *:not(svg):not(path),
div[class~="bg-accent-strong"][class*="rounded-3xl"] *:not(svg):not(path),
div[class~="bg-primary"][class*="rounded-3xl"] p,
div[class~="bg-primary"][class*="rounded-3xl"] span,
div[class~="bg-primary"][class*="rounded-3xl"] h1,
div[class~="bg-primary"][class*="rounded-3xl"] h2,
div[class~="bg-primary"][class*="rounded-3xl"] h3,
div[class~="bg-primary"][class*="rounded-3xl"] .eyebrow,
div[class~="bg-primary"][class*="rounded-3xl"] [class*="text-muted"],
div[class~="bg-primary"][class*="rounded-3xl"] .opacity-70,
div[class~="bg-primary"][class*="rounded-3xl"] .font-serif,
div[class~="bg-primary"][class*="rounded-3xl"] .font-display {
  background-image: none !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

div[class~="bg-primary"][class*="rounded-3xl"],
div.bg-primary[class*="rounded-3xl"],
div[class~="bg-gold"][class*="rounded-3xl"],
div[class~="bg-accent-strong"][class*="rounded-3xl"] {
  background-color: #eae2fc !important;
}

div[class~="bg-primary"][class*="rounded-3xl"] a[class*="rounded"],
div[class~="bg-primary"][class*="rounded-3xl"] button[class*="rounded"],
div[class~="bg-gold"][class*="rounded-3xl"] a[class*="rounded"],
div[class~="bg-gold"][class*="rounded-3xl"] button[class*="rounded"] {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

div[class~="bg-primary"][class*="rounded-3xl"] a[class*="rounded"] *,
div[class~="bg-primary"][class*="rounded-3xl"] button[class*="rounded"] *,
div[class~="bg-gold"][class*="rounded-3xl"] a[class*="rounded"] *,
div[class~="bg-gold"][class*="rounded-3xl"] button[class*="rounded"] * {
  background-color: transparent !important;
  background-image: none !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Former dark sections are light — ink type everywhere except brand chips / dark cards */
section.bg-ink,
section.bg-black,
section[class~="bg-ink"],
section[class~="bg-black"],
section.bg-ink *:not(a[class*="bg-"]):not(button[class*="bg-"]):not(.bg-primary):not(.bg-black):not(.bg-ink):not(.bg-foreground),
section.bg-black *:not(a[class*="bg-"]):not(button[class*="bg-"]):not(.bg-primary):not(.bg-black):not(.bg-ink):not(.bg-foreground) {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Nested dark cards inside lightened sections keep white type (incl. hover) */
section.bg-ink div.bg-ink[class*="rounded"],
section.bg-ink div.bg-black[class*="rounded"],
section.bg-black div.bg-ink[class*="rounded"],
section.bg-black div.bg-black[class*="rounded"],
section.bg-ink div[class~="bg-ink"][class*="rounded"],
section.bg-ink div[class~="bg-black"][class*="rounded"],
section.bg-black div[class~="bg-ink"][class*="rounded"],
section.bg-black div[class~="bg-black"][class*="rounded"],
section.bg-ink div.bg-ink[class*="rounded"] *,
section.bg-ink div.bg-black[class*="rounded"] *,
section.bg-black div.bg-ink[class*="rounded"] *,
section.bg-black div.bg-black[class*="rounded"] *,
section.bg-ink div.bg-ink[class*="rounded"]:hover,
section.bg-ink div.bg-black[class*="rounded"]:hover,
section.bg-black div.bg-ink[class*="rounded"]:hover,
section.bg-black div.bg-black[class*="rounded"]:hover,
section.bg-ink div.bg-ink[class*="rounded"]:hover *,
section.bg-ink div.bg-black[class*="rounded"]:hover *,
section.bg-black div.bg-ink[class*="rounded"]:hover *,
section.bg-black div.bg-black[class*="rounded"]:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

section.bg-ink div.bg-ink[class*="rounded"],
section.bg-ink div.bg-black[class*="rounded"],
section.bg-black div.bg-ink[class*="rounded"],
section.bg-black div.bg-black[class*="rounded"] {
  background-color: #0a0a0a !important;
}

section.bg-ink p:not(.eyebrow):not([class*="text-[0"]):not([class*="uppercase"]),
section.bg-black p:not(.eyebrow):not([class*="text-[0"]):not([class*="uppercase"]),
section.bg-ink li,
section.bg-black li,
section.bg-ink .text-ink-muted,
section.bg-black .text-ink-muted,
section.bg-ink [class*="text-ink-muted"],
section.bg-black [class*="text-ink-muted"] {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  opacity: 1 !important;
}

/* Keep original type sizes inside lightened ink/black sections */

section.bg-ink h1,
section.bg-ink h2,
section.bg-ink h3,
section.bg-ink h4,
section.bg-black h1,
section.bg-black h2,
section.bg-black h3,
section.bg-black h4,
section.bg-ink .font-display,
section.bg-black .font-display,
section.bg-ink [class*="rounded"] h3,
section.bg-black [class*="rounded"] h3 {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

section.bg-ink a[class*="bg-"],
section.bg-black a[class*="bg-"],
section.bg-ink button[class*="bg-"],
section.bg-black button[class*="bg-"],
section.bg-ink .bg-primary,
section.bg-black .bg-primary,
section.bg-ink .bg-primary *,
section.bg-black .bg-primary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Nested light panels inside dark heroes (Revenue Department dashboard cards, etc.) */
section.bg-ink .bg-white,
section.bg-ink .bg-card,
section.bg-ink .bg-background,
section.bg-ink .bg-sand,
section.bg-ink .bg-secondary,
section.bg-ink .surface-card,
section.bg-ink [class*="bg-background"],
section.bg-ink [class*="bg-card"],
section.bg-ink [class*="bg-secondary"],
section.bg-black .bg-white,
section.bg-black .bg-card,
section.bg-black .surface-card,
section.bg-ink .bg-white *,
section.bg-ink .bg-card *,
section.bg-ink .bg-background *,
section.bg-ink .bg-secondary *,
section.bg-ink .surface-card *,
section.bg-ink [class*="bg-background"] *,
section.bg-ink [class*="bg-card"] *,
section.bg-ink [class*="bg-secondary"] *,
section.bg-black .bg-white *,
section.bg-black .surface-card *,
section.bg-ink .surface-card p,
section.bg-ink .surface-card span,
section.bg-ink .surface-card li,
section.bg-ink .surface-card h2,
section.bg-ink .surface-card h3,
section.bg-ink .surface-card h4,
section.bg-ink [class*="bg-background/"] p,
section.bg-ink [class*="bg-background/"] span,
section.bg-ink [class*="rounded"][class*="bg-background"] p,
section.bg-ink [class*="rounded"][class*="bg-background"] span {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Keep ink chips nested inside light cards dark-on-light correctly */
section.bg-ink .surface-card .bg-ink,
section.bg-ink .surface-card [class~="bg-ink"],
section.bg-ink .surface-card .bg-ink *,
section.bg-ink .surface-card [class~="bg-ink"] *,
section.bg-ink .surface-card .bg-primary,
section.bg-ink .surface-card .bg-primary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

section.bg-ink a[class~="bg-primary"],
section.bg-ink a[class~="bg-foreground"],
section.bg-black a[class~="bg-primary"],
section.bg-black a[class~="bg-foreground"],
section.bg-ink a.gradient-brand,
section.bg-black a.gradient-brand {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

section.bg-ink .gradient-brand-text,
section.bg-black .gradient-brand-text,
section.bg-ink [class*="gradient-brand-text"],
section.bg-black [class*="gradient-brand-text"],
section.bg-ink [class*="bg-clip-text"],
section.bg-black [class*="bg-clip-text"] {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* Sticky bars — light canvas with ink type */
[class*="bg-ink/"],
[class*="bg-ink\\/"],
.bg-ink\/95,
.bg-ink\/90,
.bg-ink\/80 {
  background-color: rgba(238, 240, 255, 0.95) !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #ddd8f0 !important;
  backdrop-filter: blur(12px);
}

[class*="bg-ink/"] *,
[class*="bg-ink\\/"] *,
.bg-ink\/95 *,
.bg-ink\/90 *,
.bg-ink\/80 *,
div[class*="bg-ink/"] span,
div[class*="bg-ink/"] p,
div[class*="bg-ink/"] a:not([class*="bg-"]):not([class*="gradient"]) {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Gold / signal CTA inside sticky ink bar stays white on brand fill */
[class*="bg-ink/"] a[class*="gradient"],
[class*="bg-ink/"] a[class*="bg-gold"],
[class*="bg-ink/"] a[class*="bg-primary"],
.bg-ink\/95 a,
div[class*="bg-ink/"] a[class*="rounded-full"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Mobile — don't override offer type scales or section padding */

/* ========== Fonts: each offer keeps its Lovable stack (do not force Geist) ========== */

/* ========== Light UI polish ========== */
/* Soft border only — do not force white fill (preserves original card surfaces/gaps) */
section [class*="rounded-2xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]),
section [class*="rounded-3xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]),
section [class*="rounded-xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]) {
  border-color: #ddd8f0 !important;
}

/* Dark ink/black cards — keep solid dark fill + white type (never transparent) */
div.bg-black[class*="rounded"],
div.bg-ink[class*="rounded"],
div[class~="bg-black"][class*="rounded"],
div[class~="bg-ink"][class*="rounded"],
article.bg-black[class*="rounded"],
article.bg-ink[class*="rounded"],
aside.bg-black[class*="rounded"],
aside.bg-ink[class*="rounded"],
li.bg-black[class*="rounded"],
li.bg-ink[class*="rounded"] {
  background-color: #0a0a0a !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

div.bg-black[class*="rounded"]:hover,
div.bg-ink[class*="rounded"]:hover,
div[class~="bg-black"][class*="rounded"]:hover,
div[class~="bg-ink"][class*="rounded"]:hover,
section [class*="grid"] > .bg-black:hover,
section [class*="grid"] > .bg-ink:hover,
section [class*="grid"] > [class~="bg-black"]:hover,
section [class*="grid"] > [class~="bg-ink"]:hover {
  background-color: #111111 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

div.bg-black[class*="rounded"] *,
div.bg-ink[class*="rounded"] *,
div[class~="bg-black"][class*="rounded"] *,
div[class~="bg-ink"][class*="rounded"] *,
article.bg-black[class*="rounded"] *,
article.bg-ink[class*="rounded"] *,
div.bg-black[class*="rounded"] p,
div.bg-ink[class*="rounded"] p,
div.bg-black[class*="rounded"] span,
div.bg-ink[class*="rounded"] span,
div.bg-black[class*="rounded"] li,
div.bg-ink[class*="rounded"] li,
div.bg-black[class*="rounded"] h1,
div.bg-ink[class*="rounded"] h1,
div.bg-black[class*="rounded"] h2,
div.bg-ink[class*="rounded"] h2,
div.bg-black[class*="rounded"] h3,
div.bg-ink[class*="rounded"] h3,
div.bg-black[class*="rounded"] h4,
div.bg-ink[class*="rounded"] h4,
div.bg-black[class*="rounded"]:hover *,
div.bg-ink[class*="rounded"]:hover *,
div[class~="bg-black"][class*="rounded"]:hover *,
div[class~="bg-ink"][class*="rounded"]:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Nested frosted chips inside dark cards — beat section *:not(...) black (high :not specificity) */
html body section.bg-ink div.bg-ink[class*="rounded"],
html body section.bg-ink div.bg-black[class*="rounded"],
html body section.bg-black div.bg-ink[class*="rounded"],
html body section.bg-black div.bg-black[class*="rounded"],
html body section.bg-ink div.bg-ink[class*="rounded"] *,
html body section.bg-ink div.bg-black[class*="rounded"] *,
html body section.bg-black div.bg-ink[class*="rounded"] *,
html body section.bg-black div.bg-black[class*="rounded"] *,
html body section.bg-ink div.bg-ink[class*="rounded"] p,
html body section.bg-ink div.bg-ink[class*="rounded"] span,
html body section.bg-ink div.bg-ink[class*="rounded"] li,
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="bg-ink-foreground"],
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="bg-ink-foreground"] *,
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="bg-white"],
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="bg-white"] *,
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="rounded-xl"],
html body section.bg-ink div.bg-ink[class*="rounded"] [class*="rounded-xl"] *,
html body section.bg-ink div.bg-ink[class*="rounded"]:hover,
html body section.bg-ink div.bg-ink[class*="rounded"]:hover *,
html body section.bg-ink div.bg-ink[class*="rounded"]:hover p,
html body section.bg-ink div.bg-ink[class*="rounded"]:hover span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Step / timeline watermarks — readable soft brand, not near-invisible */
section span.text-secondary.font-display,
section span.text-secondary[class*="text-5xl"],
section .font-display.text-5xl.text-secondary,
section [class*="text-5xl"].text-secondary {
  color: #b7a8e6 !important;
  -webkit-text-fill-color: #b7a8e6 !important;
  opacity: 1 !important;
}

/* Solid CTAs — force white on the control AND every child (beats section span black) */
a.bg-primary,
button.bg-primary,
a[class~="bg-primary"],
button[class~="bg-primary"],
a.bg-foreground,
button.bg-foreground,
a.bg-black,
button.bg-black,
a.bg-ink,
button.bg-ink,
a.gradient-brand,
button.gradient-brand,
a.bg-primary *,
button.bg-primary *,
a[class~="bg-primary"] *,
button[class~="bg-primary"] *,
a.bg-foreground *,
button.bg-foreground *,
a.bg-black *,
button.bg-black *,
a.bg-ink *,
button.bg-ink *,
a.gradient-brand *,
button.gradient-brand *,
a.bg-primary:hover,
button.bg-primary:hover,
a.bg-primary:hover *,
button.bg-primary:hover *,
a.bg-foreground:hover,
button.bg-foreground:hover,
a.bg-foreground:hover *,
button.bg-foreground:hover *,
a.bg-black:hover,
button.bg-black:hover,
a.bg-black:hover *,
button.bg-black:hover *,
a.bg-ink:hover,
button.bg-ink:hover,
a.bg-ink:hover *,
button.bg-ink:hover *,
section.bg-ink a.bg-primary,
section.bg-ink button.bg-primary,
section.bg-ink a.bg-primary *,
section.bg-ink button.bg-primary *,
section.bg-ink a.bg-foreground,
section.bg-ink button.bg-foreground,
section.bg-ink a.bg-foreground *,
section.bg-ink button.bg-foreground *,
section.bg-ink a.bg-black,
section.bg-ink button.bg-black,
section.bg-ink a.bg-black *,
section.bg-ink button.bg-black *,
section.bg-black a.bg-primary,
section.bg-black button.bg-primary,
section.bg-black a.bg-primary *,
section.bg-black button.bg-primary *,
section.bg-ink a.bg-primary span,
section.bg-ink button.bg-primary span,
section.bg-ink a.bg-primary:hover,
section.bg-ink a.bg-primary:hover *,
section.bg-ink button.bg-primary:hover,
section.bg-ink button.bg-primary:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

section.bg-ink a.bg-primary,
section.bg-ink button.bg-primary,
section.bg-ink a.bg-foreground,
section.bg-ink button.bg-foreground,
section.bg-ink a.bg-black,
section.bg-ink button.bg-black,
section.bg-black a.bg-primary,
section.bg-black button.bg-primary,
section.bg-ink a.bg-primary:hover,
section.bg-ink button.bg-primary:hover {
  background-color: #000000 !important;
  background-image: none !important;
  border-color: #000000 !important;
}

/* Light bordered cards on hover — do not invert type to white */
section [class*="rounded-2xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover,
section [class*="rounded-3xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover {
  color: inherit;
}

/* ========== Motion ========== */
@keyframes spark-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spark-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > section:first-of-type,
body section:first-of-type {
  animation: spark-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spark-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.spark-reveal.is-in {
  opacity: 1;
  transform: none;
}

.spark-card-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.spark-card-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Host scrolls the iframe — never leave embedded content invisible */
html.spark-offer-embedded .spark-reveal,
html.spark-offer-embedded .spark-card-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

a[class*="rounded-full"],
button[class*="rounded-full"],
a.inline-flex[class*="rounded"],
button.inline-flex[class*="rounded"] {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  will-change: transform;
}

a[class*="rounded-full"]:hover,
button[class*="rounded-full"]:hover,
a.inline-flex[class*="rounded"]:hover,
button.inline-flex[class*="rounded"]:hover {
  transform: translateY(-2px);
}

a[class*="rounded-full"]:active,
button[class*="rounded-full"]:active {
  transform: translateY(0) scale(0.98);
}

section [class*="rounded-2xl"],
section [class*="rounded-3xl"],
section [class*="rounded-xl"].border {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

section [class*="rounded-2xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover,
section [class*="rounded-3xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover,
section [class*="rounded-xl"].border:not(.bg-black):not(.bg-ink):not([class~="bg-black"]):not([class~="bg-ink"]):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(23, 19, 31, 0.08) !important;
  border-color: #c4bceb !important;
}

/* ========== Mobile responsiveness ========== */
@media (max-width: 900px) {
  section .grid,
  section [class*="grid-cols-"] {
    gap: 1rem !important;
  }

  section [class*="grid-cols-5"],
  section [class*="grid-cols-4"],
  section [class*="grid-cols-3"] {
    grid-template-columns: 1fr !important;
  }

  section .flex.flex-row:has(> a[class*="rounded"]),
  section .flex[class*="gap-"]:has(> a[class*="rounded-full"]) {
    flex-wrap: wrap !important;
  }

  section a[class*="rounded-full"],
  section button[class*="rounded-full"] {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }

  /* Process / flow rows wrap cleanly */
  section .flex.items-center.justify-center,
  section .flex.flex-wrap.items-center {
    flex-wrap: wrap !important;
    row-gap: 0.75rem !important;
  }
}

@media (max-width: 640px) {
  section [class*="rounded-2xl"]:hover,
  section [class*="rounded-3xl"]:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section:first-of-type,
  body section:first-of-type,
  .spark-reveal,
  .spark-card-reveal,
  a[class*="rounded-full"],
  button[class*="rounded-full"],
  section [class*="rounded-2xl"],
  section [class*="rounded-3xl"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========== Monochrome: remaining blue → black ========== */
.text-primary,
.text-blue-600,
.text-blue-500,
.text-gold,
[class*="text-primary"]:not([class*="text-primary-foreground"]),
[class*="text-gold"]:not([class*="bg-"]),
li::marker,
.bg-primary\/10,
.bg-primary\/5,
.bg-primary\/20,
[class*="bg-primary/10"],
[class*="bg-primary/5"] {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Checklist / Lucide check icons — always visible on light canvas
   (incl. lightened section.bg-ink / section.bg-black bands). */
section li > svg,
section ul li svg,
section li svg.lucide,
section svg.lucide[class*="text-accent"],
section svg[class*="text-accent"],
section .text-accent svg,
section [class*="text-accent"] svg,
section.bg-ink li > svg,
section.bg-black li > svg,
section.bg-ink li svg,
section.bg-black li svg,
section li > svg path,
section ul li svg path,
section.bg-ink li > svg path,
section.bg-black li > svg path {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* AI Revenue OS pricing dots (bg-accent-strong) + hero ✓ on light bands */
section li [class*="rounded-full"].bg-accent-strong,
section li [class~="bg-accent-strong"],
section li .bg-accent-strong,
section.bg-ink li [class~="bg-accent-strong"],
section.bg-black li [class~="bg-accent-strong"] {
  background-color: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Checks inside real dark pricing/feature cards stay white */
div.bg-ink[class*="rounded"] li > svg,
div.bg-black[class*="rounded"] li > svg,
div.bg-ink[class*="rounded"] li svg.lucide,
div.bg-black[class*="rounded"] li svg.lucide,
div.bg-ink[class*="rounded"] svg[class*="text-accent"],
div.bg-black[class*="rounded"] svg[class*="text-accent"],
div.bg-ink[class*="rounded"] li > svg path,
div.bg-black[class*="rounded"] li > svg path {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* Soft accent washes (bg-accent) keep lavender fill even though --accent is ink */
.bg-accent,
[class~="bg-accent"]:not([class*="text-accent"]):not(svg) {
  background-color: #eae2fc !important;
}

.bg-primary\/10,
.bg-primary\/5,
.bg-primary\/20,
[class*="bg-primary/10"],
[class*="bg-primary/5"],
.bg-gold\/10,
.bg-gold\/20 {
  background-color: #eae2fc !important;
  color: #000000 !important;
}

/* Selected form pills / radios / chips — black fill, white label */
label:has(input:checked),
label:has([aria-checked="true"]),
button[aria-pressed="true"],
[role="radio"][aria-checked="true"],
[data-state="on"],
[data-state="checked"],
form label.bg-primary,
form button.bg-primary,
form [class~="bg-primary"],
form label[class*="bg-primary"],
section form [class*="rounded-full"].bg-primary,
section form [class*="rounded-full"][class~="bg-primary"] {
  background-color: #000000 !important;
  background-image: none !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

label:has(input:checked) *,
label:has([aria-checked="true"]) *,
button[aria-pressed="true"] *,
[role="radio"][aria-checked="true"] *,
form [class~="bg-primary"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* MOST POPULAR / plan badges — black */
[class*="rounded-full"].bg-primary,
[class*="rounded-full"][class~="bg-primary"],
[class*="rounded-full"].bg-gold,
span.bg-primary,
span[class~="bg-primary"],
div.bg-primary[class*="rounded-full"],
div[class~="bg-primary"][class*="absolute"] {
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #000000 !important;
}

/* Pricing cards — equal height / top align; badge shouldn't drop the middle card */
section [class*="grid"] > .relative.flex.flex-col[class*="rounded"],
section [class*="grid"] > [class*="rounded-3xl"].relative {
  align-self: stretch !important;
  height: 100% !important;
}

section [class*="grid"] > .relative.flex.flex-col[class*="rounded"] > [class*="absolute"],
section [class*="grid"] > [class*="rounded-3xl"] [class*="absolute"][class*="-top"],
section [class*="grid"] > [class*="rounded-3xl"] [class*="absolute"][class*="top-"] {
  /* keep badge out of flow so cards stay level */
  position: absolute !important;
}

/* Dark pricing card ONLY (rounded) — muted copy stays light.
   Do not match bare/lightened div.bg-ink (full-bleed bands → #eef0ff). */
div.bg-ink[class*="rounded"] .opacity-50,
div.bg-ink[class*="rounded"] .opacity-40,
div.bg-ink[class*="rounded"] .opacity-60,
div.bg-black[class*="rounded"] .opacity-50,
div.bg-ink[class*="rounded"] [class*="opacity-"],
div.bg-ink[class*="rounded"] .text-muted-foreground,
div.bg-ink[class*="rounded"] [class*="text-ink-muted"],
div.bg-ink[class*="rounded"] span.text-sm {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
}

/* Dark card white/light CTAs — black label (never blank white-on-white) */
div.bg-ink a.bg-background,
div.bg-ink a.bg-card,
div.bg-ink a.bg-white,
div.bg-ink a[class~="bg-background"],
div.bg-ink a[class~="bg-card"],
div.bg-ink a[class~="bg-secondary"],
div.bg-black a.bg-background,
div.bg-black a.bg-card,
div.bg-ink button.bg-background,
div.bg-ink a[class*="bg-background"],
div.bg-ink a.bg-primary-foreground,
html body div.bg-ink a[class*="rounded-full"]:not([class~="bg-primary"]):not([class~="bg-ink"]):not([class~="bg-black"]),
html body div.bg-black a[class*="rounded-full"]:not([class~="bg-primary"]):not([class~="bg-ink"]):not([class~="bg-black"]) {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #ffffff !important;
}

html body div.bg-ink a[class*="rounded-full"]:not([class~="bg-primary"]):not([class~="bg-ink"]):not([class~="bg-black"]) *,
html body div.bg-black a[class*="rounded-full"]:not([class~="bg-primary"]):not([class~="bg-ink"]):not([class~="bg-black"]) *,
div.bg-ink a.bg-background *,
div.bg-ink a.bg-card * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: transparent !important;
}

/* Soft lavender marketing panels stay soft (not solid black from --primary) */
div[class~="bg-primary"][class*="rounded-3xl"],
div.bg-primary[class*="rounded-3xl"] {
  background-color: #eae2fc !important;
}

/* Currency / locale floating chip (top) — hide in embeds */
.fixed.top-3,
.fixed.top-4,
.fixed.top-5,
.fixed[class*="top-"][class*="left-"][class*="z-"],
.fixed.z-50.top-4,
.fixed.z-40.top-3 {
  display: none !important;
}

/* ========== Mobile overflow guards ==========
   Grid/flex children default to min-width:auto, so one long display word
   ("Specializations.") can force a column wider than the phone screen. */
section .grid > *,
section [class*="grid-cols-"] > * {
  min-width: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  h1,
  h2 {
    hyphens: auto;
  }

  /* Long CTA labels wrap inside full-width buttons instead of overflowing */
  section a[class*="rounded-full"],
  section button[class*="rounded-full"] {
    white-space: normal;
    max-width: 100%;
  }
}
