/* =====================================================================
   HG motion layer for the rebuilt pages (shared) - styles
   Everything here only applies while motion is on (html.hgm, set by the
   head flag script), so ?motion=0, reduced motion and the Ploy editor
   preview render the exact static page. Hover states are additions.
   ===================================================================== */

/* ---- Smooth scroll (Lenis) base ---- */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* ---- Hide the load-intro elements until hg-motion-pages.js starts (max 2.5 s, then the flag drops) ---- */
html.hgm:not(.hgm-ready) .hgsupp .sg-hero_eyebrow,
html.hgm:not(.hgm-ready) .hgsupp .sg-hero_heading,
html.hgm:not(.hgm-ready) .hgsupp .sg-hero_promo,
html.hgm:not(.hgm-ready) .hgsupp .sg-hero_text,
html.hgm:not(.hgm-ready) .hgsupp .sg-hero_image,
html.hgm:not(.hgm-ready) .hgsupp .fsw-info_brand,
html.hgm:not(.hgm-ready) .hgsupp .fsw-info_heading,
html.hgm:not(.hgm-ready) .hgsupp .fsw-info_subtitle,
html.hgm:not(.hgm-ready) .hgwf-28u .confirmation_heading,
html.hgm:not(.hgm-ready) .hgwf-28u .confirmation_subheading,
html.hgm:not(.hgm-ready) .hgwf-28d .intro_heading,
html.hgm:not(.hgm-ready) .hgwf-28d .intro_paragraph,
html.hgm:not(.hgm-ready) .hgwf-28f .mission_block > *,
html.hgm:not(.hgm-ready) .hgwf-28f .hero_header,
html.hgm:not(.hgm-ready) .hgwf-28f .hero_sub-header,
html.hgm:not(.hgm-ready) .hgwf-28f .hero_block > .hero_sub-header + div,
html.hgm:not(.hgm-ready) .hgwf-28f .hg-player-section,
html.hgm:not(.hgm-ready) .hgwf-cc .cc-hero_h1,
html.hgm:not(.hgm-ready) .hgwf-cc .cc-hero_video,
html.hgm:not(.hgm-ready) .hgwf-cc .cc-hero_intro-p,
html.hgm:not(.hgm-ready) .hgwf-cc .cc-hero_intro-p-last{visibility:hidden}

/* ---- Supplement Paths ---- */
html.hgm .hgsupp .sg-pack_media{clip-path:inset(0)}
html.hgm .hgsupp .sg-pack_card{transition:translate .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease}
html.hgm .hgsupp .sg-pack_card:hover{translate:0 -4px;box-shadow:0 18px 40px -22px rgba(0,0,0,.28)}
html.hgm .hgsupp .sg-pack_media img{transition:scale .9s cubic-bezier(.2,.8,.2,1)}
html.hgm .hgsupp .sg-pack_card:hover .sg-pack_media img{scale:1.04}
html.hgm .hgsupp .sg-pack_cta,
html.hgm .hgsupp .sg-bonus_cta{transition:translate .35s cubic-bezier(.2,.8,.2,1),scale .2s ease,box-shadow .35s ease}
html.hgm .hgsupp .sg-pack_cta:hover,
html.hgm .hgsupp .sg-bonus_cta:hover{translate:0 -2px;box-shadow:0 12px 28px -12px rgba(46,160,90,.75)}
html.hgm .hgsupp .sg-pack_cta:active,
html.hgm .hgsupp .sg-bonus_cta:active{translate:0 -1px;scale:.985}

/* ---- Offer pages (tech's checkout button keeps its own hover; not touched here) ---- */
html.hgm .hgsupp .fsw-gallery_thumb{transition:translate .3s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
html.hgm .hgsupp .fsw-gallery_thumb:not(.is-active):hover{translate:0 -2px}
html.hgm .hgsupp .fsw-gallery_thumb img{transition:scale .6s cubic-bezier(.2,.8,.2,1)}
html.hgm .hgsupp .fsw-gallery_thumb:hover img{scale:1.06}
html.hgm .hgsupp .fsw-tabs_tab{transition:background-color .25s ease,color .25s ease,box-shadow .25s ease}
html.hgm .hgsupp .fsw-label_button{transition:translate .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease,border-color .3s ease}
html.hgm .hgsupp .fsw-label_button:hover{translate:0 -2px;border-color:#a1a1aa;box-shadow:0 10px 22px -14px rgba(0,0,0,.35)}
html.hgm .hgsupp .fsw-back_link{transition:translate .3s cubic-bezier(.2,.8,.2,1),color .2s ease}
html.hgm .hgsupp .fsw-back_link:hover{translate:-3px 0}

/* ---- 28-Day upsell / downsell (runtime-injected .hgf-* / .hgp-* untouched) ---- */
html.hgm .hgwf-28u a.button,
html.hgm .hgwf-28d .button,
html.hgm .hgwf-28u .closing_cta{transition:translate .35s cubic-bezier(.2,.8,.2,1),scale .2s ease,box-shadow .35s ease}
html.hgm .hgwf-28u a.button:hover,
html.hgm .hgwf-28d .button:hover,
html.hgm .hgwf-28u .closing_cta:hover{translate:0 -2px;box-shadow:0 14px 30px -12px rgba(101,255,153,.55)}
html.hgm .hgwf-28u a.button:active,
html.hgm .hgwf-28d .button:active,
html.hgm .hgwf-28u .closing_cta:active{translate:0 -1px;scale:.985}

/* ---- 28-Day funnel: same hover set as /core-reset-v2 (cart button/drawer .hgfc-* untouched) ---- */
html.hgm .hgwf-28f a.button_green,
html.hgm .hgwf-28f a.payment_cta{transition:translate .35s cubic-bezier(.2,.8,.2,1),scale .2s ease,box-shadow .35s ease}
html.hgm .hgwf-28f a.button_green:hover,
html.hgm .hgwf-28f a.payment_cta:hover{translate:0 -3px;box-shadow:0 14px 34px -10px rgba(101,255,153,.7)}
html.hgm .hgwf-28f a.button_green:active,
html.hgm .hgwf-28f a.payment_cta:active{translate:0 -1px;scale:.985}
html.hgm .hgwf-28f .grid-testimonials-2 .div-block-33{transition:translate .45s cubic-bezier(.2,.8,.2,1),filter .45s ease}
html.hgm .hgwf-28f .grid-testimonials-2 .div-block-33:hover{translate:0 -6px;filter:drop-shadow(0 14px 26px rgba(0,0,0,.14))}
html.hgm .hgwf-28f .science_container{transition:translate .45s cubic-bezier(.2,.8,.2,1),border-color .45s ease}
html.hgm .hgwf-28f .science_container:hover{translate:0 -4px;border-color:rgba(101,255,153,.85)}
html.hgm .hgwf-28f .payment_option{transition:border-color .25s ease,background-color .25s ease}
html.hgm .hgwf-28f .payment_option:not(.is-featured):not(:has(.is-checked)):hover{border-color:#333}
html.hgm .hgwf-28f .payment_radio-fill{animation:hgmPop .35s cubic-bezier(.2,.8,.2,1)}
@keyframes hgmPop{from{scale:.3;opacity:0}}
html.hgm .hgwf-28f .faq-accordion{transition:background-color .25s ease}
html.hgm .hgwf-28f .faq-accordion:not(:has(.w--open)):hover{background-color:#2e2e2e}
html.hgm .hgwf-28f a:focus-visible,
html.hgm .hgwf-28f .faq-accordion-toggle:focus-visible{outline:2px solid #65ff99;outline-offset:3px}
/* Final word card: the top border is drawn in by a copy with the same geometry */
html.hgm .hgwf-28f .whathappens_final-container{position:relative;border-top-color:transparent}
html.hgm .hgwf-28f .whathappens_final-container::before{content:"";position:absolute;top:-1px;left:0;right:0;bottom:0;border-top:1px solid #00ff88;border-radius:inherit;pointer-events:none;clip-path:inset(-2px calc((1 - var(--hgm-line,1)) * (100% + 4px) - 2px) -2px -2px)}
/* Pinned title zoom never widens the page */
html.hgm .hgwf-28f .section_28-intro{overflow-x:clip}

/* ---- Coach Certification (calculator, popup and assessment embed untouched) ---- */
html.hgm .hgwf-cc .cc-cta,
html.hgm .hgwf-cc .cc-hero_cta,
html.hgm .hgwf-cc .cc-felt_cta,
html.hgm .hgwf-cc .cc-bigcta,
html.hgm .hgwf-cc .cc-close_cta{transition:translate .35s cubic-bezier(.2,.8,.2,1),scale .2s ease,box-shadow .35s ease}
html.hgm .hgwf-cc .cc-cta:hover,
html.hgm .hgwf-cc .cc-hero_cta:hover,
html.hgm .hgwf-cc .cc-felt_cta:hover,
html.hgm .hgwf-cc .cc-bigcta:hover,
html.hgm .hgwf-cc .cc-close_cta:hover{translate:0 -3px}
html.hgm .hgwf-cc .cc-tvid{transition:translate .45s cubic-bezier(.2,.8,.2,1)}
html.hgm .hgwf-cc .cc-tvid:hover{translate:0 -4px}
html.hgm .hgwf-cc .cc-mod,
html.hgm .hgwf-cc .cc-persona{transition:translate .45s cubic-bezier(.2,.8,.2,1)}
html.hgm .hgwf-cc .cc-mod:hover,
html.hgm .hgwf-cc .cc-persona:hover{translate:0 -4px}

/* ---- Split lines: keep the original text flow while a heading is split ---- */
html.hgm .hgm-line{will-change:transform,opacity}

@media (prefers-reduced-motion:reduce){
  html.hgm .hgsupp *,html.hgm .hgwf-28u *,html.hgm .hgwf-28d *,html.hgm .hgwf-28f *,html.hgm .hgwf-cc *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
