/* HOME conversion buttons use the approved service CTA surface and timing.
   Keep the stair's compact button heights: each of its first six stops is fixed. */
body[data-step] :is(#track .cta > .btn, #sus .btn.send, #sus .sp-go, .call-bar .cb-go, .pu-footer .pu-footer-project) {
  --cta-fill: linear-gradient(115deg, #540d6e, #663aaf 60%, #7452e8);
  --cta-fill-hover: linear-gradient(115deg, #4e146a, #65369f 60%, #6b42c3);
  --cta-glow: 124 92 255; --cta-edge: 177 149 255;
  position: relative; isolation: isolate; overflow: visible;
  border-radius: var(--cta-radius, 0 34px 34px 28px); background: var(--cta-fill); color: #fff;
  box-shadow: 0 7px 22px -10px rgb(84 13 110 / .55), inset 0 1px 0 rgb(217 205 242 / .28);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
body[data-step] :is(#track .cta > .btn, #sus .btn.send, #sus .sp-go, .call-bar .cb-go, .pu-footer .pu-footer-project):is(:hover, :focus-visible) {
  background: var(--cta-fill-hover); color: #fff;
  box-shadow: 0 15px 34px -12px rgb(124 92 255 / .72), inset 0 1px 0 rgb(255 226 206 / .4);
}
#track .cta > .btn { max-width: 100%; justify-content: center; text-align: center; line-height: 1.4; }
#track .cta > .btn svg, #sus .btn.send svg, .call-bar .cb-go svg { flex: none; }
/* Plan handoff copy can wrap; it still leads to the existing form. */
#sus .sp-go { display: inline-block; max-width: 100%; min-height: 44px; padding: 12px 20px; line-height: 1.5; }
#sus .sp-go b { color: inherit; border: 0; }
#sus .sp-go svg { stroke: currentColor; }
/* The footer arrow and fixed mobile bar retain their compact footprints. */
body[data-step] .pu-footer .pu-footer-project { --cta-radius: 0 28px 28px 22px; }
body[data-step] .call-bar .cb-go { --cta-radius: 0 27px 27px 23px; }

/* Header CTAs share the approved violet treatment. */
body[data-step] .pu-navigation .pu-home-cta-effect {
  --cta-glow: 124 92 255; --cta-edge: 177 149 255;
}
body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect {
  --cta-x: 50%; --cta-y: 50%; position: relative; isolation: isolate; overflow: visible;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* Negative layers preserve the direct text node that the fifth step personalizes. */
body[data-step] .pu-home-cta-effect::before {
  content: ""; position: absolute; z-index: -2; inset: -2px;
  border: 1px solid rgb(var(--cta-edge) / .5); border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 34px 8px rgb(var(--cta-glow) / .52), 0 0 58px 2px rgb(var(--cta-edge) / .18);
  opacity: .2; animation: pu-home-cta-pulse 4.8s ease-in-out .22s infinite paused;
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease), opacity .4s var(--ease);
}
body[data-step] .pu-home-cta-reflex {
  position: absolute; z-index: -1; inset: 1px; border-radius: inherit; overflow: hidden; pointer-events: none;
  opacity: 0; background: radial-gradient(150px circle at var(--cta-x) var(--cta-y), rgb(255 205 173 / .14), rgb(196 159 255 / .08) 40%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgb(231 207 255 / .28); transition: opacity .45s var(--ease);
  animation: pu-home-cta-attract 4.8s ease-in-out .22s infinite paused;
}
body[data-step] .pu-home-cta-reflex::before {
  content: ""; position: absolute; inset-block: -70%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 239 226 / .07) 50%, transparent);
  transform: translateX(-150%) skewX(-22deg);
}
body[data-step] .pu-home-cta-active::before,
body[data-step] .pu-home-cta-active .pu-home-cta-reflex { animation-play-state: running; }
body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect.pu-home-cta-active:is(.pu-home-cta-hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px -12px rgb(var(--cta-glow) / .72), 0 5px 20px -8px rgb(255 132 81 / .24), inset 0 1px 0 rgb(255 226 206 / .4);
}
body[data-step] .pu-home-cta-active:is(.pu-home-cta-hover, :focus-visible)::before {
  animation: none; opacity: 1; border-color: rgb(var(--cta-edge) / .75);
  box-shadow: 0 0 20px 3px rgb(var(--cta-glow) / .44), 0 0 42px -4px rgb(255 132 81 / .22);
}
body[data-step] .pu-home-cta-active:is(.pu-home-cta-hover, :focus-visible, .pu-home-cta-pressed, .pu-home-cta-flare) .pu-home-cta-reflex { animation: none; opacity: 1; }
body[data-step] .pu-home-cta-active:is(.pu-home-cta-hover, :focus-visible) .pu-home-cta-reflex::before { animation: pu-home-cta-sweep 1.2s var(--ease) both; }
body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect.pu-home-cta-active:is(.pu-home-cta-pressed, :active) {
  transform: translateY(1px) scale(.975); transition-duration: .08s;
  box-shadow: 0 3px 13px -4px rgb(var(--cta-glow) / .6), inset 0 2px 8px rgb(24 8 45 / .3);
}
body[data-step] .pu-home-cta-effect::after {
  content: ""; position: absolute; z-index: 1; inset: -2px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgb(255 214 184 / .75); box-shadow: 0 0 16px 2px rgb(var(--cta-edge) / .5); opacity: 0;
}
body[data-step] .pu-home-cta-active.pu-home-cta-flare::after { animation: pu-home-cta-wave .42s cubic-bezier(.18, .75, .3, 1) both; }
body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect:focus-visible { outline: 2px solid #bba0ff; outline-offset: 5px; }
body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect:not(.pu-home-cta-active) { transform: none; }
body[data-step] .pu-home-cta-effect:not(.pu-home-cta-active)::before { animation: none; opacity: 0; }
body[data-step] .pu-home-cta-effect:not(.pu-home-cta-active)::after,
body[data-step] .pu-home-cta-effect:not(.pu-home-cta-active) .pu-home-cta-reflex { display: none; }
body[data-step] #sus .btn.send:disabled { transform: none; opacity: .75; cursor: progress; background: var(--cta-fill); box-shadow: 0 7px 22px -10px rgb(84 13 110 / .55), inset 0 1px 0 rgb(217 205 242 / .28); }

@keyframes pu-home-cta-pulse { 0%, 4%, 16%, 42%, 100% { opacity: .2; } 10% { opacity: .8; } 26% { opacity: 1; } }
@keyframes pu-home-cta-attract { 0%, 4%, 16%, 42%, 100% { opacity: 0; } 10% { opacity: .4; } 26% { opacity: .5; } }
@keyframes pu-home-cta-sweep { to { transform: translateX(410%) skewX(-22deg); } }
@keyframes pu-home-cta-wave { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.075, 1.38); } }
@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  body[data-step] #track .cta > .btn { --cta-radius: 0 25px 25px 22px; }
}
@media (max-width: 599px) {
  body[data-step] .pu-footer .pu-footer-project { --cta-radius: 0 21px 21px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect,
  body[data-step] :is(#track, .call-bar, .pu-navigation, .pu-footer) .pu-home-cta-effect.pu-home-cta-active:is(.pu-home-cta-hover, :focus-visible, .pu-home-cta-pressed, :active) { transform: none; transition: none; }
  body[data-step] .pu-home-cta-effect::before,
  body[data-step] .pu-home-cta-effect::after,
  body[data-step] .pu-home-cta-reflex { display: none; animation: none; }
}
@media (forced-colors: active) {
  body[data-step] :is(#track .cta > .btn, #sus .btn.send, #sus .sp-go, .call-bar .cb-go, .pu-navigation .pu-header-cta, .pu-navigation .pu-drawer-cta, .pu-footer .pu-footer-project):is(:any-link, button) {
    border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; box-shadow: none;
  }
  body[data-step] .pu-home-cta-effect::before, body[data-step] .pu-home-cta-effect::after, body[data-step] .pu-home-cta-reflex { display: none; }
}
