/* =============================================================================
   BeneBounce marketing site — shared stylesheet
   Self-contained, offline/CSP-clean (no external fonts, images, or imports).
   DARK BY DEFAULT (Jeff, 2026-09-09): the bare :root carries the dark palette,
   so an unconfigured visitor sees dark. prefers-color-scheme does not decide.
   Light is opt-in — the toggle stamps [data-theme="light"] on <html> and
   assets/js/site.js persists the choice in localStorage.
   Brand tokens sourced from docs/brand/tokens.json.
   ========================================================================== */

/* ---- Minimal reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }

/* ---- Brand tokens (fixed) + light semantic defaults ---------------------- */
:root {
  /* Brand palette (docs/brand/tokens.json) */
  --blue-700: #054078;
  --blue-600: #036AC0;
  --blue-500: #0080D8;
  --blue-400: #38A3F0;
  --blue-50:  #E9F4FC;
  --orange-600: #C85400;
  --orange-500: #F87000;
  --orange-300: #FF9A40;
  --orange-50:  #FFEEDD;
  --green-700: #0E7A5F;
  --green-500: #159876;
  --green-50:  #E4F7EF;
  --lime-500:  #7AD339;
  --ink:   #14243A;
  --slate: #475569;
  --mist:  #94A3B8;
  --cloud: #E2E8F0;
  --paper: #F7FAFC;
  --white: #FFFFFF;

  /* Signature gradient (hero rule / progress) */
  --grad-signature: linear-gradient(90deg, #0080D8 0%, #159876 55%, #7AD339 100%);
  --grad-warm: linear-gradient(90deg, #F87000, #FF9A40);

  /* Type */
  --font-display: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 999px;

  /* Semantic — DARK is THE default (Jeff, 2026-09-09). An unconfigured visitor
     gets dark; prefers-color-scheme does NOT decide. Light is an opt-in that the
     theme toggle stamps as [data-theme="light"] and persists in localStorage. */
  --bg: #0B1620;
  --bg-alt: #0F1E2B;
  --surface: #12222F;
  --surface-2: #16293A;
  --text: #EAF2F8;
  --text-muted: #A9BED0;
  --border: #24384A;
  --link: var(--blue-400);
  --link-hover: #7FC0F6;
  --nav-bg: rgba(11, 22, 32, 0.86);
  --hero-bg: #0F2233;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.55);
  --focus: var(--orange-300);

  color-scheme: dark;
}

/* ---- Light: opt-in only ------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: var(--paper);
  --surface: #FFFFFF;
  --surface-2: var(--paper);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: var(--cloud);
  --link: var(--blue-600);
  --link-hover: var(--blue-700);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --hero-bg: var(--blue-50);
  --shadow-sm: 0 1px 2px rgba(20, 36, 58, 0.06), 0 1px 3px rgba(20, 36, 58, 0.08);
  --shadow-md: 0 6px 18px rgba(20, 36, 58, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 36, 58, 0.16);
  --focus: var(--orange-600);

  color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 2.875rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.375rem); }
p { color: var(--text); }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.25rem); color: var(--text-muted); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); }
.section { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
main { flex: 1 0 auto; }
/* AA: --green-500 on light grounds is 3.25:1 at this size; --green-700 is 5.29:1. */
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 0.5rem;
}
:root:not([data-theme="light"]) /* AA: --green-500 on light grounds is 3.25:1 at this size; --green-700 is 5.29:1. */
.eyebrow { color: var(--lime-500); }
.section__head { max-width: 62ch; margin-bottom: 2rem; }
.text-center { text-align: center; }
.center-head { margin-inline: auto; text-align: center; }

/* Signature gradient rule */
.grad-rule { height: 5px; border: 0; border-radius: var(--r-pill); background: var(--grad-signature); }
.grad-rule--wide { width: 100%; }

/* ---- Accessibility ------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--r-sm); transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; text-decoration: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.3rem; border-radius: var(--r-pill);
  border: 2px solid transparent; text-decoration: none; line-height: 1.1;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* AA: white on --blue-500 is 4.13:1 (fails). --blue-600 is 5.49:1. */
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-md); }
/* AA: white on --orange-500 is only 2.87:1. Ink on the same orange is 5.44:1,
   and orange-300 on dark keeps the accent bright without losing the ratio. */
.btn--accent { background: var(--orange-500); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--orange-300); color: var(--ink); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); color: var(--link-hover); border-color: var(--blue-400); }
.btn--lg { font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: 0.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; flex: 0 0 auto; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand:hover { text-decoration: none; }
.nav__brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.nav__spacer { flex: 1 1 auto; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.nav__links a:hover { background: var(--surface-2); color: var(--link); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
:root:not([data-theme="light"]) .nav__links a[aria-current="page"] { color: var(--blue-400); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--blue-400); }
.icon-btn svg { width: 20px; height: 20px; }
/* Dark is the default, so the toggle offers the SUN (switch to light) by default. */
.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }

.nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-sm);
    background: transparent; border: 1px solid var(--border); color: var(--text);
  }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__menu {
    position: fixed; inset: 66px 0 auto 0;
    display: none; flex-direction: column; gap: 0.75rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1rem, 5vw, 2rem) 1.5rem; box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__links a { padding: 0.7rem 0.8rem; font-size: 1.05rem; }
  .nav__actions { justify-content: flex-start; gap: 0.6rem; margin-top: 0.5rem; }
  .nav__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 901px) {
  .nav__menu { display: flex !important; align-items: center; gap: 1rem; flex: 1 1 auto; }
  .nav__actions { margin-left: auto; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: var(--grad-signature);
}
.hero__inner { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__aside { display: flex; justify-content: center; }
/* Heroes that carry no aside: one centred column, so removing the aside leaves a
   deliberate composition rather than a hole in the right half. */
.hero__grid--solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__grid--solo .hero__copy { max-width: 62ch; }
.hero__grid--solo .grad-rule { margin-inline: auto; }
.hero__grid--solo .hero__cta { justify-content: center; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero__aside { order: -1; } }

/* Hero snapshot card — a labelled illustrative roll-up, NOT a chat.
   No mock conversation lives anywhere in this stylesheet; .bubble below is
   used only by the real concierge gate in assets/js/concierge.js. */
.snapshot {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.snapshot__bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1rem; color: #fff; background: var(--blue-700);
  border-bottom: 3px solid transparent;
  border-image: var(--grad-signature) 1;
}
.snapshot__bar strong { font-family: var(--font-display); font-weight: 600; }
.snapshot__list { list-style: none; margin: 0; padding: 1rem; display: grid; gap: 0.6rem; }
.snapshot__list li {
  padding: 0.6rem 0.85rem; border-radius: var(--r-sm); font-size: 0.92rem;
  background: var(--surface-2); color: var(--text);
}
.snapshot__foot { padding: 0 1rem 1rem; font-size: 0.78rem; color: var(--text-muted); }

/* Real concierge messages (the access gate, before the live agent loads). */
.bubble { padding: 0.6rem 0.85rem; border-radius: var(--r-md); font-size: 0.92rem; max-width: 85%; }
.bubble--bot { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--user { background: var(--blue-500); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); }
.card--link { display: flex; flex-direction: column; gap: 0.65rem; }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-400); text-decoration: none; }
.card__more { margin-top: auto; font-weight: 600; color: var(--link); font-family: var(--font-display); }
a.card:hover .card__more { text-decoration: underline; }

.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 0.9rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--green { background: var(--green-50); color: var(--green-700); }
.card__icon--orange { background: var(--orange-50); color: var(--orange-600); }
:root:not([data-theme="light"]) .card__icon { background: rgba(3, 106, 192, 0.18); color: var(--blue-400); }
:root:not([data-theme="light"]) .card__icon--green { background: rgba(21, 152, 118, 0.2); color: var(--lime-500); }
:root:not([data-theme="light"]) .card__icon--orange { background: rgba(248, 112, 0, 0.18); color: var(--orange-300); }

/* Path cards (home) get a top accent bar keyed to audience */
.path-card { position: relative; overflow: hidden; }
.path-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-signature); }

/* ---- Steps (how it works) ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--grad-signature); color: #fff;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 0.85rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); }

/* ---- Feature list -------------------------------------------------------- */
.feature-list { display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.feature-list .tick svg { width: 14px; height: 14px; }
:root:not([data-theme="light"]) .feature-list .tick { background: rgba(21, 152, 118, 0.22); color: var(--lime-500); }
.feature-list strong { color: var(--text); }
.feature-list span.desc { color: var(--text-muted); }

/* ---- Split / two-column content ----------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---- Concierge teaser band ---------------------------------------------- */
.teaser {
  background: var(--blue-700);
  background-image: radial-gradient(1200px 400px at 15% -20%, rgba(122,211,57,0.25), transparent 60%),
                    radial-gradient(900px 380px at 100% 120%, rgba(21,152,118,0.35), transparent 60%);
  color: #fff; border-radius: var(--r-md); padding: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center;
}
.teaser h2 { color: #fff; }
.teaser p { color: rgba(255,255,255,0.9); }
.teaser .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.teaser .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.teaser--solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.teaser--solo > * { max-width: 72ch; }
.teaser--solo .hero__cta { justify-content: center; }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; } }

/* ---- Badges / pills ------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; font-family: var(--font-display);
  padding: 0.28rem 0.7rem; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green-700);
}
.badge--blue { background: var(--blue-50); color: var(--blue-600); }
.badge--lime { background: var(--lime-500); color: var(--ink); }
:root:not([data-theme="light"]) .badge { background: rgba(21,152,118,0.2); color: var(--lime-500); }
:root:not([data-theme="light"]) .badge--blue { background: rgba(3,106,192,0.2); color: var(--blue-400); }
:root:not([data-theme="light"]) .badge--lime { background: var(--lime-500); color: var(--ink); }

/* ---- FAQ (details/summary) ---------------------------------------------- */
.faq { display: grid; gap: 0.75rem; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.25rem 1.1rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 0.95rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue-500); line-height: 1;
  flex: 0 0 auto; transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 0 1rem; color: var(--text-muted); }

/* ---- Notes / callouts ---------------------------------------------------- */
.note {
  border-left: 4px solid var(--blue-500);
  background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem; color: var(--text-muted); font-size: 0.95rem;
}
.note strong { color: var(--text); }
.note--green { border-left-color: var(--green-500); }
.note--orange { border-left-color: var(--orange-500); }

/* ---- Stats --------------------------------------------------------------- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: var(--blue-600); }
:root:not([data-theme="light"]) .stat__num { color: var(--blue-400); }
.stat__label { color: var(--text-muted); font-size: 0.92rem; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { padding-block: 1rem 0; }
/* The breadcrumb <ol> is intentionally class-less, so the ol[class] reset above
   does not reach it — reset the list markers/indent here so no "1. 2." shows. */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li::after { content: "/"; margin-left: 0.4rem; color: var(--mist); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 30px; margin-bottom: 0.85rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 34ch; }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.85rem; font-family: var(--font-display); }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a { color: var(--text); font-size: 0.94rem; }
.footer__col a:hover { color: var(--link); }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.footer__bottom .disclaimer { max-width: 70ch; }

/* ---- Chat launcher (fixed, every page) ---------------------------------- */
.bb-chat { position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 150; }
.bb-chat__fab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.25rem; border: 0; border-radius: var(--r-pill);
  background: var(--grad-signature); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-lg);
}
.bb-chat__fab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.bb-chat__fab svg { width: 22px; height: 22px; }
.bb-chat__fab .bb-chat__fab-label { white-space: nowrap; }
@media (max-width: 480px) { .bb-chat__fab .bb-chat__fab-label { display: none; } .bb-chat__fab { padding: 0.85rem; } }

.bb-chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(92vw, 360px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden;
}
.bb-chat__panel[hidden] { display: none; }
/* AA: white text on the signature gradient falls to 1.87:1 at the lime end.
   Solid --blue-700 is 10.4:1; the gradient stays as the rule beneath. */
.bb-chat__panel-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; color: #fff; background: var(--blue-700); border-bottom: 3px solid transparent; border-image: var(--grad-signature) 1; }
.bb-chat__panel-bar strong { font-family: var(--font-display); flex: 1 1 auto; }
.bb-chat__close { background: transparent; border: 0; color: #fff; width: 32px; height: 32px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; }
.bb-chat__close:hover { background: rgba(255,255,255,0.2); }
.bb-chat__close svg { width: 18px; height: 18px; }
.bb-chat__panel-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.bb-chat__panel-body { max-height: min(70vh, 520px); overflow-y: auto; }
.bb-chat__panel-body .bubble--bot { max-width: 100%; }
.bb-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 3px rgba(122, 211, 57, 0.35); }
.bb-chat__inputrow { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.bb-chat__inputrow input { flex: 1 1 auto; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: var(--r-sm); font: inherit; background: var(--surface); color: inherit; }
.bb-chat__inputrow button { padding: 0.55rem 0.95rem; border: 0; border-radius: var(--r-sm); background: var(--blue-500); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.bb-chat__frame-wrap { display: flex; flex: 1 1 auto; min-height: 0; margin-top: 0.6rem; }
.bb-chat__frame { flex: 1 1 auto; width: 100%; height: 440px; border: 0; border-radius: var(--r-sm); background: var(--surface); }

/* ---- Utility ------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.hero__aside .snapshot { margin: 0; }
