/* ==========================================================================
   Best Brains Franchise - public site design system
   Ported from the Claude Design handoff (design_handoff_franchise_site).
   Tokens are final per the handoff README; do not drift from them.
   ========================================================================== */

:root {
  --navy: #0E2340;
  --navy-deep: #0A1B31;
  --blue-mid: #123A6A;
  --blue-brand: #1A5AA0;
  --blue-hero: #14477F;

  --red: #E03127;
  --red-hover: #B21F17;
  --red-deep: #C42A21;

  --amber: #F6A11C;
  --amber-light: #FFD9A8;
  --amber-bright: #FFC451;

  --cream: #F7F4EF;
  --cream-border: #E9E4DB;
  --input-border: #DED8CE;

  --text: #131A24;
  --text-2: #4A5462;
  --muted: #6B7480;
  --muted-2: #8A929E;
  --muted-3: #5F6874;

  --on-blue: #C7D4E6;
  --on-blue-muted: #A9BBD3;
  --on-blue-dim: #93A6C0;

  --shadow-card: 0 24px 48px -36px rgba(19,26,36,0.35);
  --shadow-btn: 0 8px 18px -8px rgba(19,26,36,0.32);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Baloo 2', system-ui, sans-serif;

  --pad-x: clamp(18px, 4vw, 44px);
}

/* --- base ---------------------------------------------------------------- */

html.bbf-html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body.bbf {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.bbf *, .bbf *::before, .bbf *::after { box-sizing: border-box; }
.bbf a { color: var(--red); text-decoration: none; }
.bbf a:hover { color: var(--red-hover); }
.bbf input, .bbf select, .bbf textarea, .bbf button { font-family: inherit; }
.bbf h1, .bbf h2, .bbf h3 { font-family: var(--font); }
.bbf ::selection { background: var(--amber); color: var(--navy); }
.bbf img { max-width: 100%; }

.bbf :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Panels swapped for their confirmation state carry inline display, which
   would otherwise beat the UA's [hidden] rule. */
.bbf [hidden] { display: none !important; }

.bbf-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.bbf-html { scroll-behavior: auto; }
  .bbf *, .bbf *::before, .bbf *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- shared layout ------------------------------------------------------- */

.bbf-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(44px, 5.2vw, 76px) var(--pad-x);
  position: relative;
}
.bbf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.bbf-eyebrow--red { color: var(--red-deep); }
.bbf-eyebrow--amber { color: var(--amber); }
.bbf-eyebrow--sand { color: var(--amber-light); }

.bbf-h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.bbf-lede { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0; text-wrap: pretty; }
.bbf-lede--on-blue { color: var(--on-blue); }

.bbf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 140ms ease, opacity 140ms ease;
}
.bbf .bbf-btn--red {
  background: var(--red);
  color: #FFFFFF;
  padding: 13px 24px;
  box-shadow: var(--shadow-btn);
}
.bbf .bbf-btn--red:hover { background: var(--red-hover); color: #FFFFFF; }
.bbf-btn--lg { padding: 17px 28px; font-size: 16px; box-shadow: 0 18px 40px -18px rgba(224,49,39,0.9); }
.bbf .bbf-btn--ghost {
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: #FFFFFF;
  padding: 17px 28px;
  font-size: 16px;
  font-weight: 500;
}
.bbf .bbf-btn--ghost:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.bbf-btn--block { width: 100%; }
.bbf-btn[disabled], .bbf-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; }
.bbf .bbf-btn--red[disabled]:hover, .bbf .bbf-btn--red[aria-disabled="true"]:hover { background: var(--red); }

.bbf-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #14558C;
  cursor: pointer;
  white-space: nowrap;
}
.bbf-link-btn:hover { color: var(--navy); }

.bbf-field { display: block; }
.bbf-field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #5B6472;
  margin-bottom: 6px;
}
.bbf-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 15px;
  background: #FCFBF9;
  color: var(--text);
}
.bbf-input:focus { border-color: var(--navy); outline: none; background: #FFFFFF; }
textarea.bbf-input { resize: vertical; }

.bbf-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 15px 40px 15px 16px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: #FCFBF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236B7480' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  cursor: pointer;
}
.bbf-select:focus { border-color: var(--navy); outline: none; background-color: #FFFFFF; }
.bbf-select:disabled { opacity: 0.5; cursor: default; }

.bbf-note { font-size: 12.5px; line-height: 1.5; color: var(--muted-3); margin: 0; }

/* Placeholder that shows through when a photograph has not been supplied yet.
   The <img> sits above it; site.js hides the <img> on a load error. */
.bbf-photo-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, rgba(255,255,255,0.02) 10px 20px);
  border: 1px dashed rgba(255,255,255,0.28);
  border-radius: inherit;
}
.bbf-teachers__photo .bbf-photo-slot {
  color: rgba(19,26,36,0.42);
  border-color: rgba(19,26,36,0.18);
  background: repeating-linear-gradient(135deg, rgba(19,26,36,0.045) 0 10px, rgba(19,26,36,0.02) 10px 20px);
}
.bbf-mosaic__cell img, .bbf-teachers__photo img { position: absolute; inset: 0; z-index: 1; }

.bbf-ok {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: #ECFDF3;
  color: #12854B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 22px;
}
.bbf-ok--sm { width: 56px; height: 56px; font-size: 26px; margin-bottom: 16px; }

/* --- header -------------------------------------------------------------- */

.bbf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(14,35,64,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -20px rgba(14,35,64,0.5);
}
.bbf-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px var(--pad-x);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(14px, 1.6vw, 26px);
  row-gap: 10px;
}
.bbf-logo { display: flex; align-items: center; flex-shrink: 0; }
.bbf-logo img { height: 48px; width: auto; display: block; }

.bbf-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 15.5px;
  font-weight: 500;
}
.bbf-nav a {
  color: #3B4756;
  padding: 7px 8px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.bbf-nav a:hover { background: #F2F0EB; color: var(--navy); }

.bbf-header__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.bbf-header__div { width: 1px; height: 24px; background: rgba(14,35,64,0.12); }
.bbf .bbf-header__phone {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 2px;
}
.bbf .bbf-header__phone:hover { color: var(--red); }
.bbf .bbf-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 16px -8px rgba(224,49,39,0.65);
  transition: background 140ms ease;
}
.bbf .bbf-header__cta:hover { background: var(--red-hover); color: #FFFFFF; }

.bbf-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(14,35,64,0.14);
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.bbf-burger__box { display: block; position: relative; width: 19px; height: 13px; }
.bbf-burger__box span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: top 180ms ease, bottom 180ms ease, transform 180ms ease, opacity 140ms ease;
}
.bbf-burger__box span:nth-child(1) { top: 0; }
.bbf-burger__box span:nth-child(2) { top: 5.5px; }
.bbf-burger__box span:nth-child(3) { bottom: 0; }
.bbf-burger[aria-expanded="true"] .bbf-burger__box span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.bbf-burger[aria-expanded="true"] .bbf-burger__box span:nth-child(2) { opacity: 0; }
.bbf-burger[aria-expanded="true"] .bbf-burger__box span:nth-child(3) { bottom: 5.5px; transform: rotate(-45deg); }

.bbf-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
  border-top: 1px solid rgba(14,35,64,0.08);
  background: #FFFFFF;
}
.bbf-menu.is-open { max-height: 420px; }
.bbf-menu__inner { display: grid; padding: 8px var(--pad-x) 18px; }
.bbf-menu__inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid #EFEBE3;
}
.bbf-menu__inner a > span { color: #C7BFB2; }
.bbf-menu__call {
  border-bottom: 0 !important;
  gap: 10px;
  padding: 16px 2px 6px !important;
  font-size: 16px !important;
  color: var(--red) !important;
}

/* --- hero ---------------------------------------------------------------- */

.bbf-hero {
  background: linear-gradient(155deg, #1A5AA0 0%, #123A6A 42%, #0E2340 78%, #0A1B31 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bbf-hero__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(56,148,255,0.42), rgba(14,35,64,0) 66%);
  pointer-events: none;
}
.bbf-hero__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(38px,4.6vw,72px) var(--pad-x) clamp(36px,4.4vw,64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  position: relative;
}
.bbf-hero h1 {
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.bbf-hero h1 em { font-style: normal; white-space: nowrap; color: var(--amber); }
.bbf-hero__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--on-blue);
  margin: 0 0 34px;
  max-width: 30em;
  text-wrap: pretty;
}
.bbf-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.bbf-hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--on-blue-dim);
}
.bbf-hero__note > span { display: inline-flex; align-items: center; gap: 7px; }
.bbf-dot-live { width: 7px; height: 7px; border-radius: 999px; background: #4ADE80; }

.bbf-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(min(140px, 100%), 1fr));
  gap: 14px;
  min-height: 380px;
}
.bbf-mosaic__cell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.bbf-mosaic__cell--tall { grid-row: span 2; }
.bbf-mosaic__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.bbf-mosaic__stat {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 8% 100%, #FFC451 0%, #F6A11C 52%, #E8890C 100%);
  color: var(--navy);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 44px -20px rgba(246,161,28,0.75);
}
.bbf-mosaic__stat::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 14px solid rgba(255,255,255,0.22);
  pointer-events: none;
}
.bbf-mosaic__num { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; }
.bbf-mosaic__num b { font-size: clamp(46px, 5vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.9; }
.bbf-mosaic__num i { font-style: normal; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.bbf-mosaic__cap { position: relative; text-align: center; }
.bbf-mosaic__cap p { font-size: 13px; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }

.bbf-flags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; justify-items: center; }
.bbf-flags img {
  width: 100%;
  max-width: 21px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(14,35,64,0.35);
}

/* --- stat strip ---------------------------------------------------------- */
/* One slim row, not three cards: the design moved these under the hero and
   merged each label with its description onto a single line. */

.bbf-statband {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.bbf-statband__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
}
.bbf-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.bbf-stat__num {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1;
}
.bbf-stat__sub {
  font-size: 13.5px;
  color: var(--on-blue);
  white-space: nowrap;
}
.bbf-stat__sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.16);
}
/* the separators only make sense between items on one line */
@media (max-width: 700px) {
  /* nowrap keeps each pair intact, so wrap the row instead of the labels */
  .bbf-statband__grid { gap: 10px 20px; }
  .bbf-stat__sep { display: none; }
}

/* the hero's award badge, which replaced the row of country flags */
.bbf-mosaic__award {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-top: 12px;
}
/* "Check if your city is open" sits beside the no-obligation note */
.bbf a.bbf-hero__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,217,168,0.45);
}
.bbf a.bbf-hero__check:hover { color: #FFFFFF; }
.bbf-book {
  background: linear-gradient(160deg, #14477F 0%, #0E2340 56%, #0A1B31 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bbf-book__glow {
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(56,148,255,0.38), rgba(14,35,64,0) 70%);
  pointer-events: none;
}
.bbf-book__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}
.bbf-book__intro { flex: 1 1 380px; min-width: 0; max-width: 720px; }
.bbf-book__intro p { font-size: 17px; line-height: 1.6; color: var(--on-blue-muted); margin: 0; }

.bbf-rep {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.bbf-rep__ring {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(140deg, #F6A11C, rgba(246,161,28,0.25));
}
.bbf-rep__photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #E8EEF6;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.bbf-rep__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbf-rep__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 4px;
}
.bbf-rep__name { font-size: 16px; font-weight: 600; color: #FFFFFF; letter-spacing: -0.01em; }
.bbf-rep__role { font-size: 12.5px; color: var(--on-blue-muted); margin-top: 2px; }

.bbf-book__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }

.bbf-card-book {
  flex: 2.1 1 460px;
  min-width: 0;
  background: #FFFFFF;
  color: var(--text);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.55);
}
.bbf-book__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(26px, 3vw, 46px);
}
.bbf-step { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bbf-step__n {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
}
.bbf-step__t { font-size: 15px; font-weight: 600; }
.bbf-step__aside { font-size: 12.5px; color: var(--muted-3); margin-left: auto; }

.bbf-days { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 24px; }
.bbf-day {
  flex: 0 0 auto;
  width: 70px;
  padding: 11px 0 12px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--input-border);
  background: #FFFFFF;
  color: #2B3646;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.bbf-day[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.bbf-day__dow { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.bbf-day__num { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; }
.bbf-day__mon { display: block; font-size: 10.5px; margin-top: 2px; opacity: 0.65; }

.bbf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); gap: 9px; }
.bbf-slot {
  padding: 12px 4px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--input-border);
  background: #FFFFFF;
  color: #2B3646;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.bbf-slot[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #FFFFFF; }
.bbf-slot[disabled] {
  background: #F5F3EF;
  color: #B7B2A8;
  border-color: var(--input-border);
  text-decoration: line-through;
  cursor: not-allowed;
}
.bbf-slots__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 0; }
.bbf-slots__empty { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted-3); margin: 0; }

.bbf-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.bbf-book__confirm { text-align: center; padding: clamp(30px, 5vw, 64px) 12px; }
.bbf-book__confirm h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.bbf-book__confirm p:first-of-type { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0 auto 8px; max-width: 34em; }
.bbf-book__confirm p + p { font-size: 14.5px; line-height: 1.6; color: #5B6472; margin: 0 auto; max-width: 34em; }

/* webinar rail */
.bbf-webinar {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: clamp(22px, 2.6vw, 30px);
  background: linear-gradient(160deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.18);
}
.bbf-webinar__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 10px;
}
.bbf-webinar h3 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px;
  color: #FFFFFF;
}
.bbf-webinar__lede { font-size: 13.5px; line-height: 1.55; color: var(--on-blue-muted); margin: 0 0 18px; }

.bbf-count {
  text-align: center;
  padding: 16px 12px 18px;
  border-radius: 18px;
  background: rgba(10,27,49,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 18px;
}
.bbf-count__label { font-size: 12.5px; font-weight: 600; color: var(--on-blue); margin-bottom: 8px; }
.bbf-count__row { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.bbf-count__unit { min-width: 54px; }
.bbf-count__n {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.bbf-count__u {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-blue-dim);
  margin-top: 5px;
}
.bbf-count__sep { font-family: var(--font-num); font-size: 30px; font-weight: 800; line-height: 1.05; color: rgba(246,161,28,0.55); }

.bbf-webinar__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.bbf-sessions { display: grid; gap: 7px; align-content: start; padding-right: 2px; margin-bottom: 10px; }
.bbf-session {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: 13px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  transition: border-color 140ms ease, background 140ms ease;
}
.bbf-session[aria-pressed="true"] { background: rgba(246,161,28,0.18); border-color: rgba(246,161,28,0.75); }
.bbf-session__dot {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent;
}
.bbf-session[aria-pressed="true"] .bbf-session__dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: inset 0 0 0 2px rgba(14,35,64,0.9);
}
.bbf-session__label { font-size: 14px; font-weight: 600; color: #FFFFFF; line-height: 1.3; }
.bbf-session__tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-light);
  white-space: nowrap;
}
.bbf-webinar__more {
  justify-self: start;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-light);
  cursor: pointer;
}
.bbf-webinar__more:hover { color: #FFFFFF; }
.bbf-webinar__fields { display: grid; gap: 9px; }
.bbf-input--on-blue {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 14.5px;
  background: rgba(255,255,255,0.94);
}
.bbf-input--on-blue:focus { border-color: var(--amber); background: #FFFFFF; }
.bbf-webinar__note { font-size: 12px; line-height: 1.5; color: var(--on-blue-dim); margin: 2px 0 0; text-align: center; }
.bbf-webinar__confirm { text-align: center; padding: 26px 6px; margin: auto 0; }
.bbf-webinar__confirm h3 { font-size: 21px; margin: 0 0 10px; }
.bbf-webinar__confirm p { font-size: 14.5px; line-height: 1.6; color: var(--on-blue); margin: 0; }

.bbf-book__whatsapp {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  font-size: 14px;
  color: var(--on-blue-muted);
}
.bbf-book__whatsapp a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 9px 16px;
}
.bbf-book__whatsapp a:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.bbf-book__whatsapp img { height: 18px; width: auto; display: block; }

/* --- why us -------------------------------------------------------------- */

.bbf-why { max-width: 1240px; margin: 0 auto; padding: clamp(44px,5.2vw,80px) var(--pad-x); }
.bbf-why__head { max-width: 760px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.bbf-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.bbf-why__card {
  border: 1px solid var(--cream-border);
  border-radius: 18px;
  padding: 28px;
  background: #FFFFFF;
  transition: border-color 140ms ease;
}
.bbf-why__card:hover { border-color: var(--navy); }
.bbf-why__n {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FDEEE5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--red-deep);
  margin-bottom: 18px;
}
.bbf-why__card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.bbf-why__card p { font-size: 14.5px; line-height: 1.6; color: #5B6472; margin: 0; }

/* --- the teaching -------------------------------------------------------- */

.bbf-teaching { background: linear-gradient(120deg, #0E2340 0%, #123A6A 62%, #1A5AA0 100%); color: #FFFFFF; }
.bbf-teaching__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.bbf-numrow {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.bbf-numrow:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.bbf-numrow__n { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--amber); padding-top: 5px; }
.bbf-numrow h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: #FFFFFF; }
.bbf-numrow p { font-size: 14.5px; line-height: 1.6; color: var(--on-blue-muted); margin: 0; }

/* --- investment ---------------------------------------------------------- */

.bbf-invest { border-top: 1px solid var(--cream-border); border-bottom: 1px solid var(--cream-border); }
.bbf-invest__wrap { max-width: 1240px; margin: 0 auto; padding: clamp(44px,5.2vw,80px) var(--pad-x); }
.bbf-invest__lede { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0 0 26px; text-wrap: pretty; }
.bbf-invest__lede strong { color: var(--navy); }
.bbf-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 30px; }
.bbf-fig { background: #FFFFFF; border: 1px solid #E0DACF; border-radius: 16px; padding: 22px 24px; }
.bbf-fig__n {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--navy);
}
.bbf-fig__n--red { color: var(--red); }
.bbf-fig__l { font-size: 13px; color: #5B6472; margin-top: 9px; line-height: 1.45; }

.bbf-invest__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bbf-invest__bar h3 { font-size: 19px; font-weight: 600; margin: 0; }
.bbf-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--input-border);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 140ms ease;
}
.bbf-country-btn:hover { border-color: var(--navy); }
.bbf-country-btn em { font-style: normal; color: var(--muted-3); font-size: 12px; }
.bbf-flag-chip {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
}

.bbf-lines { border: 1px solid #E0DACF; border-radius: 18px; overflow: hidden; background: #FFFFFF; }
.bbf-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid #F0ECE4;
}
.bbf-line:last-child { border-bottom: 0; }
.bbf-line__l { font-size: 14.5px; color: var(--text-2); }
.bbf-line__v { font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.bbf-invest__fine { font-size: 12.5px; line-height: 1.5; color: var(--muted-3); margin: 12px 0 0; }

.bbf-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14,35,64,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bbf-modal[hidden] { display: none; }
.bbf-modal__card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.bbf-modal__card > p { font-size: 14px; line-height: 1.55; color: #5B6472; margin: 0 0 18px; }
.bbf-modal__list { display: grid; gap: 8px; }
.bbf-country-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--input-border);
  background: #FFFFFF;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.bbf-country-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.bbf-country-opt .bbf-flag-chip { width: 26px; height: 18px; border-radius: 3px; }

/* --- owner stories ------------------------------------------------------- */

.bbf-stories {
  background: linear-gradient(160deg, #1A5AA0 0%, #123A6A 46%, #0E2340 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bbf-stories__glow-a {
  position: absolute;
  top: -140px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(56,148,255,0.3), rgba(14,35,64,0) 68%);
  pointer-events: none;
}
.bbf-stories__glow-b {
  position: absolute;
  bottom: -200px;
  right: -150px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(246,161,28,0.16), rgba(14,35,64,0) 70%);
  pointer-events: none;
}
.bbf-stories__head { max-width: 640px; margin-bottom: clamp(26px, 3vw, 40px); }
.bbf-stories__head p { font-size: 17px; line-height: 1.6; color: var(--on-blue); margin: 0; max-width: 48ch; text-wrap: pretty; }

.bbf-rail-outer { position: relative; }
.bbf-rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(14,35,64,0.72);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6);
  transition: background 140ms ease, border-color 140ms ease;
}
.bbf-rail-btn:hover { background: var(--navy); border-color: rgba(246,161,28,0.7); }
.bbf-rail-btn--prev { left: -6px; }
.bbf-rail-btn--next { right: -6px; }

.bbf-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(300px, 82%), 1fr);
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.bbf-rail::-webkit-scrollbar { display: none; }
.bbf-rail-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.bbf-rail-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.32);
  transition: width 200ms ease, background 200ms ease;
}
.bbf-rail-dot[aria-current="true"] { width: 26px; background: var(--amber); }

.bbf-owner {
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(155deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 100%);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease;
}
.bbf-owner:hover { transform: translateY(-4px); border-color: rgba(246,161,28,0.55); }
.bbf-owner__media { position: relative; flex: 0 0 auto; height: 320px; background: rgba(255,255,255,0.06); }
.bbf-owner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,35,64,0) 52%, rgba(10,27,49,0.72) 100%);
  pointer-events: none;
}
.bbf-owner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.bbf-owner__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.bbf-owner__media--pair img { position: static; }
.bbf-owner__media--bright img { filter: brightness(1.1) contrast(1.02); }
/* shown until the real photograph is dropped in; see README note on assets */
.bbf-owner__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 64px;
  font-weight: 800;
  color: rgba(255,255,255,0.22);
  background: linear-gradient(150deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  letter-spacing: -0.02em;
}
.bbf-owner__body { padding: 22px 24px 24px; }
.bbf-owner__name { font-size: 19px; font-weight: 600; color: #FFFFFF; letter-spacing: -0.015em; line-height: 1.25; }
.bbf-owner__center {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--on-blue);
  margin-top: 8px;
  line-height: 1.45;
}
.bbf-owner__flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.bbf-owner__place { font-size: 12.5px; color: var(--on-blue-dim); margin-top: 4px; line-height: 1.45; }

/* --- teachers & veterans ------------------------------------------------- */

.bbf-teachers { background: var(--cream); border-top: 1px solid var(--cream-border); }
.bbf-teachers__wrap { max-width: 1240px; margin: 0 auto; padding: clamp(32px,3.4vw,52px) var(--pad-x); }
.bbf-teachers__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: clamp(24px, 2.8vw, 36px);
}
.bbf-teachers__photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 0;
  background: #EFEAE1;
}
.bbf-teachers__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbf-teachers__photo a {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(19,26,36,0.55);
}
.bbf-teachers__photo a:hover { background: var(--red-hover); color: #FFFFFF; }
.bbf-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(24px, 3vw, 56px); }
.bbf-offer { display: flex; flex-direction: column; }
.bbf-offer h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.bbf-offer > p { font-size: 14.5px; line-height: 1.5; color: var(--text-2); margin: 0 0 18px; }
.bbf-offer__rows { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 18px; border-top: 1px solid #E4DED4; }
.bbf-offer__row { display: flex; align-items: baseline; gap: 10px; }
.bbf-offer__n { font-size: 22px; font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.bbf-offer__l { font-size: 14px; color: var(--text-2); }

/* --- territories --------------------------------------------------------- */

/* Cream, not navy: the section moved up to sit directly under the dark hero,
   so it carries the light treatment now. */
.bbf-terr { background: var(--cream); color: var(--text); border-bottom: 1px solid var(--cream-border); }
.bbf-terr__wrap { max-width: 1240px; margin: 0 auto; padding: clamp(32px,3.4vw,50px) var(--pad-x); }
.bbf-terr__head { max-width: 720px; margin-bottom: clamp(18px, 2vw, 26px); }
.bbf-terr__head .bbf-eyebrow { margin-bottom: 12px; }
.bbf-terr__head .bbf-h2 { margin-bottom: 12px; }
.bbf-terr__split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}
.bbf-terr__card {
  background: #FFFFFF;
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.bbf-terr__fields { display: grid; gap: 12px; padding: clamp(18px, 2vw, 24px); }
/* A locked step stays visible so the whole path is legible from the start. */
.bbf-terr__step--locked { opacity: 0.45; }
.bbf-terr__step--locked .bbf-select { cursor: not-allowed; }
.bbf-terr__cta { padding: 0 clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px); }
.bbf-terr__other input { border-color: var(--blue-brand); background: #FFFFFF; padding: 15px 16px; }
.bbf-terr__back {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-brand);
  cursor: pointer;
  text-decoration: underline;
}
.bbf-terr__back:hover { color: var(--navy); }
.bbf-terr__map {
  position: relative;
  min-height: clamp(250px, 24vw, 330px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--cream-border);
  background: #EAF1F7;
  box-shadow: var(--shadow-card);
}
.bbf-terr__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* --- territory search note ------------------------------------------------ */
/* The design pairs this with a franchisee portal (accounts, saved territories).
   No portal exists, so the copy describes the finder above it instead and the
   account CTAs are left out rather than pointing nowhere. */

.bbf-terr__search {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(18px, 2vw, 26px);
  background: #FFFFFF;
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
}
.bbf-terr__search h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 12px;
  text-wrap: pretty;
  color: var(--text);
}
.bbf-terr__search p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  max-width: 34em;
  text-wrap: pretty;
}
.bbf-terr__points { display: grid; gap: 14px; }
.bbf-terr__point { display: flex; gap: 13px; align-items: flex-start; }
.bbf-terr__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2E9B5B;
  margin-top: 8px;
}
.bbf-terr__point-t { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.bbf-terr__point-d { font-size: 14.5px; line-height: 1.55; color: #5A6878; }

@media (max-width: 900px) {
  .bbf-terr__search { grid-template-columns: 1fr; }
}

/* --- franchise kit ------------------------------------------------------- */

.bbf-kit { background: #FFFFFF; color: var(--text); }
.bbf-kit__wrap { max-width: 1240px; margin: 0 auto; padding: clamp(38px,4.4vw,64px) var(--pad-x); }
.bbf-kit__card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  padding: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(26px, 3vw, 48px);
  align-items: center;
}
.bbf-kit__card h2 { line-height: 1.05; margin-bottom: 16px; }
.bbf-kit__fields { display: grid; gap: 12px; }
.bbf-kit__fields .bbf-field > span { font-weight: 600; color: var(--text-2); }
.bbf-kit__fields .bbf-input, .bbf-kit__fields .bbf-select { padding: 14px 15px; background: #FFFFFF; }
.bbf-kit__hint { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.bbf-kit__confirm { text-align: center; padding: 22px 8px; }
.bbf-kit__confirm h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.bbf-kit__confirm p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 18px; }

/* --- FAQ ----------------------------------------------------------------- */

.bbf-faq { background: linear-gradient(160deg, #1A5AA0 0%, #123A6A 46%, #0E2340 100%); color: #FFFFFF; }
.bbf-faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.bbf-faq__list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.bbf-faq__list details { border-bottom: 1px solid rgba(255,255,255,0.18); padding: 20px 0; }
.bbf-faq__list summary {
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #FFFFFF;
}
.bbf-faq__list summary::-webkit-details-marker { display: none; }
.bbf-faq__list summary span { color: var(--amber); }
.bbf-faq__list details[open] summary span { transform: rotate(45deg); display: inline-block; }
.bbf-faq__list p { font-size: 14.5px; line-height: 1.65; color: var(--on-blue); margin: 12px 0 0; }
.bbf-faq__list p a { color: var(--amber-light); border-bottom: 1px solid rgba(255,217,168,0.5); }
.bbf-faq__list p a:hover { color: #FFFFFF; }

/* --- footer -------------------------------------------------------------- */

.bbf-footer { background: #FFFFFF; border-top: 1px solid var(--cream-border); color: var(--text-2); }
.bbf-footer__wrap { max-width: 1240px; margin: 0 auto; padding: clamp(22px,2.2vw,30px) var(--pad-x); }
.bbf-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cream-border);
}
/* `.bbf img { max-width: 100% }` is (0,1,1) and beats a lone class, which is why
   this needs the extra class to cap the logo at all. The dark footer's rule is
   already (0,2,0) and was unaffected - which is why only this one was wrong. */
.bbf .bbf-footer__logo { width: 100%; max-width: 124px; height: auto; display: block; margin-bottom: 14px; }
.bbf-footer p { font-size: 13px; line-height: 1.6; margin: 0; }
.bbf-footer__contact { margin-top: 8px !important; }
.bbf-footer__contact a { color: var(--navy); }
.bbf-footer__h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 11px;
}
.bbf-footer__links { display: grid; gap: 7px; font-size: 13.5px; }
.bbf-footer__links a { color: var(--text-2); }
.bbf-footer__links a:hover { color: var(--red); }
.bbf-social { display: flex; gap: 14px; align-items: center; }
.bbf-social span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bbf-social img { height: 17px; width: auto; }
.bbf .bbf-footer__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--input-border);
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 18px;
}
.bbf .bbf-footer__login:hover { background: var(--cream); color: var(--navy); }
.bbf-footer__login i { font-style: normal; width: 6px; height: 6px; border-radius: 999px; background: var(--amber); }
.bbf-footer__site { margin: 18px 0 0 !important; }
.bbf-footer__site a { color: var(--navy); font-weight: 600; border-bottom: 1px solid #C7D0DA; }
.bbf-footer__legal { font-size: 10px !important; line-height: 1.65 !important; color: var(--muted-2); margin: 16px 0 0 !important; }

/* --- sticky bottom bar --------------------------------------------------- */

.bbf-stickybar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: linear-gradient(100deg, #1A5AA0 0%, #123A6A 55%, #0E2340 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.bbf-stickybar__text { font-size: 17px; font-weight: 600; color: #FFFFFF; line-height: 1.25; }
.bbf-stickybar a {
  background: var(--red);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.bbf-stickybar a:hover { background: var(--red-hover); color: #FFFFFF; }
.bbf-spacer { height: 74px; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  html.bbf-html { scroll-padding-top: 92px; }
  .bbf-terr__split { grid-template-columns: 1fr; }
  .bbf-nav { display: none; }
  .bbf-header__div { display: none; }
  .bbf-burger { display: inline-flex; position: absolute; right: 0; }
  .bbf-header__right { flex: 1 1 auto; justify-content: center; position: relative; padding-right: 52px; }
  .bbf-menu { display: block; }
  .bbf-logo img { height: 42px; }
}

@media (max-width: 700px) {
  html.bbf-html { scroll-padding-top: 88px; }
  .bbf-header__phone { display: none; }
  .bbf-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .bbf-mosaic__cell { grid-row: auto; height: 210px; }
  .bbf-mosaic__stat { height: auto; }
  .bbf-stat { padding: 22px 18px; }
  .bbf-stickybar { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .bbf-stickybar > div:last-child { justify-content: center; display: flex; }
  .bbf-spacer { height: 116px; }
  .bbf-rail-btn--prev { left: 2px; }
  .bbf-rail-btn--next { right: 2px; }
}

@media (max-width: 480px) {
  .bbf-logo img { height: 36px; }
  .bbf-mosaic__cell { height: 180px; }
  .bbf-mosaic__stat { height: auto; }
}


/* ==========================================================================
   Sub-pages: Centers for Sale and About Best Brains
   ========================================================================== */

/* --- page hero (single column, no mosaic) -------------------------------- */

.bbf-hero--page .bbf-hero__grid {
  display: block;
  padding: clamp(44px, 5.6vw, 88px) var(--pad-x);
}
.bbf-hero--page h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.bbf-hero--page .bbf-hero__lede { margin-bottom: 0; }
.bbf-hero__col { max-width: 820px; }
.bbf-hero__col--narrow { max-width: 800px; }
.bbf-hero__col--narrow .bbf-hero__lede { max-width: 34em; }

/* --- claim band (Centers for Sale) --------------------------------------- */

.bbf-claims {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
}
.bbf-claim {
  border: 1px solid var(--cream-border);
  border-radius: 18px;
  background: #FFFFFF;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 2px 6px -4px rgba(14,35,64,0.18);
}
.bbf-claim__t { font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.bbf-claim__d { font-size: 14px; line-height: 1.55; color: var(--muted-3); margin-top: 8px; }

/* --- listings ------------------------------------------------------------ */

.bbf-listings { max-width: 1240px; margin: 0 auto; padding: clamp(44px,5.2vw,80px) var(--pad-x); }
.bbf-listings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 2.8vw, 38px);
}
.bbf-listings__head > div { max-width: 620px; }
.bbf-listings__head .bbf-h2 { font-size: clamp(28px,3.4vw,44px); line-height: 1.05; margin: 0; }
.bbf-listings__aside { font-size: 14px; color: var(--muted-3); margin: 0; max-width: 32ch; }
.bbf-listings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.bbf-listings__fine { font-size: 12.5px; line-height: 1.5; color: var(--muted-3); margin: 18px 0 0; }

.bbf-listing {
  background: #FFFFFF;
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px -4px rgba(14,35,64,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.bbf-listing:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(14,35,64,0.35);
}
.bbf-listing__media { position: relative; height: 170px; background: #EDE7DD; }
.bbf-listing__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.bbf-listing__media .bbf-photo-slot {
  color: rgba(19,26,36,0.42);
  border-color: rgba(19,26,36,0.18);
  background: repeating-linear-gradient(135deg, rgba(19,26,36,0.045) 0 10px, rgba(19,26,36,0.02) 10px 20px);
  border-radius: 0;
}
.bbf-listing__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
}
.bbf-listing__badge--available { color: #12854B; background: #ECFDF3; }
.bbf-listing__badge--offer { color: #8A6B12; background: #FFF8E6; }
.bbf-listing__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.bbf-listing__body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--navy);
}
.bbf-listing__where { font-size: 13.5px; color: var(--muted-3); }
.bbf-listing__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid #F0ECE4;
  border-bottom: 1px solid #F0ECE4;
}
.bbf-listing__k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.bbf-listing__v { font-size: 15px; font-weight: 600; color: var(--text); }
.bbf-listing__v--num {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bbf-listing__blurb { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0; }
.bbf-listing .bbf-listing__cta { margin-top: auto; justify-content: center; padding: 13px 20px; font-size: 14.5px; }

/* --- About: what we do --------------------------------------------------- */

.bbf-split {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(44px,5.2vw,80px) var(--pad-x);
}
.bbf-split__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
}
.bbf-split__grid .bbf-h2 { font-size: clamp(28px,3.4vw,46px); line-height: 1.05; }
.bbf-split__body { font-size: 17.5px; line-height: 1.65; color: var(--text-2); margin: 0 0 16px; text-wrap: pretty; }
.bbf-split__body:last-child { margin-bottom: 0; }
.bbf-split__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: #EDE7DD;
  border: 1px solid var(--cream-border);
}
.bbf-split__photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.bbf-split__photo .bbf-photo-slot {
  color: rgba(19,26,36,0.42);
  border-color: rgba(19,26,36,0.18);
  background: repeating-linear-gradient(135deg, rgba(19,26,36,0.045) 0 10px, rgba(19,26,36,0.02) 10px 20px);
}

/* --- About: what we believe ---------------------------------------------- */

.bbf-beliefs-band { background: linear-gradient(170deg, #1A5AA0 0%, #0E2340 100%); color: #FFFFFF; }
.bbf-beliefs-band .bbf-wrap { padding: clamp(44px,5.2vw,80px) var(--pad-x); }
.bbf-beliefs-band__head { max-width: 700px; margin-bottom: clamp(26px, 3vw, 40px); }
.bbf-beliefs-band__head .bbf-h2 { font-size: clamp(28px,3.4vw,46px); line-height: 1.05; margin: 0; }
.bbf-beliefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.bbf-belief {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 28px;
  background: rgba(255,255,255,0.05);
}
.bbf-belief h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; color: #FFFFFF; }
.bbf-belief p { font-size: 15px; line-height: 1.65; color: var(--on-blue-muted); margin: 0; }

/* --- About: growth ------------------------------------------------------- */

.bbf-growth-head { max-width: 700px; margin-bottom: clamp(24px, 2.8vw, 38px); }
.bbf-growth-head .bbf-h2 { font-size: clamp(28px,3.4vw,46px); line-height: 1.05; margin: 0; }
.bbf-growth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  border-top: 1px solid #E3DED5;
}
.bbf-growth__cell { padding: 26px 24px; border-right: 1px solid #E3DED5; }
.bbf-growth__cell:first-child { padding-left: 0; }
.bbf-growth__cell:last-child { padding-right: 0; border-right: 0; }
.bbf-growth__n {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.bbf-growth__cell h3 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; }
.bbf-growth__cell p { font-size: 14px; line-height: 1.6; color: #5B6472; margin: 0; }

/* --- sub-page booking card ----------------------------------------------- */

.bbf-book__intro--wide { flex: none; max-width: 720px; margin-bottom: clamp(22px, 2.6vw, 34px); }
.bbf-book__intro--wide .bbf-h2 { font-size: clamp(30px,3.6vw,50px); }
.bbf-book__intro--wide p { font-size: 17.5px; line-height: 1.65; }
.bbf-card-book--full { flex: none; width: 100%; }
.bbf-book__details { padding-left: clamp(0px, 2.4vw, 34px); }
.bbf-book__talk {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
  font-size: 14px;
  color: var(--on-blue-muted);
}
.bbf-book__talk a { color: #FFFFFF; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.4); }
.bbf-book__talk a:hover { color: var(--amber-light); }
.bbf-book__talk .bbf-book__pipe { opacity: 0.4; }

/* --- dark footer (sub-pages) --------------------------------------------- */

.bbf-footer--dark {
  background: linear-gradient(180deg, #0E2340 0%, #081729 100%);
  border-top: 0;
  color: var(--on-blue-dim);
}
.bbf-footer--dark .bbf-footer__wrap { padding: clamp(36px,4vw,56px) var(--pad-x); }
.bbf-footer--dark .bbf-footer__cols {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bbf-footer--dark p { font-size: 13.5px; line-height: 1.7; }
.bbf-footer--dark .bbf-footer__logo { max-width: 150px; margin-bottom: 18px; }
.bbf-footer--dark .bbf-footer__contact { margin-top: 10px !important; }
.bbf-footer--dark .bbf-footer__contact a { color: #FFFFFF; }
.bbf-footer--dark .bbf-footer__h { color: #FFFFFF; margin-bottom: 14px; }
.bbf-footer--dark .bbf-footer__links { gap: 9px; font-size: 14px; }
.bbf-footer--dark .bbf-footer__links a { color: var(--on-blue-dim); }
.bbf-footer--dark .bbf-footer__links a:hover { color: #FFFFFF; }
/* on the dark ground the icons stand alone, without the navy disc */
.bbf-footer--dark .bbf-social span { background: transparent; width: auto; height: auto; }
.bbf-footer--dark .bbf-social img { height: 22px; }
.bbf-footer--dark .bbf-footer__legal {
  font-size: 11.5px !important;
  line-height: 1.7 !important;
  color: #6C7E96;
  max-width: 100ch;
  margin: 20px 0 0 !important;
}
.bbf-footer__loginrow { display: flex; align-items: center; justify-content: flex-end; padding-top: 20px; }
.bbf .bbf-footer--dark .bbf-footer__login { border-color: rgba(255,255,255,0.24); color: var(--on-blue); }
.bbf .bbf-footer--dark .bbf-footer__login:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

@media (max-width: 700px) {
  .bbf-growth__cell {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid #E3DED5;
  }
  .bbf-growth__cell:last-child { border-bottom: 0; }
  .bbf-book__details { padding-left: 0; }
}

/* --- legal prose (privacy policy) ---------------------------------------- */

.bbf-legal { background: #FFFFFF; color: var(--text); }
.bbf-legal__wrap {
  max-width: 78ch;
  margin: 0 auto;
  padding: clamp(38px,4.4vw,64px) var(--pad-x);
}
.bbf-legal h2 {
  font-size: clamp(24px,2.6vw,32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 44px 0 14px;
  text-wrap: pretty;
}
.bbf-legal h3 {
  font-size: clamp(19px,2vw,23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-border);
  text-wrap: pretty;
}
.bbf-legal h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 8px;
}
.bbf-legal p { font-size: 16px; line-height: 1.7; color: var(--text-2); margin: 0 0 14px; }
.bbf-legal ul, .bbf-legal ol { margin: 0 0 16px; padding-left: 22px; }
.bbf-legal li { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-bottom: 7px; }
.bbf-legal a { color: var(--red); border-bottom: 1px solid rgba(224,49,39,0.35); }
.bbf-legal a:hover { color: var(--red-hover); }
.bbf-legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.bbf-legal th, .bbf-legal td {
  border: 1px solid var(--cream-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.bbf-legal th { background: var(--cream); font-weight: 600; color: var(--navy); }
.bbf-legal section:first-child > h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* --- error page ----------------------------------------------------------- */

.bbf-oops { background: var(--cream); }
.bbf-oops__wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(50px,8vw,110px) var(--pad-x);
  text-align: center;
}
.bbf-oops__code {
  font-family: var(--font-num);
  font-size: clamp(56px,9vw,96px);
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.03em;
}
.bbf-oops h1 {
  font-size: clamp(24px,2.8vw,34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
}
.bbf-oops p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0 auto 26px; max-width: 46ch; }
.bbf-oops__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
