/* m261 (BP-281, BP-282, 27 Nov 2026): home page section 1 and the header. See patches/m261.py. Undo: build without m261.
   Book a call stays the solid lime main button. Claim a free call + audit becomes an outline button: same size and
   shape as Book a call, a 2 px brand green edge, dark green words, a see-through light ground, a lime tint on hover
   and a dark green focus ring (lime on the dark header). Only colours, edge and corner change: no size, gap or word. */
html body { --m261-edge: var(--bp-green, #5c7900); --m261-edge-hover: var(--bp-green-700, #445a00); --m261-ink: var(--bp-green-950, #1c2800); --m261-tint: rgb(194 245 66 / 0.32); --m261-ring: var(--bp-green-950, #1c2800); }

/* hero */
html body #top .hero__actions > .btn-ghost.c1-claim {
  color: var(--m261-ink);
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 0 0 2px var(--m261-edge), 0 10px 24px -16px rgb(40 50 10 / 0.35);
  text-decoration: none;
}
html body #top .hero__actions > .btn-ghost.c1-claim:hover {
  background: var(--m261-tint);
  box-shadow: inset 0 0 0 2px var(--m261-edge-hover), 0 12px 26px -16px rgb(40 50 10 / 0.4);
}
@media (max-width: 959px) {
  /* Book a call keeps the button corner (--r-btn) on phones; the claim pill takes the same corner */
  html body #top .hero__actions > .btn-ghost.c1-claim { border-radius: var(--r-btn, 14px); }
}

/* header, laptops (the claim button shows from 1400 px) */
html body .nav .nav__right > .nav__book.c1-nav-claim {
  color: var(--m261-ink);
  background: rgb(255 255 255 / 0.72);
  box-shadow: inset 0 0 0 2px var(--m261-edge), 0 10px 30px -14px rgb(40 50 10 / 0.35);
}
html body .nav .nav__right > .nav__book.c1-nav-claim:hover {
  background: rgb(240 252 205 / 0.92);
  box-shadow: inset 0 0 0 2px var(--m261-edge-hover), 0 10px 30px -14px rgb(40 50 10 / 0.4);
}
html body .nav.is-night .nav__right > .nav__book.c1-nav-claim {
  color: #f4f7ea;
  background: rgb(12 22 4 / 0.55);
  box-shadow: inset 0 0 0 2px var(--bp-lime, #c2f542);
}
html body .nav.is-night .nav__right > .nav__book.c1-nav-claim:hover { background: rgb(194 245 66 / 0.18); }

/* phone menu (under 1100 px) */
html body .r72-drop__panel .c1-menu-ctas > a.btn-ghost.c1-claim {
  color: var(--m261-ink);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--m261-edge);
}
html body .r72-drop__panel .c1-menu-ctas > a.btn-ghost.c1-claim:hover { background: var(--m261-tint); box-shadow: inset 0 0 0 2px var(--m261-edge-hover); }

/* keyboard focus on both buttons, in all three places */
html body :is(#top .hero__actions > a, .nav .nav__right > a, .r72-drop__panel .c1-menu-ctas > a):focus-visible {
  outline: 3px solid var(--m261-ring);
  outline-offset: 3px;
}
html body #top .hero__actions > a:focus-visible, html body .r72-drop__panel .c1-menu-ctas > a:focus-visible { border-radius: var(--r-btn, 14px); }
html body .nav .nav__right > a:focus-visible { border-radius: 999px; }
html body .nav.is-night .nav__right > a:focus-visible { outline-color: var(--bp-lime, #c2f542); }

/* BP-281: 1.5 x the section space (m256's E) under the hero buttons, and the hero ground fades into the numbers strip.
   Laptops: the hero's last band (m258: see-through to the strip's first colour) grows to the whole space under the
   buttons, so the buttons' glow and the guide's shadow end inside the hero and the colour runs on into #proof.
   The added space is rounded to 5 page px (6 screen px at the 1.2 page zoom), so every section below moves by whole
   screen pixels and no 1 px seam shows between two blended sections.
   Tall screens (1260 px and up, e.g. 1600 x 1560) already keep 145 px or more under the buttons (the guide and the
   phone reach lower there), so they keep round 12's space. */
@media (min-width: 960px) and (max-height: 1259.98px) {
  html body section#top#top {
    --m261-pb: calc(8px / var(--bpz, 1) + round(nearest, var(--m256-e) - 8px / var(--bpz, 1), 5px));
    padding-bottom: var(--m261-pb) !important;
    background-size: 100% var(--m261-pb);
  }
}
/* Phones: the numbers row sits inside the hero. E above it (rounded to whole px), no top or bottom line, the paper
   colour fades in over that E and fades out over the row's own bottom padding. */
@media (max-width: 767.98px) {
  html body section#top#top .m221-row {
    position: relative;
    margin-top: calc(28px + round(nearest, var(--m256-e) - 28px, 1px));
    border-top-color: transparent;
    border-bottom-color: transparent;
    background: linear-gradient(var(--ds-bg-paper, #fffdf8) calc(100% - 24px), rgb(255 253 248 / 0));
  }
  html body section#top#top .m221-row::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: calc(28px + round(nearest, var(--m256-e) - 28px, 1px));
    background: linear-gradient(rgb(255 253 248 / 0), var(--ds-bg-paper, #fffdf8));
    pointer-events: none;
  }
}
