/* m256 (BP-273 r117 round 12): white space at every colour edge and a soft blend between section colours. Home only.
   See patches/m256.py. Undo: build without m256.
   Selectors name each section's id twice so they win over the older modules' own !important rules.
   t = the page system's section space in page px (--ds-space-section is screen px; the page is zoomed by --bpz).
   E = 1.5 t, the least space between a colour edge and the content on either side of it.
   B = 1.25 t, half the blend band (one half in each of the two sections). */
html body { --m256-t: calc(var(--ds-space-section) / var(--bpz, 1)); --m256-e: calc(var(--m256-t) * 1.5); --m256-b: calc(var(--m256-t) * 1.25); }

/* 1 white space. Sections with the usual section padding: E at their colour edges. */
html body :is(section#proof#proof, section#pains#pains, section#cases#cases, section#niches#niches, section#faq#faq) { padding-top: var(--m256-e) !important; padding-bottom: var(--m256-e) !important; }
html body section#gift#gift { padding-bottom: var(--m256-e) !important; }
/* Get seen: its first content (the orbit ring) sits 16 to 26 px into its padding, so 1.9 t gives about E */
html body section#book#book { padding-top: calc(var(--m256-t) * 1.9) !important; }
/* sections that had less than E at one edge: the missing part (measured round 11 gap plus this = about E) */
html body section#impressions#impressions { padding-top: calc(var(--m256-t) * 0.85) !important; }
html body section#sponsors#sponsors { padding-bottom: var(--m256-t) !important; }
@media (min-width: 700px) {
  html:not(.m247-flow) body section#how#how { padding-bottom: calc(var(--m256-t) * 0.35) !important; }
  html:not(.m247-flow) body section#founders#founders { padding-bottom: var(--m256-e) !important; }
  html.m247-flow body section#time#time { padding-top: calc(var(--m256-t) * 0.6) !important; padding-bottom: calc(var(--m256-t) * 0.5) !important; }
  html.m247-flow body section#route#route { padding-top: var(--m256-e) !important; padding-bottom: var(--m256-e) !important; }
  html.m247-flow body section#research#research { padding-bottom: calc(var(--m256-t) * 0.5) !important; }
}
@media (max-width: 699.98px) {
  html body section#services#services { padding-top: calc(var(--m256-t) * 1.2) !important; padding-bottom: calc(var(--m256-t) * 1.3) !important; }
  html body section#route#route { padding-top: var(--m256-e) !important; }
  html body section#research#research { padding-top: calc(var(--m256-t) * 0.7) !important; }
  html body section#how#how { padding-top: calc(var(--m256-t) * 0.55) !important; padding-bottom: calc(var(--m256-t) * 0.85) !important; }
  html body section#founders#founders { padding-top: calc(var(--m256-t) * 1.2) !important; padding-bottom: calc(var(--m256-t) * 1.1) !important; }
}

/* 2 the blend: background layers only (behind all content), the section's own colour stays its background colour.
   Each colour edge: the upper section's last B goes from its colour to the mix of both, the lower section's first B
   from that mix to its colour. Mixes (half and half): paper/cream #faf4eb, paper/lime #f8fbe7, lime/night #80866f,
   night/green #0f2211, green/cream #838e7c, cream/finale #888970. */
html body :is(section#proof#proof, section#pains#pains, section#cases#cases, section#time#time, section#services#services, section#route#route, section#impressions#impressions, section#sponsors#sponsors, section#gift#gift, section#research#research, section#how#how, section#founders#founders, section#niches#niches, section#faq#faq) {
  background-repeat: no-repeat !important;
  background-size: 100% var(--m256-b), 100% var(--m256-b) !important;
  background-position: 0 0, 0 100% !important;
}
html body section#proof#proof { background-image: linear-gradient(rgb(255 253 248 / 0), #fffdf8), linear-gradient(#fffdf8, #faf4eb) !important; background-size: 100% calc(var(--m256-b) * 2), 100% var(--m256-b) !important; }
html body section#pains#pains { background-image: linear-gradient(#faf4eb, #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important; }
html body section#cases#cases { background-image: linear-gradient(#faf4eb, #fffdf8), linear-gradient(#fffdf8, #faf4eb) !important; }
html body section#time#time { background-image: linear-gradient(#faf4eb, #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important; }
html body section#services#services { background-image: linear-gradient(#faf4eb, #fffdf8), linear-gradient(#fffdf8, #faf4eb) !important; }
html body section#route#route { background-image: linear-gradient(#faf4eb, #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important; }
html body section#impressions#impressions { background-image: linear-gradient(#faf4eb, #fffdf8) !important; background-size: 100% var(--m256-b) !important; background-position: 0 0 !important; }
html body section#sponsors#sponsors { background-image: linear-gradient(#fffdf8, #f8fbe7) !important; background-size: 100% var(--m256-b) !important; background-position: 0 100% !important; }
html body section#gift#gift { background-image: linear-gradient(#f8fbe7, #f1f9d6), linear-gradient(#f1f9d6, #80866f) !important; }
html body section#research#research { background-image: linear-gradient(#80866f, #0e1308), linear-gradient(#0e1308, #0f2211) !important; }
html body section#how#how { background-image: linear-gradient(#0f2211, #10301a), linear-gradient(#10301a, #838e7c) !important; }
html body section#founders#founders { background-image: linear-gradient(#838e7c, #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important; }
html body section#niches#niches { background-image: linear-gradient(#faf4eb, #fffdf8), linear-gradient(#fffdf8, #faf4eb) !important; }
html body section#faq#faq { background-image: linear-gradient(#faf4eb, #f5ebdd), linear-gradient(#f5ebdd, #888970) !important; }
/* phones and small tablets (under 768 px): the proof strip is hidden (m221), so What founders tell us comes right after
   the hero: its band starts from the hero's own ground (see-through to it) and is the whole band tall */
@media (max-width: 767.98px) {
  html body section#pains#pains { background-image: linear-gradient(rgb(245 235 221 / 0), #f5ebdd), linear-gradient(#f5ebdd, #faf4eb) !important; background-size: 100% calc(var(--m256-b) * 2), 100% var(--m256-b) !important; }
}
/* You do 3 things: its pinned screen had its own copy of the section colour, which hid the section's bands */
html body section#how#how .p7__pin { background-color: transparent !important; }
/* Get seen (booking) keeps its own gradient: m256.js puts the band in front of it (the gradient differs by width) */
/* The 3 rounded corners drawn over a colour edge (m169: under the free call, above Your next client checked, under
   Good to know) were the old hard edge's shape; on a blend they show as dark or cream corners, so they go. */
html body #gift#gift.gift.gift::after, html body #founders#founders.p7::before, html body #faq#faq.info--faq::after { display: none !important; }
/* Tall screens (m247-flow: these 3 do not pin): k1's shrink-to-fit is for a pinned screen and runs only on a stage box
   that is position: relative. Sticky with no offset lays out exactly like relative, so k1 leaves these alone and m247
   measures them at full size (m256.js then sets its space above and under to E). */
html.m247-flow body :is(section#services#services, section#how#how, section#founders#founders) .p7__pin > :first-child { position: sticky !important; }
