/**
 * v10-nfap finance theme
 * Institutional navy direction (inspired by NFIP/NFAP programme sites),
 * adapted onto the existing v10 layout — not a clone of v11/v16.
 */

:root {
  --nfap-navy: #0b3a5c;
  --nfap-navy-mid: #1f4e79;
  --nfap-navy-deep: #0e2436;
  --nfap-ink: #142033;
  --nfap-muted: #5b6777;
  --nfap-border: #d7dee7;
  --nfap-bg: #f5f7fa;
  --nfap-surface: #ffffff;
  --nfap-accent: #c4782a;
  --nfap-accent-dark: #9a5e1f;
  --nfap-success: #1f7a4c;
  --nfap-on-dark: #f5f7fa;
  --nfap-on-dark-muted: #c5ced8;
  --nfap-shadow: 0 4px 18px rgba(14, 36, 54, 0.08);
  --nfap-shadow-md: 0 10px 28px rgba(14, 36, 54, 0.12);
  --nfap-radius: 10px;
  --nfap-font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --nfap-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --nfap-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nfap-font-sans);
  color: var(--nfap-ink);
  background-color: var(--nfap-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-english,
.font-english * {
  font-family: var(--nfap-font-sans) !important;
}

h1,
h2,
.seo-reviews h2,
section h1,
section > .container h1,
.geo-ai-section h2 {
  font-family: var(--nfap-font-serif);
  letter-spacing: -0.01em;
  color: var(--nfap-ink);
}

h3,
h4,
h5 {
  font-family: var(--nfap-font-sans);
  color: var(--nfap-ink);
}

/* Soften generic gray text toward institutional ink — light surfaces only */
.bg-white .text-gray-900,
.bg-white .text-gray-800,
.bg-gray-50 .text-gray-900,
.bg-gray-50 .text-gray-800,
.bg-card:not([class*="bg-white/"]) .text-gray-900,
.bg-card:not([class*="bg-white/"]) .text-gray-800,
.bg-slate-50 .text-gray-900,
.bg-slate-50 .text-gray-800,
.min-h-screen.bg-white .text-gray-900,
.min-h-screen.bg-white .text-gray-800,
.min-h-screen.bg-gray-50 .text-gray-900,
section.bg-white .text-gray-900,
section.bg-gray-50 .text-gray-900,
section.py-20 .text-gray-900,
section.py-16 .text-gray-900,
section.py-24 .text-gray-900,
header .text-gray-900,
header .text-gray-800,
.seo-reviews .text-gray-900,
.geo-ai-section .text-gray-900 {
  color: var(--nfap-ink) !important;
}

.bg-white .text-gray-600,
.bg-white .text-gray-700,
.bg-gray-50 .text-gray-600,
.bg-gray-50 .text-gray-700,
.bg-card:not([class*="bg-white/"]) .text-gray-600,
.bg-card:not([class*="bg-white/"]) .text-gray-700,
.bg-slate-50 .text-gray-600,
.min-h-screen.bg-white .text-gray-600,
.min-h-screen.bg-gray-50 .text-gray-600,
section.bg-white .text-gray-600,
section.bg-gray-50 .text-gray-600,
/* py-* muted only on light sections — not dark navy bands */
section.py-20:not([class*="from-gray-900"]):not([class*="from-slate-900"]):not([class*="from-blue-900"]):not([class*="from-blue-600"]) .text-gray-600,
section.py-16:not([class*="from-gray-900"]):not([class*="from-slate-900"]):not([class*="from-blue-900"]) .text-gray-600,
section.py-24:not([class*="from-gray-900"]):not([class*="from-slate-900"]) .text-gray-600,
section.py-20:not([class*="from-"]) .text-muted-foreground,
header .text-gray-700,
.seo-reviews .text-gray-600,
.geo-ai-section .text-gray-600 {
  color: var(--nfap-muted) !important;
}

.bg-gray-50,
.bg-gradient-to-br.from-gray-50,
.from-gray-50 {
  --tw-gradient-from: #f5f7fa var(--tw-gradient-from-position) !important;
}

/* ---------- Header ---------- */
header.bg-white {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--nfap-border) !important;
  box-shadow: 0 1px 0 rgba(14, 36, 54, 0.04) !important;
  backdrop-filter: blur(8px);
  min-height: 90px;
  overflow-anchor: none;
  transition:
    min-height 0.28s var(--nfap-ease),
    box-shadow 0.28s var(--nfap-ease),
    background-color 0.28s var(--nfap-ease);
}

.header-activity-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  overflow-anchor: none;
}

.header-activity-sticky > header {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
}

header.bg-white > .container > .flex {
  transition:
    min-height 0.28s var(--nfap-ease),
    padding 0.28s var(--nfap-ease);
}

header.bg-white .w-16,
header.bg-white .w-16.h-16,
header.bg-white a > div:first-child {
  transition: width 0.28s var(--nfap-ease), height 0.28s var(--nfap-ease);
}

header.bg-white a > span.font-semibold {
  transition: font-size 0.28s var(--nfap-ease);
}

header.bg-white nav a,
header.bg-white nav button,
header.bg-white .flex.items-center.space-x-2 > a,
header.bg-white #menu-toggle {
  transition:
    padding 0.28s var(--nfap-ease),
    min-height 0.28s var(--nfap-ease),
    height 0.28s var(--nfap-ease),
    font-size 0.28s var(--nfap-ease);
}

/* Compact sticky header on scroll */
header.bg-white.is-scrolled,
.header-activity-sticky.is-scrolled > header.bg-white {
  min-height: 60px !important;
  box-shadow: 0 6px 18px rgba(14, 36, 54, 0.1) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

header.bg-white.is-scrolled > .container > .flex,
.header-activity-sticky.is-scrolled > header.bg-white > .container > .flex {
  min-height: 60px !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

header.bg-white.is-scrolled .w-16,
header.bg-white.is-scrolled .w-16.h-16,
header.bg-white.is-scrolled a > div.w-16,
.header-activity-sticky.is-scrolled header.bg-white .w-16 {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

header.bg-white.is-scrolled a > span.font-semibold,
.header-activity-sticky.is-scrolled header.bg-white a > span.font-semibold {
  font-size: 0.95rem !important;
}

header.bg-white.is-scrolled nav a,
header.bg-white.is-scrolled nav button,
.header-activity-sticky.is-scrolled header.bg-white nav a,
.header-activity-sticky.is-scrolled header.bg-white nav button {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
}

header.bg-white.is-scrolled .flex.items-center.space-x-2 > a,
header.bg-white.is-scrolled #menu-toggle,
.header-activity-sticky.is-scrolled header.bg-white .flex.items-center.space-x-2 > a,
.header-activity-sticky.is-scrolled header.bg-white #menu-toggle {
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

header .text-blue-600.bg-blue-50,
header a.text-blue-600 {
  color: var(--nfap-navy) !important;
  background-color: rgba(11, 58, 92, 0.08) !important;
}

header a.text-gray-700:hover,
header button.text-gray-700:hover {
  color: var(--nfap-navy) !important;
  background-color: rgba(11, 58, 92, 0.06) !important;
}

header .hover\:bg-blue-50:hover {
  background-color: rgba(11, 58, 92, 0.06) !important;
}

/* ---------- Remap “AI purple / pink / indigo” gradients → navy family ---------- */
.from-purple-900,
.via-blue-900,
.to-purple-900,
.from-gray-900 {
  --tw-gradient-from: #0e2436 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(14 36 54 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.via-blue-900 {
  --tw-gradient-to: rgb(11 58 92 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), #0b3a5c var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-purple-900,
.to-indigo-900 {
  --tw-gradient-to: #1f4e79 var(--tw-gradient-to-position) !important;
}

.from-blue-900 {
  --tw-gradient-from: #0b3a5c var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(11 58 92 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.from-purple-500,
.from-purple-600,
.from-indigo-500,
.from-indigo-600,
.from-blue-500,
.from-blue-600 {
  --tw-gradient-from: var(--nfap-navy) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(11 58 92 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-purple-500,
.to-purple-600,
.to-indigo-500,
.to-indigo-600,
.to-indigo-700,
.to-blue-500,
.to-blue-600,
.via-purple-400,
.via-purple-500 {
  --tw-gradient-to: var(--nfap-navy-mid) var(--tw-gradient-to-position) !important;
}

.via-purple-400,
.via-purple-500,
.via-indigo-50 {
  --tw-gradient-stops: var(--tw-gradient-from), #1f4e79 var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.from-pink-400,
.from-pink-500,
.to-pink-400,
.to-pink-500,
.to-pink-600 {
  --tw-gradient-from: #8a6a3d var(--tw-gradient-from-position) !important;
  --tw-gradient-to: var(--nfap-accent) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* Soft section washes: blue/indigo/purple tint → cool paper navy */
.from-blue-50,
.to-blue-50,
.via-blue-50,
.from-indigo-50,
.to-indigo-50,
.from-purple-50,
.to-purple-50 {
  --tw-gradient-from: #eef2f6 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: #f5f7fa var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* ---------- CTAs: solid institutional, not neon green glass ----------
   IMPORTANT: only a/button — never bare .from-green-600 (that hits banners) */
.cta-start-now,
a.cta-start-now,
.plan-cta-btn,
a.plan-cta-btn,
.cta-topup-btn,
a.cta-topup-btn,
a.bg-gradient-to-r.from-green-500,
a.from-green-500,
a.from-green-600,
button.from-green-500,
button.from-green-600,
a.bg-gradient-to-r.from-green-500.to-emerald-600,
a.bg-gradient-to-r.from-green-600.to-emerald-600,
a.bg-gradient-to-r.from-green-600.to-emerald-700,
a.hover\:from-green-600:hover,
button.hover\:from-green-600:hover {
  background-image: none !important;
  background-color: var(--nfap-navy) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: var(--nfap-radius) !important;
  box-shadow: 0 8px 20px rgba(11, 58, 92, 0.22) !important;
  transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-cta-btn,
a.plan-cta-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.plan-cta-btn,
a.plan-cta-btn,
.plan-cta-btn span,
a.plan-cta-btn span,
.cta-start-now span,
.cta-topup-btn,
a.cta-topup-btn,
.cta-topup-btn span,
a.cta-topup-btn span,
.cta-topup-btn svg,
a.cta-topup-btn svg,
.cta-topup-btn .lucide,
a.cta-topup-btn .lucide,
.from-green-50 .cta-topup-btn,
.from-green-50 .cta-topup-btn span,
.from-green-50 .cta-topup-btn svg,
.to-emerald-50 .cta-topup-btn,
.to-emerald-50 .cta-topup-btn span,
.to-emerald-50 .cta-topup-btn svg,
.bg-card .cta-topup-btn,
.bg-card .cta-topup-btn span,
.bg-card .cta-topup-btn svg {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  stroke: currentColor !important;
  fill: none !important;
}

.cta-start-now:hover,
a.cta-start-now:hover,
.plan-cta-btn:hover,
a.plan-cta-btn:hover,
.cta-topup-btn:hover,
a.bg-gradient-to-r.from-green-500:hover,
a.from-green-600:hover {
  background-color: var(--nfap-navy-mid) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 58, 92, 0.28) !important;
  transform: translateY(-1px) !important;
}

/* Yellow subscribe on ATS → accent bronze */
a.bg-yellow-500,
.bg-yellow-500 {
  background-color: var(--nfap-accent) !important;
  color: #fff !important;
}

a.bg-yellow-500:hover,
.hover\:bg-yellow-600:hover {
  background-color: var(--nfap-accent-dark) !important;
}

/* Red “limited offer” energy → restrained navy */
.bg-destructive,
.bg-gradient-to-r.from-red-600,
.from-red-600 {
  background-color: var(--nfap-navy) !important;
  background-image: none !important;
  color: #fff !important;
  --tw-gradient-from: var(--nfap-navy) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: var(--nfap-navy-mid) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.text-red-600 {
  color: var(--nfap-navy-mid) !important;
}

.bg-red-100 {
  background-color: rgba(11, 58, 92, 0.08) !important;
}

/* Primary utility */
.bg-primary,
.bg-primary\/90 {
  background-color: var(--nfap-navy) !important;
  color: #fff !important;
}

.bg-primary .text-primary-foreground,
.bg-primary\/90 .text-primary-foreground,
button.bg-primary,
a.bg-primary {
  color: #fff !important;
}

/* Blue link ink on light surfaces only */
header a.text-blue-600,
header .text-blue-600,
.bg-white a.text-blue-600,
.bg-gray-50 a.text-blue-600,
.bg-card:not([class*="bg-white/"]) a.text-blue-600,
section.py-20 .text-blue-600,
section.py-16 .text-blue-600,
section.py-24 .text-blue-600,
.geo-ai-section a.text-blue-600,
.geo-ai-section .text-blue-600 {
  color: var(--nfap-navy-mid) !important;
}

/* Outline “View all plans”: white label when hover fills the button */
a.border-blue-600.text-blue-600:hover,
section a.border-blue-600.hover\:bg-blue-600:hover,
section.py-20 a.border-blue-600.text-blue-600:hover,
section.py-16 a.border-blue-600.text-blue-600:hover,
section.py-24 a.border-blue-600.text-blue-600:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: var(--nfap-navy) !important;
  border-color: var(--nfap-navy) !important;
}

footer .text-blue-400,
footer a.text-blue-400,
footer .hover\:text-blue-300:hover {
  color: #9ec0d8 !important;
}

/* ---------- Cards / surfaces ---------- */
.rounded-lg.bg-card:not([class*="bg-white/"]):not([class*="from-slate"]):not([class*="from-gray-8"]):not([class*="from-gray-9"]),
.rounded-lg.bg-white,
.seo-review,
.bg-white\/80,
.bg-white\/90,
.bg-white\/95 {
  background-color: var(--nfap-surface) !important;
  border: 1px solid var(--nfap-border) !important;
  box-shadow: var(--nfap-shadow) !important;
  border-radius: var(--nfap-radius) !important;
  color: var(--nfap-ink);
}

/* Solid light cards: force readable dark text if white/light utilities leaked in
   (exclude CTAs + plan pills + dark slate cards) */
.bg-white .text-white:not(h1):not(h2):not(h3):not(h4):not(h5):not(svg):not(.lucide):not(.plan-cta-btn):not(.cta-start-now):not(.cta-topup-btn):not(.rounded-full):not(.bg-primary):not(.nfap-solid-cta):not(.border-white):not([class*="border-white"]):not([class*="from-blue"]):not([class*="from-indigo"]):not([class*="from-emerald"]):not([class*="from-teal"]),
.bg-card:not([class*="bg-white/"]):not([class*="from-slate"]):not([class*="from-gray-8"]):not([class*="from-gray-9"]) .text-white:not(h1):not(h2):not(h3):not(h4):not(h5):not(svg):not(.lucide):not(.plan-cta-btn):not(.cta-start-now):not(.cta-topup-btn):not(.rounded-full):not(.bg-primary):not(.bg-orange-500):not(.bg-slate-600):not(.nfap-solid-cta):not(.border-white):not([class*="border-white"]):not([class*="from-blue"]):not([class*="from-indigo"]):not([class*="from-emerald"]):not([class*="from-teal"]),
.bg-white\/95 .text-white:not(h1):not(h2):not(h3):not(h4):not(svg):not(.lucide):not(.plan-cta-btn):not(.rounded-full):not(.nfap-solid-cta):not(.border-white):not([class*="from-blue"]):not([class*="from-indigo"]):not([class*="from-emerald"]):not([class*="from-teal"]),
.bg-white\/90 .text-white:not(h1):not(h2):not(h3):not(h4):not(svg):not(.lucide):not(.plan-cta-btn):not(.rounded-full):not(.nfap-solid-cta):not(.border-white):not([class*="from-blue"]):not([class*="from-indigo"]):not([class*="from-emerald"]):not([class*="from-teal"]),
.seo-review .text-white:not(svg):not(.lucide):not(.rounded-full) {
  color: var(--nfap-ink) !important;
}

/* Filled gradient CTAs on light legal/contact panels — keep white type */
a[class*="from-blue-"].text-white,
a[class*="from-indigo-"].text-white,
a[class*="from-emerald-"].text-white,
a[class*="from-teal-"].text-white,
a.bg-gradient-to-r.from-blue-500,
a.bg-gradient-to-r.from-indigo-600,
.bg-white\/95 a[class*="from-blue-"].text-white,
.bg-white\/95 a[class*="from-emerald-"].text-white,
.bg-white\/90 a[class*="from-blue-"].text-white,
.bg-card a[class*="from-blue-"].text-white,
.bg-card a[class*="from-emerald-"].text-white {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

a[class*="from-blue-"].text-white svg,
a[class*="from-indigo-"].text-white svg,
a[class*="from-emerald-"].text-white svg,
a[class*="from-teal-"].text-white svg,
.bg-white\/95 a[class*="from-blue-"] svg,
.bg-white\/95 a[class*="from-emerald-"] svg {
  color: #fff !important;
  stroke: currentColor;
}

.bg-card .plan-cta-btn,
.bg-card .plan-cta-btn span,
.bg-white .plan-cta-btn,
.bg-white .plan-cta-btn span,
.bg-card a.plan-cta-btn.text-white,
.bg-card a.plan-cta-btn.text-white span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Icon tiles keep white glyphs */
.bg-gradient-to-r .text-white,
.bg-gradient-to-br .text-white,
[class*="bg-gradient"] .lucide.text-white,
.rounded-full .text-white,
.rounded-2xl .text-white,
.rounded-3xl .text-white,
.w-12 .text-white,
.w-16 .text-white,
.bg-blue-500 .text-white,
.bg-green-500 .text-white,
.bg-primary .text-white {
  color: #fff !important;
}

.rounded-3xl {
  border-radius: 14px !important;
}

.shadow-2xl,
.shadow-xl,
.hover\:shadow-2xl:hover,
.hover\:shadow-xl:hover {
  box-shadow: var(--nfap-shadow-md) !important;
}

.hover\:scale-105:hover,
.hover\:scale-110:hover,
.transform.hover\:scale-105:hover {
  transform: translateY(-2px) !important;
}

/* Icon tiles: replace rainbow gradients with navy/accent */
.bg-gradient-to-r.from-blue-600.to-green-500,
.bg-gradient-to-br.from-blue-500.to-cyan-600,
.bg-gradient-to-br.from-green-500.to-emerald-600,
.bg-gradient-to-br.from-green-400.to-pink-600,
.bg-gradient-to-r.from-blue-500.to-indigo-500,
.bg-gradient-to-r.from-green-500.to-emerald-500,
.bg-gradient-to-r.from-purple-500.to-pink-500,
.bg-gradient-to-r.from-orange-500.to-red-500 {
  background-image: linear-gradient(145deg, var(--nfap-navy) 0%, var(--nfap-navy-mid) 100%) !important;
}

/* Green check dots stay success green — intentional */
.bg-green-100.text-green-600,
.bg-green-100 {
  background-color: rgba(31, 122, 76, 0.12) !important;
}

.text-green-600,
.text-green-500 {
  color: var(--nfap-success) !important;
}

/* ---------- Decorative noise: quieter ---------- */
.animate-pulse {
  animation: none !important;
  opacity: 0.55;
}

.blur-3xl,
.blur-xl,
.filter.blur-3xl {
  opacity: 0.18 !important;
  filter: blur(28px) !important;
}

.animate-bounce,
.animate-ping,
.animate-float {
  animation: none !important;
}

/* Hide tiny decorative spark dots that read as “AI landing page” */
.absolute.w-2.h-2.bg-blue-400,
.absolute.w-1.h-1.bg-green-400,
.absolute.w-1\.5.h-1\.5.bg-purple-400 {
  display: none !important;
}

/* ---------- Heroes / dark surfaces: readable light text ---------- */
section.relative.min-h-screen.flex.flex-col.bg-gradient-to-br,
section.bg-gradient-to-br.from-gray-900,
section[class*="from-gray-900"][class*="via-blue-900"],
section[class*="from-gray-900"][class*="to-purple-900"],
section[class*="from-gray-900"],
section[class*="from-slate-900"],
section[class*="from-blue-900"],
div.min-h-screen[class*="from-slate-900"],
div.min-h-screen[class*="from-gray-900"],
div[class*="from-slate-900"][class*="via-purple"],
div[class*="from-slate-900"],
footer.bg-gradient-to-br,
footer[class*="from-gray-900"],
footer.bg-gray-900 {
  background-image: linear-gradient(160deg, #0e2436 0%, #0b3a5c 52%, #1a4566 100%) !important;
  color: var(--nfap-on-dark);
}

/* Keep light text light on dark */
section[class*="from-gray-900"] .text-white,
section[class*="from-slate-900"] .text-white,
section[class*="from-blue-900"] .text-white,
section[class*="via-blue-900"] .text-white,
div[class*="from-slate-900"] .text-white,
div[class*="from-gray-900"] .text-white,
footer .text-white,
footer.text-white,
.bg-white section[class*="from-gray-900"] h1,
.bg-white section[class*="from-gray-900"] h1.text-white,
.bg-white section[class*="from-gray-900"] h2,
.bg-white section[class*="from-gray-900"] h3,
.bg-white section[class*="from-slate-900"] h1,
.bg-white section[class*="from-slate-900"] h2,
.bg-white section[class*="from-slate-900"] h3,
.bg-white section[class*="from-blue-900"] h1,
.bg-white section[class*="from-blue-900"] h2,
.bg-white section[class*="from-blue-900"] h3,
.bg-white section[class*="from-blue-900"] h2.text-white,
.bg-white section[class*="from-blue-900"] h3.text-white,
.min-h-screen.bg-white section[class*="from-gray-900"] h1,
.min-h-screen.bg-white section[class*="from-gray-900"] h2,
.min-h-screen.bg-white section[class*="from-gray-900"] h3,
.min-h-screen.bg-white section[class*="from-gray-900"] .text-white,
.min-h-screen.bg-white section[class*="from-blue-900"] h1,
.min-h-screen.bg-white section[class*="from-blue-900"] h2,
.min-h-screen.bg-white section[class*="from-blue-900"] h3,
.min-h-screen.bg-white section[class*="from-blue-900"] .text-white,
.min-h-screen.bg-white section[class*="from-blue-900"] .text-blue-200,
.min-h-screen.bg-white section[class*="from-blue-900"] .text-blue-100,
.min-h-screen.bg-white section[class*="from-blue-900"] .text-green-300,
.bg-white section[class*="from-blue-600"] h2,
.bg-white section[class*="from-blue-600"] h3,
.bg-white section[class*="from-blue-600"] .text-white,
.bg-white section[class*="from-blue-600"] .text-blue-100,
.bg-white section[class*="from-blue-600"] a.border-white,
.bg-white section[class*="from-blue-600"] a[class*="border-white"],
.min-h-screen.bg-white section[class*="from-blue-600"] h2,
.min-h-screen.bg-white section[class*="from-blue-600"] h3,
.min-h-screen.bg-white section[class*="from-blue-600"] .text-white,
.min-h-screen.bg-white section[class*="from-blue-600"] .text-blue-100,
.min-h-screen.bg-white section[class*="from-blue-600"] a.border-white,
.min-h-screen.bg-white section[class*="from-blue-600"] a[class*="bg-white/10"],
section[class*="from-blue-600"] h2,
section[class*="from-blue-600"] h3,
section[class*="from-blue-600"] .text-white,
section[class*="from-blue-600"] a.border-white,
section[class*="from-blue-600"] a[class*="border-white"],
section[class*="from-blue-600"] a[class*="bg-white/10"],
.nfap-hero-panel,
.nfap-hero-panel__title,
.nfap-hero-panel h1 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.min-h-screen.bg-white section[class*="from-blue-900"] .text-blue-200,
.min-h-screen.bg-white section[class*="from-blue-900"] .text-blue-100,
section[class*="from-blue-900"] .text-blue-200,
section[class*="from-blue-900"] .text-blue-100 {
  color: var(--nfap-on-dark-muted) !important;
  -webkit-text-fill-color: var(--nfap-on-dark-muted) !important;
}

.nfap-hero-panel__lead {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

section[class*="from-gray-900"] .text-blue-100,
section[class*="from-gray-900"] .text-blue-200,
section[class*="from-gray-900"] .text-green-200,
section[class*="from-gray-900"] .text-purple-200,
section[class*="from-gray-900"] .text-gray-200,
section[class*="from-gray-900"] .text-gray-300,
section[class*="from-gray-900"] .text-white\/70,
section[class*="from-slate-900"] .text-gray-200,
section[class*="from-slate-900"] .text-gray-300,
section[class*="from-slate-900"] .text-gray-400,
section[class*="from-slate-900"] .text-blue-100,
section[class*="from-slate-900"] .text-blue-200,
section[class*="from-blue-900"] .text-white\/60,
section[class*="from-blue-900"] .text-white\/70,
section[class*="from-blue-900"] .text-white\/90,
section[class*="from-blue-900"] .text-gray-300,
section[class*="from-blue-900"] .text-blue-100,
section[class*="from-blue-900"] .text-blue-200,
section[class*="from-blue-900"] .text-green-300,
section[class*="from-blue-900"] .text-green-200,
section[class*="via-blue-900"] .text-blue-100,
section[class*="via-blue-900"] .text-blue-200,
div[class*="from-slate-900"] .text-blue-100,
div[class*="from-slate-900"] .text-blue-200,
div[class*="from-slate-900"] .text-gray-300,
div[class*="from-slate-900"] .text-gray-400,
div[class*="from-slate-900"] .text-white,
footer .text-gray-300,
footer .text-gray-400,
footer .text-blue-200 {
  color: var(--nfap-on-dark-muted) !important;
}

/* Auth/contact clipped gradient titles → solid light text */
div[class*="from-slate-900"] h1 .bg-clip-text,
div[class*="from-slate-900"] .text-transparent.bg-clip-text,
section[class*="from-gray-900"] h1 .bg-clip-text,
section[class*="from-gray-900"] .text-transparent,
section[class*="from-slate-900"] h1 .bg-clip-text,
section[class*="from-slate-900"] .text-transparent,
section[class*="from-blue-900"] h2 .bg-clip-text,
section[class*="from-blue-900"] .text-transparent.bg-clip-text {
  color: #f5f7fa !important;
  background: none !important;
  -webkit-text-fill-color: #f5f7fa !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

div[class*="from-slate-900"] .bg-white\/95,
div[class*="from-slate-900"] .bg-white\/90 {
  background: #fff !important;
  color: var(--nfap-ink) !important;
}

div[class*="from-slate-900"] .bg-white\/95 label,
div[class*="from-slate-900"] .bg-white\/90 label,
div[class*="from-slate-900"] .bg-white\/95 .text-sm,
div[class*="from-slate-900"] .bg-white\/95 .text-gray-600,
div[class*="from-slate-900"] .bg-white\/95 .text-gray-700,
div[class*="from-slate-900"] .bg-white\/95 p {
  color: var(--nfap-ink) !important;
  -webkit-text-fill-color: var(--nfap-ink) !important;
}

div[class*="from-slate-900"] .bg-white\/95 button[type="submit"],
div[class*="from-slate-900"] .bg-white\/95 .bg-primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Glass stat cards on dark heroes — do NOT force white fill */
section[class*="from-gray-900"] .bg-white\/10,
section[class*="from-slate-900"] .bg-white\/10,
section[class*="from-blue-900"] .bg-white\/10,
section[class*="via-blue-900"] .bg-white\/10,
section[class*="from-gray-900"] [class*="bg-white/10"],
section[class*="from-slate-900"] [class*="bg-white/10"],
section[class*="from-blue-900"] [class*="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: none !important;
}

section[class*="from-gray-900"] .bg-white\/10 .text-card-foreground,
section[class*="from-gray-900"] .bg-white\/10 .text-gray-900,
section[class*="from-gray-900"] .bg-white\/10 .text-gray-800,
section[class*="from-gray-900"] .bg-white\/10 .text-gray-700,
section[class*="from-gray-900"] .bg-white\/10 .text-gray-600,
section[class*="from-gray-900"] [class*="bg-white/10"] .text-card-foreground,
section[class*="from-slate-900"] .bg-white\/10 .text-card-foreground,
section[class*="from-slate-900"] .bg-white\/10 .text-gray-600,
section[class*="from-slate-900"] .bg-white\/10 .text-gray-700,
section[class*="from-slate-900"] .bg-white\/10 .text-gray-800,
section[class*="from-slate-900"] .bg-white\/10 .text-gray-900,
section[class*="from-blue-900"] .bg-white\/10 .text-card-foreground,
section[class*="from-blue-900"] .bg-white\/10 .text-gray-600,
section[class*="from-blue-900"] .bg-white\/10 .text-gray-700 {
  color: var(--nfap-on-dark-muted) !important;
}

/* text-card-foreground defaults dark — force light on glass over dark bands */
section[class*="from-slate-900"] .text-card-foreground.bg-white\/10,
section[class*="from-blue-900"] .text-card-foreground.bg-white\/10,
section[class*="from-gray-900"] .text-card-foreground.bg-white\/10,
div[class*="from-slate-900"] .text-card-foreground[class*="bg-white/"],
div[class*="from-slate-900"] .bg-white\/5,
div[class*="from-slate-900"] .bg-white\/5 .text-card-foreground {
  color: var(--nfap-on-dark) !important;
}

section[class*="from-gray-900"] .bg-white\/10 .text-white,
section[class*="from-gray-900"] [class*="bg-white/10"] .text-white,
section[class*="from-slate-900"] .bg-white\/10 .text-white,
section[class*="from-blue-900"] .bg-white\/10 .text-white {
  color: #fff !important;
}

/* Hero form card: paper surface + dark form text */
section[class*="from-gray-900"] .bg-white\/95,
section[class*="from-gray-900"] .bg-white\/90,
section[class*="from-gray-900"] .bg-white\/95 *,
section[class*="from-gray-900"] .bg-white\/90 * {
  color: inherit;
}

section[class*="from-gray-900"] .bg-white\/95,
section[class*="from-gray-900"] .bg-white\/90 {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: var(--nfap-shadow-md) !important;
  color: var(--nfap-ink) !important;
}

section[class*="from-gray-900"] .bg-white\/95 label,
section[class*="from-gray-900"] .bg-white\/90 label,
section[class*="from-gray-900"] .bg-white\/95 .text-sm,
section[class*="from-gray-900"] .bg-white\/90 .text-sm,
section[class*="from-gray-900"] .bg-white\/95 .text-gray-600,
section[class*="from-gray-900"] .bg-white\/95 .text-gray-700,
section[class*="from-gray-900"] .bg-white\/95 .text-gray-900 {
  color: var(--nfap-ink) !important;
}

section[class*="from-gray-900"] .bg-white\/95 button[type="submit"],
section[class*="from-gray-900"] .bg-white\/90 button[type="submit"],
section[class*="from-gray-900"] .bg-white\/95 .bg-primary {
  color: #fff !important;
}

/* Mid-page navy/blue CTA bands (e.g. ATS) */
section.bg-gradient-to-r.from-blue-600,
section[class*="from-blue-600"][class*="to-purple"],
section[class*="from-blue-600"][class*="to-indigo"] {
  background-image: linear-gradient(120deg, var(--nfap-navy) 0%, var(--nfap-navy-mid) 100%) !important;
  color: #fff !important;
}

section.bg-gradient-to-r.from-blue-600 .text-white,
section.bg-gradient-to-r.from-blue-600 h2,
section[class*="from-blue-600"][class*="to-purple"] .text-white,
section[class*="from-blue-600"][class*="to-purple"] .text-blue-100,
section[class*="from-blue-600"][class*="to-purple"] p {
  color: #fff !important;
}

section[class*="from-blue-600"] .text-blue-100 {
  color: rgba(245, 247, 250, 0.88) !important;
}

section[class*="from-blue-600"] a.bg-white\/10,
section[class*="from-blue-600"] a.border-white {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

section[class*="from-blue-600"] a.bg-white\/10:hover {
  background: #fff !important;
  color: var(--nfap-navy) !important;
}

/* Colored banners / headers keep light text */
.bg-gradient-to-r.from-green-600,
.bg-gradient-to-r.from-amber-600,
.bg-gradient-to-r.from-emerald-600,
.bg-gradient-to-r.from-emerald-500,
.bg-gradient-to-r.from-teal-600,
.bg-gradient-to-r.from-purple-600,
.bg-gradient-to-r.from-orange-600,
[class*="from-green-600"][class*="text-white"],
[class*="from-amber-600"][class*="text-white"],
[class*="from-emerald-600"][class*="text-white"],
[class*="from-emerald-500"][class*="text-white"],
[class*="from-purple-600"][class*="text-white"],
[class*="from-orange-600"][class*="text-white"] {
  color: #fff !important;
}

.bg-gradient-to-r.from-green-600 .text-green-100,
.bg-gradient-to-r.from-green-600 .text-white,
.bg-gradient-to-r.from-green-600 p,
.bg-gradient-to-r.from-green-600 h2,
.bg-gradient-to-r.from-green-600 h3,
.bg-gradient-to-r.from-green-600 h4,
.bg-gradient-to-r.from-green-600 h5,
.bg-gradient-to-r.from-amber-600 .text-white,
.bg-gradient-to-r.from-amber-600 p,
.bg-gradient-to-r.from-amber-600 h2,
.bg-gradient-to-r.from-amber-600 h3,
.bg-gradient-to-r.from-amber-600 h4,
.bg-gradient-to-r.from-amber-600 h5,
.bg-gradient-to-r.from-emerald-600 .text-white,
.bg-gradient-to-r.from-emerald-600 p,
.bg-gradient-to-r.from-emerald-600 h2,
.bg-gradient-to-r.from-emerald-600 h3,
.bg-gradient-to-r.from-emerald-500 h2,
.bg-gradient-to-r.from-emerald-500 h3,
.bg-gradient-to-r.from-emerald-500 p,
.bg-gradient-to-r.from-emerald-500 .text-white,
[class*="from-emerald-500"][class*="via-teal"] h2,
[class*="from-emerald-500"][class*="via-teal"] h3,
[class*="from-emerald-500"][class*="via-teal"] p,
[class*="from-emerald-500"][class*="via-teal"] .text-white,
.bg-gradient-to-r.from-purple-600 .text-white,
.bg-gradient-to-r.from-purple-600 h2,
.bg-gradient-to-r.from-purple-600 h3,
.bg-gradient-to-r.from-purple-600 h4,
.bg-gradient-to-r.from-purple-600 p,
[class*="from-purple-600"][class*="to-indigo"] h2,
[class*="from-purple-600"][class*="to-indigo"] h3,
[class*="from-purple-600"][class*="to-indigo"] .text-white,
.bg-gradient-to-r.from-orange-600 .text-white,
.bg-gradient-to-r.from-orange-600 h2,
.bg-gradient-to-r.from-orange-600 h3,
.bg-gradient-to-r.from-orange-600 h4,
.bg-gradient-to-r.from-orange-600 p,
[class*="from-orange-600"][class*="to-red"] h2,
[class*="from-orange-600"][class*="to-red"] h3,
[class*="from-orange-600"][class*="to-red"] .text-white {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Green/amber CTA buttons on those banners */
.cta-topup-btn.text-white,
a.cta-topup-btn {
  color: #fff !important;
}

/* Example / success chips */
.bg-green-500.text-white,
.bg-green-500 .text-white,
.bg-emerald-500.text-white {
  color: #fff !important;
  background-color: var(--nfap-success) !important;
}

/* Light pastel panels: never keep washed-out white copy */
.from-green-50,
.to-emerald-50,
.from-blue-50,
.to-purple-50,
.from-amber-50,
.to-yellow-50,
.from-slate-50 {
  color: var(--nfap-ink);
}

/* Only plain white text on pastel panels — not chips/icons sitting on colored fills */
.from-green-50 > .text-white,
.to-emerald-50 > .text-white,
.from-blue-50 > .text-white,
.from-amber-50 > .text-white {
  color: var(--nfap-ink) !important;
}

/* Chips / icon badges on pastel rows keep white glyphs */
.from-green-50 .bg-green-500,
.from-green-50 .bg-green-500.text-white,
.from-green-50 .rounded-full .text-white,
.from-blue-50 .rounded-full .text-white,
.from-amber-50 .rounded-full .text-white,
.bg-blue-500 .text-white,
.bg-green-500.text-white,
.w-12.bg-blue-500 .text-white,
.w-12 .lucide.text-white,
[class*="from-green-50"] .bg-green-500 {
  color: #fff !important;
}

/* Hero title: clean institutional serif, no rainbow clip / glow */
.nfap-hero-title,
section h1 span[style*="Playfair"],
h1 span[style*="Playfair"],
h1 .bg-clip-text.text-transparent {
  font-family: var(--nfap-font-serif) !important;
  letter-spacing: -0.015em !important;
  text-shadow: none !important;
  color: #f5f7fa !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #f5f7fa !important;
}

/* Floating sparkle ornaments in hero — hide */
.nfap-hero-ornaments,
section .lucide-sparkles.absolute,
section .lucide-star.absolute.animate-pulse {
  display: none !important;
}

/* Hero divider lines: muted navy instead of rainbow */
.bg-gradient-to-r.from-blue-400.via-purple-400.to-pink-400,
.bg-gradient-to-r.from-pink-400.via-purple-400.to-blue-400 {
  background-image: linear-gradient(90deg, transparent, rgba(212, 163, 92, 0.55), transparent) !important;
}

/* Green→pink footer chips → navy */
.bg-gradient-to-r.from-green-500.to-pink-600 {
  background-image: none !important;
  background-color: var(--nfap-navy-mid) !important;
  color: #fff !important;
}

/* ---------- Plans / badges ---------- */
.plan-top-badges .bg-gradient-to-r.from-blue-600,
.inline-flex.items-center.rounded-full.bg-primary,
.inline-flex.items-center.rounded-full[class*="from-blue-600"],
.bg-card .inline-flex.rounded-full.bg-primary,
.bg-card .inline-flex.rounded-full.text-white,
.bg-card .plan-top-badges .text-white {
  background-image: none !important;
  background-color: var(--nfap-navy) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ---------- Footer ---------- */
footer,
footer.bg-gray-900,
footer[class*="bg-gray"] {
  background: var(--nfap-navy-deep) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--nfap-on-dark);
}

/* Override global h3/h4 ink on dark footer chips */
footer h3,
footer h4,
footer h5,
footer .bg-gradient-to-r h3,
footer .bg-gradient-to-r h4,
footer [class*="from-"] h3,
footer [class*="from-"] h4 {
  color: #fff !important;
}

footer .bg-gradient-to-r.from-blue-600.to-green-500,
footer .bg-gradient-to-r.from-green-500.to-pink-600,
footer .bg-gradient-to-r.from-orange-600.to-red-600 {
  background-image: none !important;
  background-color: var(--nfap-navy-mid) !important;
  color: #fff !important;
}

footer .bg-gradient-to-r.from-orange-600.to-red-600 {
  background-color: var(--nfap-accent) !important;
}

footer .text-blue-400,
footer a.text-blue-400 {
  color: #9ec0d8 !important;
}

footer a:hover {
  color: #fff !important;
}

footer .text-gray-300,
footer .text-gray-400 {
  color: var(--nfap-on-dark-muted) !important;
}

/* ---------- Geo / FAQ editorial blocks ---------- */
.geo-ai-section {
  background: linear-gradient(180deg, #eef2f6 0%, #f5f7fa 100%);
  border-top: 1px solid var(--nfap-border);
}

.geo-ai-section h2,
.geo-ai-section h3 {
  color: var(--nfap-ink);
  font-family: var(--nfap-font-serif);
}

.geo-card,
.geo-summary,
.geo-risk {
  background: var(--nfap-surface);
  border: 1px solid var(--nfap-border);
  border-radius: var(--nfap-radius);
  box-shadow: none;
}

.geo-risk {
  border-left: 4px solid var(--nfap-accent);
}

.geo-ai-section a:not(.nfap-solid-cta):not(.plan-cta-btn):not(.cta-start-now):not([class*="bg-gradient"]) {
  color: var(--nfap-navy-mid);
}

.geo-ai-section a.nfap-solid-cta,
.geo-ai-section a.nfap-solid-cta:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none;
}

.geo-faq details {
  background: var(--nfap-surface);
  border: 1px solid var(--nfap-border);
  border-radius: var(--nfap-radius);
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.85rem;
}

.geo-faq summary {
  font-weight: 600;
  color: var(--nfap-ink);
  cursor: pointer;
  padding: 0.65rem 0;
}

.geo-table th {
  background: #eef2f6;
  color: var(--nfap-ink);
}

/* ---------- Forms ---------- */
input.flex,
textarea,
select,
.iti input.phone {
  border-color: var(--nfap-border) !important;
  border-radius: 8px !important;
  font-family: var(--nfap-font-sans) !important;
}

input.flex:focus,
textarea:focus,
.iti input.phone:focus {
  border-color: var(--nfap-navy-mid) !important;
  box-shadow: 0 0 0 3px rgba(11, 58, 92, 0.12) !important;
  outline: none;
}

button[type="submit"].bg-primary,
form button[type="submit"] {
  background: var(--nfap-navy) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600;
}

button[type="submit"]:hover {
  background: var(--nfap-navy-mid) !important;
}

/* ---------- Trust badges on dark hero ---------- */
.trust-badges:not(.trust-badges--compact) {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.trust-badge {
  color: var(--nfap-on-dark-muted) !important;
}

.trust-badge .text-green-400,
.trust-badge .text-yellow-400,
.trust-badge .text-blue-400 {
  color: #d4a35c !important;
}

/* Compact trust row — light on dark CTA bands */
section[class*="from-blue-900"] .trust-badges--compact,
section[class*="from-slate-900"] .trust-badges--compact,
section[class*="from-gray-900"] .trust-badges--compact {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

section[class*="from-blue-900"] .trust-badges--compact .trust-badge,
section[class*="from-slate-900"] .trust-badges--compact .trust-badge,
section[class*="from-gray-900"] .trust-badges--compact .trust-badge {
  color: var(--nfap-on-dark-muted) !important;
}

section[class*="from-blue-900"] .trust-badges--compact .trust-badge [class*="text-"],
section[class*="from-slate-900"] .trust-badges--compact .trust-badge [class*="text-"],
section[class*="from-gray-900"] .trust-badges--compact .trust-badge [class*="text-"] {
  color: #d4a35c !important;
}

/* Caption under “Get access” on dark navy CTA */
section[class*="from-blue-900"] .space-y-4 > p,
section[class*="from-blue-900"] .space-y-4 > p.text-gray-600,
section[class*="from-blue-900"] .space-y-4 > p.text-white\/60 {
  color: var(--nfap-on-dark-muted) !important;
}

/* ---------- Breadcrumbs ---------- */
/* Dark hero pills (legal / about / contact / auth) — light text */
.breadcrumbs:not(.breadcrumbs--surface) a {
  color: rgba(245, 247, 250, 0.9) !important;
}

.breadcrumbs:not(.breadcrumbs--surface) a:hover {
  color: #fff !important;
}

.breadcrumbs:not(.breadcrumbs--surface) [aria-current="page"],
.breadcrumbs:not(.breadcrumbs--surface) li[aria-current="page"] {
  color: #fff !important;
}

/* Light pages keep dark ink */
.breadcrumbs--surface a {
  color: var(--nfap-navy-mid) !important;
}

.breadcrumbs--surface a:hover {
  color: var(--nfap-navy) !important;
}

.breadcrumbs--surface [aria-current="page"],
.breadcrumbs--surface li[aria-current="page"] {
  color: var(--nfap-ink) !important;
}

/* ---------- Reviews ---------- */
.seo-reviews {
  background: #eef2f6 !important;
}

.seo-review {
  border-radius: var(--nfap-radius) !important;
}

.seo-review__author {
  font-family: var(--nfap-font-sans);
  font-weight: 600;
}

/* ---------- Misc accent text on dark ---------- */
.text-yellow-400,
.text-yellow-300 {
  color: #e0b15a !important;
}

section[class*="from-slate-900"] .text-purple-200,
section[class*="from-slate-900"] .text-purple-300,
section[class*="from-gray-900"] .text-purple-200,
section[class*="from-gray-900"] .text-purple-300,
section[class*="from-blue-900"] .text-purple-200,
section[class*="from-blue-900"] .text-purple-300,
section[class*="from-blue-600"] .text-purple-200,
section[class*="from-blue-600"] .text-purple-300,
section[class*="from-blue-600"] .text-blue-200,
section[class*="from-blue-600"] .text-green-300,
div[class*="from-slate-900"] .text-purple-200,
div[class*="from-slate-900"] .text-purple-300 {
  color: var(--nfap-on-dark-muted) !important;
}

/* Contact / calculator emerald header lead */
[class*="from-emerald-500"] .text-emerald-100,
[class*="from-emerald-500"][class*="text-white"] p {
  color: rgba(245, 247, 250, 0.9) !important;
}

/* ---------- Reduce “glassmorphism” excess ---------- */
.backdrop-blur-xl,
.backdrop-blur-sm {
  backdrop-filter: blur(6px) !important;
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
  .cta-start-now {
    border-radius: 10px !important;
  }
}

/* =========================================================
   Contrast pass — dark surfaces get light type; paper keeps ink
   ========================================================= */

/* Override global h1–h5 ink on dark / colored bands */
section[class*="from-gray-900"] h1,
section[class*="from-gray-900"] h2,
section[class*="from-gray-900"] h3,
section[class*="from-gray-900"] h4,
section[class*="from-slate-900"] h1,
section[class*="from-slate-900"] h2,
section[class*="from-slate-900"] h3,
section[class*="from-slate-900"] h4,
section[class*="from-blue-900"] h1,
section[class*="from-blue-900"] h2,
section[class*="from-blue-900"] h3,
section[class*="from-blue-900"] h4,
section[class*="from-blue-600"] h1,
section[class*="from-blue-600"] h2,
section[class*="from-blue-600"] h3,
div[class*="from-slate-900"] h1,
div[class*="from-slate-900"] h2,
div[class*="from-slate-900"] h3,
div[class*="from-slate-900"] h4,
div[class*="from-gray-900"] h1,
div[class*="from-gray-900"] h2,
div[class*="from-gray-900"] h3,
[class*="from-purple-600"][class*="text-white"] h2,
[class*="from-purple-600"][class*="text-white"] h3,
[class*="from-purple-600"][class*="text-white"] h4,
[class*="from-orange-600"][class*="text-white"] h2,
[class*="from-orange-600"][class*="text-white"] h3,
[class*="from-orange-600"][class*="text-white"] h4,
[class*="from-emerald-500"][class*="text-white"] h2,
[class*="from-emerald-500"][class*="text-white"] h3,
[class*="from-emerald-500"][class*="text-white"] h4,
[class*="from-green-600"][class*="text-white"] h2,
[class*="from-green-600"][class*="text-white"] h3,
[class*="from-amber-600"][class*="text-white"] h2,
[class*="from-amber-600"][class*="text-white"] h3,
.text-white > h1,
.text-white > h2,
.text-white > h3,
.text-white > h4,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 {
  color: #fff !important;
}

/* Paper / solid light cards inside dark bands keep dark type */
section[class*="from-gray-900"] .bg-white h1,
section[class*="from-gray-900"] .bg-white h2,
section[class*="from-gray-900"] .bg-white h3,
section[class*="from-gray-900"] .bg-white h4,
section[class*="from-gray-900"] .bg-white\/95 h1,
section[class*="from-gray-900"] .bg-white\/95 h2,
section[class*="from-gray-900"] .bg-white\/95 h3,
section[class*="from-gray-900"] .bg-white\/95 h4,
section[class*="from-gray-900"] .bg-white\/90 h1,
section[class*="from-gray-900"] .bg-white\/90 h2,
section[class*="from-gray-900"] .bg-white\/90 h3,
section[class*="from-slate-900"] .bg-white h1,
section[class*="from-slate-900"] .bg-white h2,
section[class*="from-slate-900"] .bg-white h3,
section[class*="from-slate-900"] .bg-white\/95 h1,
section[class*="from-slate-900"] .bg-white\/95 h2,
section[class*="from-slate-900"] .bg-white\/95 h3,
section[class*="from-slate-900"] .bg-white\/90 h1,
section[class*="from-slate-900"] .bg-white\/90 h2,
section[class*="from-slate-900"] .bg-white\/90 h3,
div[class*="from-slate-900"] .bg-white h1,
div[class*="from-slate-900"] .bg-white h2,
div[class*="from-slate-900"] .bg-white h3,
div[class*="from-slate-900"] .bg-white\/95 h1,
div[class*="from-slate-900"] .bg-white\/95 h2,
div[class*="from-slate-900"] .bg-white\/95 h3,
div[class*="from-slate-900"] .bg-white\/90 h1,
div[class*="from-slate-900"] .bg-white\/90 h2,
div[class*="from-slate-900"] .bg-white\/90 h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) h1,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) h4,
.seo-review h3,
.seo-review h4,
.geo-ai-section h2,
.geo-ai-section h3 {
  color: var(--nfap-ink) !important;
}

/* Dark glass / slate cards keep white headings */
.bg-card[class*="from-slate"] h1,
.bg-card[class*="from-slate"] h2,
.bg-card[class*="from-slate"] h3,
.bg-card[class*="from-gray"] h3,
.bg-card .text-white,
[class*="bg-white/5"] h2,
[class*="bg-white/5"] h3,
[class*="bg-white/10"] h2,
[class*="bg-white/10"] h3 {
  color: #fff !important;
}

/*
 * Colored card headers (green/purple/orange/emerald) sit INSIDE .bg-card.
 * The paper ink rule above would force dark h1–h4 onto those bands — override.
 */
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] h1,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] h4,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] h5,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="text-white"] p,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-green-600"] h1,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-green-600"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-green-600"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-green-600"] h4,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-green-600"] p,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-purple-600"] h1,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-purple-600"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-purple-600"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-purple-600"] p,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-orange-600"] h1,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-orange-600"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-orange-600"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-orange-600"] p,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-amber-600"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-amber-600"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-emerald-500"] h2,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-emerald-500"] h3,
.bg-card:not([class*="from-slate"]):not([class*="from-gray"]):not([class*="bg-white/"]) [class*="from-emerald-500"] p,
.bg-card .cta-profit-title,
.bg-card .cta-profit-title__text,
.bg-card .cta-profit-title svg,
.bg-card .cta-profit-title__icon {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.bg-card [class*="from-green-600"] .text-green-100,
.bg-card [class*="from-green-600"] .text-emerald-100,
.bg-card [class*="from-purple-600"] .text-purple-100,
.bg-card [class*="from-orange-600"] .text-orange-100,
.bg-card [class*="from-amber-600"] .text-amber-100,
.bg-card [class*="text-white"] .text-green-100,
.bg-card [class*="text-white"] .text-emerald-100 {
  color: rgba(245, 247, 250, 0.92) !important;
  -webkit-text-fill-color: rgba(245, 247, 250, 0.92) !important;
}

/* Dark band body copy that still uses gray utilities */
section[class*="from-gray-900"] .text-gray-600,
section[class*="from-gray-900"] .text-gray-700,
section[class*="from-slate-900"] .text-gray-600,
section[class*="from-slate-900"] .text-gray-700,
section[class*="from-blue-900"] .text-gray-600,
section[class*="from-blue-900"] .text-gray-700,
section[class*="from-blue-900"] .text-gray-800,
div[class*="from-slate-900"] > .relative .text-gray-300,
div[class*="from-slate-900"] > .relative .text-gray-400,
div[class*="from-slate-900"] .text-gray-300,
div[class*="from-slate-900"] .text-gray-400 {
  color: var(--nfap-on-dark-muted) !important;
}

/* Exception: form cards on dark heroes stay dark ink */
section[class*="from-gray-900"] .bg-white\/95 .text-gray-600,
section[class*="from-gray-900"] .bg-white\/95 .text-gray-700,
section[class*="from-gray-900"] .bg-white\/90 .text-gray-600,
section[class*="from-gray-900"] .bg-white\/90 .text-gray-700,
section[class*="from-slate-900"] .bg-white\/95 .text-gray-600,
section[class*="from-slate-900"] .bg-white\/95 .text-gray-700,
section[class*="from-slate-900"] .bg-white\/90 .text-gray-600,
div[class*="from-slate-900"] .bg-white\/95 .text-gray-600,
div[class*="from-slate-900"] .bg-white\/95 .text-gray-700,
div[class*="from-slate-900"] .bg-white\/90 .text-gray-600,
div[class*="from-slate-900"] .bg-white\/90 .text-gray-700,
div[class*="from-slate-900"] .bg-white .text-gray-600,
div[class*="from-slate-900"] .bg-white .text-gray-700 {
  color: var(--nfap-muted) !important;
}

/* Destructive / Start plan pill — ensure light glyph on filled badge */
.bg-destructive,
.bg-destructive.text-destructive-foreground,
[class*="bg-destructive"] {
  color: #fff !important;
}

.bg-yellow-500.text-black,
a.bg-yellow-500.text-black {
  color: #fff !important;
}

/* Light pastel / soft sections: never leave washed white body copy
   (never target filled CTAs / mailto buttons) */
section[class*="from-blue-50"] .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.nfap-solid-cta):not([class*="from-blue-5"]):not([class*="from-emerald"]):not(svg):not(.lucide),
section[class*="from-green-50"] .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.nfap-solid-cta):not(svg):not(.lucide),
section[class*="from-slate-50"] .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.nfap-solid-cta):not(svg):not(.lucide),
section.bg-gray-50 .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.nfap-solid-cta):not(svg):not(.lucide),
section.bg-white .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.cta-start-now):not(.cta-topup-btn):not(.nfap-solid-cta):not(svg):not(.lucide),
div[class*="from-blue-50"] .text-white:not(.rounded-full):not(.bg-primary):not(.plan-cta-btn):not(.nfap-solid-cta):not([class*="from-blue-5"]):not([class*="from-indigo-6"]):not([class*="bg-gradient"]):not(a):not(svg):not(.lucide) {
  color: var(--nfap-ink) !important;
}

/* Mid-page navy CTA band with light / accent buttons */
.nfap-band-cta {
  background: linear-gradient(120deg, var(--nfap-navy) 0%, var(--nfap-navy-mid) 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nfap-band-cta h2,
.nfap-band-cta p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nfap-band-cta p.text-white\/85,
.nfap-band-cta .text-white\/85 {
  color: rgba(245, 247, 250, 0.88) !important;
  -webkit-text-fill-color: rgba(245, 247, 250, 0.88) !important;
}

.nfap-band-cta__btn {
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.nfap-band-cta__btn--light {
  background: #fff !important;
  color: var(--nfap-navy) !important;
  -webkit-text-fill-color: var(--nfap-navy) !important;
}

.nfap-band-cta__btn--light:hover {
  background: #eef2f6 !important;
  color: var(--nfap-navy-deep) !important;
  -webkit-text-fill-color: var(--nfap-navy-deep) !important;
}

.nfap-band-cta__btn--accent {
  background: var(--nfap-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nfap-band-cta__btn--accent:hover {
  background: var(--nfap-accent-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nfap-band-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
}

.nfap-band-cta__btn--ghost:hover {
  background: #fff !important;
  color: var(--nfap-navy) !important;
  -webkit-text-fill-color: var(--nfap-navy) !important;
}

/* Also fix any remaining white/yellow pills inside green/navy bands */
[class*="from-green-600"] a.bg-white,
[class*="from-emerald-600"] a.bg-white,
.nfap-band-cta a.bg-white {
  color: var(--nfap-navy) !important;
  -webkit-text-fill-color: var(--nfap-navy) !important;
  background: #fff !important;
}

[class*="from-green-600"] a.bg-yellow-400,
[class*="from-emerald-600"] a.bg-yellow-400,
.nfap-band-cta a.bg-yellow-400 {
  background: var(--nfap-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Solid CTA buttons on legal / contact / geo panels */
a.nfap-solid-cta,
.nfap-solid-cta,
.geo-ai-section a[href*="auth"].text-white,
.geo-ai-section a.bg-gradient-to-r.from-blue-600,
.geo-ai-section a[class*="from-blue-600"].text-white,
.geo-risk + p a.text-white,
p.button-center a[class*="from-blue"].text-white,
p.button-center a.text-white[class*="bg-gradient"] {
  background: var(--nfap-navy) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

a.nfap-solid-cta:hover,
.nfap-solid-cta:hover {
  background: var(--nfap-navy-mid) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

a.nfap-solid-cta svg,
.nfap-solid-cta svg {
  color: #fff !important;
  stroke: currentColor !important;
}

a.nfap-solid-cta--secondary,
.nfap-solid-cta--secondary {
  background: var(--nfap-success) !important;
}

a.nfap-solid-cta--secondary:hover,
.nfap-solid-cta--secondary:hover {
  background: #19663f !important;
}

/* Catch remaining blue/indigo mailto pills inside pastel cards */
.bg-card[class*="from-blue-50"] a[href^="mailto"],
.bg-card[class*="from-indigo-50"] a[href^="mailto"],
.bg-card[class*="via-indigo-50"] a[href^="mailto"],
[class*="from-blue-50"] a[href^="mailto"].text-white,
[class*="from-blue-50"] a[href^="mailto"][class*="from-blue"],
.bg-white\/95 a[href^="mailto"][class*="from-blue"],
.bg-white\/95 a[href^="mailto"].text-white.bg-gradient-to-r {
  background: var(--nfap-navy) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.bg-card[class*="from-blue-50"] a[href^="mailto"] svg,
[class*="from-blue-50"] a[href^="mailto"] svg,
.bg-white\/95 a[href^="mailto"][class*="from-blue"] svg {
  color: #fff !important;
  stroke: currentColor !important;
}

/* Feature list body on plan cards — readable muted, not washed */
.bg-card .text-sm.text-gray-700,
.bg-card span.text-gray-700,
.bg-card li .text-gray-700,
.bg-card .p-8 .text-gray-700,
.bg-card .p-6 .text-gray-700:not([class*="text-white"]) {
  color: #3d4a5c !important;
}

/* Form labels on hero glass (section slate, not only div) */
section[class*="from-slate-900"] .bg-white\/95 label,
section[class*="from-slate-900"] .bg-white\/90 label,
section[class*="from-slate-900"] .bg-white\/95 .text-sm,
section[class*="from-slate-900"] .bg-white\/95 .text-gray-600,
section[class*="from-slate-900"] .bg-white\/95 .text-gray-700,
section[class*="from-slate-900"] .bg-white\/95 p,
section[class*="from-gray-900"] .bg-white\/95 label,
section[class*="from-gray-900"] .bg-white\/90 label {
  color: var(--nfap-ink) !important;
  -webkit-text-fill-color: var(--nfap-ink) !important;
}

section[class*="from-slate-900"] .bg-white\/95 button[type="submit"],
section[class*="from-slate-900"] .bg-white\/95 .bg-primary,
section[class*="from-gray-900"] .bg-white\/95 button[type="submit"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Universal: any colored text-white band — force light type (beats global h* ink) */
[class*="from-green-600"].text-white,
[class*="from-green-600"].text-white h1,
[class*="from-green-600"].text-white h2,
[class*="from-green-600"].text-white h3,
[class*="from-green-600"].text-white h4,
[class*="from-green-600"].text-white h5,
[class*="from-green-600"].text-white p,
[class*="from-green-600"].text-white span,
[class*="from-green-600"].text-white svg,
[class*="from-emerald-600"].text-white,
[class*="from-emerald-600"].text-white h2,
[class*="from-emerald-600"].text-white h3,
[class*="from-emerald-600"].text-white p,
[class*="from-emerald-500"].text-white,
[class*="from-emerald-500"].text-white h2,
[class*="from-emerald-500"].text-white h3,
[class*="from-emerald-500"].text-white p,
[class*="from-purple-600"].text-white,
[class*="from-purple-600"].text-white h2,
[class*="from-purple-600"].text-white h3,
[class*="from-purple-600"].text-white p,
[class*="from-purple-600"].text-white svg,
[class*="from-orange-600"].text-white,
[class*="from-orange-600"].text-white h2,
[class*="from-orange-600"].text-white h3,
[class*="from-orange-600"].text-white h4,
[class*="from-orange-600"].text-white p,
[class*="from-amber-600"].text-white,
[class*="from-amber-600"].text-white h2,
[class*="from-amber-600"].text-white h3,
[class*="from-amber-600"].text-white p,
[class*="from-blue-600"].text-white h3,
[class*="from-blue-600"].text-white h4,
[class*="from-green-500"].text-white h3,
[class*="from-green-500"].text-white h4 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Soft lead lines on those bands */
[class*="from-green-600"].text-white .text-green-100,
[class*="from-emerald-500"].text-white .text-emerald-100,
[class*="from-emerald-600"].text-white .text-emerald-100 {
  color: rgba(245, 247, 250, 0.92) !important;
  -webkit-text-fill-color: rgba(245, 247, 250, 0.92) !important;
}

/* h5 on dark surfaces */
section[class*="from-gray-900"] h5,
section[class*="from-slate-900"] h5,
section[class*="from-blue-900"] h5,
div[class*="from-slate-900"] h5,
footer h5 {
  color: #fff !important;
}

/* Paper h5 inside light card bodies stay dark */
.bg-card .p-8 h5,
.bg-card .p-6 h5.text-gray-800,
.bg-white h5,
.bg-white\/95 h5 {
  color: var(--nfap-ink) !important;
}

/* Dark legal CTA panel (cookie notice, etc.) */
.nfap-dark-cta {
  background: linear-gradient(145deg, var(--nfap-navy-deep) 0%, var(--nfap-navy) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  box-shadow: var(--nfap-shadow-md);
}

.nfap-dark-cta h2,
.nfap-dark-cta h3,
.nfap-dark-cta h4,
.nfap-dark-cta p,
.nfap-dark-cta .text-white,
.nfap-dark-cta .text-white\/80,
.nfap-dark-cta .text-gray-200 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nfap-dark-cta p,
.nfap-dark-cta .text-white\/80 {
  color: rgba(245, 247, 250, 0.88) !important;
  -webkit-text-fill-color: rgba(245, 247, 250, 0.88) !important;
}

.nfap-dark-cta__btn {
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.nfap-dark-cta__btn--accent {
  background: var(--nfap-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid transparent;
}

.nfap-dark-cta__btn--accent:hover {
  background: var(--nfap-accent-dark) !important;
  color: #fff !important;
}

.nfap-dark-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.nfap-dark-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

/* Legacy dark slate cards still using bg-card + from-slate */
.bg-card[class*="from-slate"] ,
.bg-card[class*="from-gray-8"],
.bg-card[class*="from-gray-9"] {
  background-color: transparent !important;
  color: #fff !important;
}

.bg-card[class*="from-slate"] h3,
.bg-card[class*="from-slate"] h3.text-white,
.bg-card[class*="from-slate"] .text-white,
.bg-card[class*="from-slate"] a.text-white,
.bg-card[class*="from-slate"] .bg-orange-500,
.bg-card[class*="from-slate"] .bg-slate-600 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.bg-card[class*="from-slate"] .bg-orange-500 {
  background-color: var(--nfap-accent) !important;
}

.bg-card[class*="from-slate"] .bg-slate-600 {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
