/* Readability fixes (WCAG AA contrast, 4.5:1 for body text), loaded after each page's own <style>.
   The same teal and grays were used on both light and dark backgrounds, so colors are set by context:
   darker on light sections, lighter inside dark (navy) sections. Every pair here was checked:
   lowest is 4.63:1. Rules are prefixed with :root to stay ahead of Tailwind's runtime utility classes. */

:root { --accent-600: #0f766e; }

/* Main call-to-action buttons: white text needs a darker gradient end than the old #34d399. */
:root .btn-primary { background: linear-gradient(135deg, #0f2a47 0%, #0f766e 55%, #047857 100%); color: #fff; }
:root .btn-primary:hover { background: linear-gradient(135deg, #0a1f36 0%, #115e59 55%, #065f46 100%); }

/* Light backgrounds: slate-400/500 were too faint on white and #f4f8fb. */
:root .text-slate-400,
:root .text-slate-500 { color: #5b6878; }

/* Dark sections. Matches a class token starting with bg-[var(--navy-9…) but not hover:bg-…, which only
   applies on hover. Covers the element itself and its descendants. */
:root :is(.hero-navy, footer, [class^="bg-[var(--navy-9"], [class*=" bg-[var(--navy-9"]):is(.text-slate-400, .text-slate-500),
:root :is(.hero-navy, footer, [class^="bg-[var(--navy-9"], [class*=" bg-[var(--navy-9"]) :is(.text-slate-400, .text-slate-500) { color: #94a3b8; }

:root :is(.hero-navy, footer, [class^="bg-[var(--navy-9"], [class*=" bg-[var(--navy-9"]) :is(.eyebrow, .text-\[var\(--accent-600\)\]) { color: #2dd4bf; }

/* The lighter navy (#1b3f63, pricing card) needs lighter text still. */
:root :is([class^="bg-[var(--navy-8"], [class*=" bg-[var(--navy-8"]):is(.text-slate-400, .text-slate-500),
:root :is([class^="bg-[var(--navy-8"], [class*=" bg-[var(--navy-8"]) :is(.text-slate-400, .text-slate-500) { color: #cbd5e1; }
:root :is([class^="bg-[var(--navy-8"], [class*=" bg-[var(--navy-8"]) :is(.eyebrow, .text-\[var\(--accent-600\)\], .text-\[var\(--accent-500\)\]) { color: #2dd4bf; }

/* Light cards placed inside a dark section go back to the light-background colors. */
:root :is(.hero-navy, footer, [class*="bg-[var(--navy-"]) :is(.bg-white, .bg-slate-50, [class*="bg-[#f4f8fb]"], [class*="bg-[#f8fafc]"]) :is(.text-slate-400, .text-slate-500) { color: #5b6878; }
:root :is(.hero-navy, footer, [class*="bg-[var(--navy-"]) :is(.bg-white, .bg-slate-50, [class*="bg-[#f4f8fb]"], [class*="bg-[#f8fafc]"]) :is(.eyebrow, .text-\[var\(--accent-600\)\]) { color: #0f766e; }

/* Typography polish: no single word stranded on the last line of headings and paragraphs. */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }
