/* Home page motion: small and slow. Everything is switched off for people who ask their device for less motion. */
/* the four buying steps fill with colour one after another */
.steps li{background-image:linear-gradient(150deg,#16807E,#0B3B3C);background-repeat:no-repeat;background-size:0% 100%;transition:background-size .7s ease,color .35s ease .2s,border-color .35s ease,transform .35s ease,box-shadow .35s ease}
.steps li b{transition:color .35s ease .2s}
.steps li.on{background-size:100% 100%;color:#CFE6E4;border-color:transparent;transform:translateY(-4px);box-shadow:0 18px 32px rgba(11,59,60,.22)}
.steps li.on b{color:#fff}

@media (prefers-reduced-motion:no-preference){
  /* hero: the words rise in, then the screens, which keep floating gently */
  .hero>h1{animation:rise .8s ease both}
  .hero>p:not(.sample){animation:rise .8s ease .12s both}
  .hero>.actions{animation:rise .8s ease .24s both}
  .hero .dash{animation:rise 1s ease .36s both}
  .hero .screen{animation:drift 7s ease-in-out 1.4s infinite}
  .hero .phone{animation:drift 5.5s ease-in-out 1.4s infinite reverse}
  /* icons */
  .reel .play::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--gold2);animation:ring 2.4s ease-out infinite}
}
@media (prefers-reduced-motion:reduce){.steps li{transition:none}}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-14px) rotate(5deg)}}
@keyframes bob-small{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}
@keyframes ring{0%{transform:scale(1);opacity:.8}70%,100%{transform:scale(1.55);opacity:0}}

/* scroll reveal (the script adds .reveal and .in; without it everything simply shows) */
.reveal{opacity:0;transform:translateY(34px)}
.reveal.in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.25,1)}
.prob.reveal figure img{transform:translateY(60px)}
.prob.reveal.in figure img{transform:none;transition:transform 1s cubic-bezier(.2,.85,.25,1) .15s}
.prob.reveal .how3 li{opacity:0;transform:translateY(14px) scale(.96)}
.prob.reveal.in .how3 li{opacity:1;transform:none;transition:opacity .45s ease,transform .45s cubic-bezier(.3,1.4,.5,1)}
.prob.reveal.in .how3 li:nth-child(1){transition-delay:.35s}
.prob.reveal.in .how3 li:nth-child(2){transition-delay:.55s}
.prob.reveal.in .how3 li:nth-child(3){transition-delay:.75s}

@media (prefers-reduced-motion:no-preference){
  #pb[open] .more li,#pb[open] .more .note{animation:rise .4s ease both}
  #pb[open] .more li:nth-child(2){animation-delay:.08s}
  #pb[open] .more li:nth-child(3){animation-delay:.16s}
  #pb[open] .more .note{animation-delay:.24s}
  /* app icons: the tile pops in, then one part of each picture keeps moving */
  .app.reveal.in .ico{animation:pop .7s cubic-bezier(.3,1.5,.5,1) .25s both}
  .ico svg *{transform-box:fill-box;transform-origin:center}
  .i-awning{transform-origin:top center!important;animation:flap 2.8s ease-in-out infinite}
  .i-win{animation:glow 2.6s ease-in-out infinite}
  .i-smoke{animation:smoke 3s ease-out infinite}
  .i-coin{animation:toss 2.6s cubic-bezier(.4,0,.3,1) infinite}
  .i-drop{animation:coin-in 2.8s cubic-bezier(.5,0,.6,1) infinite}
  .i-jar{transform-origin:bottom center!important;animation:jar 2.8s ease-in-out infinite}
}
@keyframes pop{from{opacity:0;transform:scale(.4) rotate(-14deg)}to{opacity:1;transform:none}}
@keyframes flap{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.18)}}
@keyframes glow{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes smoke{0%{opacity:0;transform:translateY(7px) scale(.6)}40%{opacity:.85}100%{opacity:0;transform:translateY(-6px) scale(1.2)}}
@keyframes toss{0%,100%{transform:translateY(9px)}45%{transform:translateY(-4px) rotateY(180deg)}70%{transform:translateY(0) rotateY(360deg)}}
@keyframes coin-in{0%{opacity:0;transform:translateY(-10px)}20%{opacity:1}55%{opacity:1;transform:translateY(14px)}70%,100%{opacity:0;transform:translateY(24px) scale(.7)}}
@keyframes jar{0%,52%,80%,100%{transform:scale(1)}62%{transform:scale(1.07,.92)}72%{transform:scale(.97,1.04)}}
@media (prefers-reduced-motion:no-preference){#pb[open]{animation:rise .35s ease both}}
