body,
.bg-card,
nav,
.mobile-menu {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f5;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(45, 110, 245, 0.4);
  --accent: #2457d6;
  --accent-soft: rgba(36, 87, 214, 0.08);
  --accent-glow: rgba(36, 87, 214, 0.14);
  --text-primary: #12151c;
  --text-secondary: #51606f;
  --text-muted: #93a0ae;
  --white: #ffffff;
}

html[data-theme="light"] nav,
html[data-theme="light"] .mobile-menu {
  background: rgba(246, 247, 249, 0.88);
}

html[data-theme="light"] #what,
html[data-theme="light"] #hosting,
html[data-theme="light"] #pricing-preview,
html[data-theme="light"] #why,
html[data-theme="light"] #pricing-main-table,
html[data-theme="light"] #pricing-renewal,
html[data-theme="light"] #email-pricing-card,
html[data-theme="light"] #seo-explainer,
html[data-theme="light"] #services-overview,
html[data-theme="light"] #about-story,
html[data-theme="light"] #about-why,
html[data-theme="light"] #about-team,
html[data-theme="light"] #bac-reassurance,
html[data-theme="light"] .alt-bg {
  background: #eef0f3;
}

/* decorative "featured" card gradients — swap to a light equivalent */
html[data-theme="light"] .hosting-plan.featured,
html[data-theme="light"] .price-card.featured,
html[data-theme="light"] .annual-card.featured-card,
html[data-theme="light"] .email-plan-card,
html[data-theme="light"] .seo-plan-card.featured-plan,
html[data-theme="light"] .social-plan-card.featured-social-plan,
html[data-theme="light"] .pricing-row.featured-row,
html[data-theme="light"] .svc-tier-row.featured-tier {
  background: linear-gradient(135deg, #ffffff 0%, #eef2fa 100%);
}

html[data-theme="light"] .seo-bar-track,
html[data-theme="light"] .thumb-line,
html[data-theme="light"] .mob-pricing-submenu,
html[data-theme="light"] .overview-mini-row,
html[data-theme="light"] .annual-best-for,
html[data-theme="light"] .social-plan-best-for {
  background: rgba(15, 23, 42, 0.05);
}

#theme-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
#theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}
#theme-toggle svg {
  width: 19px;
  height: 19px;
}
#theme-toggle .icon-sun {
  display: none;
}
#theme-toggle .icon-moon {
  display: block;
}
html[data-theme="light"] #theme-toggle .icon-sun {
  display: block;
}
html[data-theme="light"] #theme-toggle .icon-moon {
  display: none;
}

@media (max-width: 600px) {
  #theme-toggle {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}