/* =========================================================
   倾域 AI 商业化首页（深色转化向）
   仅作用于 body.commercial-home，不影响其他内页与票核
   ========================================================= */

/* Lang toggle only: brief fade before unload (do NOT enable global
   @view-transition — it made spoke→#audit CTAs flash twice). */
html.www-lang-leaving body {
  opacity: 0.88;
  transition: opacity 100ms ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.www-lang-leaving body {
    opacity: 1;
    transition: none;
  }
}

body.commercial-home {
  --cm-bg: #0b1120;
  --cm-bg-elevated: #0f172a;
  --cm-card: #1e293b;
  --cm-card-2: #243044;
  --cm-text: #f8fafc;
  --cm-muted: #cbd5e1; /* was #94a3b8 — too close to dark cards */
  --cm-muted-soft: #d0d9e6; /* secondary copy; keep ≥4.5:1 on --cm-bg */
  --cm-accent: #0284c7;
  --cm-accent-2: #0d9488;
  --cm-line: rgba(148, 163, 184, 0.28);
  --cm-glow: rgba(2, 132, 199, 0.28);
  --cm-radius: 18px;
  --cm-font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* beat global style.css / Bootstrap heading ink (#0f172a) on dark canvas */
  --bs-body-color: var(--cm-text);
  --bs-heading-color: var(--cm-text);
  --bs-secondary-color: var(--cm-muted);
  --light: var(--cm-text);
  --theme-heading: var(--cm-text);
  --theme-text: var(--cm-text);
  --theme-muted: var(--cm-muted);
  background: var(--cm-bg) !important;
  color: var(--cm-text) !important;
  font-family: var(--cm-font);
  padding-bottom: 1.5rem;
}

body.commercial-home.has-cm-advisor,
body.commercial-home.has-coop-sticky-bar {
  --coop-sticky-clearance: 0px;
  padding-bottom: 1.5rem;
}

/* Hide legacy bottom bar if any page still emits it */
body.commercial-home .coop-sticky-bar {
  display: none !important;
}

/* Global type reset inside commercial home — style.css sets h1–h6 to near-black */
body.commercial-home h1,
body.commercial-home h2,
body.commercial-home h3,
body.commercial-home h4,
body.commercial-home h5,
body.commercial-home h6,
body.commercial-home .h1,
body.commercial-home .h2,
body.commercial-home .h3,
body.commercial-home .h4,
body.commercial-home .h5,
body.commercial-home .h6 {
  color: var(--cm-text) !important;
}

body.commercial-home p,
body.commercial-home li,
body.commercial-home span,
body.commercial-home label,
body.commercial-home small {
  color: inherit;
}

body.commercial-home strong {
  color: #e2e8f0;
}

body.commercial-home a:not(.cm-btn):not(.nav-cta):not(.coop-sticky-bar):not(.cm-advisor__book):not(.cm-advisor__btn):not(.cm-advisor__phone) {
  color: #7dd3fc;
}

body.commercial-home a:not(.cm-btn):not(.nav-cta):not(.coop-sticky-bar):not(.cm-advisor__book):not(.cm-advisor__btn):not(.cm-advisor__phone):hover {
  color: #bae6fd;
}

/* No divider under logo — kill stacked borders from .header + .navbar + style.css */
body.commercial-home .header {
  background: #0b1120 !important;
  backdrop-filter: none;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.commercial-home .navbar {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.commercial-home .navbar .nav-link:not(.nav-cta),
body.commercial-home .navbar-brand {
  color: var(--cm-text) !important;
}

/* 主题切换钮在商业导航中的可见性 */
body.commercial-home .theme-toggle {
  border-color: rgba(148, 163, 184, 0.5) !important;
  background: rgba(30, 41, 59, 0.95) !important;
  color: #f8fafc !important;
}

html[data-bs-theme="light"] body.commercial-home .theme-toggle {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

/* EN toggle: global theme uses light surface — force dark-chip look */
body.commercial-home .lang-toggle {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
  color: #f8fafc !important;
}

body.commercial-home .lang-toggle:hover,
body.commercial-home .lang-toggle:focus-visible {
  background: rgba(51, 65, 85, 0.98) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  color: #bae6fd !important;
}

body.commercial-home .navbar .nav-link:not(.nav-cta):hover,
body.commercial-home .navbar .nav-link:not(.nav-cta).active {
  color: #7dd3fc !important;
}

body.commercial-home .navbar .nav-link.active::after {
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
}

/* Primary nav CTA — keep white label on brand fill (never inherit .nav-link hover cyan) */
body.commercial-home .navbar .nav-cta,
body.commercial-home .navbar .nav-link.nav-cta {
  background: linear-gradient(135deg, #0284c7, #0369a1 45%, #0d9488) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-radius: 999px;
  padding: 0.55rem 1.15rem !important;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
  filter: none;
  opacity: 1;
}

body.commercial-home .navbar .nav-cta:hover,
body.commercial-home .navbar .nav-cta:focus-visible,
body.commercial-home .navbar .nav-cta:active,
body.commercial-home .navbar .nav-cta:visited,
body.commercial-home .navbar .nav-link.nav-cta:hover,
body.commercial-home .navbar .nav-link.nav-cta:focus-visible,
body.commercial-home .navbar .nav-link.nav-cta:active,
body.commercial-home .navbar .nav-link.nav-cta:visited {
  background: linear-gradient(135deg, #0369a1, #0c4a6e 50%, #0f766e) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.34);
}

body.commercial-home .navbar .nav-cta.active::after,
body.commercial-home .navbar .nav-cta::after {
  display: none !important;
}

/* Hamburger: Bootstrap SVG is dark by default */
body.commercial-home .navbar-toggler {
  border-color: rgba(186, 230, 253, 0.55) !important;
  color: #f8fafc !important;
  background: rgba(30, 41, 59, 0.65) !important;
}

body.commercial-home .navbar-toggler-icon {
  /* replace Bootstrap dark SVG with light bars */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 250, 252, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  filter: none;
}

body.commercial-home .navbar-collapse {
  background: transparent;
}

@media (max-width: 991.98px) {
  body.commercial-home .navbar-collapse {
    background: #0f172a;
    border: 1px solid var(--cm-line);
    border-radius: 14px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem 1rem;
  }

  body.commercial-home .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  body.commercial-home .navbar .nav-link {
    padding: 0.65rem 0.25rem !important;
  }

  body.commercial-home .navbar .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }
}

/* Keep commercial chrome pinned — logo fully inside header (no scroll-shrink clip) */
body.commercial-home .header {
  transform: none !important;
  overflow: visible !important;
  min-height: 4.75rem;
  padding: 0.85rem 0 1rem !important;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

body.commercial-home .header.scrolled {
  min-height: 4.75rem;
  padding: 0.85rem 0 1rem !important;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
  box-shadow: none !important;
}

body.commercial-home .header .navbar,
body.commercial-home .header .navbar > .container {
  overflow: visible !important;
  min-height: 2.75rem;
  align-items: center;
}

body.commercial-home .navbar-brand {
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex;
  /* Bottom-align tagline to logo text baseline (not vertical center of PNG) */
  align-items: flex-end;
  gap: 0.55rem;
  line-height: 1.15;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: min(28rem, 62vw);
  text-decoration: none !important;
}

body.commercial-home .navbar-brand-logo {
  height: 36px;
  max-height: none;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  padding: 3px 0; /* keep diamond tips inside the paint box */
  box-sizing: content-box;
  overflow: visible !important;
  object-fit: contain;
  object-position: left center;
}

body.commercial-home .navbar-brand-logo.logo-for-dark {
  mix-blend-mode: normal;
}

/* Site body font — not baked into the PNG mark.
   Logo AI ink bottom ≈262/400 after CN baseline realign. */
body.commercial-home .navbar-brand-tagline {
  font-family: var(--cm-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--cm-muted-soft, var(--cm-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transform: translateY(-13px);
}

html[lang="zh-CN"] body.commercial-home .navbar-brand-tagline {
  /* CJK glyph bottoms sit higher in the em box than Latin flats */
  transform: translateY(-15px);
}

html[data-bs-theme="light"] body.commercial-home .navbar-brand-tagline {
  color: #475569;
}

@media (max-width: 576px) {
  body.commercial-home .navbar-brand {
    max-width: min(16rem, 58vw);
    gap: 0.4rem;
  }

  body.commercial-home .navbar-brand-logo {
    height: 30px;
  }

  body.commercial-home .navbar-brand-tagline {
    font-size: 0.68rem;
    transform: translateY(-11px);
  }

  html[lang="zh-CN"] body.commercial-home .navbar-brand-tagline {
    transform: translateY(-13px);
  }
}

/* Retired JS wayfind bar — must never affect layout */
body.commercial-home .cm-wayfind {
  display: none !important;
}

/* In-page sections need room under sticky header only */
body.commercial-home .cm-section[id],
body.commercial-home .cm-page-hero {
  scroll-margin-top: 6.5rem;
}

/* Spoke page in-hero subnav (about anchors, etc.) */
body.commercial-home .cm-spoke-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.88rem;
  color: var(--cm-muted);
}

body.commercial-home .cm-spoke-nav a {
  color: #7dd3fc !important;
  text-decoration: none !important;
  font-weight: 600;
}

body.commercial-home .cm-spoke-nav a:hover,
body.commercial-home .cm-spoke-nav a:focus-visible {
  color: #bae6fd !important;
  text-decoration: underline !important;
}

body.commercial-home .cm-callout {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.12), rgba(15, 23, 42, 0.35));
}

html[data-bs-theme="light"] body.commercial-home .cm-spoke-nav {
  color: #475569;
}

html[data-bs-theme="light"] body.commercial-home .cm-spoke-nav a {
  color: #0369a1 !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-callout {
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.08), rgba(248, 250, 252, 0.95));
  border-color: rgba(2, 132, 199, 0.22);
}

/* Spoke pages: clear page title under fixed header
   (must beat .cm-section { padding: 5.5rem 0 } — same element has both classes) */
body.commercial-home section.cm-page-hero.cm-section,
body.commercial-home .cm-page-hero.cm-section,
body.commercial-home .cm-page-hero {
  padding-top: 9.75rem !important;
  padding-bottom: 2.25rem !important;
}

body.commercial-home .cm-page-hero .cm-chip {
  margin-bottom: 0.85rem;
}

body.commercial-home .cm-page-hero .cm-title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.35;
  padding-top: 0.15em;
  overflow: visible;
}

/* Home → spoke “open as full page” ghost link under section titles */
body.commercial-home .cm-spoke-open {
  display: inline-block;
  margin: -0.35rem 0 1.25rem;
  color: #7dd3fc;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.commercial-home .cm-spoke-open:hover,
body.commercial-home .cm-spoke-open:focus-visible {
  color: #bae6fd;
  border-bottom-color: rgba(125, 211, 252, 0.55);
}

html[data-bs-theme="light"] body.commercial-home .cm-spoke-open {
  color: #0369a1;
}

html[data-bs-theme="light"] body.commercial-home .cm-spoke-open:hover,
html[data-bs-theme="light"] body.commercial-home .cm-spoke-open:focus-visible {
  color: #0c4a6e;
  border-bottom-color: rgba(3, 105, 161, 0.45);
}

body.commercial-home .cm-section {
  padding: 5.5rem 0;
  position: relative;
}

body.commercial-home .cm-kicker {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

body.commercial-home .cm-chip {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

body.commercial-home .cm-title {
  font-size: clamp(1.75rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow: visible;
  margin-bottom: 1.1rem;
  color: #f8fafc !important;
}

body.commercial-home .cm-title em {
  font-style: normal;
  color: #38bdf8 !important; /* solid fallback */
  background: linear-gradient(120deg, #7dd3fc, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  body.commercial-home .cm-title em {
    -webkit-text-fill-color: #38bdf8;
    color: #38bdf8 !important;
    background: none;
  }
}

body.commercial-home .cm-lead {
  font-size: 1.05rem;
  color: #e2e8f0 !important;
  max-width: 46rem;
  line-height: 1.75;
}

body.commercial-home .cm-lead strong {
  color: #f8fafc !important;
}

body.commercial-home .cm-section-title {
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #f8fafc !important;
}

body.commercial-home .cm-section-sub {
  color: #cbd5e1 !important;
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

/* Hero — !important beats .cm-section { padding: … } shorthand on same node */
body.commercial-home .cm-hero.cm-section,
body.commercial-home .cm-hero {
  padding-top: 9.5rem !important;
  padding-bottom: 4.5rem !important;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(2, 132, 199, 0.28), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(13, 148, 136, 0.18), transparent 55%),
    var(--cm-bg);
}

body.commercial-home .cm-engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 1.75rem;
}

body.commercial-home .cm-engine {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  line-height: 1.2;
}

body.commercial-home .cm-engine img {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

body.commercial-home .cm-engine-secondary {
  border-style: solid;
  opacity: 1;
}

body.commercial-home .cm-diagnose {
  display: flex;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.12), 0 18px 50px rgba(2, 132, 199, 0.12);
  max-width: 42rem;
}

body.commercial-home .cm-diagnose input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--cm-text);
  padding: 0.85rem 1rem;
  outline: none;
  font-size: 1rem;
}

body.commercial-home .cm-diagnose input::placeholder {
  color: #d0d9e6;
  opacity: 1;
}

body.commercial-home .cm-form input::placeholder,
body.commercial-home .cm-form textarea::placeholder,
.cm-modal input::placeholder,
.cm-modal textarea::placeholder {
  color: #d0d9e6;
  opacity: 1;
}

body.commercial-home .cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

body.commercial-home .cm-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

body.commercial-home .cm-btn-primary {
  background: linear-gradient(135deg, var(--cm-accent), #0369a1 45%, var(--cm-accent-2));
  color: #fff;
}

body.commercial-home .cm-btn-ghost {
  background: transparent;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

body.commercial-home .cm-hero-panel {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  padding: 1.4rem;
  min-height: 100%;
}

body.commercial-home .cm-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.commercial-home .cm-metric {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 12px;
  padding: 0.9rem;
}

body.commercial-home .cm-metric .v {
  font-size: 1.35rem;
  font-weight: 700;
  color: #7dd3fc;
}

body.commercial-home .cm-metric .l {
  font-size: 0.78rem;
  color: var(--cm-muted);
  margin-top: 0.2rem;
}

/* Cards */
body.commercial-home .cm-card {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  padding: 1.4rem 1.35rem;
  height: 100%;
}

body.commercial-home .cm-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: #f8fafc !important;
}

body.commercial-home .cm-card p,
body.commercial-home .cm-card li,
body.commercial-home .cm-card span {
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* keep numbered badges / accents from inheriting card body ink */
body.commercial-home .cm-card .cm-num,
body.commercial-home .cm-card .cm-case-stat {
  color: inherit;
}

body.commercial-home .cm-card .cm-num {
  color: #7dd3fc !important;
}

body.commercial-home .cm-card .cm-case-stat {
  color: #5eead4 !important;
}

body.commercial-home .cm-card-accent {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.08);
}

body.commercial-home .cm-num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.18);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

body.commercial-home .cm-case-stat {
  font-size: 1.6rem;
  font-weight: 700;
  color: #5eead4;
  margin: 0.6rem 0 0.4rem;
}

body.commercial-home .cm-footnote {
  font-size: 0.9rem;
  color: #d0d9e6 !important;
  margin-top: 0.75rem;
  line-height: 1.55;
}

body.commercial-home .cm-footnote a {
  color: #7dd3fc !important;
}

body.commercial-home .cm-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  body.commercial-home .cm-split-2 {
    grid-template-columns: 1fr 1fr;
  }
}

body.commercial-home .cm-compare {
  display: grid;
  gap: 0.75rem;
}

body.commercial-home .cm-compare-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cm-line);
}

body.commercial-home .cm-compare-row strong {
  color: #7dd3fc !important;
  font-size: 0.85rem;
}

body.commercial-home .cm-compare-row span {
  color: #e2e8f0 !important;
  font-size: 0.92rem;
  line-height: 1.65;
}

body.commercial-home .cm-cta-band {
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(2, 132, 199, 0.25), transparent 60%),
    radial-gradient(600px 260px at 90% 40%, rgba(13, 148, 136, 0.18), transparent 55%),
    var(--cm-bg-elevated);
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}

body.commercial-home .cm-form {
  display: grid;
  gap: 0.75rem;
}

body.commercial-home .cm-form label {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
  display: block;
}

body.commercial-home .cm-form input,
body.commercial-home .cm-form textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  color: var(--cm-text);
  padding: 0.75rem 0.9rem;
}

body.commercial-home .cm-form input:focus,
body.commercial-home .cm-form textarea:focus {
  outline: 1px solid rgba(56, 189, 248, 0.55);
  border-color: rgba(56, 189, 248, 0.55);
}

body.commercial-home .cm-hotline {
  font-size: 1.55rem;
  font-weight: 700;
  color: #7dd3fc;
}

body.commercial-home .cm-hotline a {
  color: inherit;
  text-decoration: none;
}

body.commercial-home .footer {
  background: #060b16 !important;
  border-top: 1px solid var(--cm-line);
  color: #cbd5e1 !important;
}

body.commercial-home .footer p,
body.commercial-home .footer li,
body.commercial-home .footer .small {
  color: #d0d9e6 !important;
}

body.commercial-home .footer a {
  color: #e2e8f0 !important;
}

body.commercial-home .footer .h6,
body.commercial-home .footer h4 {
  color: #f8fafc !important;
}

body.commercial-home .site-legal,
body.commercial-home .site-legal a {
  color: #d0d9e6 !important;
}

/* Bootstrap / brand.css muted helpers on dark commercial canvas */
body.commercial-home .text-muted,
body.commercial-home .small.text-muted,
body.commercial-home p.text-muted {
  color: #d0d9e6 !important;
}

/* ===== Right-side advisor dock (replaces bottom sticky bar) ===== */
body.commercial-home .cm-advisor {
  position: fixed;
  /* Mid-right dock, nudged ~2 lines lower for clearer hero clearance */
  top: max(8.5rem, calc(20vh + 2.75rem));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: auto;
  /* Above mobile navbar overlay (1040) so the dock never gets covered/clipped */
  z-index: 1080;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #3d3d3d;
  /* Survive html/body overflow clipping of fixed descendants */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

body.commercial-home .cm-advisor.is-dismissed {
  display: none !important;
}

body.commercial-home .cm-advisor__panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 6px 7px 8px;
  border-radius: 12px;
  border: 1px solid #eef3fa;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 17px rgba(30, 58, 96, 0.17);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.commercial-home .cm-advisor__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d7dee9;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(30, 58, 96, 0.12);
  color: #64748b;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

body.commercial-home .cm-advisor__close:hover,
body.commercial-home .cm-advisor__close:focus-visible {
  color: #0f172a;
  border-color: #94a3b8;
  background: #fff;
}

body.commercial-home .cm-advisor__close svg {
  display: block;
}

body.commercial-home .cm-advisor__book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 148px;
  padding: 0.7rem 0.2rem 0.85rem;
  border-radius: 12px;
  text-decoration: none !important;
  background: #caddff;
  color: #0f172a !important;
  filter: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.commercial-home .cm-advisor__book:hover,
body.commercial-home .cm-advisor__book:focus-visible {
  background: #b7d0ff;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 93, 246, 0.18);
  color: #0f172a !important;
}

body.commercial-home .cm-advisor__book:hover .cm-advisor__label,
body.commercial-home .cm-advisor__book:focus-visible .cm-advisor__label,
body.commercial-home .cm-advisor__book .cm-advisor__label {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
  opacity: 1;
}

body.commercial-home .cm-advisor__hero {
  position: relative;
  width: 44px;
  height: 44px;
}

body.commercial-home .cm-advisor__avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, #f8fafc 0 38%, transparent 39%),
    radial-gradient(circle at 50% 78%, #e2e8f0 0 42%, transparent 43%),
    linear-gradient(160deg, #38bdf8, #0284c7 55%, #0d9488);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

body.commercial-home .cm-advisor__bubble {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #085df6;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(8, 93, 246, 0.35);
}

body.commercial-home .cm-advisor__label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
  opacity: 1;
}

body.commercial-home .cm-advisor__item {
  position: relative;
  color: #3d3d3d;
}

body.commercial-home .cm-advisor__item + .cm-advisor__item {
  border-top: 1px solid #c7cfde;
}

body.commercial-home .cm-advisor__btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.15rem;
  border: 0;
  background: transparent;
  color: #3d3d3d !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
}

body.commercial-home .cm-advisor__btn:hover,
body.commercial-home .cm-advisor__btn:focus-visible {
  color: #0369a1 !important;
}

body.commercial-home .cm-advisor__icon {
  color: currentColor;
  flex: none;
}

body.commercial-home .cm-advisor__pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 188px;
  padding: 0.85rem 0.85rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8eef7;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  text-align: center;
  z-index: 2;
}

/* Invisible bridge across the 12px gap so hover does not drop while moving onto the QR */
body.commercial-home .cm-advisor__pop::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 16px;
}

body.commercial-home .cm-advisor__pop::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid #e8eef7;
  border-top: 1px solid #e8eef7;
  transform: translateY(-50%) rotate(45deg);
}

body.commercial-home .cm-advisor__pop[hidden] {
  display: none !important;
}

body.commercial-home .cm-advisor__pop-title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a !important;
}

body.commercial-home .cm-advisor__pop img {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 0.55rem;
  border-radius: 8px;
}

body.commercial-home .cm-advisor__pop-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b !important;
}

body.commercial-home .cm-advisor__pop-note strong,
body.commercial-home .cm-advisor__phone {
  color: #0369a1 !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.commercial-home .cm-advisor__phone {
  display: block;
  font-size: 1rem;
  margin: 0.15rem 0 0.45rem;
  letter-spacing: 0.02em;
}

body.commercial-home .cm-advisor__item.is-open .cm-advisor__btn {
  color: #0369a1 !important;
}

@media (max-width: 575.98px) {
  body.commercial-home .cm-advisor {
    top: max(8rem, calc(16vh + 2.75rem));
    right: 8px;
    bottom: auto;
    width: 72px;
    gap: 8px;
  }

  body.commercial-home .cm-advisor__panel {
    padding: 5px 5px 6px;
  }

  body.commercial-home .cm-advisor__close {
    width: 26px;
    height: 26px;
  }

  body.commercial-home .cm-advisor__book {
    min-height: 128px;
    padding: 0.55rem 0.1rem 0.65rem;
  }

  body.commercial-home .cm-advisor__label,
  body.commercial-home .cm-advisor__btn {
    font-size: 12px;
  }

  body.commercial-home .cm-advisor__pop {
    width: min(188px, calc(100vw - 96px));
  }
}

/* inline muted helpers used in five-step row */
body.commercial-home [style*="color:var(--cm-muted)"],
body.commercial-home [style*="color: var(--cm-muted)"] {
  color: #cbd5e1 !important;
}

/* Modal scan + lead */
.cm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cm-modal-backdrop.is-open {
  display: flex;
}

.cm-modal {
  width: min(440px, 100%);
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.25rem;
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cm-modal h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #f8fafc !important;
}

.cm-modal p {
  color: #cbd5e1 !important;
  font-size: 0.92rem;
}

.cm-modal label {
  color: #e2e8f0 !important;
}

.cm-modal a {
  color: #7dd3fc !important;
}

.cm-progress {
  height: 10px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.75rem;
}

.cm-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  transition: width 0.12s linear;
}

.cm-scan-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.cm-scan-engines span {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.15);
  color: #bae6fd;
}

.cm-modal .cm-form {
  margin-top: 0.75rem;
}

.cm-modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cm-modal-actions .cm-btn {
  flex: 1;
}

.cm-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 991.98px) {
  body.commercial-home .cm-hero-panel {
    margin-top: 0.5rem;
  }

  body.commercial-home .cm-metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  body.commercial-home {
    padding-bottom: 5.25rem;
    /* Do not set overflow-x:hidden on body — it breaks position:fixed advisor pops
       (style.css already clips on html so fixed descendants keep working). */
  }

  body.commercial-home .cm-diagnose {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
  }

  body.commercial-home .cm-diagnose .cm-btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
  }

  body.commercial-home .cm-diagnose input {
    font-size: 16px; /* avoid iOS zoom on focus */
    min-height: 48px;
    padding: 0.75rem 0.85rem;
  }

  body.commercial-home .cm-form input,
  body.commercial-home .cm-form textarea {
    font-size: 16px;
  }

  body.commercial-home .cm-section {
    padding: 3.25rem 0;
  }

  /* Must clear ~90px fixed header; old 6.5rem clipped kickers / spoke H1 tops */
  body.commercial-home .cm-hero.cm-section,
  body.commercial-home .cm-hero,
  body.commercial-home section.cm-page-hero.cm-section,
  body.commercial-home .cm-page-hero.cm-section,
  body.commercial-home .cm-page-hero {
    padding-top: 8.75rem !important;
    padding-bottom: 3rem !important;
  }

  body.commercial-home .cm-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  body.commercial-home .cm-kicker {
    gap: 0.4rem;
  }

  body.commercial-home .cm-chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  body.commercial-home .cm-engine-row {
    gap: 0.4rem;
  }

  body.commercial-home .cm-engine {
    font-size: 0.78rem;
  }

  body.commercial-home .cm-compare-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.commercial-home .cm-modal {
    width: min(100%, 420px);
    max-height: min(88vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.commercial-home .cm-modal-actions {
    flex-direction: column;
  }

  body.commercial-home .cm-modal-actions .cm-btn {
    min-height: 48px;
  }

  body.commercial-home .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 419.98px) {
  body.commercial-home .cm-metric-grid {
    grid-template-columns: 1fr;
  }

  body.commercial-home .cm-title {
    font-size: 1.55rem;
  }
}

/* ----- Light theme on commercial home (toggle) -----
   Dark commercial rules hard-code pale ink for dark canvas; without
   these overrides, light theme becomes pale-on-pale (illegible). */
html[data-bs-theme="light"] body.commercial-home {
  --cm-bg: #f1f5f9;
  --cm-bg-elevated: #ffffff;
  --cm-card: #ffffff;
  --cm-card-2: #f8fafc;
  --cm-text: #0f172a;
  --cm-muted: #334155;
  --cm-muted-soft: #475569;
  --cm-line: rgba(15, 23, 42, 0.14);
  --cm-glow: rgba(2, 132, 199, 0.16);
  --cm-accent: #0369a1;
  --cm-accent-2: #0f766e;
  --bs-body-color: var(--cm-text);
  --bs-heading-color: var(--cm-text);
  --bs-secondary-color: var(--cm-muted);
  --theme-heading: var(--cm-text);
  --theme-text: var(--cm-text);
  --theme-muted: var(--cm-muted);
  background: var(--cm-bg) !important;
  color: var(--cm-text) !important;
}

html[data-bs-theme="light"] body.commercial-home h1,
html[data-bs-theme="light"] body.commercial-home h2,
html[data-bs-theme="light"] body.commercial-home h3,
html[data-bs-theme="light"] body.commercial-home h4,
html[data-bs-theme="light"] body.commercial-home h5,
html[data-bs-theme="light"] body.commercial-home h6,
html[data-bs-theme="light"] body.commercial-home .h1,
html[data-bs-theme="light"] body.commercial-home .h2,
html[data-bs-theme="light"] body.commercial-home .h3,
html[data-bs-theme="light"] body.commercial-home .h4,
html[data-bs-theme="light"] body.commercial-home .h5,
html[data-bs-theme="light"] body.commercial-home .h6,
html[data-bs-theme="light"] body.commercial-home .cm-title,
html[data-bs-theme="light"] body.commercial-home .cm-section-title,
html[data-bs-theme="light"] body.commercial-home .cm-card h3,
html[data-bs-theme="light"] body.commercial-home .footer .h6,
html[data-bs-theme="light"] body.commercial-home .footer h4 {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home strong,
html[data-bs-theme="light"] body.commercial-home .cm-lead strong {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-title em {
  color: #0369a1 !important;
  background: linear-gradient(120deg, #0284c7, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-bs-theme="light"] body.commercial-home p,
html[data-bs-theme="light"] body.commercial-home li,
html[data-bs-theme="light"] body.commercial-home label,
html[data-bs-theme="light"] body.commercial-home small,
html[data-bs-theme="light"] body.commercial-home .cm-lead,
html[data-bs-theme="light"] body.commercial-home .cm-section-sub,
html[data-bs-theme="light"] body.commercial-home .cm-card p,
html[data-bs-theme="light"] body.commercial-home .cm-card li,
html[data-bs-theme="light"] body.commercial-home .cm-card span,
html[data-bs-theme="light"] body.commercial-home .cm-footnote,
html[data-bs-theme="light"] body.commercial-home .cm-form label,
html[data-bs-theme="light"] body.commercial-home .footer p,
html[data-bs-theme="light"] body.commercial-home .footer li,
html[data-bs-theme="light"] body.commercial-home .footer .small,
html[data-bs-theme="light"] body.commercial-home .site-legal,
html[data-bs-theme="light"] body.commercial-home .site-legal a,
html[data-bs-theme="light"] body.commercial-home .text-muted,
html[data-bs-theme="light"] body.commercial-home [style*="color:var(--cm-muted)"],
html[data-bs-theme="light"] body.commercial-home [style*="color: var(--cm-muted)"] {
  color: #334155 !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-advisor__book,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:hover,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:focus-visible,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book .cm-advisor__label,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:hover .cm-advisor__label,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:focus-visible .cm-advisor__label {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:hover,
html[data-bs-theme="light"] body.commercial-home .cm-advisor__book:focus-visible {
  background: #b7d0ff !important;
  filter: none !important;
}

html[data-bs-theme="light"] body.commercial-home a:not(.cm-btn):not(.nav-cta):not(.coop-sticky-bar):not(.cm-advisor__book):not(.cm-advisor__btn):not(.cm-advisor__phone) {
  color: #0369a1 !important;
}

html[data-bs-theme="light"] body.commercial-home a:not(.cm-btn):not(.nav-cta):not(.coop-sticky-bar):not(.cm-advisor__book):not(.cm-advisor__btn):not(.cm-advisor__phone):hover {
  color: #0c4a6e !important;
}

/* Match page canvas — white bar on slate #f1f5f9 reads as a hard “divider line” */
html[data-bs-theme="light"] body.commercial-home .header,
html[data-bs-theme="light"] body.commercial-home .header.scrolled {
  background: rgba(241, 245, 249, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-engine {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] body.commercial-home .cm-engine-secondary {
  opacity: 1;
  background: #f8fafc;
}

html[data-bs-theme="light"] body.commercial-home .navbar .nav-link:not(.nav-cta),
html[data-bs-theme="light"] body.commercial-home .navbar-brand {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar .nav-link:not(.nav-cta):hover,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link:not(.nav-cta).active {
  color: #0369a1 !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:hover,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:focus-visible,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:active,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:visited,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:hover,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:focus-visible,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:active,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:hover,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:hover,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-cta:focus-visible,
html[data-bs-theme="light"] body.commercial-home .navbar .nav-link.nav-cta:focus-visible {
  background: linear-gradient(135deg, #0369a1, #0c4a6e 50%, #0f766e) !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.25) !important;
  background: #fff !important;
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
  html[data-bs-theme="light"] body.commercial-home .navbar-collapse {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
  }
}

html[data-bs-theme="light"] body.commercial-home .lang-toggle {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-chip {
  color: #0c4a6e !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-engine {
  color: #0f172a !important;
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-engine-secondary {
  color: #1e293b !important;
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
  opacity: 1;
}

html[data-bs-theme="light"] body.commercial-home .cm-diagnose {
  background: #fff !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

html[data-bs-theme="light"] body.commercial-home .cm-diagnose input {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-diagnose input::placeholder,
html[data-bs-theme="light"] body.commercial-home .cm-form input::placeholder,
html[data-bs-theme="light"] body.commercial-home .cm-form textarea::placeholder {
  color: #64748b !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-btn-ghost {
  color: #0369a1 !important;
  border-color: rgba(2, 132, 199, 0.45) !important;
  background: #fff !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #0284c7, #0369a1 45%, #0d9488) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-hero,
html[data-bs-theme="light"] body.commercial-home .cm-cta-band {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(2, 132, 199, 0.12), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(13, 148, 136, 0.1), transparent 55%),
    var(--cm-bg) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-hero-panel,
html[data-bs-theme="light"] body.commercial-home .cm-card {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-metric {
  background: rgba(2, 132, 199, 0.06) !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-metric .v,
html[data-bs-theme="light"] body.commercial-home .cm-num,
html[data-bs-theme="light"] body.commercial-home .cm-hotline,
html[data-bs-theme="light"] body.commercial-home .cm-hotline a,
html[data-bs-theme="light"] body.commercial-home .cm-compare-row strong,
html[data-bs-theme="light"] body.commercial-home .cm-footnote a {
  color: #0369a1 !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-metric .l {
  color: #475569 !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-case-stat,
html[data-bs-theme="light"] body.commercial-home .cm-card .cm-case-stat {
  color: #0f766e !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-compare-row {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-compare-row span {
  color: #1e293b !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-form input,
html[data-bs-theme="light"] body.commercial-home .cm-form textarea {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .footer {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-bs-theme="light"] body.commercial-home .footer a {
  color: #0c4a6e !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-modal {
  background: #fff;
  color: #0f172a;
  border-color: rgba(2, 132, 199, 0.3);
}

html[data-bs-theme="light"] body.commercial-home .cm-modal h3 {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body.commercial-home .cm-modal p,
html[data-bs-theme="light"] body.commercial-home .cm-modal label {
  color: #334155 !important;
}

html[data-bs-theme="light"] .cm-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* Footer brand lockup — same alignment recipe as .navbar-brand */
body.commercial-home .footer-logo-link {
  display: inline-flex !important;
  align-items: flex-end;
  gap: 0.55rem;
  line-height: 1.15 !important;
  text-decoration: none !important;
  max-width: 100%;
  overflow: visible !important;
}

body.commercial-home .footer-brand-logo {
  height: 36px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  padding: 3px 0; /* same diamond-tip pad as navbar logo */
  box-sizing: content-box;
  overflow: visible !important;
  object-fit: contain;
  object-position: left center;
}

body.commercial-home .footer-brand-tagline {
  font-family: var(--cm-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--cm-muted-soft, var(--cm-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* Match navbar tagline baseline lift (36px logo + 3px pad) */
  transform: translateY(-13px);
}

html[lang="zh-CN"] body.commercial-home .footer-brand-tagline {
  transform: translateY(-15px);
}

html[data-bs-theme="light"] body.commercial-home .footer-brand-tagline {
  /* Same as .navbar-brand-tagline in light theme */
  color: #475569;
}

@media (max-width: 576px) {
  body.commercial-home .footer-logo-link {
    gap: 0.4rem;
  }

  body.commercial-home .footer-brand-logo {
    height: 30px;
  }

  body.commercial-home .footer-brand-tagline {
    font-size: 0.68rem;
    transform: translateY(-11px);
  }

  html[lang="zh-CN"] body.commercial-home .footer-brand-tagline {
    transform: translateY(-13px);
  }
}

/* Spoke: first content block after page hero needs breathing room */
body.commercial-home .cm-page-hero + .cm-section {
  padding-top: 4rem !important;
}

@media (max-width: 576px) {
  body.commercial-home .cm-page-hero + .cm-section {
    padding-top: 3rem !important;
  }
}

