/* The step animations on product pages: one frame style for all of them. */
.an { max-width: 1040px; margin: 0 auto; }
.an-stage { position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--r-xl); overflow: hidden; container-type: inline-size; background: radial-gradient(80% 70% at 50% 110%, #fff1e2, rgba(255, 241, 226, 0) 70%), linear-gradient(180deg, #fbf1dc, #fdf8ef 55%, #fff4ea); box-shadow: var(--shadow), inset 0 0 0 1px rgba(217, 146, 26, .08); }
.an-stage * { box-sizing: border-box; }
.an-stage img { max-width: none; }
.an-cap { position: absolute; z-index: 30; left: 5%; right: 5%; top: 6%; margin: 0; text-align: center; font: 800 3.6cqw/1.08 var(--display); letter-spacing: -.03em; color: #1c1b19; opacity: 0; transform: translateY(1cqw); transition: opacity .4s ease, transform .5s var(--ease); }
.an-cap.show { opacity: 1; transform: none; }
.an-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.an-steps { display: flex; gap: 6px; flex: 1 1 160px; max-width: 360px; }
.an-steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .4s; }
.an-steps i.on { background: var(--accent-fill); }
.an-btns { display: flex; gap: 8px; }
.an-btns button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font: 700 14px/1 var(--body); box-shadow: inset 0 0 0 1.5px var(--line); }
.an-btns button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.an-btns svg { width: 16px; height: 16px; }
.an-caps { display: none; }
.an-stage.static, .an-stage.static * { transition: none !important; animation-delay: -30s !important; }

/* shared props inside the stages */
.an-win { position: absolute; border-radius: 1.6cqw; background: #fff; box-shadow: 0 2cqw 5cqw -1.4cqw rgba(40, 30, 15, .35), 0 0 0 1px rgba(40, 30, 15, .06); overflow: hidden; }
.an-win .bar { height: 3.4cqw; display: flex; align-items: center; gap: .7cqw; padding: 0 1.4cqw; background: #f6f3ec; border-bottom: 1px solid #ece6da; font: 700 1.25cqw/1 var(--body); color: #6e6a65; }
.an-win .bar i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #ddd5c6; }
.an-win .bar span { margin-left: 1cqw; }
.an-bub { position: absolute; max-width: 60%; padding: 1.1cqw 1.5cqw; border-radius: 1.4cqw; font: 600 1.55cqw/1.3 var(--body); box-shadow: 0 .6cqw 1.6cqw rgba(40, 30, 15, .14); opacity: 0; transform: translateY(1.2cqw) scale(.94); transition: opacity .3s ease, transform .45s var(--pop); }
.an-bub.them { background: #fff; color: #1c1b19; border-bottom-left-radius: .3cqw; }
.an-bub.me { background: #262523; color: #fff; border-bottom-right-radius: .3cqw; }
.an-card { position: absolute; padding: 1.1cqw 1.3cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 .8cqw 2cqw rgba(40, 30, 15, .18); display: grid; gap: .4cqw; opacity: 0; transform: translateY(2cqw) scale(.9); transition: opacity .3s ease, transform .55s var(--pop); }
.an-card b { font: 800 1cqw/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #e2553f; }
.an-card span { font: 800 1.5cqw/1.2 var(--display); letter-spacing: -.015em; color: #1c1b19; }
.an-card em { justify-self: start; font: 700 1cqw/1 var(--body); font-style: normal; padding: .35cqw .7cqw; border-radius: 99px; background: #fff1d6; color: var(--ink); }
.an-actor { position: absolute; width: auto; opacity: 0; transform-origin: 50% 100%; filter: drop-shadow(0 1.2cqw 1.2cqw rgba(45, 32, 15, .25)); transition: opacity .3s ease, transform .6s var(--pop); }
@media (max-width: 640px) { .an-stage { border-radius: 18px; } .an-cap { font-size: 4.4cqw; top: 4%; } }
@media (max-width: 640px) {
  .an-bub { font-size: 2.4cqw; }
  .an-card span { font-size: 2.2cqw; }
  .an-card b, .an-card em { font-size: 1.6cqw; }
  .an-win .bar { font-size: 1.8cqw; height: 4.6cqw; }
}
