/* After the hero: a teal band, eight vivid tiles, each playing a small moment
   from its page. Moments loop every 4.8 s, one tile after the other. */
.ks.intro { --in-ink: #fff; background: #07323D; color: #fff; }
.ks .in-sky { background: radial-gradient(120% 90% at 0% 0%, #0E5C6E 0%, #07323D 55%, #05222B 100%); overflow: hidden; }
.ks .in-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: in-drift 14s ease-in-out infinite alternate; }
.ks .in-glow.a { width: 520px; height: 520px; top: -160px; inset-inline-end: 4%; background: #18B4D2; }
.ks .in-glow.b { width: 420px; height: 420px; bottom: -180px; inset-inline-start: 18%; background: #FF8A3D; opacity: .28; animation-delay: -5s; }
.ks .in-glow.c { width: 360px; height: 360px; top: 30%; inset-inline-start: -120px; background: #7B5CFF; opacity: .3; animation-delay: -9s; }
@keyframes in-drift { to { transform: translate(40px, 30px) scale(1.08); } }

.ks .in-copy { position: absolute; inset-inline-start: 96px; top: 96px; width: 880px; }
.ks.intro .in-h2 { color: #fff; max-width: 15em; }
.ks.intro .mark { color: #fff; --mark: #FF7A45; }
.ks.intro .in-lead { color: #CFE8EE; max-width: 36em; margin-top: 18px; }

.ks .in-grid { position: absolute; inset-inline: 96px; top: 330px; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 212px; gap: 18px; }
.ks .in-tile { --c1: #FF8A3D; --c2: #FF5E62; opacity: 0; transform: translateY(26px) scale(.94);
  animation: in-pop .7s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: calc(var(--i) * 75ms + 150ms); }
@keyframes in-pop { to { opacity: 1; transform: none; } }
.ks .in-sell { --c1: #FF9A3D; --c2: #FF5A5F; }
.ks .in-courier { --c1: #8F6BFF; --c2: #5B3FD9; }
.ks .in-debts { --c1: #FF5C8A; --c2: #E8436A; }
.ks .in-products { --c1: #22C98A; --c2: #0E9F6E; }
.ks .in-stock { --c1: #FFB938; --c2: #F08A12; }
.ks .in-send { --c1: #22C3E6; --c2: #0A84C6; }
.ks .in-receipts { --c1: #6C7CFF; --c2: #4351E0; }
.ks .in-money { --c1: #2FD3B5; --c2: #10A39B; }

.ks .in-link { position: relative; display: block; height: 100%; box-sizing: border-box; overflow: hidden;
  padding: 18px 20px; border-radius: 26px; color: #fff; text-decoration: none; isolation: isolate;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 40px -22px var(--c2);
  transition: transform .35s cubic-bezier(.2,1.2,.4,1), box-shadow .35s ease; outline-offset: 4px; }
.ks .in-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(90% 70% at 100% 0%, rgba(255,255,255,.28), transparent 60%); }
.ks .in-link:hover, .ks .in-link:focus-visible { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 28px 50px -20px var(--c2); }
.ks[dir="rtl"] .in-link:hover, .ks[dir="rtl"] .in-link:focus-visible { transform: translateY(-6px) rotate(.6deg); }
.ks .in-wm { position: absolute; z-index: -1; width: 170px; height: 170px; bottom: -40px; inset-inline-end: -30px; opacity: .16; transform: rotate(-14deg); filter: brightness(0) invert(1); }
.ks .in-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.ks .in-svg { width: 28px; height: 28px; }
.ks .in-send .in-ico { background: #0A6FA8; }
.ks .in-t { display: block; margin-top: 12px; font-size: 19px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.ks .in-d { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,.86); }

/* the moments: a strip at the bottom of each tile */
.ks .in-m { position: absolute; inset-inline: 18px; bottom: 16px; height: 34px; display: block; }
.ks .in-chip, .ks .in-bub { position: absolute; bottom: 0; inset-inline-start: 0; display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 99px; background: #fff; color: var(--c2); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.ks .in-tile { --t: 4.8s; --d: calc(var(--i) * .6s); }
.ks .in-tile .in-m * { animation-duration: var(--t); animation-delay: var(--d); animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.3,.9,.3,1); }

.ks .in-m-sell .in-bub { background: rgba(255,255,255,.22); color: #fff; border-radius: 14px 14px 14px 4px; animation-name: in-bub; }
.ks[dir="rtl"] .in-m-sell .in-bub { border-radius: 14px 14px 4px 14px; }
.ks .in-m-sell .in-chip { animation-name: in-chip; }
@keyframes in-bub { 0%, 8% { opacity: 0; transform: translateY(10px); } 16%, 44% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes in-chip { 0%, 48% { opacity: 0; transform: translateY(12px) scale(.9); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.ks .in-m-courier .in-road { position: absolute; inset-inline: 0 92px; bottom: 6px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 10px, transparent 10px 18px); animation: none; }
.ks .in-car { position: absolute; bottom: 4px; inset-inline-start: 0; width: 44px; height: 22px; animation-name: in-drive; }
.ks[dir="rtl"] .in-car { scale: -1 1; }
.ks .in-m-courier .in-chip { inset-inline-start: auto; inset-inline-end: 0; animation-name: in-land; }
@keyframes in-drive { 0% { inset-inline-start: 0; opacity: 0; } 8% { opacity: 1; } 55% { inset-inline-start: calc(100% - 140px); opacity: 1; } 62%, 100% { inset-inline-start: calc(100% - 140px); opacity: 0; } }
@keyframes in-land { 0%, 56% { opacity: 0; transform: scale(.8); } 64%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.ks .in-m-debts .in-bar { position: absolute; inset-inline: 0 62px; bottom: 10px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.3); overflow: hidden; animation: none; }
.ks .in-m-debts .in-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 60%; border-radius: 6px; background: #fff; animation-name: in-fill; }
@keyframes in-fill { 0%, 30% { width: 60%; } 55%, 100% { width: 80%; } }
.ks .in-pct { position: absolute; inset-inline-end: 0; bottom: 2px; width: 54px; height: 26px; font-size: 18px; font-weight: 900; animation: none; }
.ks .in-pct span { position: absolute; inset: 0; text-align: end; }
.ks .in-pct span:first-child { animation-name: in-out; }
.ks .in-pct span:last-child { animation-name: in-in; }
@keyframes in-out { 0%, 40% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes in-in { 0%, 42% { opacity: 0; transform: translateY(10px); } 52%, 100% { opacity: 1; transform: none; } }

.ks .in-m-products .in-code { position: absolute; inset-inline-start: 0; bottom: 2px; display: flex; gap: 2px; height: 30px; padding: 0 8px; align-items: stretch;
  border-radius: 8px; background: #fff; overflow: hidden; animation: none; }
.ks .in-code i { display: block; background: #0F1D22; animation: none; }
.ks .in-code .in-scan { position: absolute; inset-block: 0; width: 3px; background: #FF3B5C; box-shadow: 0 0 10px #FF3B5C; inset-inline-start: 0; animation-name: in-sweep; }
@keyframes in-sweep { 0% { inset-inline-start: 0; } 40% { inset-inline-start: calc(100% - 3px); } 41%, 100% { inset-inline-start: calc(100% - 3px); opacity: 0; } }
.ks .in-m-products .in-chip { inset-inline-start: auto; inset-inline-end: 0; animation-name: in-land; }

.ks .in-cnt { position: absolute; inset-inline-start: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 5px 0 12px;
  border-radius: 99px; background: #fff; color: #0F1D22; font-size: 13px; font-weight: 800; white-space: nowrap; animation: none; }
.ks .in-cnt em { font-style: normal; }
.ks .in-n { position: relative; display: inline-block; width: 34px; height: 22px; animation: none; }
.ks .in-n span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 99px; background: var(--c2); color: #fff; font-weight: 900; }
.ks .in-n span:first-child { animation-name: in-gone; }
.ks .in-n span:last-child { animation-name: in-come; }
@keyframes in-gone { 0%, 46% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes in-come { 0%, 48% { opacity: 0; transform: scale(.6); } 56%, 100% { opacity: 1; transform: none; } }
.ks .in-plus { position: absolute; bottom: 30px; inset-inline-start: 60px; font-size: 16px; font-weight: 900; color: #fff; animation-name: in-rise2; }
@keyframes in-rise2 { 0%, 20% { opacity: 0; transform: translateY(10px); } 30%, 46% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: translateY(-14px); } }

.ks .in-m-send .in-arc { position: absolute; inset-inline: 0 120px; bottom: 4px; height: 26px; border: 2px dashed rgba(255,255,255,.6); border-bottom: 0; border-radius: 40px 40px 0 0; animation: none; }
.ks .in-fly { position: absolute; bottom: 0; inset-inline-start: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--c2); font-size: 13px; font-weight: 900; animation-name: in-hop; }
@keyframes in-hop { 0% { inset-inline-start: -4px; bottom: 0; opacity: 0; } 8% { opacity: 1; } 30% { bottom: 26px; } 55% { inset-inline-start: calc(100% - 136px); bottom: 0; opacity: 1; } 60%, 100% { inset-inline-start: calc(100% - 136px); opacity: 0; } }
.ks .in-m-send .in-chip { inset-inline-start: auto; inset-inline-end: 0; animation-name: in-land; }

.ks .in-slot { position: absolute; inset-inline-start: 0; bottom: 22px; width: 120px; height: 10px; border-radius: 5px; background: rgba(0,0,0,.28); animation: none; }
.ks .in-slip { position: absolute; inset-inline-start: 10px; bottom: 26px; width: 100px; height: 0; overflow: hidden; border-radius: 0 0 6px 6px;
  background: #fff; animation-name: in-print; transform-origin: top; }
.ks .in-slip i { display: block; height: 3px; margin: 7px 10px 0; border-radius: 2px; background: #D5DBF5; animation: none; }
.ks .in-slip i:nth-child(2) { width: 60%; }
.ks .in-slip em { position: absolute; bottom: 6px; inset-inline-start: 10px; font-style: normal; font-size: 11px; font-weight: 900; color: var(--c2); animation: none; }
@keyframes in-print { 0%, 10% { height: 0; bottom: 26px; transform: none; } 50%, 85% { height: 56px; bottom: -30px; } 100% { height: 56px; bottom: -30px; opacity: 0; } }
.ks .in-m-receipts { overflow: visible; }

.ks .in-cur { position: absolute; inset-inline-start: 0; bottom: 0; width: 150px; height: 30px; animation: none; }
.ks .in-cur span { position: absolute; inset: 0 auto 0 0; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px;
  background: #fff; color: var(--c2); font-size: 13px; font-weight: 900; white-space: nowrap; direction: ltr; }
.ks[dir="rtl"] .in-cur span { inset: 0 0 0 auto; }
.ks .in-cur span:first-child { animation-name: in-out; }
.ks .in-cur span:last-child { animation-name: in-in; }
.ks .in-m-money em { position: absolute; bottom: 6px; inset-inline-end: 0; font-style: normal; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.9); animation: none; }

.ks .in-pills { position: absolute; inset-inline-start: 96px; top: 806px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ks .in-pills li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 99px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 15px; font-weight: 800; color: #E8F7FA; }
.ks .in-pills i { width: 8px; height: 8px; border-radius: 50%; background: #5EE6C4; box-shadow: 0 0 10px #5EE6C4; }

@media (prefers-reduced-motion: reduce) {
  .ks .in-tile, .ks .in-glow, .ks .in-tile .in-m * { animation: none !important; }
  .ks .in-tile { opacity: 1; transform: none; }
}

/* phones: the copy, then the tiles in two columns */
html.kp-narrow .ks .in-copy, html.kp-narrow .ks .in-grid, html.kp-narrow .ks .in-pills { position: static; width: auto; }
html.kp-narrow .ks.intro .kframe { padding: 72px 18px 44px; box-sizing: border-box; }
html.kp-narrow .ks .in-grid { margin-top: 24px; grid-template-columns: 1fr 1fr; grid-auto-rows: 196px; gap: 10px; }
html.kp-narrow .ks .in-link { padding: 14px; border-radius: 22px; }
html.kp-narrow .ks .in-t { font-size: 16px; }
html.kp-narrow .ks .in-d { font-size: 12.5px; }
html.kp-narrow .ks .in-m { inset-inline: 12px; bottom: 12px; }
html.kp-narrow .ks .in-chip, html.kp-narrow .ks .in-bub { font-size: 11.5px; padding: 0 9px; }
html.kp-narrow .ks .in-pills { margin-top: 22px; }
html.kp-narrow .ks .in-pills li { font-size: 13px; height: 34px; padding: 0 14px; }

/* ---------- phones (round 5): the small tiles keep one moment at a time and
   never cover their own words ---------- */
html.kp-narrow .ks .in-m-stock .in-plus, html.kp-narrow .ks .in-m-money em { display: none; }
html.kp-narrow .ks .in-cnt { font-size: 11.5px; gap: 6px; padding-inline-start: 10px; }
html.kp-narrow .ks .in-cur { width: auto; inset-inline-end: 0; }
html.kp-narrow .ks .in-cur span { font-size: 12px; padding: 0 10px; }
html.kp-narrow .ks .in-m-products .in-code { animation-name: in-out; animation-duration: var(--t); animation-delay: var(--d); animation-iteration-count: infinite; }
