/*
 * Micro-interactions adapted from UI Moments by 观默 (Guanmo, @guanmo_ai)
 * https://github.com/guanmo-ai/ui-moments  (originals set: Paper Plane, Stroke Checklist, Odometer Stepper)
 * MIT License, Copyright (c) 2026 guanmo-ai. Adapted for Ozo Platform: brand tokens, RTL, scoped classes.
 */
:root{--um-spring:cubic-bezier(.3,1.45,.5,1);--um-ease:cubic-bezier(.16,1,.3,1)}

/* Paper Plane: send buttons */
.um-send{position:relative;overflow:hidden}
.um-send .um-plane{display:inline-grid;inline-size:18px;transition:inline-size .35s var(--um-spring),margin .35s var(--um-spring),opacity .2s}
.um-send .um-plane svg{inline-size:18px;block-size:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[dir=rtl] .um-send .um-plane svg{transform:scaleX(-1)}
.um-send .um-swap{display:inline-grid;overflow:hidden}
.um-send .um-swap>*{grid-area:1/1;transition:translate .4s var(--um-spring),opacity .25s}
.um-send .um-swap>:last-child{translate:0 110%;opacity:0}
.um-send[data-done] .um-swap>:first-child{translate:0 -110%;opacity:0}
.um-send[data-done] .um-swap>:last-child{translate:0 0;opacity:1}
.um-send[data-done] .um-plane{inline-size:0;margin-inline-end:-8px;opacity:0}

/* Stroke Checklist: service choices in the project builder */
.pill .um-box{display:inline-grid;grid-template-columns:13px;place-items:center;flex:none;inline-size:18px;block-size:18px;margin-inline-end:8px;vertical-align:-3px;border:1.6px solid currentColor;border-radius:6px;opacity:.55;transition:background .25s,border-color .25s,opacity .25s}
.pill .um-box svg{display:block;inline-size:13px;block-size:13px;min-inline-size:13px;max-inline-size:none;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:18;stroke-dashoffset:18;transition:stroke-dashoffset .3s var(--um-ease) .05s}
.pill input:checked+span .um-box{opacity:1;background:rgba(255,255,255,.18);border-color:#fff;animation:um-pop .4s var(--um-spring)}
.pill input:checked+span .um-box svg{stroke-dashoffset:0}
@keyframes um-pop{0%{scale:.7}60%{scale:1.15}100%{scale:1}}

/* Odometer: hero numbers */
.um-reels{display:inline-flex;direction:ltr}
.um-reel{--line:1.15em;display:inline-block;block-size:var(--line);overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}
.um-strip{display:flex;flex-direction:column;line-height:var(--line);text-align:center;inline-size:.62em}
.um-strip>span{display:block}
.um-sign{display:inline-block}

@media (prefers-reduced-motion:reduce){
 .um-send .um-plane,.um-send .um-swap>*,.pill .um-box,.pill .um-box svg{transition:none}
 .pill input:checked+span .um-box{animation:none}
}
.ahero__stats b.um-on{background:none;-webkit-text-fill-color:#fff;color:#fff}
.pill span.um-box,.pill input:checked+span span.um-box{padding:0;inline-size:18px;block-size:18px;min-inline-size:0;border-radius:6px;box-shadow:none;line-height:0;background-image:none}
.pill input:checked+span span.um-box{background:rgba(255,255,255,.22)}
.pill span.um-box{background:transparent;border:1.6px solid currentColor}
.pill input:checked+span span.um-box{border-color:#fff}
