:root {
  --ground: #f5f2fc; --surface: #ffffff; --ink: #1b1535; --ink-2: #5a5275; --line: #e2dcf2;
  --violet: #6f47e8; --violet-deep: #4a2bb8; --pink: #f0569f; --lilac: #b79cf5; --teal: #3fbfb0; --orange: #f59a3d;
  --display: 'Unbounded', ui-rounded, 'Segoe UI', sans-serif;
  --body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #120e24; --surface: #1d1736; --ink: #f3f0ff; --ink-2: #b1a8cf; --line: #2f2752; --violet: #a58bff; --violet-deep: #c3b1ff; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 20px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.langs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.langs button { font: 600 14px/1 var(--body); color: var(--ink-2); background: none; border: 0; padding: 9px 12px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed='true'] { background: var(--ink); color: var(--ground); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 36px 72px; }
.count { display: flex; gap: 10px; margin-bottom: 22px; font: 600 15px/1 var(--display); }
.count span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; animation: beat 1.875s infinite; }
.count span:nth-child(1) { background: var(--pink); }
.count span:nth-child(2) { background: var(--lilac); animation-delay: .469s; }
.count span:nth-child(3) { background: var(--teal); animation-delay: .938s; }
.count span:nth-child(4) { background: var(--orange); animation-delay: 1.406s; }
@keyframes beat { 0%, 30%, 100% { transform: none; } 8% { transform: translateY(-7px) scale(1.08); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); }
.hero .lead { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; flex-direction: column; gap: 3px; padding: 12px 20px; border-radius: 16px; background: var(--ink); color: var(--ground); text-decoration: none; min-width: 170px; }
.store small { font-size: 12px; opacity: .72; }
.store b { font: 600 16px/1.1 var(--display); }
.note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.hero__art { position: relative; }
.hero__art img { display: block; width: 100%; height: auto; border-radius: 36px; }

.square { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 36px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.square h2 { font-size: clamp(24px, 3.2vw, 34px); }
.square p { margin-top: 14px; color: var(--ink-2); }
.grid32 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.grid32 i { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--display); font-style: normal; color: #fff; }
.grid32 i:nth-child(-n+8) { background: var(--pink); }
.grid32 i:nth-child(n+9):nth-child(-n+16) { background: var(--lilac); }
.grid32 i:nth-child(n+17):nth-child(-n+24) { background: var(--teal); }
.grid32 i:nth-child(n+25) { background: var(--orange); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 72px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.step img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.step div { padding: 22px 24px 26px; }
.step h3 { font-size: 20px; }
.step .k { display: block; font: 600 12px/1 var(--display); letter-spacing: .08em; color: var(--violet-deep); margin-bottom: 10px; }
.step ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 16px; }
.step li + li { margin-top: 6px; }

.offline { background: linear-gradient(135deg, #8559f0, #6338dc); color: #fff; border-radius: 32px; padding: 40px 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.offline img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(20, 5, 70, .35); }
.offline h2 { font-size: clamp(22px, 3vw, 30px); }
.offline p { margin-top: 10px; opacity: .92; max-width: 40em; }

footer { padding-block: 44px 56px; color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer .sp { flex: 1 1 auto; }

/* text pages */
.doc { max-width: 70ch; padding-block: 24px 40px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc .meta { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.doc h2 { font-size: 20px; margin-top: 34px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 16px 52px; }
  .hero__art { order: -1; }
  .square { grid-template-columns: 1fr; padding: 24px; gap: 26px; }
  .steps { grid-template-columns: 1fr; padding-block: 52px; }
  .offline { grid-template-columns: 1fr; padding: 28px 24px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .count span { animation: none; } html { scroll-behavior: auto; } }
