/* v6.4.5: cheaper paint during scroll + Ivy footer should-fix.
   Decorative glow layers keep their hues but lose masks, blur, and
   giant composited children that were dominating Layerize/Commit/Paint. */

/* At 320, allow Product labels to wrap so 125% text zoom does not clip.
   Keep a 48px minimum tap row. */
@media (max-width: 320px) {
  footer.site-foot .sf-product a {
    white-space: normal;
    min-height: 48px;
  }
}

/* ---- Drop leftover blur / backdrop-filter (already unused visually on
   most nodes because of v6-life overrides; kill any that still compute). */
.hero::after,
.hero::before,
.rh-mesh i,
.cta-aurora,
.cta-aurora i,
.cta-steps > span,
.cta-steps span,
.mp-bg i {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* CTA step chips: no backdrop blur. Slightly more opaque fill so they
   still read as frosted pills on the dark band. */
.cta-steps > span,
.cta-steps span {
  background: rgba(255,255,255,0.16) !important;
}

/* No fixed-attachment backgrounds. */
.rh, .hero, .clients, .why-band, .cta-band, .faq, .closing-inner,
.m2-glow, .rh-mesh, .cta-aurora {
  background-attachment: scroll !important;
}

/* ---- Masks on full-width glow / grid layers force expensive raster
   during scroll. Drop them. Fade the hero glow with a plain overlay. */
.rh-mesh,
.rh > .m2-glow,
.rh-mesh:after,
.clients::before,
.why-band::before,
.cta-band::before,
.closing-inner::before {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Cheap bottom fade instead of masking the 1440×740 glow layer. */
.rh-mesh::after,
.rh > .m2-glow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
html.dark .rh-mesh::after,
html.dark .rh > .m2-glow::after {
  background: linear-gradient(180deg, transparent, #0f1016);
}

/* contain:paint on full-bleed glow wrappers promoted huge layers (1440×740+).
   Let them paint into the section instead. */
.rh,
.rh-mesh,
.cta-band,
.cta-aurora,
.how,
.m2-glow,
html.m2 .m2-bgsec,
#plans .mp-glow {
  contain: none !important;
}

/* Shrink the 46vmax glow orbs so they are not page-sized composited layers.
   Same hues and soft edge (the radial-gradient already fades to transparent). */
html.m2 .m2-glow i,
.m2-glow i {
  width: 22vmax !important;
  height: 22vmax !important;
  animation: none !important;
}

/* Dotted section grids: no mask, slightly lower opacity so the unmasked
   edge is not a hard cut. */
.clients::before { opacity: 0.7; }
.why-band::before { opacity: 0.7; }

/* Do not invent will-change. Keep the one running desktop marquee on the
   compositor only while it is actually animating and on screen. */
.client-track:not(.is-offscreen) {
  /* transform is already the animation property; no will-change overuse */
}

/* Dark hero photo: mix-blend-mode:lighten is a large blend layer.
   Keep the look on the image itself without a blend when possible —
   left as a targeted override only if still needed; see below.
   (Applied in a later rule only for scroll? No — would flash. Leave image blend.) */
