/* Motion for the funnel pages, from the Figma file's Motion page ("Motion that sells"); timings are its own.
   Every move ends on the finished design. Start states apply only under html.fx-motion, which motion.js sets
   when the visitor allows motion, so with reduced motion (or no script) everything shows in place. */
:root { --fx-out: cubic-bezier(.16, 1, .3, 1); --fx-inout: cubic-bezier(.65, 0, .35, 1); --fx-spring: cubic-bezier(.3, .7, .4, 1); }

@keyframes fx-pop { 0% { opacity: 0; scale: .55; } 45% { opacity: 1; scale: 1.14; } 70% { scale: .96; } 86% { scale: 1.02; } 100% { opacity: 1; scale: 1; } }
@keyframes fx-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fx-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-grow { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes fx-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fx-land { 0% { opacity: 0; translate: 0 -20px; scale: .6; rotate: 0deg; } 60% { opacity: 1; translate: 0 0; scale: 1.05; rotate: calc(var(--fx-rot) * 1.2); } 100% { opacity: 1; scale: 1; rotate: var(--fx-rot); } }
@keyframes fx-swing { 0% { opacity: 0; translate: 0 -14px; rotate: 34deg; } 12% { opacity: 1; translate: 0 0; } 28% { rotate: -8deg; } 46% { rotate: 24deg; } 64% { rotate: 6deg; } 82% { rotate: 15deg; } 100% { opacity: 1; rotate: 12deg; } }
@keyframes fx-stamp { 0% { opacity: 0; scale: 1.3; rotate: -8deg; filter: drop-shadow(12px 16px 0 rgba(25, 21, 18, 0)); } 55% { opacity: 1; scale: .95; rotate: 10deg; } 100% { opacity: 1; scale: 1; rotate: 8deg; filter: drop-shadow(2px 3px 0 rgba(25, 21, 18, .3)); } }
@keyframes fx-twinkle { 0%, 24%, 50%, 100% { scale: 1; rotate: 0deg; } 12%, 37% { scale: 1.1; rotate: 14deg; } }

/* Resting states, shown with or without motion: marks drawn as pseudo-elements so they can draw on */
.fx-checks li { background: none; position: relative; }
.fx-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15em; height: 1.15em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2314514c' stroke-width='3.6' stroke-linecap='round' d='M3 13.5c2.5 1.5 4 3.4 5.2 5.6C11 12 15.5 7 21 3.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.fx-strike li { background: none; isolation: isolate; text-align: center; }
.fx-strike li span { position: relative; display: inline-block; padding: 0 .4em; }
.fx-strike li span::after { content: ""; position: absolute; z-index: -1; left: 0; top: 55%; width: 100%; height: .42em; translate: 0 -50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath fill='%2314514c' d='M1 10.5C30 6.5 72 4 118 3.2C150 2.7 178 2.4 199 1.5L198 4L194 4.6L198 6.2C170 7.5 146 7 117 8C76 9.3 40 10.8 3 13.5L6 11.4Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; }
[data-motion="circle"] { position: relative; white-space: nowrap; }
.fx-ring { position: absolute; left: -18%; top: -38%; width: 136%; height: 176%; overflow: visible; pointer-events: none; fill: none; stroke: var(--ds-accent); stroke-width: 2.5; stroke-linecap: round; }
.fx-ring path { stroke-dasharray: 1; stroke-dashoffset: 0; }
[data-motion="stamp"] { rotate: 8deg; filter: drop-shadow(2px 3px 0 rgba(25, 21, 18, .3)); }
[data-motion="swing"] { rotate: 12deg; transform-origin: 37.5% 47%; }
.fx-sticker--tr { --fx-rot: 10deg; }
.fx-sticker--tl { --fx-rot: -12deg; }
.fx-pill::before { display: inline-block; margin-right: .35em; }

/* 17 Button hover: every button, kept even with reduced motion because it is feedback */
.fx a.fx-btn { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.fx a.fx-btn:hover, .fx a.fx-btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--ds-primary-deep), 0 3px 8px rgba(160, 61, 22, .22); }
.fx .fx-cta-band a.fx-btn:hover, .fx .fx-cta-band a.fx-btn:active { background: #ffffff; color: var(--ds-ink); box-shadow: inset 0 -2px 0 #dbcdb0; }

/* 01 Pop in, 02 Rise in, 04 Draw on: children of a group, delays set by motion.js (--d) */
.fx-motion [data-motion="pop"] > :not(.is-in), .fx-motion [data-motion="rise"] > :not(.is-in) { opacity: 0; }
.fx-motion [data-motion="pop"] > .is-in { animation: fx-pop .55s var(--fx-spring) var(--d, 0s) both; }
.fx-motion [data-motion="rise"] > .is-in { animation: fx-rise .5s var(--fx-out) var(--d, 0s) both; }
.fx-motion [data-motion="draw"] > :not(.is-in)::before, .fx-motion [data-motion="draw"] > :not(.is-in) > span::after { clip-path: inset(0 100% 0 0); }
.fx-motion [data-motion="draw"] > .is-in::before, .fx-motion [data-motion="draw"] > .is-in > span::after { animation: fx-draw .5s var(--fx-out) var(--d, 0s) both; }

/* 11 Step track: motion.js lights one step every 0.8 s while the track is on screen */
/* only the dot dims while a step waits: the word stays readable */
.fx-motion [data-motion="steps"] .fx-dot { transition: opacity .8s ease; }
.fx-motion [data-motion="steps"] li:not(.lit) .fx-dot { opacity: .35; scale: .82; }
.fx-motion [data-motion="steps"] li.lit .fx-dot { transition-duration: .2s; }
.fx-motion [data-motion="steps"] li.lit .fx-dot { animation: fx-pop .5s var(--fx-spring) both; }

/* 05 Circle sweep, 07 Sticker land, 08 Tag swing, 09 Stamp, 16 Data build: one element, once */
.fx-motion [data-motion="circle"]:not(.is-in) .fx-ring path { stroke-dashoffset: 1; }
.fx-motion [data-motion="circle"].is-in .fx-ring path { animation: fx-ring 1.07s var(--fx-inout) .13s both; }
.fx-motion [data-motion="land"]:not(.is-in), .fx-motion [data-motion="swing"]:not(.is-in), .fx-motion [data-motion="stamp"]:not(.is-in) { opacity: 0; }
.fx-motion [data-motion="land"].is-in { animation: fx-land .55s var(--fx-spring) .13s both; }
.fx-motion [data-motion="swing"].is-in { animation: fx-swing 1.7s ease-out .13s both; }
.fx-motion [data-motion="stamp"].is-in { animation: fx-stamp .55s var(--fx-spring) .07s both; }
.fx-motion [data-motion="chart"] rect { transform-box: fill-box; transform-origin: 50% 100%; }
.fx-motion [data-motion="chart"]:not(.is-in) rect { scale: 1 0; }
.fx-motion [data-motion="chart"].is-in rect { animation: fx-grow .5s var(--fx-out) calc(.13s + var(--i, 0) * .3s) both; }

/* 10 Twinkle: the label pill's sparkle, twice every 6 s */
@media (prefers-reduced-motion: no-preference) { .fx-pill::before { animation: fx-twinkle 6s var(--fx-inout) 1s infinite; } }
