/* v4-switch.css: "Easy switch" section. Prefix xs-. Without JS (no .xs-js) everything shows in its end state. */
.xs-art { --xs-ease: cubic-bezier(.22,.61,.36,1); position: relative; display: block; width: 270px; aspect-ratio: 640 / 740; margin: -36px 0 0 auto; pointer-events: none; }
.xs-art * { box-sizing: border-box; }
.xs-orbit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xs-mascot { position: absolute; left: 2%; bottom: 0; width: 92%; height: auto; display: block; max-width: none; user-select: none; animation: xs-bob 4.6s var(--xs-ease) infinite alternate; }
.xs-tile { position: absolute; width: 17.5%; aspect-ratio: 1; display: block; }
.xs-tf { display: block; width: 100%; height: 100%; padding: 22%; background: #fff; border: 1px solid #ECEFFA; border-radius: 28%; box-shadow: 0 8px 18px rgba(90,100,170,.18), 0 2px 4px rgba(90,100,170,.08); animation: xs-drift 5s var(--xs-ease) infinite alternate; }
.xs-tf svg { display: block; width: 100%; height: 100%; }
.xs-t1 { left: 10.5%; top: 19%; transform: rotate(-8deg); }
.xs-t2 { left: 41.5%; top: 3%; transform: rotate(3deg); }
.xs-t2 .xs-tf { animation-duration: 6s; animation-delay: -2s; }
.xs-t3 { left: 73%; top: 17%; transform: rotate(6deg); }
.xs-t3 .xs-tf { animation-duration: 4.2s; animation-delay: -3.1s; }
.xs-t1 .xs-tf { animation-delay: -.8s; }
@keyframes xs-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes xs-drift { from { transform: translate(-3px, 3px); } to { transform: translate(4px, -4px); } }

/* right card: lilac chips */
.xs-chip { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgb(245,242,255); display: inline-flex; align-items: center; justify-content: center; }

/* scroll-in: header contents, then rows, one by one (inner elements; the page's own data-r reveal is left alone) */
.xs-js .xs-card:not(.xs-in) .xs-i, .xs-js .xs-art:not(.xs-in) { opacity: 0; transform: translateY(10px); }
.xs-js .xs-card .xs-i, .xs-js .xs-art { transition: opacity .35s var(--xs-ease, cubic-bezier(.22,.61,.36,1)), transform .35s var(--xs-ease, cubic-bezier(.22,.61,.36,1)); }
.xs-js .xs-card.xs-in [data-ct-switch]:nth-child(3) .xs-i { transition-delay: .24s; }
.xs-js .xs-card.xs-in [data-ct-switch]:nth-child(4) .xs-i { transition-delay: .36s; }
.xs-js .xs-card.xs-in [data-ct-switch]:nth-child(5) .xs-i { transition-delay: .48s; }
.xs-js .xs-card.xs-in > div:first-child .xs-i { transition-delay: .12s; }
.xs-js .xs-card.xs-in > div:first-child img.xs-i { transition-delay: 0s; }

@media (max-width: 767px) { .xs-art { width: 200px; margin: 28px auto 0; } }
@media (prefers-reduced-motion: reduce) {
  .xs-art *, .xs-art { animation: none !important; transition: none !important; }
  .xs-card .xs-i, .xs-js .xs-card:not(.xs-in) .xs-i, .xs-js .xs-art:not(.xs-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
}
