/* Exelity homepage motion layer. Short, one-time animations. */

/* Hero: headline words rise in, then the rest follows */
.xh__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.xh__title .w__i { display: inline-block; transform: translateY(110%); animation: mWordUp .9s cubic-bezier(.2,.85,.25,1) forwards; animation-delay: calc(var(--xi-delay, 0s) + var(--wi, 0) * 70ms); }
.xh__title .money .w__i, .xh__title .w__i.money { background: linear-gradient(100deg, #6ee7b7 0%, #10b981 55%, #059669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes mWordUp { to { transform: none; } }

html.xm .xh .xh__pill { animation: mFade .7s ease both; animation-delay: var(--xi-delay, 0s); }
html.xm .xh .xh__lead { animation: mFade .8s ease both; animation-delay: calc(var(--xi-delay, 0s) + .45s); }
html.xm .xh .btn-row { animation: mFade .8s ease both; animation-delay: calc(var(--xi-delay, 0s) + .6s); }
html.xm .xh .xh__pick { animation: mFade .8s ease both; animation-delay: calc(var(--xi-delay, 0s) + .75s); }
html.xm .xh .xh__trust { animation: mFade .8s ease both; animation-delay: calc(var(--xi-delay, 0s) + .9s); }
html.xm .xh .xh__pick-list a { animation: mPop .5s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--xi-delay, 0s) + .8s + var(--pi, 0) * 50ms); }
@keyframes mFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Hero photo settles in with a slow zoom */
html.xm .xh__bg picture img { animation: mZoom 2.8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--xi-delay, 0s) - .4s); }
@keyframes mZoom { from { transform: scale(1.14); filter: brightness(.6); } to { transform: none; filter: none; } }

/* Shine sweep across the main button once */
html.xm .xh .btn--primary { position: relative; overflow: hidden; }
html.xm .xh .btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: mShine 1.1s ease both; animation-delay: calc(var(--xi-delay, 0s) + 1.4s); }
@keyframes mShine { to { left: 130%; } }

/* Scroll reveals */
html.xm [data-m] { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--md, 0ms); }
html.xm [data-m="up"] { transform: translateY(34px); }
html.xm [data-m="left"] { transform: translateX(-40px); }
html.xm [data-m="right"] { transform: translateX(40px); }
html.xm [data-m="scale"] { transform: scale(.94); }
html.xm [data-m].m-in { opacity: 1; transform: none; }

/* Pain cards: red line draws across */
html.xm .leak__card::after { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.8,.2,1) .35s; }
html.xm .leak__card.m-in::after { transform: scaleX(1); }
/* Calculator: soft green pulse when it lands */
html.xm .calc__box.m-in { animation: mGlow 1.6s ease .5s 1; }
@keyframes mGlow { 0%, 100% { box-shadow: 0 30px 80px -30px rgba(16,185,129,.35), inset 0 1px 0 rgba(255,255,255,.05); } 50% { box-shadow: 0 30px 110px -20px rgba(16,185,129,.7), inset 0 1px 0 rgba(255,255,255,.05); } }
.calc__result strong { transition: color .3s ease; }
/* Legit icons pop */
html.xm .legit__item .legit__icon { transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.3,1.4), opacity .4s ease; transition-delay: calc(var(--md, 0ms) + 200ms); }
html.xm .legit__item.m-in .legit__icon { transform: none; opacity: 1; }

/* Make the theme's built-in fade-ups play for everyone */
.fade-up { animation: fadeUp .7s ease both; }
.fade-up-2 { animation: fadeUp .7s ease .12s both; }
.fade-up-3 { animation: fadeUp .7s ease .24s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
