/* BP-273: paint the seams without changing any section's box or pin. */
html body :is(section#proof#proof, section#niches#niches, section#sponsors#sponsors) {
  border-color: transparent !important;
  background-origin: border-box !important;
}

/* The hero keeps its textured ground. Tint only its last half-band, then
   finish the same m256 blend in the first half-band of the next section. */
html body section#top#top {
  background-image: linear-gradient(transparent, #fcf9f2);
  background-position: 0 100%;
  background-size: 100% var(--m256-b);
  background-repeat: no-repeat;
  background-origin: border-box;
}
html body section#proof#proof {
  background-image: linear-gradient(#fcf9f2, #fffdf8), linear-gradient(#fffdf8, #faf4eb) !important;
  background-size: 100% var(--m256-b), 100% var(--m256-b) !important;
}

/* Adjacent layers can round in opposite directions at a fractional scroll
   position, exposing one row. Paint only that join with m256's midpoint. */
html body section#faq#faq::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  height: 4px;
  background: #faf4eb;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  html body section#top#top {
    border-bottom-color: transparent !important;
    background-image: linear-gradient(transparent, #f4e8d8);
  }
  html body section#pains#pains {
    background-image: linear-gradient(#f4e8d8, #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important;
    background-size: 100% var(--m256-b), 100% var(--m256-b) !important;
  }
}

/* The existing layout leaves 24px between these sections below 960px.
   Include the gap in the m256 ramp without moving either section. */
@media (max-width: 959px) {
  html body section#route#route {
    background-image: linear-gradient(#faf4eb, #f5ebdd), linear-gradient(#f5ebdd, #f9f2e7) !important;
    background-size: 100% var(--m256-b), 100% calc(var(--m256-b) - 12px) !important;
  }
  html body section#route#route::after {
    content: "";
    position: absolute;
    inset: calc(100% - 1px) 0 auto;
    height: 26px;
    background: linear-gradient(#f9f2e7, #fcf6ee);
    pointer-events: none;
  }
  html body section#impressions#impressions {
    background-image: linear-gradient(#fcf6ee, #fffdf8) !important;
    background-size: 100% calc(var(--m256-b) - 12px) !important;
  }
}

@media (max-width: 699.98px) {
  html body :is(section#how#how, section#niches#niches)::before {
    content: "";
    position: absolute;
    inset: -2px 0 auto;
    height: 4px;
    background: var(--m258-mid);
    pointer-events: none;
  }
  html body section#how#how { --m258-mid: #0f2211; }
  html body section#niches#niches { --m258-mid: #faf4eb; }
}

/* Keep the bubble on the same side of the guide at poses 4 and 10,
   with smaller offsets from the preceding pose. */
@media (min-width: 1200px) and (max-width: 1799.98px) {
  html:not(.m247-flow) body #founders .r73-ck__guide:has(.girl__pose[data-from="4"].is-on) .p7-say {
    transform: translateX(30px);
  }
  html:not(.m247-flow) body #founders .r73-ck__guide:has(.girl__pose[data-from="10"].is-on) .p7-say {
    transform: translate(calc(36px + var(--h1-fp10, 34px)), -48px);
  }
}
