/* Shared motion for the Toolkit pages: one small set of entrances, so every page moves the same way.
   Rules: movement is short (under 0.6s) and eased; nothing loops except the home page's floating cards;
   everything is switched off for visitors who ask for reduced motion (see the last block). */
:root{--mo-ease:cubic-bezier(.22,.61,.36,1)}
@keyframes mo-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes mo-fade{from{opacity:0}to{opacity:1}}
@keyframes mo-pop{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@keyframes mo-slide{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}

/* hero banners (every tool's picker, the question/result screens, the Toolkit home): the content rises in, one piece after another */
.mx-hero .site-container>*,.tk-hero .container>*{animation:mo-up .6s var(--mo-ease) both}
.mx-hero .site-container>:nth-child(2),.tk-hero .container>:nth-child(2){animation-delay:.06s}
.mx-hero .site-container>:nth-child(3),.tk-hero .container>:nth-child(3){animation-delay:.12s}
.mx-hero .site-container>:nth-child(4){animation-delay:.18s}
.mx-hero .site-container>:nth-child(5){animation-delay:.24s}

/* Am I Eligible: cards, the newest answer, the current question, the result badge */
.el-card{animation:mo-up .55s var(--mo-ease) .08s both}
.el-body>.el-card:nth-child(2){animation-delay:.16s}
.el-current{animation:mo-up .45s var(--mo-ease) both}
.el-trail-item:last-child{animation:mo-slide .4s var(--mo-ease) both}
.el-badge{animation:mo-pop .5s var(--mo-ease) .2s both}
.el-v-title,.el-v-body,.el-result .el-actions{animation:mo-up .5s var(--mo-ease) both}
.el-v-title{animation-delay:.25s}
.el-v-body{animation-delay:.32s}
.el-result .el-actions{animation-delay:.4s}

/* dialogs (the lead pop-up): backdrop fades, the card pops */
.el-overlay.flex{animation:mo-fade .25s ease both}
.el-overlay.flex .modal-card{animation:mo-pop .4s var(--mo-ease) both}

dialog.el-dlg-native[open]{animation:mo-pop .4s var(--mo-ease) both}
dialog.el-dlg-native[open]::backdrop{animation:mo-fade .25s ease both}

/* When to Register: step pills, level tiles, panels, stat cards, timeline */
.pl-steps{animation:mo-up .6s var(--mo-ease) .2s both}
.pl-panel{animation:mo-up .5s var(--mo-ease) both}
.pl-tile{animation:mo-up .5s var(--mo-ease) backwards;animation-delay:calc(var(--i,0) * 70ms + 80ms)}
.pl-stat{animation:mo-pop .55s var(--mo-ease) both}
.pl-stats .pl-stat:nth-child(2){animation-delay:.1s}
.pl-note,.pl-timeline{animation:mo-up .5s var(--mo-ease) .18s both}

/* Personality Quiz and Salary Calculator results */
.qz-result-card,.aside.res{animation:mo-up .55s var(--mo-ease) .1s both}
.q-result-avatar{animation:mo-pop .6s var(--mo-ease) both}
#quizApp .q-gate-overlay:not([hidden]){animation:mo-fade .25s ease both}

/* small touches that make controls feel alive */
.el-btn:hover{transform:translateY(-1px)}
.el-btn:active{transform:scale(.98)}
.el-ghost:hover,.el-primary:hover{box-shadow:0 8px 20px -10px rgba(45,62,81,.45)}
.el-card{transition:box-shadow .25s,border-color .25s}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
