/* ARKA · mișcare. Ușoară, scurtă, cu o singură curbă: lucrurile se așază, nu sar.
   Totul se oprește pentru cine a cerut mai puțină mișcare (prefers-reduced-motion). */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--ease-soft:cubic-bezier(.33,1,.68,1)}

@media (prefers-reduced-motion:no-preference){

  /* 1. Prima pagină: textul urcă rând cu rând, fotografia se apropie încet, cardul ARKA plutește */
  .hero-copy>*{animation:m-rise .9s var(--ease-out) both}
  .hero-copy>.eyebrow{animation-delay:.05s}
  .hero-copy>h1{animation-delay:.12s}
  .hero-copy>p{animation-delay:.24s}
  .hero-copy>.hero-actions{animation-delay:.34s}
  .hero-copy>.hero-facts{animation-delay:.44s}
  .hero-accent{display:inline-block;animation:m-rise 1s .22s var(--ease-out) both}
  .hero-visual{animation:m-fade 1.1s .1s var(--ease-soft) both}
  .hero-photo{animation:m-settle 2.4s var(--ease-out) both}
  .hero-member-card{animation:m-card-in 1.2s .45s var(--ease-out) both,m-float 7s 1.7s ease-in-out infinite}
  .hero-caption{animation:m-rise .9s .75s var(--ease-out) both}
  .member-card-star{display:inline-block;animation:m-spin 18s linear infinite}
  .little-spark{display:inline-block;animation:m-spin 14s linear infinite}

  /* pașii de sub fotografie, unul după altul */
  .how-strip>div{animation:m-rise .8s var(--ease-out) both}
  .how-strip>div:nth-child(1){animation-delay:.55s}
  .how-strip>div:nth-child(2){animation-delay:.65s}
  .how-strip>div:nth-child(3){animation-delay:.75s}
  .strip-icon{transition:transform .5s var(--ease-out),background-color .3s}
  .how-strip>div:hover .strip-icon{transform:translateY(-3px) rotate(-6deg)}

  /* 2. Ofertele apar când ajungi la ele (benefits-motion.js pune .m-in) */
  .m-on .offer-card:not(.m-in),.m-on .m-reveal:not(.m-in){opacity:0;transform:translateY(26px) scale(.985)}
  .m-on .offer-card.m-in,.m-on .m-reveal.m-in{opacity:1;transform:none;transition:opacity .7s var(--ease-out),transform .8s var(--ease-out),box-shadow .35s var(--ease-soft),border-color .35s;transition-delay:var(--m-delay,0s)}
  .m-on .offer-card.m-seen{transition:transform .35s var(--ease-out),box-shadow .35s var(--ease-soft),border-color .35s}

  /* cardul se ridică puțin, fotografia se apropie, eticheta cu reducerea se înclină */
  .offer-card:hover,.offer-card:focus-within{transform:translateY(-5px)!important;box-shadow:0 22px 50px #0e271c1f,0 3px 10px #0e271c0f}
  .offer-photo{transition:transform 1.1s var(--ease-out),filter .6s}
  .offer-card:hover .offer-photo{transform:scale(1.045);filter:saturate(1.06)}
  .offer-badge{transition:transform .45s var(--ease-out)}
  .offer-card:hover .offer-badge{transform:translateY(-2px) rotate(-3deg)}

  /* inimioara: bate o dată când salvezi */
  .favorite-button{transition:transform .25s var(--ease-out),background-color .25s}
  .favorite-button:active{transform:scale(.88)}
  .favorite-button.m-pop svg{animation:m-heart .6s var(--ease-out)}
  .favorite-button.m-pop::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid currentColor;opacity:0;animation:m-ring .7s var(--ease-out)}

  /* categoriile */
  .category-list button,.category-list [role=button]{transition:background-color .3s,color .3s,border-color .3s,transform .3s var(--ease-out)}
  .category-list button:active{transform:scale(.96)}

  /* 3. Ferestrele: pe telefon urcă de jos ca o foaie, pe calculator se apropie */
  dialog[open]{animation:m-dialog .55s var(--ease-out) both}
  dialog[open]::backdrop{animation:m-fade .45s var(--ease-soft) both}
  @media (max-width:640px){dialog[open]{animation:m-sheet .6s var(--ease-out) both}}
  #dialog-content>*{animation:m-fade .4s var(--ease-soft) both}
  .dialog-photo{animation:m-settle 1.6s var(--ease-out) both}
  .detail-grid>*{animation:m-rise .6s var(--ease-out) both}
  .detail-grid>*:nth-child(2){animation-delay:.06s}.detail-grid>*:nth-child(3){animation-delay:.12s}.detail-grid>*:nth-child(4){animation-delay:.18s}

  /* 4. Codul: biletul se așază, codul QR apare, literele codului vin pe rând */
  .code-ticket{animation:m-ticket .9s var(--ease-out) both}
  .code-ticket .qr-image,.code-ticket .demo-qr{animation:m-qr 1s .35s var(--ease-out) both}
  .code-value .m-ch{display:inline-block;animation:m-letter .55s var(--ease-out) both;animation-delay:calc(.55s + var(--i) * .045s)}
  .code-ticket-top{position:relative;overflow:hidden}
  .code-ticket-top::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,#ffffff2e 50%,transparent 65%);transform:translateX(-100%);animation:m-shine 1.6s 1s var(--ease-soft) both}

  /* 5. Mesajele scurte de jos */
  .toast:not([hidden]){animation:m-toast .55s var(--ease-out) both}

  /* 6. Schimbarea între Descoperă / Salvate / Economii */
  #discover-view:not([hidden]),#saved-view:not([hidden]),#history-view:not([hidden]){animation:m-view .6s var(--ease-out) both}
  .stat-grid>*{animation:m-rise .7s var(--ease-out) both}
  .stat-grid>*:nth-child(2){animation-delay:.08s}.stat-grid>*:nth-child(3){animation-delay:.16s}

  /* bara de jos de pe telefon: iconița activă urcă puțin */
  .mobile-nav a span[data-icon]{transition:transform .4s var(--ease-out)}
  .mobile-nav a.active span[data-icon]{transform:translateY(-2px) scale(1.06)}

  /* butoanele principale: o lumină trece peste ele la trecerea cu mouse-ul */
  .button-lime,.button-dark{position:relative;overflow:hidden;transition:transform .3s var(--ease-out),box-shadow .3s}
  .button-lime::after,.button-dark::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,#ffffff40 50%,transparent 70%);transform:translateX(-120%);transition:transform .9s var(--ease-out);pointer-events:none}
  .button-lime:hover::after,.button-dark:hover::after{transform:translateX(120%)}
  .button-lime:hover,.button-dark:hover{transform:translateY(-2px);box-shadow:0 12px 26px #0e271c26}

  /* încărcarea: o lumină trece peste cardurile goale, în loc de clipire */
  .skeleton-card{position:relative;overflow:hidden;animation:none}
  .skeleton-card::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffff8c 50%,transparent 70%);transform:translateX(-100%);animation:m-shine 1.5s ease-in-out infinite}
}

@keyframes m-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes m-fade{from{opacity:0}to{opacity:1}}
@keyframes m-settle{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes m-card-in{from{opacity:0;transform:translate(26px,-18px) rotate(22deg) scale(.92)}to{opacity:1;transform:rotate(9deg)}}
@keyframes m-float{0%,100%{transform:rotate(9deg) translateY(0)}50%{transform:rotate(7.5deg) translateY(-7px)}}
@keyframes m-spin{to{transform:rotate(360deg)}}
@keyframes m-heart{0%{transform:scale(1)}30%{transform:scale(1.32)}55%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes m-ring{0%{opacity:.55;transform:scale(.7)}100%{opacity:0;transform:scale(1.55)}}
@keyframes m-dialog{from{opacity:0;transform:translateY(18px) scale(.965)}to{opacity:1;transform:none}}
@keyframes m-sheet{from{opacity:.4;transform:translateY(60px)}to{opacity:1;transform:none}}
@keyframes m-ticket{0%{opacity:0;transform:translateY(24px) rotate(-1.5deg) scale(.96)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes m-qr{from{opacity:0;transform:scale(.86);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes m-letter{from{opacity:0;transform:translateY(.45em)}to{opacity:1;transform:none}}
@keyframes m-shine{to{transform:translateX(100%)}}
@keyframes m-toast{from{opacity:0;transform:translate(-50%,16px) scale(.97)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes m-view{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
