/* Main By5 — shared brand palette and seamless page flow. */
:root {
  --by5-bg-gradient: linear-gradient(135deg, #f3efe6 0%, #e1ece7 100%);
  --by5-bg-cream: #f3efe6;
  --by5-bg-mint: #e1ece7;
  --by5-bg-soft: #f5f4ef;
  --by5-teal: #0f3d3e;
  --by5-teal-dark: #0a2b2c;
  --by5-gold: #e5b869;
  --by5-mint: #68d3a8;
  --by5-text-dark: #182323;
  --by5-text-muted: #4e5d5d;
  --by5-border: rgba(15, 61, 62, 0.12);
}

html,
html body.by5-unified-homepage {
  margin: 0;
  padding: 0;
  background: var(--by5-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--by5-text-dark);
}

/* Only shared navigation receives the navigation fill. */
html body.by5-unified-homepage #bs-site-header {
  background-color: var(--by5-teal) !important;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clear page canvases while retaining photographs and card surfaces. */
html body.by5-unified-homepage #main,
html body.by5-unified-homepage #main > :is(section, div),
html body.by5-unified-homepage #main > #bs-pricing.bs-pricing-equalized,
html body.by5-unified-homepage #main > #bs-founder-story.by5-founder-reference,
html body.by5-unified-homepage #main #metrics-section #by5-core-features.module-section,
html body.by5-unified-homepage #main #metrics-section :is(.hero, .journey, .story, .scenarios, .module-section, .library, .end-banner) {
  background: transparent !important;
}

/* Optional translucent band; add sparingly to a section. */
html body.by5-unified-homepage #main .section-tinted {
  background: rgba(255, 255, 255, 0.35) !important;
  border-top: 1px solid var(--by5-border);
  border-bottom: 1px solid var(--by5-border);
}

.by5-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--by5-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.06);
}

/* Scope to the site footer; founder attribution stays within its quote card. */
html body.by5-unified-homepage #bs-site-footer,
html body.by5-unified-homepage #bs-site-footer .bs-premium-footer {
  background-color: var(--by5-teal-dark) !important;
  color: #e6f2f2;
}

html body.by5-unified-homepage #bs-site-footer .bs-premium-footer :is(p, a, .by5-cookie-preferences),
html body.by5-unified-homepage #bs-site-footer .bs-premium-footer-bottom {
  color: #e6f2f2;
}

html body.by5-unified-homepage #bs-site-footer .bs-premium-footer :is(.bs-premium-footer-signup, .bs-premium-footer-connection) {
  color: var(--by5-mint);
}

html body.by5-unified-homepage #main #bs-founder-story .by5-founder-quote-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.06);
}
