/* ============================================================
   HOME — page-specific styles. Tokens only.
   Desktop values match Figma 7961:255; mobile 8543:2955.
   Chrome refinements (announce bar, dropdown internals, drill-ins)
   live here during the pilot; they graduate to base.css on lock.
   ============================================================ */

/* ---------- SECTION RHYTHM (QC H1) ----------
   Desktop seams per final Figma 7961:255 (outliers normalized to the 88 scale:
   steps 93→88, testimonials 97→90, blog padding 146→90); mobile = locked 80px. */
@media (min-width: 768px) {
  #trust-band { margin-top: 64px; }
  #plans { margin-top: 96px; }
  #integrations { margin-top: 86px; }
  #steps { margin-top: 88px; }
  #testimonials { margin-top: 90px; }
  #book-a-demo { margin-top: 90px; }
  #blog { margin-top: 86px; padding-bottom: 90px; }
}
@media (max-width: 767px) {
  #trust-band, #plans, #integrations, #steps,
  #testimonials, #book-a-demo, #blog { margin-top: 80px; }
  #blog { padding-bottom: 80px; }
}

/* ---------- Announcement bar ---------- */
.bh-announce {
  background: var(--bh-dark);
  padding-block: 9px;
  text-align: center;
}
.bh-announce p {
  font-size: var(--bh-fs-fine);
  font-weight: var(--bh-w-semibold);
  line-height: 17px; /* Figma: announce bar 35px = 9 + 17 + 9 */
  color: rgba(255,255,255,0.92);
}
@media (max-width: 767px) {
  .bh-announce { padding-inline: var(--bh-space-16); }
  .bh-announce p { font-size: 11px; }
}

/* ---------- Dropdown internals ---------- */
.bh-dd-cols { display: flex; gap: var(--bh-space-30); align-items: stretch; }
.bh-dd-col { flex: 1 1 220px; min-width: 0; }
.bh-dd-colhead { display: flex; align-items: center; gap: var(--bh-space-12); margin-bottom: var(--bh-space-12); color: inherit; text-decoration: none; }
.bh-dd-product { display: block; font-family: var(--bh-font-display); font-weight: var(--bh-w-xbold); font-size: 17px; color: var(--bh-ink); }
.bh-dd-sub { display: block; font-size: 12px; font-weight: var(--bh-w-medium); color: var(--bh-body); }
.bh-dd-rule { border: 0; border-top: 1px solid #EFECF3; margin: var(--bh-space-12) 0; }
.bh-dd-tile--lg { width: 40px; height: 40px; }
.bh-dd-tile--xl { width: 64px; height: 64px; }
.bh-dd-item .bh-dd-tile { width: 34px; height: 34px; }
.bh-dd-about .bh-dd-item .bh-dd-tile, .bh-dd-resources .bh-dd-item .bh-dd-tile { width: 40px; height: 40px; }
.bh-dd-item .bh-dd-name { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); }
/* keep name + ADD-ON pill on ONE line; long names without a pill may still wrap (review A2) */
.bh-dd-item { display: flex; align-items: center; flex-wrap: nowrap; }
.bh-dd-item:has(.bh-tag--addon) .bh-dd-name { white-space: nowrap; }
.bh-dd-item .bh-tag--addon {
  flex: 0 0 auto; white-space: nowrap;
  /* same chip as the mobile drill rows (review A2) */
  background: #F2F1F4; border: none; border-radius: var(--bh-r-6);
  padding: 3px 7px; font-size: 10px; font-weight: var(--bh-w-medium);
  letter-spacing: 0; text-transform: none; color: #828794;
}
.bh-dd-featured--crm { min-height: 390px; }
.bh-dd-featured-btn { min-width: 150px; height: 44px; padding-block: 0; font-size: 15px; }
.bh-dd-about, .bh-dd-resources {
  border-radius: var(--bh-r-20);   /* was 24 - off the 8/12/16/20 scale */
}
.bh-dd-eyebrow {
  font-size: 11px; font-weight: var(--bh-w-bold); letter-spacing: 1px;
  text-transform: uppercase; color: #99A2B3; margin-bottom: var(--bh-space-12);
}
.bh-dd-eyebrow--white { color: var(--bh-white); letter-spacing: 1.5px; font-size: 12px; }
.bh-dd-eyebrow--pink { color: var(--bh-pink); letter-spacing: 1.5px; font-size: 12px; }
.bh-dd-item { position: relative; }
.bh-dd-item .bh-tag--addon { margin-left: var(--bh-space-8); }

/* Featured cards */
.bh-dd-featured {
  flex: 0 0 340px; border-radius: var(--bh-r-16); overflow: hidden;
  position: relative; display: flex; flex-direction: column;
  padding: var(--bh-space-24); gap: var(--bh-space-12);
}
.bh-dd-featured--crm {
  background: linear-gradient(233.8deg, #4C1D95 14.5%, var(--bh-violet) 85.5%);
  position: relative;
}
.bh-dd-featured--crm::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.10; mix-blend-mode: multiply;
}
.bh-dd-featured--crm > * { position: relative; z-index: 1; }
.bh-dd-featured-title { font-family: var(--bh-font-display); font-weight: var(--bh-w-xbold); font-size: 24px; color: var(--bh-white); }
.bh-dd-featured-title--lg { font-size: 30px; max-width: 380px; }
.bh-dd-featured-desc { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-medium); color: var(--bh-white-85); }
.bh-dd-featured-btn { background: var(--bh-white); color: #6D28D9; margin-top: auto; align-self: flex-start; padding: var(--bh-space-12) var(--bh-space-24); }
.bh-dd-featured--news, .bh-dd-featured--pillow { padding: 0; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--bh-r-20); }
.bh-dd-featured--pillow { flex: 1 1 auto; }
.bh-dd-featured-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-dd-featured-overlay {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--bh-space-12);
  justify-content: flex-end; height: 100%; min-height: 300px; padding: var(--bh-space-24);
  background: linear-gradient(180deg, rgba(20,13,31,0) 35%, rgba(20,13,31,0.92) 100%);
  border-radius: inherit;
}
.bh-dd-featured--pillow .bh-dd-featured-overlay {
  justify-content: center; align-items: flex-start;
  background: linear-gradient(90deg, rgba(26,15,36,0.94) 0%, rgba(26,15,36,0.72) 42%, rgba(26,15,36,0) 72%);
}
.bh-dd-featured--news .bh-dd-featured-title { font-size: 20px; }
.bh-dd-featured-link { font-size: 13px; font-weight: var(--bh-w-bold); color: var(--bh-pink); }
/* PMI news card — exact Figma spec (8528:2979 / 2981 / 2982 / 2983):
   32px side padding, 35px bottom, eyebrow 16 above the title, title 44 above the link,
   eyebrow + link both #F24476. */
.bh-dd-featured--news .bh-dd-featured-overlay {
  gap: 0; padding: var(--bh-space-24) var(--bh-space-32) 35px;
}
.bh-dd-featured--news .bh-dd-eyebrow--pink { color: var(--bh-pink); margin-bottom: var(--bh-space-16); }
.bh-dd-featured--news .bh-dd-featured-title { margin-bottom: 44px; }
/* the whole card is the hit area; the "Read the story" link carries it */
.bh-dd-featured--news { position: relative; }
.bh-dd-featured--news .bh-dd-featured-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bh-dd-featured--pillow .bh-btn { align-self: flex-start; }
/* nav dropdown: extra air above the Pillow Talk Subscribe button (2026-08-27) */
.bh-dd-featured--pillow .bh-dd-featured-overlay .bh-btn { margin-top: var(--bh-space-12); }

/* ---------- Mobile menu internals ---------- */
.bh-mm-list { padding: var(--bh-space-16) var(--bh-space-24) 0; }
.bh-mm-list a {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; border-bottom: 1px solid #ECECEF;
  font-size: 22px; font-weight: var(--bh-w-semibold); color: var(--bh-ink);
}
.bh-mm-chev { font-size: 24px; font-weight: var(--bh-w-medium); color: var(--bh-body); }
.bh-drill { padding: 0 var(--bh-space-20) var(--bh-space-24); }
.bh-drill-header { margin: 0 calc(-1 * var(--bh-space-20)) var(--bh-space-16); }
.bh-drill-back {
  font-size: 18px; font-weight: var(--bh-w-semibold); color: var(--bh-ink);
  padding-block: var(--bh-space-12);
}
.bh-drill-title { font-size: 26px; font-weight: var(--bh-w-xbold); color: var(--bh-ink); margin-bottom: var(--bh-space-16); }
.bh-drill-group {
  font-size: 12px; font-weight: var(--bh-w-xbold); letter-spacing: 0.6px;
  color: #828794; text-transform: uppercase; margin: var(--bh-space-20) 0 var(--bh-space-12);
}
.bh-drill-row { display: flex; align-items: center; gap: var(--bh-space-12); padding-block: var(--bh-space-8); }
.bh-drill-name { display: block; font-size: 16px; font-weight: var(--bh-w-semibold); color: var(--bh-ink); }
.bh-drill-desc { display: block; font-size: 12.5px; font-weight: var(--bh-w-medium); color: #828794; }
.bh-tag--addon-m { background: #F2F1F4; border-radius: var(--bh-r-6); padding: 3px 7px; font-size: 10px; font-weight: var(--bh-w-medium); color: #828794; }
.bh-drill-card {
  display: block; border-radius: 18px; padding: var(--bh-space-24);
  margin-top: var(--bh-space-24); position: relative; overflow: hidden;
}
.bh-drill-card--crm { background: linear-gradient(90deg, var(--bh-violet) 0%, #6D32D5 100%); }
.bh-drill-card--news { background: var(--bh-dark); }
.bh-drill-card--pillow { background: var(--bh-dark); }
.bh-drill-card-eyebrow { font-size: 11px; font-weight: var(--bh-w-xbold); letter-spacing: 1px; color: rgba(255,255,255,0.85); margin-bottom: var(--bh-space-8); }
.bh-drill-card-eyebrow--pink { color: var(--bh-pink); }
.bh-drill-card-title { display: flex; align-items: center; gap: var(--bh-space-12); font-size: 20px; font-weight: var(--bh-w-xbold); color: var(--bh-white); margin-bottom: var(--bh-space-8); }
.bh-drill-card-desc { font-size: 13.5px; color: var(--bh-white-85); margin-bottom: var(--bh-space-12); }
.bh-drill-card-link { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); color: var(--bh-pink); }
.bh-drill-card-btn { padding: 9px var(--bh-space-16); font-size: 13px; border-radius: 10px; display: inline-flex; }

/* ---------- Hero ---------- */
.hero { padding-top: 77px; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0;
}
.hero-eyebrow-text { /* QC H3 */
  font-weight: var(--bh-w-xbold);
  font-size: var(--bh-fs-eyebrow);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bh-pink);
}
.hero-h1 { margin-top: var(--bh-space-32); }
.hero-grow { padding: 0 0.16em; transform: rotate(2deg); }
.hero-sub { font-size: 22px; color: var(--bh-body); margin-top: var(--bh-space-48); }
.hero-cta { margin-top: 52px; min-width: 168px; height: 56px; font-size: 16px; }
.hero-band { margin-top: 43px; }
.hero-band img { width: 100%; height: auto; }
@media (max-width: 767px) {
  .hero { padding-top: var(--bh-space-40); }
  .hero-inner { gap: var(--bh-space-16); }
  .hero-eyebrow-text { font-size: var(--bh-m-fs-eyebrow); }
  .hero-h1, .hero-sub { margin-top: 0; }
  .hero-sub { font-size: 18.5px; line-height: 1.4; }
  .hero-cta { margin-top: 0; min-width: 0; height: auto; padding: 15px var(--bh-space-32); font-size: 16px; }
  .hero-band { margin-top: 29px; } /* measured from the Figma render (the 160px spacer overlaps the band) */
}

/* ---------- Trust band ---------- */
.trust-card {
  position: relative; overflow: hidden; border-radius: var(--bh-r-20);
  background: #05030A; height: 640px;
}
.trust-earth { position: absolute; left: 0; right: 0; top: 142px; width: 100%; height: auto; object-fit: cover; }
.trust-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,3,10,0.6) 0%, rgba(5,3,10,0.3) 55%, rgba(5,3,10,0.05) 72%, rgba(5,3,10,0) 100%);
}
.trust-content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  padding: var(--bh-space-24) var(--bh-space-80) var(--bh-space-48);
}
.trust-badge {
  width: 240px; max-height: 135px; object-fit: contain;
  filter: brightness(0) invert(1);   /* white-tint until the fitted white export lands (T3) */
  margin-bottom: 11px;
}
.trust-line {
  font-family: var(--bh-font-display); font-weight: var(--bh-w-black);
  font-size: 34px; letter-spacing: -1px; line-height: 1.2; color: var(--bh-white); text-align: center;
}
.trust-line + .trust-line { margin-top: var(--bh-space-8); }
.trust-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--bh-space-24) var(--bh-space-30);
  margin-top: var(--bh-space-30); width: 100%;
}
.trust-logos img { width: 100%; max-width: 160px; height: 46px; object-fit: contain; opacity: 0.9; margin-inline: auto; }
@media (max-width: 767px) {
  .trust { padding-inline: 0; }
  .trust .bh-container { width: 100%; }
  .trust-card { border-radius: 0; min-height: 740px; background: var(--bh-space-black); }
  .trust-earth {
    top: 283px; bottom: auto; left: -125px;
    width: 640px; max-width: none; height: auto;
  }
  .trust-scrim { background: linear-gradient(180deg, rgba(5,6,13,0.94) 0%, rgba(5,6,13,0.9) 47%, rgba(5,6,13,0) 66%); }
  .trust-content { padding: 128px var(--bh-space-20) var(--bh-space-40); }
  .trust-badge { width: 100px; max-height: 56px; }
  .trust-line { font-size: 24px; letter-spacing: -0.6px; }
  .trust-line + .trust-line { font-size: 16px; letter-spacing: -0.2px; }
  .trust-logos { gap: var(--bh-space-12) var(--bh-space-8); margin-top: var(--bh-space-30); }
  .trust-logos img { height: 14px; max-width: 50px; }
}

/* ---------- Plans ---------- */
.accent-text { color: var(--bh-accent); }
.plans-body { max-width: 760px; font-size: 18px; line-height: 30px; }
.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--bh-space-40) var(--bh-space-60);
  margin-top: var(--bh-space-60);
}
@media (max-width: 767px) {
  .plans-body { font-size: 16px; line-height: 1.5; }
  /* Per-section mobile H2 sizes per Figma (QC F8) */
  #plans .bh-h2 { font-size: 27px; }
  #integrations .int-h2 { font-size: 26px; }
  #steps .bh-h2 { font-size: 30px; }
  #testimonials .bh-h2 { font-size: 27px; }
}
.plan-card { border-radius: var(--bh-r-20); padding: 32px; box-shadow: var(--bh-shadow-lift); }
.plan-card--crm { background: var(--bh-violet); }
.plan-card--bdm { background: var(--bh-green); }
.plan-card--pm { background: var(--bh-pink); }
.plan-card--broker { background: var(--bh-blue); }
.plan-inner {
  position: relative; overflow: hidden; background: var(--bh-white);
  border-radius: 14px; min-height: 456px;
  padding: var(--bh-space-30) var(--bh-space-40);
  display: flex; flex-direction: column; align-items: flex-start;
}
.plan-eyebrow { font-size: 16px; font-weight: var(--bh-w-xbold); letter-spacing: 1.5px; }
.plan-card--crm .plan-eyebrow, .plan-card--crm .plan-tagline { color: var(--bh-violet); }
.plan-card--bdm .plan-eyebrow, .plan-card--bdm .plan-tagline { color: var(--bh-green); }
.plan-card--pm .plan-eyebrow, .plan-card--pm .plan-tagline { color: var(--bh-pink); }
.plan-card--broker .plan-eyebrow, .plan-card--broker .plan-tagline { color: var(--bh-blue); }
.plan-title { font-size: 40px; letter-spacing: -1px; margin-top: var(--bh-space-8); }
.plan-tagline { font-size: 19px; font-weight: var(--bh-w-bold); margin-top: var(--bh-space-20); }
.plan-body { font-size: 17px; font-weight: var(--bh-w-medium); max-width: 260px; margin-top: var(--bh-space-12); }
.plan-cta { margin-top: auto; color: var(--bh-white); height: 54px; padding-inline: 26px; font-size: 16.5px; }
.plan-card--crm .plan-cta { background: var(--bh-violet); }
.plan-card--bdm .plan-cta { background: var(--bh-green); }
.plan-card--pm .plan-cta { background: var(--bh-pink); }
.plan-card--broker .plan-cta { background: var(--bh-blue); }
.plan-astro { position: absolute; right: 0; bottom: 0; width: 292px; height: 339px; object-fit: contain; }
@media (max-width: 1023px) {
  .plans-grid { grid-template-columns: 1fr; gap: var(--bh-space-16); margin-top: var(--bh-space-40); }
  .plan-card { border-radius: 18px; padding: 12px; }
  .plan-inner { border-radius: var(--bh-r-12); min-height: 282px; padding: var(--bh-space-20) var(--bh-space-24); }
  .plan-eyebrow { font-size: 11.5px; letter-spacing: 1px; }
  .plan-title { font-size: 25px; letter-spacing: -0.5px; }
  .plan-tagline { font-size: 14.5px; margin-top: var(--bh-space-12); }
  .plan-body { font-size: 13px; max-width: 170px; }
  .plan-cta { height: 44px; padding-inline: 22px; font-size: 14px; }
  .plan-astro { width: 166px; height: 193px; }
}

/* ---------- Integrations ---------- */
.int-h2 { font-size: 60px; }
.int-body-mobile { display: none; }
@media (max-width: 767px) {
  .int-body-desktop { display: none; }
  .int-body-mobile { display: inline; }
}
.int-body { max-width: 760px; font-size: var(--bh-fs-lead); line-height: 32px; }
.int-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bh-space-48) var(--bh-space-48);
  max-width: 1150px; margin: var(--bh-space-60) auto 0;
}
.int-chip {
  display: flex; align-items: center; justify-content: center;
  height: 110px; background: var(--bh-white);
  border: 1.5px solid var(--bh-border-chip); border-radius: var(--bh-r-12);
}
.int-chip img { max-width: 155px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.int-cta-row { text-align: center; margin-top: 73px; }
.int-cta-row .bh-btn, .blog-cta-row .bh-btn { min-width: 168px; height: 56px; }
@media (max-width: 1023px) {
  .int-h2 { font-size: var(--bh-m-fs-h2); }
  .int-body { font-size: 16px; line-height: 1.48; }
  .int-grid { grid-template-columns: 1fr 1fr; gap: var(--bh-space-12); margin-top: var(--bh-space-30); }
  .int-chip { height: 73px; border-radius: var(--bh-r-8); border-width: 1px; }
  .int-chip img { max-width: 88px; max-height: 29px; }
  .int-cta-row { margin-top: var(--bh-space-20); }
  .int-cta-row .bh-btn { min-width: 0; height: auto; padding: var(--bh-space-12) var(--bh-space-24); font-size: 15px; }
}

/* ---------- Steps ---------- */
.steps-sub { font-size: 22px; font-weight: var(--bh-w-bold); color: var(--bh-body); }
.steps-underline { position: relative; white-space: nowrap; }
.steps-timeline {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--bh-space-30); margin-top: 102px;
  counter-reset: step;
}
.steps-timeline::before {
  content: ''; position: absolute; top: 31px; left: 16%; right: 16%;
  height: 3px; background: #D9DBE3;
}
.step { position: relative; text-align: center; padding-top: 0; }
.step-circle {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bh-white); border: 2px solid var(--bh-border);
  box-shadow: var(--bh-shadow-card);
}
/* All three step circles are uniform white/outlined (locked rule; QC M19) */
.step-circle--accent { border-color: var(--bh-border); }
.step-circle img { width: 40px; height: 40px; object-fit: contain; }
.step-title { font-size: 24px; letter-spacing: -0.5px; font-weight: var(--bh-w-xbold); margin-top: var(--bh-space-20); }
.step-desc { font-size: 16px; line-height: 1.46; max-width: 380px; margin: var(--bh-space-12) auto 0; }
@media (max-width: 767px) {
  .steps-sub { font-size: 16px; font-weight: var(--bh-w-regular); }
  .steps-underline::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px;
    background: url('/assets/home/scribble-underline.svg') no-repeat center / 100% auto;
  }
  .steps-timeline { grid-template-columns: 1fr; gap: var(--bh-space-40); margin-top: var(--bh-space-40); }
  .steps-timeline::before {
    top: 28px; bottom: 28px; left: 21px; right: auto; width: 2.5px; height: auto;
  }
  .step { text-align: left; padding-left: 62px; }
  /* 64 -> 44px: re-derive the shadow for the smaller circle (rule 30), do not inherit */
  .step-circle { position: absolute; left: 0; top: 0; width: 44px; height: 44px;
    box-shadow: 0px 3px 8px rgba(23,55,113,0.08); }
  .step-circle img { width: 26px; height: 26px; }
  .step-title { font-size: 18px; margin-top: 0; }
  .step-desc { max-width: 280px; margin-left: 0; }
}

/* ---------- Testimonials ---------- */
.testi-carousel { position: relative; margin-top: var(--bh-space-60); }
.testi-slide { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: var(--bh-space-30); }
.testi-quote {
  font-family: var(--bh-font-display); font-weight: var(--bh-w-semibold);
  font-size: 36px; line-height: 53px; color: var(--bh-ink); max-width: 940px;
}
.testi-caption { display: flex; flex-direction: column; align-items: center; margin-top: var(--bh-space-80); }
.testi-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.testi-name { font-size: 21px; font-weight: var(--bh-w-bold); color: var(--bh-ink); margin-top: var(--bh-space-16); }
.testi-role { font-size: 15.5px; color: var(--bh-body); margin-top: var(--bh-space-4); }
.testi-arrow {
  position: absolute; top: 40%; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: var(--bh-w-bold);
}
.testi-arrow--prev { left: var(--bh-space-20); background: var(--bh-white); border: 1px solid var(--bh-border); color: var(--bh-ink); }
.testi-arrow--next { right: var(--bh-space-20); background: var(--bh-accent); color: var(--bh-white); }
.testi-arrow .arrow-glyph-mobile { display: none; }
.testi-nav-row { display: contents; } /* desktop: arrows absolute, controls flow normally */
@media (max-width: 767px) {
  .testi-carousel {
    margin-top: var(--bh-space-30); background: var(--bh-white);
    border-radius: var(--bh-r-16); box-shadow: 0px 4px 6px rgba(23,55,113,0.08);
    padding: 0; /* padding lives on the slides so the clip edge = slide edge (QC F3) */
  }
  .testi-slide { padding: var(--bh-space-24) var(--bh-space-24) 0; }
  .testi-quote { font-family: var(--bh-font-body); font-weight: var(--bh-w-medium); font-size: 16px; line-height: 1.5; }
  .testi-quote::before { content: '“'; }
  .testi-quote::after { content: '”'; }
  .testi-caption { margin-top: var(--bh-space-20); }
  .testi-avatar { width: 46px; height: 46px; }
  .testi-name { font-size: 15px; margin-top: var(--bh-space-8); }
  .testi-role { font-size: 13px; }
  /* One horizontal nav row: ‹ · dots · › (QC H5) */
  .testi-nav-row {
    display: flex; align-items: center; justify-content: center;
    gap: var(--bh-space-16); margin: var(--bh-space-20) 0 var(--bh-space-24);
  }
  .testi-arrow { position: static; width: 42px; height: 42px; background: var(--bh-white); border: 1px solid #E5E5F0; color: var(--bh-accent); font-size: 18px; }
  .testi-arrow .arrow-glyph-desktop { display: none; }
  .testi-arrow .arrow-glyph-mobile { display: inline; }
  .bh-car-controls { margin-top: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--bh-r-20);
  min-height: 560px;
  background: linear-gradient(90deg, #521728 0%, #952A49 50%, var(--bh-pink) 100%);
  box-shadow: var(--bh-shadow-lift);
  display: flex; align-items: center;
}
.cta-copy { position: relative; z-index: 1; max-width: 700px; padding: var(--bh-space-60) 72px; }
.cta-h { white-space: nowrap; }
.cta-break { display: none; }
@media (max-width: 1023px) { .cta-break { display: inline; } .cta-h br.cta-break { display: block; } }
.cta-h { font-size: 42px; letter-spacing: -1px; line-height: 1.02; color: var(--bh-white); }
.cta-body { font-size: 18px; line-height: 1.46; color: #D4CFE0; max-width: 500px; margin-top: var(--bh-space-24); }
.cta-btn { background: var(--bh-white); color: var(--bh-pink); margin-top: var(--bh-space-36); min-width: 155px; height: 56px; font-size: 16px; }
.cta-photo { position: absolute; right: 0; top: 0; height: 100%; width: auto; object-fit: cover; }
@media (max-width: 1023px) {
  .cta-banner {
    min-height: 400px; border-radius: var(--bh-r-16);
    background: linear-gradient(131.2deg, #3A0517 0%, #690A2A 50%, var(--bh-pink) 100%);
    align-items: flex-start;
  }
  .cta-copy { padding: var(--bh-space-30) var(--bh-space-24); }
  .cta-h { font-size: 30px; letter-spacing: -0.5px; line-height: 1.04; white-space: normal; }
  .cta-body { font-size: 16px; color: var(--bh-white); margin-top: var(--bh-space-16); }
  .cta-btn { margin-top: var(--bh-space-20); height: 48px; font-size: 15px; }
  .cta-photo { top: auto; bottom: 0; height: 218px; width: 215px; object-fit: contain; object-position: bottom right; }
}

/* ---------- Blog ---------- */
.blog-h2 { font-size: 48px; letter-spacing: -1.5px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bh-space-24);
  max-width: 1200px; margin: var(--bh-space-60) auto 0;
}
.blog-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bh-white); border: 1px solid var(--bh-border);
  border-radius: var(--bh-r-20); overflow: hidden;
  box-shadow: 0px 4px 12px rgba(23,55,113,0.08);
  padding: 15px 15px var(--bh-space-24);
  transition: transform var(--bh-dur-fast) var(--bh-ease), box-shadow var(--bh-dur-fast) var(--bh-ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow-lift); }
.blog-cover { width: 100%; height: 180px; object-fit: cover; border-radius: var(--bh-r-12); }
.blog-pill {
  margin: var(--bh-space-20) var(--bh-space-8) 0;
  background: #F2F2F2; border-radius: var(--bh-r-6);
  padding: 6px 14px; font-size: 11.5px; font-weight: var(--bh-w-bold); color: var(--bh-body);
}
.blog-title {
  font-family: var(--bh-font-body); font-weight: var(--bh-w-bold);
  font-size: 19px; line-height: 26px; color: var(--bh-ink);
  margin: var(--bh-space-16) var(--bh-space-8) 0; letter-spacing: 0;
}
.blog-author { display: flex; align-items: center; gap: var(--bh-space-12); margin: auto var(--bh-space-8) 0; padding-top: var(--bh-space-24); }
.blog-avatar { width: 34px; height: 34px; border-radius: 50%; }
.blog-name { display: block; font-size: 13px; font-weight: var(--bh-w-bold); color: var(--bh-ink); }
.blog-meta { display: block; font-size: 11.5px; color: var(--bh-body); }
.blog-cta-row { text-align: center; margin-top: var(--bh-space-60); }
@media (max-width: 1023px) {
  .blog-h2 { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; gap: var(--bh-space-16); margin-top: var(--bh-space-30); }
  .blog-card { border-radius: var(--bh-r-16); border-color: var(--bh-border-pill); padding: 0 0 var(--bh-space-20); }
  .blog-cover { height: 176px; border-radius: 0; }
  .blog-pill { margin: var(--bh-space-16) var(--bh-space-16) 0; font-size: 10.5px; padding: 5px 12px; }
  .blog-title { font-size: 17px; line-height: 23px; margin-inline: var(--bh-space-16); }
  .blog-author { margin-inline: var(--bh-space-16); }
  .blog-avatar { width: 30px; height: 30px; }
  .blog-name { font-size: 12.5px; }
  .blog-meta { font-size: 11px; }
}

/* ---------- Footer page-level tweaks ---------- */
.bh-footer-tagline { font-size: var(--bh-fs-body-sm); color: rgba(244,242,248,0.75); }
.bh-footer-social { display: flex; gap: var(--bh-space-16); align-items: flex-end; margin-top: var(--bh-space-8); }
/* social glyph art has differing heights — normalise so baselines align (review A6) */
.bh-footer-social a { display: inline-flex; align-items: flex-end; }
/* keep each glyph at its designed size; only align their baselines (review A6) */
.bh-footer-social img { display: block; }
/* the narrow "f" makes the f→YouTube gap read wider than in→f even at equal
   spacing, so YouTube is pulled in optically (review A6) */
.bh-footer-social a:last-child { margin-left: -5px; }
.bh-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bh-footer-form { display: flex; gap: var(--bh-space-8); align-items: flex-start; flex-wrap: wrap; }
.bh-footer-form .bh-field { width: 220px; }
.bh-footer-input { width: 100%; height: 44px; padding-block: 0; border-radius: var(--bh-r-8); font-size: 13px; }
.bh-footer-signup { height: 44px; min-width: 120px; padding: 0 var(--bh-space-24); border-radius: var(--bh-r-8); font-size: 13px; }
.bh-footer-legal { display: flex; gap: var(--bh-space-30); }
@media (max-width: 767px) {
  .bh-footer-form { width: 100%; }
  .bh-footer-form .bh-field { width: 100%; }
  .bh-footer-input { width: 100%; height: 46px; }
  .bh-footer-signup { width: 100%; height: 46px; }
  .bh-footer-tagline { font-size: 16px; }
  .bh-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile menu / drill headers (QC M25) ---------- */
.bh-mm-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 18px 0 22px;
  border-bottom: 1px solid #ECECEF;
}
.bh-mm-header img { height: 22.8px; width: auto; }
.bh-mm-header-right { display: flex; align-items: center; gap: var(--bh-space-12); }
.bh-mm-cta { padding: 10px var(--bh-space-16); border-radius: 10px; font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); }
.bh-mm-close { font-size: 20px; color: var(--bh-ink); padding: var(--bh-space-8); line-height: 1; }
.bh-mobile-menu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* === CTA banner - width-proof geometry (2026-08-26, W01) ===
   Photo and copy were both sized in fixed px and independent of the banner width,
   so they overlapped by (copyMax + photoWidth - bannerWidth): 277px at 1024.
   Figma sizes both as a proportion of the banner - do the same. */
.cta-copy  { max-width: min(700px, 54%); }
.cta-photo { max-width: 44%; object-fit: cover; object-position: center right; }
@media (max-width: 1023px) {
  .cta-copy  { max-width: 100%; }
  /* Figma: 215/350 = 61.4% of the banner, not a fixed 215px. Scaling with the
     banner moves the photo's left edge AWAY from the button as the screen
     narrows, instead of under it. The 215px ceiling matters: this branch also
     covers 768-1023, where the banner is 720px wide and a bare 61.4% would blow
     the photo up to 442px and push it back under the headline. */
  .cta-photo { width: 61.4%; max-width: 215px; height: auto; object-fit: contain; object-position: bottom right; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  /* Banner is ~720px here but still on the mobile composition: the copy would run
     full width and meet the photo. Reserve the photo's column. */
  .cta-copy { max-width: 62%; }
}

/* === testimonial - no card (2026-08-26, W06) ===
   The white card around the testimonial exists in no Figma frame. Super BDM never
   had it and is the reference. Removed here so all four pages agree. */
@media (max-width: 767px) {
  .testi-carousel {
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .testi-slide { padding-left: 0; padding-right: 0; }
}

/* === page one-offs batch A (2026-08-26, W20) === */

/* T04 - .steps-timeline::before is one line spanning the whole column with
   bottom:28px, but 28px from the CONTAINER's bottom is not where step 3's circle
   is - the last step's copy hangs below it, so the line ran 58px past the number 3
   (connector ended y4426, last .step-circle ended y4367). Drawing the connector
   per-step instead means it always stops at the next circle. */
@media (max-width: 767px) {
  .steps-timeline::before { display: none; }
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;                 /* centre of the 44px circle */
    top: 44px;                  /* just below this step's circle */
    bottom: calc(-1 * var(--bh-space-40));   /* down to the next circle, across the 40px row gap */
    width: 2.5px;
    background: var(--bh-border);
    transform: translateX(-1.25px);
  }
}

/* === page one-offs batch B (2026-08-26, W20) === */

/* T01 - measured at 360/390: .trust-card has min-height:740px, the content ends at
   y=361 and the earth ends at y=532, leaving 208px of empty black below the image
   (218px at 768). That is the "large black blank space below it". The card is simply
   taller than anything in it. .trust-earth is 640px wide and FIXED at that width
   through the whole mobile band, so its bottom edge is a stable 532px and the card
   can be sized to it exactly. */
@media (max-width: 767px) {
  /* the base rule sets height:640px outright, so min-height alone cannot shrink it */
  .trust-card { height: 532px; min-height: 0; }   /* == the earth's bottom edge: zero dead space */
}
@media (min-width: 768px) and (max-width: 1023px) {
  .trust-card { height: 540px; min-height: 0; }   /* content ends at 494 */
}

/* === plan-card astronaut clear of copy + CTA (2026-08-26, W05) ===
   Measured coverage before this block: tagline 37-48% and CTA 13% at 360,
   tagline 24-36% at 390, on all four cards. */
.plan-astro {
  pointer-events: none;   /* decorative (alt=""), and it sits on top of the card's only link */
}
@media (max-width: 767px) {
  /* .plan-body already stops at 170px; the tagline had no limit and ran under the figure */
  .plan-tagline { max-width: 170px; }
}
@media (max-width: 374px) {
  /* at 360 the card leaves ~122px clear - shrink the figure so it clears the CTA too */
  .plan-astro { width: 142px; height: 165px; }
}

/* === plan cards - one-line tagline, figure nudged right, real gutter (2026-08-26, W05b) ===
   Supersedes the .plan-tagline cap from the first W05 block above - that cap is what was
   forcing the wrap. Keep the pointer-events:none from it; that part was right. */
@media (max-width: 1023px) {
  /* the figure has 16.1% transparent margin on each side, so at right:0 it reads as
     floating away from the corner. .plan-inner clips, and only margin crosses the edge. */
  .plan-astro { right: -12px; }
}
@media (max-width: 767px) {
  .plan-tagline {
    max-width: none;      /* all four fit on one line: they need 180-222px of the 240 clear at 360 */
  }
  /* 142x165 puts the first opaque pixel at x=223 against a description that ends at 206 */
  .plan-astro { width: 142px; height: 165px; }
}
@media (max-width: 374px) {
  /* 360: the tagline needs every one of its 240px, so the figure gives up a little more */
  .plan-astro { width: 132px; height: 153px; }
  /* 360 is the only width where the description still reached the figure (-5px);
     the copy column gives up 18px so the gutter is real there too */
  .plan-body { max-width: 152px; }
}

@media (min-width: 1024px) and (max-width: 1365px) {
  /* THE SAME DEFECT, UNFIXED ON DESKTOP. The grid goes to two columns at 1024, which
     drops the card from 720px to 458px, but the figure stays a fixed 292px and the copy
     a fixed 260px. Measured overlap of the description by the astronaut's opaque pixels:
         1024 -151   1100 -113   1200 -63   1280 -23   1366 +1
     so the copy is painted over from 1024 all the way to 1365, and even at 1440 the
     gutter is 1px. Fixed pixels in a fluid card is the whole problem, so both become a
     share of the card: at 1024 that is a 181px column against a 181px figure (21px
     gutter), at 1365 a 251px column against a 251px figure (44px). The figure carries 32%
     transparent margin inside its box, which is why the box and the copy can be the same
     share of the card and still leave a real gap between the copy and the astronaut. */
  .plan-body  { max-width: 46%; }
  .plan-astro { width: 46%; height: auto; }
}
