/* ------------------------------------------------------------------
   moneYco — "money flow" layer.
   Concept: the logo is one continuous ribbon that rises, dips and rises
   again. Backgrounds, dividers and motion all echo that single flowing line.
   Palette = the in-app palette (yellow, mint, sky, blush, sand).
------------------------------------------------------------------- */
:root{
  --mint:#E4F6EC;--sky:#E8F3FB;--blush:#FDE8EF;--sand:#F3E6D0;
  --mint-d:#2F9E62;--sky-d:#4B8FD4;--blush-d:#D9487B;--sand-d:#B8832F;
}
@media (prefers-color-scheme:dark){
  :root{--mint:#17261E;--sky:#16222D;--blush:#2B1B22;--sand:#2A2418}
}

/* ---------- hero backdrop ---------- */
.hero{background:linear-gradient(180deg,#FFF6CF 0%,var(--bg) 100%);isolation:isolate}
@media (prefers-color-scheme:dark){.hero{background:linear-gradient(180deg,#2B2410 0%,var(--bg) 100%)}}
.blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;z-index:-1;will-change:transform}
.b1{width:420px;height:420px;background:#F5C518;top:-120px;right:-80px;animation:drift1 16s ease-in-out infinite alternate}
.b2{width:340px;height:340px;background:#BFE8D2;bottom:-120px;left:-100px;animation:drift2 19s ease-in-out infinite alternate}
.b3{width:260px;height:260px;background:#FBC8DA;top:30%;left:38%;opacity:.35;animation:drift3 22s ease-in-out infinite alternate}
@media (prefers-color-scheme:dark){.blob{opacity:.28}}
@keyframes drift1{to{transform:translate(-90px,80px) scale(1.15)}}
@keyframes drift2{to{transform:translate(120px,-60px) scale(1.2)}}
@keyframes drift3{to{transform:translate(-120px,60px) scale(.85)}}

/* flowing ribbon lines (echo of the logo) */
.waves{position:absolute;left:0;right:0;bottom:0;width:100%;height:160px;z-index:-1;pointer-events:none}
.waves path{fill:none;stroke-linecap:round;stroke-width:16;stroke-dasharray:12 26;animation:flow 14s linear infinite}
.waves .w1{stroke:#F5C518;opacity:.55}
.waves .w2{stroke:#6FCF97;opacity:.35;animation-duration:20s;animation-direction:reverse}
.waves .w3{stroke:#F2A0BE;opacity:.3;animation-duration:26s}
@keyframes flow{to{stroke-dashoffset:-760}}

/* hero text entrance */
.hero .eyebrow,.hero h1,.hero .lead,.hero .cta-row,.hero .trust{opacity:0;transform:translateY(22px);animation:rise .8s cubic-bezier(.2,.7,.2,1) forwards}
.hero .eyebrow{animation-delay:.05s}.hero h1{animation-delay:.15s}.hero .lead{animation-delay:.28s}.hero .cta-row{animation-delay:.4s}.hero .trust{animation-delay:.52s}
@keyframes rise{to{opacity:1;transform:none}}
h1 em{background-size:0% 100%;background-repeat:no-repeat;background-image:linear-gradient(transparent 78%,var(--brand) 78%);animation:underline 1s .9s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes underline{to{background-size:100% 100%}}

/* ---------- phone + floating coins ---------- */
.stage{position:relative;padding:20px 0}
.phone{animation:bob 6s ease-in-out infinite;transition:transform .2s}
@keyframes bob{0%,100%{transform:rotate(2.5deg) translateY(0)}50%{transform:rotate(1deg) translateY(-14px)}}
.card-y b{font-variant-numeric:tabular-nums}
.bar i{width:0;animation:fill 1.6s .9s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes fill{to{width:71%}}
.screen .act,.screen .mini,.screen .chips,.screen .card-y{opacity:0;transform:translateX(18px);animation:slidein .6s cubic-bezier(.2,.7,.2,1) forwards}
.screen .card-y{animation-delay:.5s}.screen .chips{animation-delay:.7s}.screen .mini:nth-of-type(1){animation-delay:.85s}.screen .mini:nth-of-type(2){animation-delay:1s}
@keyframes slidein{to{opacity:1;transform:none}}
.coin{position:absolute;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:24px;color:#3A2A12;background:radial-gradient(circle at 30% 30%,#FFE680,#F5C518 60%,#D9A400);box-shadow:0 10px 24px rgba(180,130,0,.35),inset 0 -4px 6px rgba(0,0,0,.12);animation:float 7s ease-in-out infinite;z-index:2}
.coin.c1{top:2%;left:-4%}.coin.c2{top:38%;right:-8%;width:46px;height:46px;font-size:19px;animation-delay:-2s;animation-duration:8s}
.coin.c3{bottom:8%;left:-6%;width:70px;height:70px;font-size:30px;animation-delay:-4s}.coin.c4{bottom:-2%;right:4%;width:40px;height:40px;font-size:16px;animation-delay:-1s;animation-duration:6s}
@keyframes float{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-22px) rotate(10deg)}}
.toast{position:absolute;left:-14%;top:20%;z-index:3;background:#fff;color:#1C1916;border-radius:16px;padding:10px 14px;font-size:13px;font-weight:700;box-shadow:0 14px 34px rgba(0,0,0,.18);display:flex;gap:10px;align-items:center;opacity:0;animation:toast 8s 2.2s ease-in-out infinite}
.toast i{width:30px;height:30px;border-radius:50%;background:var(--mint);display:grid;place-items:center;font-style:normal;color:var(--mint-d)}
@keyframes toast{0%{opacity:0;transform:translateY(14px) scale(.9)}8%,70%{opacity:1;transform:none}80%,100%{opacity:0;transform:translateY(-10px)}}

/* ---------- currency marquee ---------- */
.marquee{background:#F5C518;color:#1C1916;padding:16px 0;overflow:hidden;white-space:nowrap;transform:rotate(-1deg) scale(1.02);margin:-14px 0;position:relative;z-index:3;box-shadow:0 8px 30px rgba(245,197,24,.35)}
.marquee .track{display:inline-flex;gap:46px;animation:scroll 30s linear infinite;font-weight:800;font-size:1.25rem;letter-spacing:.5px}
.marquee .track span::after{content:"•";margin-left:46px;opacity:.4}
.marquee:hover .track{animation-play-state:paused}
@keyframes scroll{to{transform:translateX(-50%)}}

/* ---------- coloured sections ---------- */
#features{background:linear-gradient(180deg,var(--mint),var(--bg))}
#how{background:var(--surface)}
.stats-sec{background:linear-gradient(120deg,#F5C518,#FFDD55 55%,#F9B233);color:#1C1916;position:relative;overflow:hidden}
.stats-sec .stats b{color:#1C1916;font-size:clamp(2.4rem,5vw,3.6rem)}
.stats-sec .stats span{color:#3A2A12}
.stats-sec::before,.stats-sec::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.28);animation:drift2 14s ease-in-out infinite alternate}
.stats-sec::before{left:-80px;top:-140px}.stats-sec::after{right:-60px;bottom:-160px;animation-direction:alternate-reverse}
.stats-sec .stats{position:relative;z-index:1}
#company{background:linear-gradient(180deg,var(--sky),var(--bg))}
#faq{background:var(--bg)}
.cta-sec{background:linear-gradient(180deg,var(--bg),var(--blush))}
.band{position:relative;overflow:hidden;background:linear-gradient(135deg,#1C1916,#2B2418)}
.band::before{content:"";position:absolute;inset:auto -10% -60% -10%;height:100%;background:radial-gradient(closest-side,rgba(245,197,24,.28),transparent);animation:drift1 12s ease-in-out infinite alternate}
.band>*{position:relative}

/* feature cards: each gets its own colour from the app palette */
.card .icon{transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.card:hover .icon{transform:rotate(-8deg) scale(1.12)}
.grid-3>.card:nth-child(6n+1) .icon{background:#FBF0C4}
.grid-3>.card:nth-child(6n+2) .icon{background:var(--mint)}
.grid-3>.card:nth-child(6n+3) .icon{background:var(--sky)}
.grid-3>.card:nth-child(6n+4) .icon{background:var(--blush)}
.grid-3>.card:nth-child(6n+5) .icon{background:var(--sand)}
.grid-3>.card:nth-child(6n+6) .icon{background:#FBF0C4}
.grid-3>.card{position:relative;overflow:hidden}
.grid-3>.card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .4s}
.grid-3>.card:hover::after{transform:scaleX(1)}
.grid-3>.card:nth-child(6n+2)::after{background:#6FCF97}.grid-3>.card:nth-child(6n+3)::after{background:#6FAEE6}
.grid-3>.card:nth-child(6n+4)::after{background:#F2A0BE}.grid-3>.card:nth-child(6n+5)::after{background:#E0B66B}

/* steps: connecting ribbon that draws itself */
.steps{position:relative}
.step{transition:transform .25s,box-shadow .25s}
.step:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.step:nth-child(1)::before{background:#F5C518}.step:nth-child(2)::before{background:#8ED9AE}.step:nth-child(3)::before{background:#F7A8C4}
@media (min-width:981px){
  .steps::before{content:"";position:absolute;top:48px;left:12%;right:12%;height:0;border-top:3px dashed var(--brand-deep);opacity:.45;z-index:0;transform-origin:left;animation:grow 1.4s .3s ease-out both}
  .step{z-index:1}
}
@keyframes grow{from{transform:scaleX(0)}}

/* buttons */
.btn-primary{position:relative;overflow:hidden}
.btn-primary::after{content:"";position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:shine 4.5s 1.5s infinite}
@keyframes shine{0%,60%{left:-80%}100%{left:140%}}

/* reveal variants */
.reveal{transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.grid>.reveal:nth-child(2){transition-delay:.08s}.grid>.reveal:nth-child(3){transition-delay:.16s}
.grid>.reveal:nth-child(4){transition-delay:.08s}.grid>.reveal:nth-child(5){transition-delay:.16s}.grid>.reveal:nth-child(6){transition-delay:.24s}
.steps>.reveal:nth-child(2){transition-delay:.12s}.steps>.reveal:nth-child(3){transition-delay:.24s}

/* sub-page hero */
.page-hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,#FFF6CF,var(--bg))}
@media (prefers-color-scheme:dark){.page-hero{background:linear-gradient(180deg,#2B2410,var(--bg))}}
.page-hero .blob.b1{width:300px;height:300px;top:-140px;right:-60px}
.page-hero .blob.b2{width:240px;height:240px;bottom:-140px;left:10%}
.page-hero h1,.page-hero p{animation:rise .7s both}.page-hero p{animation-delay:.1s}
.legal .prose h2{padding-left:16px;border-left:5px solid var(--brand)}
.legal .prose h2:nth-of-type(3n+2){border-color:#6FCF97}.legal .prose h2:nth-of-type(3n){border-color:#F2A0BE}
.toc a{transition:padding .2s,color .2s}.toc a:hover,.toc a.on{padding-left:8px;color:var(--ink);font-weight:700}
.callout{border-left:5px solid var(--brand-deep)}

/* scroll progress */
.progress{position:fixed;top:0;left:0;height:4px;width:0;background:linear-gradient(90deg,#F5C518,#6FCF97,#F2A0BE);z-index:100;transition:width .1s}

/* logo ribbon draws in the header */
.brand img{transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.brand:hover img{transform:rotate(-10deg) scale(1.08)}

@media (max-width:980px){.toast{left:2%}.coin.c1{left:2%}.coin.c3{left:0}.coin.c2{right:0}}
@media (max-width:480px){.coin{transform:scale(.8)}.marquee .track{font-size:1.05rem}}
@media (prefers-reduced-motion:reduce){
  .hero .eyebrow,.hero h1,.hero .lead,.hero .cta-row,.hero .trust,.screen .act,.screen .mini,.screen .chips,.screen .card-y{opacity:1!important;transform:none!important}
  .bar i{width:71%}h1 em{background-size:100% 100%}.toast{display:none}
}

html,body{overflow-x:clip}
.marquee{max-width:100vw}

/* Google Play button icon + cover showcase */
.btn-play{gap:12px}
.play-ico{width:30px;height:30px;flex:none}
.showcase{background:linear-gradient(180deg,var(--bg),var(--sky) 140%);padding-top:96px}
.cover-link{display:block;border-radius:28px;overflow:hidden;box-shadow:0 30px 70px rgba(150,100,0,.28);transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s}
.cover-link:hover{transform:translateY(-6px) scale(1.01);box-shadow:0 40px 90px rgba(150,100,0,.36)}
.cover{width:100%;height:auto;display:block}
