/*
 * Flare for every marketing page (linked from layouts/marketing-shell).
 * Soft aurora washes, a slow gradient on headline words, a sheen on the main
 * buttons, drawn-line section dividers and a reversible marquee. Washes move by
 * transform only; the headline gradient shifts its background slowly. Light
 * mode has its own, deeper colours. Everything stops under reduced motion.
 */
:root,html[data-theme="dark"]{--fx-a:#8B6DE8;--fx-b:#ff85e3;--fx-d:#4cc9f0;--fx-wash:1}
html[data-theme="light"]{--fx-a:#6744DA;--fx-b:#d6338f;--fx-d:#0e9fbf;--fx-wash:.8}

/* Aurora wash behind a section: add .fx-aurora to it. Two slow colour fields, behind the content. */
.fx-aurora,.pk-hero,.pr-hero{position:relative;isolation:isolate;overflow-x:clip}
.fx-aurora::before,.fx-aurora::after,.pk-hero::before,.pk-hero::after,.pr-hero::before,.pr-hero::after{content:"";position:absolute;z-index:-1;pointer-events:none;border-radius:50%;aspect-ratio:1;opacity:var(--fx-wash)}
.fx-aurora::before,.pk-hero::before,.pr-hero::before{width:min(820px,90vw);left:-14%;top:-22%;background:radial-gradient(closest-side,color-mix(in srgb,var(--fx-a) 24%,transparent),transparent 72%);animation:fxAurA 28s ease-in-out infinite alternate}
.fx-aurora::after,.pk-hero::after,.pr-hero::after{width:min(680px,80vw);right:-12%;top:18%;background:radial-gradient(closest-side,color-mix(in srgb,var(--fx-b) 16%,transparent),transparent 72%);animation:fxAurB 34s ease-in-out infinite alternate}
.fx-aurora-b::before{top:auto;bottom:-30%;left:auto;right:-10%}
.fx-aurora-b::after{right:auto;left:-10%;top:-10%}
.pk-hero::before,.pr-hero::before{left:50%;top:-40%;margin-left:-45%}
@keyframes fxAurA{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(7%,9%,0) scale(1.14)}}
@keyframes fxAurB{from{transform:translate3d(0,0,0) scale(1.06)}to{transform:translate3d(-9%,-6%,0) scale(.92)}}

/* Headline words in the brand gradient, drifting slowly */
.grad-text,.hm .h2 .grad,.hm .hm-h2 .grad,.hm .hm-band-h .grad,.pk h1 .grad{background-image:linear-gradient(90deg,#ff85e3 0%,#b3a0f7 25%,#8B6DE8 50%,#b3a0f7 75%,#ff85e3 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:fxShift 9s ease-in-out infinite alternate}
html[data-theme="light"] .grad-text,html[data-theme="light"] .hm .h2 .grad,html[data-theme="light"] .hm .hm-h2 .grad,html[data-theme="light"] .hm .hm-band-h .grad,html[data-theme="light"] .pk h1 .grad{background-image:linear-gradient(90deg,#d6338f 0%,#7c5ce6 25%,#4b2bbf 50%,#7c5ce6 75%,#d6338f 100%)}
@keyframes fxShift{from{background-position:0% 50%}to{background-position:100% 50%}}

/* Page headers: the big headline gets a soft underglow */
.pk-hero h1,.pr-hero h1{text-shadow:0 18px 60px color-mix(in srgb,var(--fx-a) 28%,transparent)}
.pk-hero .pk-kicker,.pr-kicker{position:relative}

/* A satisfying hover on the main action: a light sheen sweeps across */
.btn-pop,.claim-form .cf-btn,.hm-search button[type=submit],.pr .btn-pop{position:relative;overflow:hidden;isolation:isolate}
.btn-pop::after,.claim-form .cf-btn::after,.hm-search button[type=submit]::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-130%)}
.btn-pop:hover::after,.claim-form .cf-btn:hover::after,.hm-search button[type=submit]:hover::after,.btn-pop:focus-visible::after,.claim-form .cf-btn:focus-visible::after{transform:translateX(130%);transition:transform .75s cubic-bezier(.2,.7,.3,1)}

/* A drawn-line divider with a travelling glint. <div class="fx-rule" aria-hidden="true"></div> */
.fx-rule{position:relative;height:1px;width:min(1100px,calc(100% - 32px));margin:0 auto;overflow:hidden;background:linear-gradient(90deg,transparent,var(--line-2) 20%,var(--line-2) 80%,transparent)}
.fx-rule::after{content:"";position:absolute;top:0;left:0;height:1px;width:28%;background:linear-gradient(90deg,transparent,var(--fx-a),var(--fx-b),transparent);transform:translateX(-100%);animation:fxGlint 6s cubic-bezier(.45,0,.2,1) infinite}
@keyframes fxGlint{0%{transform:translateX(-100%)}70%,100%{transform:translateX(360%)}}

/* Section kickers on the home page carry a small gradient dash */
.hm .section-label{position:relative}

@media (prefers-reduced-motion:reduce){
  .fx-aurora::before,.fx-aurora::after,.pk-hero::before,.pk-hero::after,.pr-hero::before,.pr-hero::after,.fx-rule::after,.grad-text,.hm .h2 .grad,.hm .hm-h2 .grad,.hm .hm-band-h .grad,.pk h1 .grad{animation:none !important}
  .btn-pop::after,.claim-form .cf-btn::after,.hm-search button[type=submit]::after{display:none}
}
