/* RESET */
/* ==============================
   THEME TOKENS (single source of truth via html[data-theme])
   ============================== */

:root {
  --bf-bg: #f5f5f5;
  --bf-surface: #ffffff;
  --bf-surface-2: #f3f4f6;
  --bf-text: #111827;
  --bf-muted: #4b5563;
  --bf-border: #e5e7eb;
  --bf-focus: rgba(56, 189, 248, 0.35);
  --bf-shadow: rgba(15, 23, 42, 0.08);
  --bf-shadow-strong: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] { color-scheme: light; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bf-bg: #020617;
  --bf-surface: rgba(2, 6, 23, 0.72);
  --bf-surface-2: rgba(148, 163, 184, 0.10);
  --bf-text: #e5e7eb;
  --bf-muted: #94a3b8;
  --bf-border: rgba(148, 163, 184, 0.18);
  --bf-shadow: rgba(15, 23, 42, 0.00);
  --bf-shadow-strong: rgba(15, 23, 42, 0.00);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bf-bg);
  color: var(--bf-text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

/* LINKS */
a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bf-border);
  background: var(--bf-surface);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface-2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
}

.brand-tagline {
  font-size: 12px;
  color: var(--bf-muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-size: 14px;
  color: var(--bf-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--bf-surface-2);
  color: var(--bf-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.btn:hover {
  background: var(--bf-surface-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--bf-shadow);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
}

html[data-theme="dark"] .btn-primary {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(147, 197, 253, 0.10);
  color: #93c5fd;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--bf-border);
  background: var(--bf-surface-2);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

/* HERO */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-card {
  background: var(--bf-surface);
  border: 1px solid var(--bf-border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 28px var(--bf-shadow);
}

.hero-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

html[data-theme="dark"] .hero-kicker {
  color: #93c5fd;
}

.hero-title {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-subtitle {
  color: var(--bf-muted);
  font-size: 16px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.stat {
  background: var(--bf-surface);
  border: 1px solid var(--bf-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 22px var(--bf-shadow);
}

.stat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--bf-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 18px;
  font-weight: 900;
}

/* SECTIONS */
.section {
  padding: 44px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--bf-muted);
  margin-bottom: 18px;
}

/* CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 20px var(--bf-shadow);
  min-width: 0;
  max-width: 100%;
}

.card h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card p {
  color: var(--bf-muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface-2);
  font-size: 12px;
  color: var(--bf-muted);
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.faq-q {
  font-weight: 900;
  margin-bottom: 6px;
}

.faq-a {
  color: var(--bf-muted);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--bf-border);
  background: var(--bf-surface);
  padding: 28px 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--bf-muted);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.footer-links a:hover {
  background: var(--bf-surface-2);
  color: var(--bf-text);
}

.footer-note {
  font-size: 13px;
  color: var(--bf-muted);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
}

/* =====================================
   THEME TOGGLE ICONS (PNG, shared with portal)
   ===================================== */

.site-theme-toggle::before,
.site-theme-toggle::after,
.portal-theme-toggle::before,
.portal-theme-toggle::after {
  content: none !important;
  display: none !important;
}

.site-theme-toggle,
.portal-theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-theme-toggle:hover,
.portal-theme-toggle:hover {
  background: var(--bf-surface-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px var(--bf-shadow);
}

.site-theme-toggle:active,
.portal-theme-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

.site-theme-toggle:focus-visible,
.portal-theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

.bf-theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* =====================================================================
   COMPATIBILITY LAYER (LAUNCH HOTFIX)
   ---------------------------------------------------------------------
   Many public pages use an older class naming scheme (nav-inner, nav-links,
   hero-inner, section-heading, etc.). This block maps those classes onto
   the newer design tokens above so the marketing site renders consistently.
   ===================================================================== */

/* Header (pages use plain <header> + .nav-inner) */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bf-border);
  background: var(--bf-surface);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  min-width: 0;
}

.logo-only {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface-2);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  color: var(--bf-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--bf-surface-2);
  color: var(--bf-text);
}

.nav-link-muted {
  color: var(--bf-muted) !important;
}

/* Theme toggle button (public header) */
.site-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.site-theme-toggle:hover {
  background: var(--bf-surface-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--bf-shadow);
}

.site-theme-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

.site-theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

/* Burger + mobile nav */
.nav-toggle {
  display: none;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

.bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bf-text);
  border-radius: 2px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  position: fixed;
  top: 70px;
  right: 16px;
  width: min(92%, 320px);
  background: var(--bf-surface);
  border: 1px solid var(--bf-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px var(--bf-shadow-strong);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 650;
  color: var(--bf-text);
}

.nav-mobile a:hover {
  background: var(--bf-surface-2);
}

/* Hero (pages use .hero-inner) */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.hero-inner > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .container {
    width: calc(100% - 32px);
    max-width: 1100px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero-inner {
    display: block;
  }

  .hero-inner > * + * {
    margin-top: 24px;
  }

  .section-heading,
  .card {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1,
  .hero-inner h1,
  .section-heading h2,
  .card h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero h1,
  .hero-inner h1 {
    font-size: 26px;
    line-height: 1.18;
  }

  .hero-inner p {
    font-size: 15px;
  }

  .hero p,
  .hero-inner p,
  .section-heading p,
  .card p,
  li {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .cta-row,
  .mini-cta,
  .hero-trust,
  .center-row,
  .cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
  }

  .hero-actions .btn,
  .cta-row .btn,
  .mini-cta .btn,
  .center-row .btn,
  .cta-panel-actions .btn {
    flex: 1 1 100%;
  }

  .hero-trust span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Section heading + grids */
.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading p {
  color: var(--bf-muted);
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 920px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* Secondary / de-emphasised cards (add-ons, extras) */
.card-secondary {
  opacity: 0.80;
}
.card-secondary h3 {
  font-weight: 700; /* softer than the 900 used on primary cards */
}

/* Minor helpers used in some pages */
.u-mt-10 { margin-top: 10px; }
.footer-links { margin-top: 6px; }
.footer-note { margin-top: 10px; font-size: 0.9rem; color: var(--bf-muted); }

.studio-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bf-border);
}

.studio-footer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bf-muted);
}

.studio-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.studio-footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--bf-muted);
}

.studio-footer-links a:hover,
.studio-footer-links a:focus-visible {
  color: var(--bf-text);
}


/* Client portal marketing slideshow */
.portal-slideshow {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--bf-border);
  overflow: hidden;
  background: var(--bf-surface);
  box-shadow: 0 20px 45px var(--bf-shadow-strong);
}

.portal-slideshow img {
  width: 100%;
  height: auto;
  display: block;
}

.portal-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px var(--bf-shadow);
}

.portal-slide-btn.prev { left: 12px; }
.portal-slide-btn.next { right: 12px; }

.portal-slide-btn:hover { background: var(--bf-surface-2); }

.portal-slideshow-meta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--bf-border);
}

.portal-slideshow-meta h3 { font-size: 16px; margin-bottom: 4px; }
.portal-slideshow-meta p { color: var(--bf-muted); font-size: 14px; }
.portal-slideshow-hint { margin-top: 10px; color: var(--bf-muted); font-size: 13px; }

/* =========================================
   SIDEBAR NAV — desktop fixed left column
   ========================================= */

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  display: none; /* toggled by media queries below */
  flex-direction: column;
  background: var(--bf-surface);
  border-right: 1px solid var(--bf-border);
  padding: 0;
  overflow-y: auto;
}

/* ── Brand block ──────────────────────────────────────── */

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px 22px;
  border-bottom: 1px solid var(--bf-border);
}

.sidebar-logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--bf-border);
  background: var(--bf-surface-2);
  object-fit: contain;
}

.sidebar-brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bf-muted);
  text-align: center;
}

/* ── Primary nav ──────────────────────────────────────── */

.sidebar-nav {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 14px;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bf-muted);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  background: var(--bf-surface-2);
  color: var(--bf-text);
}

.sidebar-nav li a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

.sidebar-nav li a[aria-current="page"] {
  background: var(--bf-surface-2);
  color: var(--bf-text);
  font-weight: 700;
}

/* Contact — soft blue CTA pill; never shows as "active" from aria-current */
.sidebar-contact {
  margin-top: 6px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.sidebar-contact:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

html[data-theme="dark"] .sidebar-contact {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.08);
  border-color: rgba(147, 197, 253, 0.18);
}

/* ── Bottom utility (theme toggle + login) ───────────── */

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 24px;
  border-top: 1px solid var(--bf-border);
}

.sidebar-login {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bf-muted);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  border: 1px solid var(--bf-border);
}

.sidebar-login:hover {
  background: var(--bf-surface-2);
  color: var(--bf-text);
}

.sidebar-login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

/* =========================================
   MOBILE HEADER — shown only below 921px
   ========================================= */

.mobile-header {
  /* sticky + z-index come from the existing body > header rule */
  display: none;
}

.mobile-header-inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.mobile-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-logo {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--bf-border);
  object-fit: contain;
}

/* =========================================
   RESPONSIVE: SIDEBAR VS MOBILE HEADER
   ========================================= */

@media (min-width: 921px) {
  .site-sidebar  { display: flex; }
  .mobile-header { display: none !important; }

  /* Shift page content clear of the fixed sidebar */
  body { padding-left: 240px; }
}

@media (max-width: 920px) {
  .site-sidebar  { display: none !important; }
  .mobile-header { display: block; }
}

/* =========================================
   HERO SPLIT LAYOUT — shared support column
   ========================================= */

/* Left column: badge → h1 → p → actions, spaced cleanly */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}

.hero-copy .badge {
  align-self: flex-start;
}

.hero-copy h1 { margin: 0; }
.hero-copy p  { margin: 0; }

/* Right column: wraps the support card */
.hero-support {
  display: flex;
  align-self: center;
}

.hero-support .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Section label inside support card */
.hero-support-kicker {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bf-muted);
  margin-bottom: 12px;
}

/* Checkmark bullet list */
.hero-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hero-check-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bf-text);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.hero-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #2563eb;
  font-weight: 900;
  font-size: 12px;
}

html[data-theme="dark"] .hero-check-list li::before {
  color: #93c5fd;
}

/* Clickable link list (portfolio demos etc.) */
.hero-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.hero-link-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bf-text);
  background: var(--bf-surface-2);
  transition: background 0.15s ease;
  text-decoration: none;
}

.hero-link-list li a:hover     { background: var(--bf-border); }
.hero-link-list li a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bf-focus);
}

/* Label / value pricing rows */
.hero-price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bf-border);
  font-size: 13px;
}

.hero-price-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-price-list .price-label {
  font-weight: 600;
  color: var(--bf-text);
}

.hero-price-list .price-value {
  font-weight: 700;
  color: var(--bf-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* Numbered steps */
.hero-step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.hero-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bf-text);
  line-height: 1.4;
}

.hero-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bf-surface-2);
  border: 1px solid var(--bf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--bf-muted);
}

/* Small muted note at the foot of a support card */
.hero-support-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bf-border);
  font-size: 12px;
  color: var(--bf-muted);
  line-height: 1.5;
}

/* Mobile: both columns stack naturally via hero-inner display:block */

/* Product studio pages */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-muted);
}

.product-subtitle {
  color: var(--bf-text);
  font-weight: 800;
}

.product-card .feature-list,
.case-study-list {
  padding-left: 18px;
  color: var(--bf-muted);
  font-size: 14px;
}

.product-card .feature-list li + li,
.case-study-list li + li {
  margin-top: 6px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.case-study-meta {
  display: grid;
  gap: 12px;
}

.case-study-meta p {
  margin: 0;
}

.studio-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bf-border);
}

.studio-footer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bf-muted);
}

.studio-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.studio-footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--bf-muted);
}

.studio-footer-links a:hover,
.studio-footer-links a:focus-visible {
  color: var(--bf-text);
}

@media (max-width: 920px) {
  .product-grid,
  .case-study-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* CSP-safe replacements for former inline styles */
.bf-csp-border-1px-solid-e5e7eb-radius-14px-overflow-hidden { border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; }
.bf-csp-border-none-cursor-pointer { border:none; cursor:pointer; }
.bf-csp-border-none-cursor-pointer-white-space-nowrap { border:none; cursor:pointer; white-space:nowrap; }
.bf-csp-border-top-1px-solid-e5e7eb-padding-12px-bg-f9fafb { border-top:1px solid #e5e7eb; padding:12px; background:#f9fafb; }
.bf-csp-color-2563eb { color:#2563eb; }
.bf-csp-color-2563eb-text-none { color:#2563eb; text-decoration:none; }
.bf-csp-color-4b5563 { color:#4b5563; }
.bf-csp-color-6b7280 { color:#6b7280; }
.bf-csp-display-block-fs-09rem-mb-4px { display:block; font-size:0.9rem; margin-bottom:4px; }
.bf-csp-display-block-mb-14px { display:block; margin-bottom:14px; }
.bf-csp-display-flex-align-items-center-gap-10px { display:flex; align-items:center; gap:10px; text-decoration:none; }
.bf-csp-display-flex-flex-wrap-wrap-gap-10px { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.bf-csp-display-flex-gap-10px-align-items-center { display:flex; gap:10px; align-items:center; }
.bf-csp-display-inline-block-width-10px-height-10px { display:inline-block; width:10px; height:10px; border-radius:999px; background:#111827; }
.bf-csp-display-none { display:none; }
.bf-csp-flex-1-padding-10px-12px-radius-10px { flex:1; padding:10px 12px; border-radius:10px; border:1px solid #d1d5db; font-size:0.95rem; }
.bf-csp-font-style-italic-mb-8px { font-style:italic; margin-bottom:8px; }
.bf-csp-font-weight-700-color-111827 { font-weight:700; color:#111827; }
.bf-csp-fs-095rem-color-4b5563 { font-size:0.95rem; color:#4b5563; }
.bf-csp-fs-095rem-color-4b5563-mb-10px { font-size:0.95rem; color:#4b5563; margin-bottom:10px; }
.bf-csp-fs-095rem-color-4b5563-mt-8px { font-size:0.95rem; color:#4b5563; margin-top:8px; }
.bf-csp-fs-095rem-color-4b5563-text-none { font-size:0.95rem; color:#4b5563; text-decoration:none; }
.bf-csp-fs-095rem-margin-0-0-10px-0 { font-size:0.95rem; margin:0 0 10px 0; }
.bf-csp-fs-09rem-color-4b5563 { font-size:0.9rem; color:#4b5563; }
.bf-csp-fs-09rem-color-4b5563-mb-6px { font-size:0.9rem; color:#4b5563; margin-bottom:6px; }
.bf-csp-fs-09rem-color-4b5563-mt-16px { font-size:0.9rem; color:#4b5563; margin-top:16px; }
.bf-csp-fs-09rem-color-4b5563-pl-18px { font-size:0.9rem; color:#4b5563; padding-left:18px; }
.bf-csp-fs-09rem-color-6b7280 { font-size:0.9rem; color:#6b7280; }
.bf-csp-fs-09rem-color-6b7280-mt-12px { font-size:0.9rem; color:#6b7280; margin-top:12px; }
.bf-csp-fs-09rem-color-bf-muted { font-size:0.9rem; color:var(--bf-muted); }
.bf-csp-grid-cols-12fr-08fr-gap-24px { grid-template-columns: 1.2fr 0.8fr; gap:24px; }
.bf-csp-grid-cols-2fr-1fr-gap-24px { grid-template-columns: 2fr 1fr; gap:24px; }
.bf-csp-height-160px-radius-12px-border-1px-solid-e5e7eb { height:160px; border-radius:12px; border:1px solid #e5e7eb; background:#f9fafb; display:flex; align-items:center; justify-content:center; color:#6b7280; }
.bf-csp-margin-0-color-4b5563 { margin:0; color:#4b5563; }
.bf-csp-margin-18px-0-border-none-border-top-1px-solid-e5e7eb { margin:18px 0; border:none; border-top:1px solid #e5e7eb; }
.bf-csp-margin-6px-0-color-4b5563 { margin:6px 0; color:#4b5563; }
.bf-csp-margin-left-12px-fs-095rem-color-4b5563 { margin-left:12px; font-size:0.95rem; color:#4b5563; text-decoration:none; }
.bf-csp-mb-10px { margin-bottom:10px; }
.bf-csp-mb-10px-fs-095rem { margin-bottom:10px; font-size:0.95rem; }
.bf-csp-mb-10px-fs-095rem-color-4b5563 { margin-bottom:10px; font-size:0.95rem; color:#4b5563; }
.bf-csp-mb-12px { margin-bottom:12px; }
.bf-csp-mb-14px-fs-095rem-color-4b5563 { margin-bottom:14px; font-size:0.95rem; color:#4b5563; }
.bf-csp-mb-16px { margin-bottom:16px; }
.bf-csp-mb-16px-fs-095rem { margin-bottom:16px; font-size:0.95rem; }
.bf-csp-mb-16px-fs-09rem-color-4b5563 { margin-bottom:16px; font-size:0.9rem; color:#4b5563; padding-left:18px; }
.bf-csp-mb-18px-fs-095rem-color-4b5563 { margin-bottom:18px; font-size:0.95rem; color:#4b5563; }
.bf-csp-mb-8px { margin-bottom:8px; }
.bf-csp-mt-10px-display-none-gap-8px { margin-top:10px; display:none; gap:8px; flex-wrap:wrap; }
.bf-csp-mt-10px-fs-085rem-color-6b7280 { margin-top:10px; font-size:0.85rem; color:#6b7280; }
.bf-csp-mt-10px-fs-095rem-color-4b5563 { margin-top:10px; font-size:0.95rem; color:#4b5563; padding-left:18px; }
.bf-csp-mt-10px-fs-095rem-color-4b5563-2 { margin-top:10px; font-size:0.95rem; color:#4b5563; }
.bf-csp-mt-10px-fs-09rem { margin-top:10px; font-size:0.9rem; }
.bf-csp-mt-10px-fs-09rem-color-6b7280 { margin-top:10px; font-size:0.9rem; color:#6b7280; }
.bf-csp-mt-12px-fs-095rem-color-6b7280 { margin-top:12px; font-size:0.95rem; color:#6b7280; }
.bf-csp-mt-14px-border-top-1px-solid-e5e7eb-pt-14px { margin-top:14px; border-top:1px solid #e5e7eb; padding-top:14px; }
.bf-csp-mt-14px-fs-09rem-color-6b7280 { margin-top:14px; font-size:0.9rem; color:#6b7280; }
.bf-csp-mt-16px { margin-top:16px; }
.bf-csp-mt-18px { margin-top:18px; }
.bf-csp-mt-18px-padding-14px-border-1px-solid-e5e7eb { margin-top:18px; padding:14px; border:1px solid #e5e7eb; border-radius:12px; background:#f9fafb; }
.bf-csp-mt-22px-text-align-center { margin-top:22px; text-align:center; }
.bf-csp-mt-24px-display-flex-flex-wrap-wrap { margin-top:24px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.bf-csp-mt-6px { margin-top:6px; }
.bf-csp-mt-6px-fs-085rem-color-6b7280 { margin-top:6px; font-size:0.85rem; color:#6b7280; }
.bf-csp-mt-6px-fs-09rem-color-6b7280 { margin-top:6px; font-size:0.9rem; color:#6b7280; }
.bf-csp-mt-8px-fs-085rem-color-6b7280 { margin-top:8px; font-size:0.85rem; color:#6b7280; }
.bf-csp-mt-8px-fs-09rem-color-4b5563 { margin-top:8px; font-size:0.9rem; color:#4b5563; padding-left:18px; }
.bf-csp-mt-8px-fs-09rem-color-6b7280 { margin-top:8px; font-size:0.9rem; color:#6b7280; }
.bf-csp-padding-14px-max-height-420px-overflow-auto { padding:14px; max-height:420px; overflow:auto; background:#ffffff; }
.bf-csp-position-absolute-left-9999px-top-auto { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.bf-csp-position-absolute-left-9999px-width-1px { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.bf-csp-pt-0 { padding-top:0; }
.bf-csp-pt-0pct { padding-top:0%; }
.bf-csp-text-none { text-decoration:none; }
.bf-csp-text-none-color-2563eb { text-decoration:none; color:#2563eb; }
.bf-csp-width-100pct-padding-10px-12px-radius-10px { width:100%; padding:10px 12px; border-radius:10px; border:1px solid #d1d5db; font-size:0.95rem; resize:vertical; background:#ffffff; }
.bf-csp-width-100pct-padding-10px-radius-8px { width:100%; padding:10px; border-radius:8px; border:1px solid #d1d5db; }
.bf-csp-width-100pct-padding-8px-10px-radius-8px { width:100%; padding:8px 10px; border-radius:8px; border:1px solid #d1d5db; font-size:0.95rem; }
.bf-csp-width-100pct-padding-8px-10px-radius-8px-2 { width:100%; padding:8px 10px; border-radius:8px; border:1px solid #d1d5db; font-size:0.95rem; resize:vertical; }
.bf-csp-width-100pct-padding-8px-10px-radius-8px-3 { width:100%; padding:8px 10px; border-radius:8px; border:1px solid #d1d5db; }
.bf-csp-width-100pct-padding-8px-10px-radius-8px-4 { width:100%; padding:8px 10px; border-radius:8px; border:1px solid #d1d5db; resize:vertical; }

/* CSP-safe UI state helpers */
.is-hidden {
  display: none !important;
}

.is-disabled {
  opacity: 0.7;
}

.bf-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bf-chat-option,
.bf-chat-button {
  border: none;
  cursor: pointer;
}

.bf-summary-actions {
  display: block;
}
