/* =========================================================
   SIP₹y — Main Stylesheet
   Author: Bhanuprakash Sardesai
   Stack: Pure HTML/CSS/JS for Cloudflare Pages
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette: Emerald Sunrise — Emerald + Plum + Orange + Gold + Cream */
  --navy-900:   #0F0820;   /* Deep Plum — primary dark */
  --navy-800:   #1A0B2E;   /* Dark Plum */
  --navy-700:   #2D1B4E;   /* Royal Plum */
  --navy-600:   #4C1D95;   /* Deep Violet */
  --emerald-700: #047857;  /* Deep Emerald */
  --emerald-600: #059669;  /* Forest Emerald */
  --emerald-500: #10B981;  /* Vibrant Emerald — GREEN ACCENT */
  --emerald-400: #34D399;  /* Light Emerald */
  --teal-700:   #047857;
  --teal-500:   #10B981;
  --coral-700:  #C2410C;   /* Dark Orange */
  --coral-600:  #EA580C;   /* Sunset Orange */
  --coral-500:  #F97316;   /* Bright Orange */
  --coral-400:  #FB923C;   /* Light Orange */
  --gold-500:   #F4B41A;   /* Honey Gold */
  --gold-400:   #FFD96B;   /* Gold Light */
  --gold-300:   #FFE89C;   /* Gold Cream */
  --cream-50:   #FFFBEB;   /* Warm Cream */
  --cream-100:  #FEF3C7;   /* Light Cream */
  --ink-900:    #0F0820;   /* Deep Plum — high contrast text */
  --ink-700:    #2D1B4E;   /* Royal Plum for body text */
  --ink-500:    #4C1D95;   /* Deep Violet for secondary text */
  --ink-400:    #6D28D9;   /* Violet */
  --ink-300:    #9D7BFF;   /* Light Violet */
  --line:       #E0D5C0;   /* Warm line color */
  --line-2:     #F0E6D2;
  --white:      #FFFFFF;
  --success:    #10B981;
  --warn:       #F4B41A;
  --danger:     #EA580C;

  /* Typography */
  --font-sans:  'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:  'Space Grotesk', 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Spacing & shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --shadow-sm: 0 1px 2px rgba(15,23,41,.06), 0 2px 8px rgba(15,23,41,.06);
  --shadow-md: 0 4px 12px rgba(15,23,41,.08), 0 12px 32px rgba(15,23,41,.08);
  --shadow-lg: 0 12px 28px rgba(15,23,41,.10), 0 32px 64px rgba(15,23,41,.12);
  --shadow-gold: 0 8px 24px rgba(244,180,26,.30);
  --shadow-emerald: 0 8px 24px rgba(16,185,129,.28);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;

  /* Animation */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink-900); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; font-family: var(--font-sans); }
p  { margin-bottom: 1.1em; color: var(--ink-700); }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink-900); font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--ink-500); line-height: 1.7; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.text-gold { color: var(--gold-500); }
.text-emerald { color: var(--emerald-600); }
.text-navy { color: var(--ink-900); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-weight: 800; font-size: 1.4rem;
  color: var(--ink-900); letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; }
.brand .dot { color: var(--gold-500); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: all .2s var(--ease);
}
.nav-links a:hover { color: var(--ink-900); background: var(--cream-100); }
.nav-cta {
  background: var(--navy-900); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: var(--r-sm);
  font-weight: 600;
}
.nav-cta:hover { background: var(--emerald-700); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy-900);
  transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: .98rem;
  transition: all .25s var(--ease);
  cursor: pointer; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--emerald-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--ink-900);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(244,180,26,.45); }
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,157,122,.4); }
.btn-outline {
  background: transparent; color: var(--ink-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline:hover { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(244,180,26,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(27,157,122,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--emerald-600) 100%);
  color: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(244,180,26,.15);
  border: 1px solid rgba(244,180,26,.4);
  color: var(--gold-400);
  font-weight: 600; font-size: .85rem;
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 12px var(--gold-400); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--gold-400);
}
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

/* Hero card (calculator preview) */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--white); font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 18px; }
.hero-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.hero-card .row:last-child { border-bottom: 0; padding-top: 16px; }
.hero-card .row .lbl { color: rgba(255,255,255,.7); font-size: .9rem; }
.hero-card .row .val { color: var(--white); font-family: var(--font-mono); font-weight: 600; }
.hero-card .row .val.gold { color: var(--gold-400); font-size: 1.4rem; }
.hero-bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.hero-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); border-radius: 100px; }

/* ---------- Section base ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream-100); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,.8); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--emerald-600); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }

/* ---------- Cards Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-50));
  color: var(--emerald-700);
  font-size: 1.6rem;
}
.card-icon.gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-400)); color: var(--ink-900); }
.card-icon.navy { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--gold-400); }
.card-icon.emerald { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); color: var(--white); }
.card h3 { margin-bottom: 10px; font-family: var(--font-sans); font-size: 1.25rem; }
.card p { color: var(--ink-500); font-size: .95rem; margin-bottom: 16px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--emerald-700); font-weight: 600; font-size: .92rem;
}
.card-link::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Calculator UI ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.calc-inputs .field { margin-bottom: 22px; }
.calc-inputs label {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ink-700); font-size: .92rem;
  margin-bottom: 10px;
}
.calc-inputs label .val {
  font-family: var(--font-mono); color: var(--ink-900);
  background: var(--cream-100); padding: 4px 10px; border-radius: var(--r-xs);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--line); border-radius: 100px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald-600);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald-600); border: 3px solid var(--white);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.calc-inputs input[type="number"], .calc-inputs select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream-50); color: var(--ink-900);
  font-family: var(--font-mono); font-weight: 600;
  transition: border-color .2s var(--ease);
}
.calc-inputs input[type="number"]:focus, .calc-inputs select:focus {
  outline: none; border-color: var(--emerald-500);
}

.calc-results {
  background: linear-gradient(135deg, var(--navy-900), var(--emerald-700));
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.calc-results h3 { color: var(--white); font-family: var(--font-sans); font-size: 1rem; opacity: .8; margin-bottom: 0; }
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.15);
}
.calc-result-row:last-child { border-bottom: 0; }
.calc-result-row .lbl { font-size: .9rem; color: rgba(255,255,255,.75); }
.calc-result-row .val { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; }
.calc-result-row.hero .val { color: var(--gold-400); font-size: 1.8rem; }
.calc-chart { margin-top: 8px; }
.calc-chart canvas { width: 100% !important; height: 220px !important; }

/* ---------- Donut chart ---------- */
.donut-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.donut-wrap svg { transform: rotate(-90deg); }
.donut-wrap .donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.donut-wrap .donut-center .num { font-family: var(--font-mono); font-weight: 800; font-size: 1.5rem; color: var(--ink-900); }
.donut-wrap .donut-center .lbl { font-size: .78rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Article / Blog Cards ---------- */
.article-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-800), var(--emerald-600));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 800;
}
.article-card .thumb.gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--ink-900); }
.article-card .thumb.emerald { background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400)); }
.article-card .thumb.navy { background: linear-gradient(135deg, var(--navy-900), var(--emerald-700)); }
.article-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card .tag {
  display: inline-block;
  color: var(--emerald-700); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.article-card h3 { font-family: var(--font-sans); font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.article-card p { color: var(--ink-500); font-size: .92rem; flex: 1; }
.article-card .meta { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-400); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ---------- Article Body ---------- */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-700); }
.article-body h2 { margin: 36px 0 14px; }
.article-body h3 { margin: 28px 0 12px; font-family: var(--font-sans); }
.article-body p { margin-bottom: 1.3em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em 1.4em; }
.article-body ul li, .article-body ol li { margin-bottom: .6em; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--gold-500);
  background: var(--cream-100);
  padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 22px 0; font-style: italic; color: var(--ink-700);
}
.article-body code { font-family: var(--font-mono); background: var(--cream-100); padding: 2px 6px; border-radius: 4px; font-size: .92em; color: var(--ink-900); }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: .95rem; }
.article-body th { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); font-weight: 600; }
.article-body tr:nth-child(even) td { background: var(--cream-50); }

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.faq-item.open { border-color: var(--emerald-500); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-weight: 600; color: var(--ink-900); font-size: 1.02rem;
  background: transparent;
}
.faq-q::after {
  content: "+"; font-size: 1.5rem; color: var(--emerald-600);
  transition: transform .3s var(--ease); font-weight: 300;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  padding: 0 22px;
  color: var(--ink-700); font-size: .98rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 22px 20px; }

/* ---------- Ad Slots ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-100);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-400);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  min-height: 90px; padding: 16px;
  margin: 24px 0;
  text-align: center;
}
.ad-slot.ad-leaderboard { min-height: 100px; }
.ad-slot.ad-rectangle  { min-height: 250px; }
.ad-slot.ad-skyscraper { min-height: 600px; }
.ad-slot.ad-in-article { min-height: 200px; margin: 32px 0; }
.ad-slot.ad-sticky-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  min-height: 60px; margin: 0;
  border-radius: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.ad-close {
  position: absolute; top: 6px; right: 10px;
  font-size: 1rem; color: var(--ink-400);
  background: none; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 320px; }
.footer-col h4 {
  color: var(--white); font-family: var(--font-sans);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--ink-400);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--emerald-700); }
.breadcrumb span.sep { color: var(--ink-300); }
.breadcrumb span.current { color: var(--ink-900); font-weight: 600; }

/* ---------- Page header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--emerald-600));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--cream-100);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 28px 0;
  border-left: 4px solid var(--gold-500);
}
.toc h4 { font-family: var(--font-sans); margin-bottom: 12px; color: var(--ink-900); }
.toc ol { margin-left: 1.2em; }
.toc ol li { margin-bottom: 6px; list-style: decimal; }
.toc a { color: var(--ink-700); font-weight: 500; }
.toc a:hover { color: var(--emerald-700); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-radius: var(--r-2xl);
  padding: 48px;
  text-align: center;
  color: var(--ink-900);
  box-shadow: var(--shadow-gold);
}
.cta-banner h2 { color: var(--ink-900); margin-bottom: 12px; }
.cta-banner p { color: var(--ink-700); margin-bottom: 24px; font-size: 1.05rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--navy-900), var(--emerald-700));
  border-radius: var(--r-2xl);
  padding: 48px;
  color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.newsletter h2 { color: var(--white); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,.8); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; padding: 14px 18px;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold-400); background: rgba(255,255,255,.12); }

/* ---------- Trust badges ---------- */
.trust-bar {
  display: flex; gap: 36px; justify-content: center; flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-500); font-size: .92rem; font-weight: 500; }
.trust-item .ic { color: var(--emerald-600); font-size: 1.2rem; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes grow    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse   { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes countup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

.float { animation: float 4s var(--ease) infinite; }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.badge-new { background: var(--gold-300); color: var(--ink-900); }
.badge-popular { background: var(--emerald-400); color: var(--white); }
.badge-pro { background: var(--navy-900); color: var(--gold-400); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .ad-slot, .cta-banner, .newsletter { display: none !important; }
  body { background: white; color: black; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .newsletter { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 18px; gap: 6px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%); transition: transform .35s var(--ease);
    height: auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-2-cols { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner, .newsletter { padding: 32px 24px; }
  .article-body { font-size: 1rem; }
  .calc-wrap { padding: 22px; }
  .calc-results { padding: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ad-slot.ad-skyscraper { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-card { padding: 22px; }
}

/* =========================================================
   DARK MODE
   ========================================================= */
html[data-theme="dark"] {
  --cream-50:  #0F0820;   /* Deep Plum background */
  --cream-100: #1A0B2E;   /* Dark Plum for cards */
  --ink-900:   #FFFBEB;   /* Warm Cream text — MAXIMUM visibility */
  --ink-700:   #FDE68A;   /* Light gold for body text */
  --ink-500:   #FCD34D;   /* Medium gold for secondary text */
  --ink-400:   #FBBF24;   /* Gold */
  --ink-300:   #34D399;   /* Light emerald for tertiary */
  --line:      #2D1B4E;   /* Subtle plum line */
  --line-2:    #1A0B2E;
  --white:     #1A0B2E;   /* Card bg in dark mode */
  --navy-900:  #0F0820;
  --navy-800:  #1A0B2E;
  --navy-700:  #2D1B4E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.65), 0 32px 64px rgba(0,0,0,.6);
}
html[data-theme="dark"] body { background: var(--cream-50); color: var(--ink-900); }
html[data-theme="dark"] .site-header { background: rgba(11,18,32,.85); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav-links a { color: var(--ink-700); }
html[data-theme="dark"] .nav-links a:hover { background: var(--cream-100); color: var(--ink-900); }
html[data-theme="dark"] .card { background: var(--cream-100); border-color: var(--line); }
html[data-theme="dark"] .article-card { background: var(--cream-100); border-color: var(--line); }
html[data-theme="dark"] .article-body { color: var(--ink-700); }
html[data-theme="dark"] .article-body p { color: var(--ink-700); }
html[data-theme="dark"] .article-body code { background: var(--navy-700); color: var(--gold-400); }
html[data-theme="dark"] .article-body th { background: var(--navy-700); }
html[data-theme="dark"] .article-body tr:nth-child(even) td { background: var(--navy-900); }
html[data-theme="dark"] .article-body blockquote { background: var(--navy-700); color: var(--ink-700); }
html[data-theme="dark"] .faq-item { background: var(--cream-100); border-color: var(--line); }
html[data-theme="dark"] .faq-q { color: var(--ink-900); }
html[data-theme="dark"] .toc { background: var(--navy-700); }
html[data-theme="dark"] .toc a { color: var(--ink-700); }
html[data-theme="dark"] .ad-slot { background: var(--navy-700); border-color: var(--line); color: var(--ink-500); }
html[data-theme="dark"] .calc-inputs input[type="number"],
html[data-theme="dark"] .calc-inputs select { background: var(--navy-700); color: var(--ink-900); border-color: var(--line); }
html[data-theme="dark"] .calc-inputs input[type="number"]:focus,
html[data-theme="dark"] .calc-inputs select:focus { border-color: var(--emerald-500); }
html[data-theme="dark"] .calc-inputs label .val { background: var(--navy-700); color: var(--gold-400); }
html[data-theme="dark"] .calc-wrap { background: var(--cream-100); border-color: var(--line); }
html[data-theme="dark"] .calc-breakdown-table { background: var(--navy-700); }
html[data-theme="dark"] .calc-breakdown-table th { background: var(--navy-900); color: var(--gold-400); }
html[data-theme="dark"] .calc-breakdown-table tr:nth-child(even) td { background: var(--navy-900); }
html[data-theme="dark"] .calc-breakdown-table td { color: var(--ink-700); border-color: var(--line); }
html[data-theme="dark"] .calc-breakdown-table td.val { color: var(--ink-900); font-family: var(--font-mono); font-weight: 600; }
html[data-theme="dark"] .related-links .card { background: var(--cream-100); }
html[data-theme="dark"] .related-links .article-card { background: var(--cream-100); }
html[data-theme="dark"] .newsletter { display: none !important; }

/* Dark mode toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--cream-100);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  margin-left: 8px;
}
.theme-toggle:hover { background: var(--navy-900); color: var(--gold-400); border-color: var(--gold-500); }
.theme-toggle .icon { font-size: 1.05rem; line-height: 1; }
html[data-theme="dark"] .theme-toggle { background: var(--navy-700); color: var(--gold-400); }
html[data-theme="dark"] .theme-toggle:hover { background: var(--gold-500); color: var(--ink-900); }

@media (max-width: 768px) {
  .theme-toggle { padding: 6px 10px; font-size: .82rem; }
  .theme-toggle .label { display: none; }
}

/* =========================================================
   NEW CALCULATOR UI: Manual inputs + breakdown table
   ========================================================= */
.calc-inputs .field-with-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.calc-inputs .field-with-input input[type="number"] {
  width: 140px;
  padding: 8px 12px;
  font-size: .92rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--cream-50);
  color: var(--ink-900);
  text-align: right;
}
.calc-inputs .field-with-input .unit {
  font-size: .82rem;
  color: var(--ink-500);
  font-weight: 500;
}
.calc-inputs .field {
  margin-bottom: 22px;
}
.calc-inputs .field .field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-inputs .field .field-row label {
  margin: 0;
  flex: 1;
  min-width: 120px;
}
.calc-inputs .field .field-row .manual-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-inputs .field .field-row .manual-input input[type="number"] {
  width: 130px;
  padding: 7px 10px;
  font-size: .9rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--cream-50);
  color: var(--ink-900);
  text-align: right;
  transition: border-color .2s var(--ease);
}
.calc-inputs .field .field-row .manual-input input[type="number"]:focus {
  outline: none;
  border-color: var(--emerald-500);
}
.calc-inputs .field .field-row .manual-input .unit {
  font-size: .82rem;
  color: var(--ink-500);
}

/* Breakdown table */
.calc-breakdown-wrap {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.calc-breakdown-wrap .breakdown-head {
  padding: 18px 24px;
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
}
.calc-breakdown-wrap .breakdown-head h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink-900);
}
.calc-breakdown-wrap .breakdown-head p {
  font-size: .85rem;
  color: var(--ink-500);
  margin: 4px 0 0;
}
.calc-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.calc-breakdown-table th {
  padding: 12px 14px;
  text-align: left;
  background: var(--navy-900);
  color: var(--gold-400);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: sticky;
  top: 0;
}
.calc-breakdown-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-700);
}
.calc-breakdown-table tr:nth-child(even) td { background: var(--cream-50); }
.calc-breakdown-table td.val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-900);
  text-align: right;
}
.calc-breakdown-table td.year { font-weight: 600; color: var(--ink-900); }
.calc-breakdown-table .scroll-wrap {
  max-height: 360px;
  overflow-y: auto;
  display: block;
  width: 100%;
}
.calc-breakdown-table .scroll-wrap table { width: 100%; }

/* Year-by-year growth chart */
.calc-growth-chart {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.calc-growth-chart h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--ink-900);
}
.calc-growth-chart canvas {
  width: 100% !important;
  height: 280px !important;
  display: block;
}

/* Related links section (calculators/blogs cross-linking) */
.related-links {
  margin-top: 56px;
}
.related-links .section-head {
  text-align: left;
  margin-bottom: 24px;
}
.related-links .section-head .eyebrow {
  color: var(--emerald-600);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.related-links .grid { gap: 18px; }
.related-links .card { padding: 22px; }
.related-links .card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.related-links .card p { font-size: .9rem; margin-bottom: 12px; }
.related-links .article-card .body { padding: 18px; }
.related-links .article-card .thumb { height: 110px; font-size: 1.6rem; }
.related-links .article-card h3 { font-size: 1rem; }

/* Mobile: stack the manual input below the slider label */
@media (max-width: 600px) {
  .calc-inputs .field .field-row { flex-direction: column; align-items: stretch; }
  .calc-inputs .field .field-row .manual-input input[type="number"] { width: 100%; text-align: left; }
  .calc-breakdown-table th, .calc-breakdown-table td { padding: 9px 10px; font-size: .82rem; }
}

/* =========================================================
   GOD-LEVEL VISUAL ENHANCEMENTS
   ========================================================= */

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream-100); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--emerald-500), var(--coral-500));
  border-radius: 100px;
  border: 2px solid var(--cream-100);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--emerald-400), var(--gold-400));
}
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--navy-900); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { border-color: var(--ink-900); }

/* ---------- Selection ---------- */
::selection { background: var(--gold-500); color: var(--ink-900); }
::-moz-selection { background: var(--gold-500); color: var(--ink-900); }

/* ---------- Animated Gradient Mesh Background ---------- */
.mesh-bg {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(244,180,26,0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(27,157,122,0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(11,31,58,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255,217,107,0.15) 0%, transparent 40%),
    var(--cream-50);
  background-size: 100% 100%;
  animation: meshShift 18s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 100% 100%, 0 0; }
  50%  { background-position: 20% 30%, 80% 50%, 30% 70%, 70% 80%, 0 0; }
  100% { background-position: 0% 50%, 100% 30%, 50% 50%, 80% 100%, 0 0; }
}
html[data-theme="dark"] .mesh-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(244,180,26,0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(27,157,122,0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(11,31,58,0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255,217,107,0.08) 0%, transparent 40%),
    var(--cream-50);
}

/* ---------- Gradient Text Utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 50%, #FF9966 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-text-emerald {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-text-mix {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--emerald-500) 50%, var(--navy-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Glassmorphism Cards ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(10, 25, 41, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
html[data-theme="dark"] .glass-card {
  background: rgba(19, 28, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Glow Effects ---------- */
.glow-gold {
  box-shadow:
    0 0 20px rgba(244, 180, 26, 0.4),
    0 0 40px rgba(244, 180, 26, 0.2);
}
.glow-emerald {
  box-shadow:
    0 0 20px rgba(16, 185, 129, 0.4),
    0 0 40px rgba(16, 185, 129, 0.2);
}
.glow-navy {
  box-shadow:
    0 0 20px rgba(10, 25, 41, 0.3),
    0 0 40px rgba(10, 25, 41, 0.15);
}

/* ---------- Animated Gradient Border ---------- */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-500), var(--coral-500), var(--emerald-400));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: borderShift 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes borderShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Floating Rupee Symbols (decorative) ---------- */
.floating-symbols {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.floating-symbols .sym {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(244, 180, 26, 0.18);
  user-select: none;
  animation: floatUp 18s linear infinite;
}
.floating-symbols .sym:nth-child(1) { left: 8%;  font-size: 2.2rem; animation-delay: 0s; }
.floating-symbols .sym:nth-child(2) { left: 22%; font-size: 1.6rem; animation-delay: 2s; color: rgba(27,157,122,0.18); }
.floating-symbols .sym:nth-child(3) { left: 38%; font-size: 2.8rem; animation-delay: 4s; }
.floating-symbols .sym:nth-child(4) { left: 55%; font-size: 1.4rem; animation-delay: 6s; color: rgba(255,217,107,0.18); }
.floating-symbols .sym:nth-child(5) { left: 70%; font-size: 2.4rem; animation-delay: 8s; }
.floating-symbols .sym:nth-child(6) { left: 85%; font-size: 1.8rem; animation-delay: 10s; color: rgba(27,157,122,0.18); }
.floating-symbols .sym:nth-child(7) { left: 15%; font-size: 1.2rem; animation-delay: 12s; }
.floating-symbols .sym:nth-child(8) { left: 62%; font-size: 2.0rem; animation-delay: 14s; }
@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ---------- Enhanced Hero with Mesh + Glow ---------- */
.hero-god {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(244,180,26,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27,157,122,0.3) 0%, transparent 55%),
    radial-gradient(circle at 30% 50%, rgba(255,217,107,0.12) 0%, transparent 40%),
    linear-gradient(135deg, #0A1929 0%, #0F2942 30%, #134E4A 70%, #0F766E 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease-in-out infinite;
  color: var(--white);
  overflow: hidden;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-god::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-god::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,180,26,0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.2); opacity: 0.9; }
}

/* ---------- Enhanced Page Header ---------- */
.page-header-god {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(244,180,26,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(27,157,122,0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0A1929 0%, #0F2942 40%, #134E4A 100%);
  color: var(--white);
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
}
.page-header-god::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,217,107,0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(27,157,122,0.2) 0%, transparent 35%);
  pointer-events: none;
}
.page-header-god::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--cream-50);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 75% 80%, 50% 50%, 25% 80%, 0 60%);
}
html[data-theme="dark"] .page-header-god::after { background: var(--cream-50); }
.page-header-god > .container { position: relative; z-index: 2; }
.page-header-god h1 {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD96B 60%, #F4B41A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 24px rgba(244,180,26,0.3);
}

/* ---------- Section Divider with Curve ---------- */
.curve-divider {
  position: relative;
  height: 80px;
  background: var(--cream-50);
}
.curve-divider svg {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 100%;
  fill: var(--cream-100);
}
html[data-theme="dark"] .curve-divider { background: var(--cream-50); }
html[data-theme="dark"] .curve-divider svg { fill: var(--cream-100); }

/* ---------- Card Hover Effects (god-level) ---------- */
.card-hover {
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.card-hover::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .6s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(10, 25, 41, 0.15),
    0 8px 16px rgba(220, 38, 38, 0.12);
}
.card-hover:hover::before { left: 100%; }

/* ---------- Shimmer Loading ---------- */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Pulse Animation ---------- */
.pulse-ring {
  position: relative;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--emerald-500);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ---------- Enhanced Buttons ---------- */
.btn-god {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400), var(--gold-500));
  background-size: 200% 100%;
  color: var(--ink-900);
  font-weight: 700;
  transition: all .3s var(--ease);
  box-shadow:
    0 4px 16px rgba(244,180,26,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-god:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(244,180,26,0.6),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-god::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left .6s var(--ease-out);
}
.btn-god:hover::after { left: 100%; }

/* ---------- Stat Counter with Gradient ---------- */
.stat-card {
  background: linear-gradient(135deg, rgba(10,25,41,0.06), rgba(16,185,129,0.06));
  border: 1px solid rgba(244,180,26,0.2);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  transition: all .3s var(--ease);
}
.stat-card:hover {
  border-color: var(--gold-500);
  box-shadow: 0 8px 24px rgba(244,180,26,0.15);
  transform: translateY(-3px);
}
.stat-card .num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--gold-500), var(--emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .lbl {
  font-size: .85rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* ---------- Enhanced Ad Slots (god-level) ---------- */
.ad-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(244,180,26,0.04), rgba(27,157,122,0.04)),
    var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute;
  top: 6px; left: 10px;
  font-size: .65rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
}
.ad-slot .ad-label-text { display: none; }
.ad-leaderboard { min-height: 110px; padding: 28px 16px 16px; }
.ad-in-article { min-height: 220px; padding: 28px 16px 16px; margin: 32px 0; }
.ad-in-feed { min-height: 180px; padding: 28px 16px 16px; }
.ad-sidebar {
  min-height: 600px; padding: 28px 16px 16px;
  position: sticky; top: 90px;
}
.ad-sticky-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  min-height: 60px; padding: 8px 16px 6px;
  margin: 0; border-radius: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
html[data-theme="dark"] .ad-sticky-mobile {
  background: rgba(19,28,46,.96);
}
.ad-sticky-mobile::before { display: none; }
.ad-sticky-mobile .ad-close {
  position: absolute; top: 4px; right: 8px;
  font-size: 1rem; color: var(--ink-400);
  background: none; cursor: pointer;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ad-sticky-mobile .ad-close:hover { background: var(--cream-100); color: var(--ink-900); }

/* Hide sidebar ads on mobile */
@media (max-width: 1024px) {
  .ad-sidebar { display: none; }
}
/* Hide sticky mobile on desktop */
@media (min-width: 769px) {
  .ad-sticky-mobile { display: none; }
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--navy-900);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  font-size: .78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
  z-index: 10;
}
.tooltip:hover::after { opacity: 1; }

/* ---------- Decorative Section Background Pattern ---------- */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(10,25,41,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
html[data-theme="dark"] .pattern-dots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.pattern-grid {
  background-image:
    linear-gradient(rgba(10,25,41,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,25,41,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
html[data-theme="dark"] .pattern-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* ---------- Animated Badge ---------- */
.badge-animated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--ink-900);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(244,180,26,0.3);
  position: relative;
  overflow: hidden;
}
.badge-animated::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 3s linear infinite;
}

/* ---------- Calculator Results Enhancement ---------- */
.calc-results-god {
  background:
    radial-gradient(circle at top right, rgba(244,180,26,0.15) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(27,157,122,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0A1929 0%, #0F2942 40%, #134E4A 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(10, 25, 41, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.calc-results-god::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(244,180,26,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.calc-results-god .calc-result-row.hero .val {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 12px rgba(244,180,26,0.4);
}

/* ---------- Marquee for trust badges ---------- */
.marquee {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap {
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* ---------- Animated Number Counter ---------- */
.counter-glow {
  font-family: var(--font-mono);
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-500), var(--emerald-500));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- Hero Card Glow ---------- */
.hero-card-glow {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.hero-card-glow::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(244,180,26,0.15) 0%, transparent 60%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}
@keyframes rotateGlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hero-card-glow > * { position: relative; z-index: 1; }

/* ---------- Section Heading Enhancement ---------- */
.section-head-god {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  position: relative;
}
.section-head-god .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(244,180,26,0.15), rgba(27,157,122,0.15));
  border: 1px solid rgba(244,180,26,0.3);
  color: var(--emerald-700);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
html[data-theme="dark"] .section-head-god .eyebrow {
  color: var(--gold-400);
}
.section-head-god h2 {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--emerald-600) 50%, var(--coral-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 16px;
}
html[data-theme="dark"] .section-head-god h2 {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--emerald-400) 50%, var(--coral-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Smooth Reveal with Stagger ---------- */
.reveal-god {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-god.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Print-friendly ---------- */
@media print {
  .ad-slot, .floating-symbols, .hero-god::after, .pulse-ring::after { display: none !important; }
}

/* =========================================================
   COMPREHENSIVE VISIBILITY FIXES — EMERALD SUNRISE THEME
   Every text element explicitly set for maximum contrast in both modes
   ========================================================= */

/* ---------- LIGHT MODE (warm cream background) ---------- */
html[data-theme="light"] body { color: #0F0820; background: #FFFBEB; }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3,
html[data-theme="light"] h4, html[data-theme="light"] h5, html[data-theme="light"] h6 { color: #0F0820; }
html[data-theme="light"] p { color: #2D1B4E; }
html[data-theme="light"] strong, html[data-theme="light"] b { color: #0F0820; }
html[data-theme="light"] a { color: #047857; }
html[data-theme="light"] a:hover { color: #EA580C; }
html[data-theme="light"] .lead { color: #4C1D95; }
html[data-theme="light"] .text-gold { color: #B8860B; }
html[data-theme="light"] .text-emerald { color: #047857; }
html[data-theme="light"] .text-navy { color: #0F0820; }
html[data-theme="light"] .mono { color: #0F0820; }

html[data-theme="light"] .site-header { background: rgba(255,251,235,0.9); border-bottom-color: #E0D5C0; }
html[data-theme="light"] .nav-links a { color: #2D1B4E; }
html[data-theme="light"] .nav-links a:hover { color: #047857; background: #FEF3C7; }
html[data-theme="light"] .brand { color: #0F0820; }

html[data-theme="light"] .card { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .card h3 { color: #0F0820; }
html[data-theme="light"] .card p { color: #4C1D95; }
html[data-theme="light"] .card-link { color: #047857; }
html[data-theme="light"] .card-icon { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); color: #047857; }

html[data-theme="light"] .article-card { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .article-card h3 { color: #0F0820; }
html[data-theme="light"] .article-card p { color: #4C1D95; }
html[data-theme="light"] .article-card .tag { color: #EA580C; }
html[data-theme="light"] .article-card .meta { color: #6D28D9; }

html[data-theme="light"] .article-body { color: #2D1B4E; }
html[data-theme="light"] .article-body p { color: #2D1B4E; }
html[data-theme="light"] .article-body li { color: #2D1B4E; }
html[data-theme="light"] .article-body strong { color: #0F0820; }
html[data-theme="light"] .article-body h2, html[data-theme="light"] .article-body h3,
html[data-theme="light"] .article-body h4 { color: #0F0820; }
html[data-theme="light"] .article-body a { color: #047857; }
html[data-theme="light"] .article-body a:hover { color: #EA580C; }
html[data-theme="light"] .article-body code { background: #FEF3C7; color: #0F0820; }
html[data-theme="light"] .article-body blockquote { background: #FEF3C7; color: #2D1B4E; border-left-color: #10B981; }
html[data-theme="light"] .article-body th { background: #0F0820; color: #FFD96B; }
html[data-theme="light"] .article-body td { color: #2D1B4E; border-color: #E0D5C0; }
html[data-theme="light"] .article-body tr:nth-child(even) td { background: #FFFBEB; }

html[data-theme="light"] .faq-item { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .faq-q { color: #0F0820; }
html[data-theme="light"] .faq-a { color: #2D1B4E; }
html[data-theme="light"] .faq-a p { color: #2D1B4E; }

html[data-theme="light"] .toc { background: #FEF3C7; border-left-color: #10B981; }
html[data-theme="light"] .toc h4 { color: #0F0820; }
html[data-theme="light"] .toc a { color: #2D1B4E; }
html[data-theme="light"] .toc a:hover { color: #047857; }

html[data-theme="light"] .breadcrumb a { color: #4C1D95; }
html[data-theme="light"] .breadcrumb .current { color: #047857; }
html[data-theme="light"] .breadcrumb .sep { color: #9D7BFF; }

html[data-theme="light"] .trust-item { color: #4C1D95; }
html[data-theme="light"] .trust-item .ic { color: #10B981; }

html[data-theme="light"] .calc-inputs label { color: #0F0820; }
html[data-theme="light"] .calc-inputs label .val { background: #FEF3C7; color: #0F0820; }
html[data-theme="light"] .calc-inputs input[type="number"],
html[data-theme="light"] .calc-inputs select { background: #FFFBEB; color: #0F0820; border-color: #E0D5C0; }

html[data-theme="light"] .calc-breakdown-table th { background: #0F0820; color: #FFD96B; }
html[data-theme="light"] .calc-breakdown-table td { color: #2D1B4E; border-color: #E0D5C0; }
html[data-theme="light"] .calc-breakdown-table td.val { color: #0F0820; }
html[data-theme="light"] .calc-breakdown-table td.year { color: #047857; }
html[data-theme="light"] .calc-breakdown-table tr:nth-child(even) td { background: #FFFBEB; }
html[data-theme="light"] .calc-breakdown-wrap { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .calc-breakdown-wrap .breakdown-head { background: #FEF3C7; }
html[data-theme="light"] .calc-breakdown-wrap .breakdown-head h3 { color: #0F0820; }
html[data-theme="light"] .calc-breakdown-wrap .breakdown-head p { color: #4C1D95; }
html[data-theme="light"] .calc-growth-chart { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .calc-growth-chart h3 { color: #0F0820; }

html[data-theme="light"] .calc-wrap { background: #FFFFFF; border-color: #E0D5C0; }
html[data-theme="light"] .calc-results { background: linear-gradient(135deg, #0F0820, #047857); color: #FFFBEB; }
html[data-theme="light"] .calc-results h3 { color: #FFD96B; }
html[data-theme="light"] .calc-result-row .lbl { color: rgba(255,251,235,0.75); }
html[data-theme="light"] .calc-result-row .val { color: #FFFBEB; }

html[data-theme="light"] .related-links .card { background: #FFFFFF; }
html[data-theme="light"] .related-links .card h3 { color: #0F0820; }
html[data-theme="light"] .related-links .card p { color: #4C1D95; }
html[data-theme="light"] .related-links .article-card { background: #FFFFFF; }

html[data-theme="light"] .section-head p { color: #4C1D95; }
html[data-theme="light"] .section-head-god p { color: #4C1D95; }

html[data-theme="light"] .ad-slot { background: #FEF3C7; border-color: #E0D5C0; color: #6D28D9; }

html[data-theme="light"] .footer-brand p { color: rgba(255,251,235,0.7); }
html[data-theme="light"] .footer-col a { color: rgba(255,251,235,0.7); }
html[data-theme="light"] .footer-col a:hover { color: #34D399; }
html[data-theme="light"] .footer-bottom { color: rgba(255,251,235,0.5); }

/* ---------- DARK MODE (Deep Plum — primary theme) ---------- */
html[data-theme="dark"] body { color: #FFFBEB; background: #0F0820; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: #FFFBEB; }
html[data-theme="dark"] p { color: #FDE68A; }
html[data-theme="dark"] strong, html[data-theme="dark"] b { color: #34D399; }
html[data-theme="dark"] a { color: #34D399; }
html[data-theme="dark"] a:hover { color: #FB923C; }
html[data-theme="dark"] .lead { color: #FCD34D; }
html[data-theme="dark"] .text-gold { color: #FFD96B; }
html[data-theme="dark"] .text-emerald { color: #34D399; }
html[data-theme="dark"] .text-navy { color: #FFFBEB; }
html[data-theme="dark"] .mono { color: #FFFBEB; }

html[data-theme="dark"] .site-header { background: rgba(15,8,32,0.9); border-bottom-color: #2D1B4E; }
html[data-theme="dark"] .nav-links a { color: #FDE68A; }
html[data-theme="dark"] .nav-links a:hover { color: #34D399; background: #1A0B2E; }
html[data-theme="dark"] .brand { color: #FFFBEB; }

html[data-theme="dark"] .card { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .card h3 { color: #FFFBEB; }
html[data-theme="dark"] .card p { color: #FCD34D; }
html[data-theme="dark"] .card-link { color: #34D399; }
html[data-theme="dark"] .card-icon { background: linear-gradient(135deg, #1A0B2E, #0F0820); color: #34D399; }

html[data-theme="dark"] .article-card { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .article-card h3 { color: #FFFBEB; }
html[data-theme="dark"] .article-card p { color: #FCD34D; }
html[data-theme="dark"] .article-card .tag { color: #FB923C; }
html[data-theme="dark"] .article-card .meta { color: #FCD34D; }

html[data-theme="dark"] .article-body { color: #FDE68A; }
html[data-theme="dark"] .article-body p { color: #FDE68A; }
html[data-theme="dark"] .article-body li { color: #FDE68A; }
html[data-theme="dark"] .article-body strong { color: #34D399; }
html[data-theme="dark"] .article-body h2, html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body h4 { color: #FFFBEB; }
html[data-theme="dark"] .article-body a { color: #34D399; }
html[data-theme="dark"] .article-body a:hover { color: #FB923C; }
html[data-theme="dark"] .article-body code { background: #2D1B4E; color: #34D399; }
html[data-theme="dark"] .article-body blockquote { background: #2D1B4E; color: #FDE68A; border-left-color: #10B981; }
html[data-theme="dark"] .article-body th { background: #0F0820; color: #FFD96B; }
html[data-theme="dark"] .article-body td { color: #FDE68A; border-color: #2D1B4E; }
html[data-theme="dark"] .article-body tr:nth-child(even) td { background: #1A0B2E; }

html[data-theme="dark"] .faq-item { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .faq-q { color: #FFFBEB; }
html[data-theme="dark"] .faq-a { color: #FDE68A; }
html[data-theme="dark"] .faq-a p { color: #FDE68A; }
html[data-theme="dark"] .faq-item.open { border-color: #34D399; }

html[data-theme="dark"] .toc { background: #2D1B4E; border-left-color: #10B981; }
html[data-theme="dark"] .toc h4 { color: #FFFBEB; }
html[data-theme="dark"] .toc a { color: #FDE68A; }
html[data-theme="dark"] .toc a:hover { color: #34D399; }

html[data-theme="dark"] .breadcrumb a { color: #FCD34D; }
html[data-theme="dark"] .breadcrumb .current { color: #34D399; }
html[data-theme="dark"] .breadcrumb .sep { color: #FBBF24; }

html[data-theme="dark"] .trust-item { color: #FCD34D; }
html[data-theme="dark"] .trust-item .ic { color: #34D399; }

html[data-theme="dark"] .calc-inputs label { color: #FFFBEB; }
html[data-theme="dark"] .calc-inputs label .val { background: #2D1B4E; color: #34D399; }
html[data-theme="dark"] .calc-inputs input[type="number"],
html[data-theme="dark"] .calc-inputs select { background: #1A0B2E; color: #FFFBEB; border-color: #2D1B4E; }

html[data-theme="dark"] .calc-breakdown-table th { background: #0F0820; color: #FFD96B; }
html[data-theme="dark"] .calc-breakdown-table td { color: #FDE68A; border-color: #2D1B4E; }
html[data-theme="dark"] .calc-breakdown-table td.val { color: #FFFBEB; }
html[data-theme="dark"] .calc-breakdown-table td.year { color: #34D399; }
html[data-theme="dark"] .calc-breakdown-table tr:nth-child(even) td { background: #1A0B2E; }
html[data-theme="dark"] .calc-breakdown-wrap { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .calc-breakdown-wrap .breakdown-head { background: #2D1B4E; }
html[data-theme="dark"] .calc-breakdown-wrap .breakdown-head h3 { color: #FFFBEB; }
html[data-theme="dark"] .calc-breakdown-wrap .breakdown-head p { color: #FCD34D; }
html[data-theme="dark"] .calc-growth-chart { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .calc-growth-chart h3 { color: #FFFBEB; }

html[data-theme="dark"] .calc-wrap { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .calc-results { background: linear-gradient(135deg, #0F0820, #1A0B2E); color: #FFFBEB; }
html[data-theme="dark"] .calc-results h3 { color: #FFD96B; }
html[data-theme="dark"] .calc-result-row .lbl { color: rgba(255,251,235,0.75); }
html[data-theme="dark"] .calc-result-row .val { color: #FFFBEB; }

html[data-theme="dark"] .related-links .card { background: #1A0B2E; border-color: #2D1B4E; }
html[data-theme="dark"] .related-links .card h3 { color: #FFFBEB; }
html[data-theme="dark"] .related-links .card p { color: #FCD34D; }
html[data-theme="dark"] .related-links .article-card { background: #1A0B2E; }

html[data-theme="dark"] .section-head p { color: #FCD34D; }
html[data-theme="dark"] .section-head-god p { color: #FCD34D; }

html[data-theme="dark"] .ad-slot { background: #1A0B2E; border-color: #2D1B4E; color: #FCD34D; }
html[data-theme="dark"] .ad-sticky-mobile { background: rgba(15,8,32,0.96); border-top-color: #2D1B4E; }

html[data-theme="dark"] .footer-brand p { color: rgba(255,251,235,0.7); }
html[data-theme="dark"] .footer-col a { color: #FCD34D; }
html[data-theme="dark"] .footer-col a:hover { color: #34D399; }
html[data-theme="dark"] .footer-bottom { color: rgba(255,251,235,0.5); }

html[data-theme="dark"] .theme-toggle { background: #1A0B2E; color: #34D399; border-color: #2D1B4E; }

/* Ensure theme-toggle button text is always visible */
.theme-toggle { color: #0F0820 !important; }
html[data-theme="dark"] .theme-toggle { color: #34D399 !important; }

/* Ensure calc-results labels are always light (on dark gradient bg in both modes) */
.calc-results { color: #FFFBEB; }
.calc-results h3 { color: #FFD96B !important; }
.calc-result-row .lbl { color: rgba(255,251,235,0.78) !important; }
.calc-result-row .val { color: #FFFBEB !important; }
.calc-result-row.hero .val { color: #FFD96B !important; }

/* Ensure hero text is always light (hero is always dark) */
.hero, .hero-god { color: #FFFBEB; }
.hero h1, .hero-god h1 { color: #FFFBEB !important; }
.hero p, .hero-god p { color: rgba(255,251,235,0.85) !important; }
.hero .lead, .hero-god .lead { color: rgba(255,251,235,0.85) !important; }
.hero-stat .lbl { color: rgba(255,251,235,0.7) !important; }
.hero-card, .hero-card-glow { color: #FFFBEB; }
.hero-card .lbl, .hero-card-glow .lbl { color: rgba(255,251,235,0.7) !important; }
.hero-card .val, .hero-card-glow .val { color: #FFFBEB !important; }
.hero-card .val.gold, .hero-card-glow .val.gold { color: #FFD96B !important; }

/* GREEN ACCENT specifically on homepage hero elements */
.hero-eyebrow { background: rgba(16, 185, 129, 0.15) !important; border-color: rgba(16, 185, 129, 0.4) !important; color: #34D399 !important; }
.hero-eyebrow::before { background: #34D399 !important; box-shadow: 0 0 12px #34D399 !important; }
.hero-stat .num { color: #34D399 !important; }
.hero-card .val.gold { color: #34D399 !important; }
.hero-card-glow .val.gold { color: #34D399 !important; }
.trust-item .ic { color: #10B981 !important; }
.hero-bar > span { background: linear-gradient(90deg, #10B981, #34D399) !important; }

/* Page header text always light */
.page-header, .page-header-god { color: #FFFBEB; }
.page-header h1, .page-header-god h1 { color: #FFFBEB !important; }
.page-header p, .page-header-god p { color: rgba(255,251,235,0.85) !important; }

/* CTA banner always dark text (banner is gold) */
.cta-banner { color: #0F0820; }
.cta-banner h2 { color: #0F0820 !important; }
.cta-banner p { color: #2D1B4E !important; }

/* Footer always light text */
.site-footer { color: rgba(255,251,235,0.7); }
.site-footer h4 { color: #34D399; }
.site-footer a { color: rgba(255,251,235,0.7); }
.site-footer a:hover { color: #34D399; }

/* Section navy bg always light text */
.section-navy { color: #FFFBEB; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #FFFBEB; }
.section-navy p { color: rgba(255,251,235,0.8); }
