/* SellerApp motion presets — shared. Hidden states apply only once ds/motion.js has run (html.m-js),
   so content stays visible without JS. All presets collapse to final state under reduced motion. */
:root{
  --m-ease:cubic-bezier(.22,.61,.36,1);
  --m-dur:560ms;
  --m-rise:16px;
  --m-step:80ms;
  --m-count:1200ms;
  --m-draw:800ms;
}
@media(max-width:640px){:root{--m-rise:8px;--m-step:50ms;--m-dur:480ms}}

/* section reveal */
html.m-js [data-m]:not(.m-in){opacity:0;transform:translateY(var(--m-rise))}
html.m-js [data-m]{transition:opacity var(--m-dur) var(--m-ease),transform var(--m-dur) var(--m-ease);transition-delay:calc(var(--m-i,0) * var(--m-step))}
html.m-js [data-m].m-done{transition:none;transform:none}

/* counters: final text for AT, animated copy hidden from AT */
.m-sr,.m-cnt{font-style:inherit!important;font:inherit!important;color:inherit!important;margin:0!important;padding:0!important;max-width:none!important;letter-spacing:inherit!important;text-transform:inherit!important}
.m-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.m-cnt{display:inline-block!important;font-variant-numeric:tabular-nums}

/* hand-drawn underline */
.m-ul{position:relative;z-index:0;white-space:nowrap}
.m-ul__svg{position:absolute;left:-.02em;right:-.02em;bottom:-.1em;width:calc(100% + .04em);height:.24em;z-index:-1;overflow:visible;pointer-events:none}
.m-ul__svg path{fill:none;stroke:#F5C93A;stroke-width:.085em;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}
html.m-js .m-ul__svg path{stroke-dashoffset:1}
html.m-js .m-ul.m-drawn .m-ul__svg path{stroke-dashoffset:0;transition:stroke-dashoffset var(--m-draw) var(--m-ease) var(--m-ul-delay,250ms)}

/* tab story: replayed by adding .m-play to the active panel */
@keyframes mIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes mDraw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes mFade{from{opacity:0}to{opacity:1}}
@keyframes mUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes mDn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@keyframes mGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes mNudge{0%{translate:0 0}50%{translate:4px 0}100%{translate:0 0}}
.m-play [data-mt]{animation:mIn 460ms var(--m-ease) both;animation-delay:var(--mt-d,0ms)}
.m-play [data-mt-line]{animation:mDraw 720ms var(--m-ease) both;animation-delay:var(--mt-d,260ms)}
.m-play [data-mt-area]{animation:mFade 420ms ease both;animation-delay:var(--mt-d,760ms)}
.m-play [data-mt-up]{animation:mUp 360ms var(--m-ease) both;animation-delay:var(--mt-d,420ms)}
.m-play [data-mt-dn]{animation:mDn 360ms var(--m-ease) both;animation-delay:var(--mt-d,420ms)}
.m-play [data-mt-bar]{transform-box:fill-box;transform-origin:50% 100%;animation:mGrow 600ms var(--m-ease) both;animation-delay:var(--mt-d,300ms)}
.m-play [data-mt-arrow]{animation:mNudge 520ms var(--m-ease) 1;animation-delay:var(--mt-d,600ms)}

@media(prefers-reduced-motion:reduce){
  html.m-js [data-m]:not(.m-in){opacity:1;transform:none}
  html.m-js [data-m]{transition:none}
  html.m-js .m-ul__svg path{stroke-dashoffset:0;transition:none}
  .m-play [data-mt],.m-play [data-mt-line],.m-play [data-mt-area],.m-play [data-mt-up],.m-play [data-mt-dn],.m-play [data-mt-arrow],.m-play [data-mt-bar]{animation:none}
}
