/* Nuvora motion v1. One load sequence (the product stack assembling), one scroll moment (the student journey lighting up
   step by step), and motion that answers clicks. Transforms and opacity only; reduced motion turns all of it off
   (styles.css already disables animation and transition under prefers-reduced-motion). */
:root{--ease-out:cubic-bezier(.22,1,.36,1);--ease-io:cubic-bezier(.65,0,.35,1)}

/* ---- Load: the three screens arrive in the order a lead travels: team dashboard, lead record, student's phone.
   No opacity on the dashboard (it is the largest paint), only movement. */
@keyframes nv-rise{from{translate:0 48px;scale:.97}to{translate:0 0;scale:1}}
@keyframes nv-slide-in{from{opacity:0;translate:56px 24px}to{opacity:1;translate:0 0}}
@keyframes nv-slide-in-rtl{from{opacity:0;translate:-56px 24px}to{opacity:1;translate:0 0}}
@keyframes nv-lift{from{opacity:0;translate:0 70px;rotate:-4deg}to{opacity:1;translate:0 0;rotate:0deg}}
@keyframes nv-fade{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
.stack .s1{animation:nv-rise 1.1s var(--ease-out) both}
.stack .s2{animation:nv-slide-in .9s var(--ease-out) .45s both}
[dir=rtl] .stack .s2{animation-name:nv-slide-in-rtl}
.stack .phone{animation:nv-lift .9s var(--ease-out) .8s both}
.hero-shot{animation:nv-rise 1.1s var(--ease-out) both}
.hero-copy .pill,.hero-copy .btn-row,.hero-copy .note{animation:nv-fade .6s var(--ease-out) both}
.hero-copy .btn-row{animation-delay:.15s}
.hero-copy .note{animation-delay:.3s}

/* "Agency OS is live": the dot breathes three times, then rests. */
@keyframes nv-pulse{0%{box-shadow:0 0 0 0 rgba(0,194,184,.55)}100%{box-shadow:0 0 0 9px rgba(0,194,184,0)}}
.pill i{animation:nv-pulse 1.6s ease-out .9s 3}

/* ---- Scroll: the student journey. A teal line runs through the six steps and each step lights up as the line
   reaches it. Without JavaScript nothing is hidden: the steps simply stay in their resting colours. */
.js-motion .steps{position:relative}
.js-motion .steps .icon-sq{transition:background-color .35s var(--ease-out),color .35s var(--ease-out),scale .35s var(--ease-out);transition-delay:calc(var(--i,0) * 160ms + 120ms)}
.js-motion .steps li{transition:border-color .35s var(--ease-out),box-shadow .35s var(--ease-out);transition-delay:calc(var(--i,0) * 160ms + 120ms)}
.js-motion .steps.in .icon-sq{background-color:var(--teal);color:var(--navy);scale:1.08}
.js-motion .steps.in li{border-color:rgba(0,194,184,.45);box-shadow:0 10px 28px rgba(14,19,66,.07)}
@media (min-width:1101px){
  .js-motion .steps::before{content:"";position:absolute;z-index:0;inset-inline:40px;top:34px;height:2px;border-radius:2px;
    background:linear-gradient(90deg,var(--teal),#5ef0e6);transform-origin:left center;scale:0 1;transition:scale 1.1s var(--ease-io)}
  [dir=rtl].js-motion .steps::before,[dir=rtl] .js-motion .steps::before{transform-origin:right center;background:linear-gradient(270deg,var(--teal),#5ef0e6)}
  .js-motion .steps.in::before{scale:1 1}
  .js-motion .steps li{position:relative;z-index:1}
}

/* ---- Answers to clicks */
.btn:active{scale:.97;transition-duration:.08s}
/* FAQ: the answer opens smoothly where the browser supports it (Chrome, Edge); elsewhere it opens at once as before. */
@supports (interpolate-size:allow-keywords){
  .faq{interpolate-size:allow-keywords}
  .faq details::details-content{block-size:0;overflow:hidden;opacity:0;transition:block-size .35s var(--ease-out),opacity .25s ease,content-visibility .35s allow-discrete}
  .faq details[open]::details-content{block-size:auto;opacity:1}
}
.faq summary::after{transition:transform .3s var(--ease-out),background-color .2s}
.faq details[open] summary::after{background:var(--teal)}
/* Pricing: the numbers roll when switching monthly / yearly. */
@keyframes nv-roll{from{opacity:0;translate:0 .35em}to{opacity:1;translate:0 0}}
.plans.roll .price b,.plans.roll .price span,.plans.roll .sub{animation:nv-roll .32s var(--ease-out) both}

@media (prefers-reduced-motion:reduce){
  .stack .s1,.stack .s2,.stack .phone,.hero-shot,.hero-copy *,.pill i,.plans *{animation:none!important}
  .js-motion .steps *,.js-motion .steps::before{transition:none!important}
  .faq details::details-content{transition:none!important}
}

/* ---- Scroll (AI Agent): the campaign bars grow when the comparison comes into view. */
.js-motion .mi-cmp .bar i b{scale:0 1;transition:scale .9s var(--ease-out);transition-delay:calc(var(--j,0) * 90ms + 150ms)}
.js-motion .mi-cmp.in .bar i b{scale:1 1}
@media (prefers-reduced-motion:reduce){.js-motion .mi-cmp .bar i b{transition:none!important;scale:1 1}}
