/* Сначала телефон: сюда приходят по QR с часов. Широкий экран доделывается в конце файла. */
:root {
  --bg: #07090C; --surface: #11151A; --line: rgba(255,255,255,.08);
  --text: #F3F5F7; --muted: #9AA4B0; --cyan: #3DE8FF; --lime: #C8FF2E; --ink: #0B0D10;
  --sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; overflow-x: hidden; }
a { color: var(--cyan); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
h1, h2 { text-wrap: balance; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.lang { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 13px; font-size: 14px; text-decoration: none; }
.lang:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

/* Первый экран */
.hero { position: relative; padding: 4px 0 26px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -40px; width: 520px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61,232,255,.2), rgba(200,255,46,.07) 55%, transparent 72%);
  pointer-events: none; z-index: -1;
}
.art { width: min(58vw, 236px); margin: 0 auto 14px; animation: float 7s ease-in-out infinite; }
.watch { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 34px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(61,232,255,.14)); }
.watch text { font-family: var(--sans); }
.watch .lbl { font-size: 13px; fill: #9AA4B0; letter-spacing: .14em; }
.watch .lbl.cy { fill: var(--cyan); }
.eyebrow { display: inline-flex; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--cyan); background: rgba(61,232,255,.09); border: 1px solid rgba(61,232,255,.2); }
h1 { font-size: clamp(34px, 9.4vw, 62px); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.03em; font-weight: 800; }
h1 span { background: linear-gradient(100deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 34em; }

/* Экраны часов сменяют друг друга раз в 4 секунды */
.scr { opacity: 0; animation: scr 16s infinite; }
.s2 { animation-delay: 4s; } .s3 { animation-delay: 8s; } .s4 { animation-delay: 12s; }
.dot { fill: #39414B; animation: dot 16s infinite; }
.d2 { animation-delay: 4s; } .d3 { animation-delay: 8s; } .d4 { animation-delay: 12s; }
.pill { transform-box: fill-box; transform-origin: center; animation: press 16s infinite; }
.bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: grow 16s infinite 8s; }
.tick { opacity: 0; animation: tick 16s infinite; }
@keyframes scr { 0% { opacity: 0; } 2.5%, 23% { opacity: 1; } 25.5%, 100% { opacity: 0; } }
@keyframes dot { 0%, 25% { fill: #3DE8FF; } 25.1%, 100% { fill: #39414B; } }
@keyframes press { 0%, 37% { transform: scale(1); } 39% { transform: scale(.92); } 41.5%, 100% { transform: scale(1); } }
@keyframes grow { 0% { transform: scaleX(0); } 2% { transform: scaleX(0); } 9%, 26% { transform: scaleX(1); } 27%, 100% { transform: scaleX(0); } }
@keyframes tick { 0%, 87% { opacity: 0; } 88.5%, 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Кнопки магазинов */
.stores { display: grid; gap: 10px; }
.store {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02)); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.store::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.07) 50%, transparent 68%); animation: shim 5s infinite;
}
.store:nth-child(2)::after { animation-delay: .5s; } .store:nth-child(3)::after { animation-delay: 1s; }
.store .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--cyan); background: rgba(61,232,255,.1); }
.store .tx { display: flex; flex-direction: column; flex: 1; line-height: 1.25; min-width: 0; }
.store .tx small { color: var(--muted); font-size: 12.5px; }
.store .tx b { font-size: 17px; letter-spacing: -.01em; }
.store .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.store .tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 1.8s ease-in-out infinite; }
.store .go { display: none; font-size: 20px; font-weight: 700; }
.store.live { background: linear-gradient(120deg, var(--cyan), var(--lime)); color: var(--ink); border-color: transparent; box-shadow: 0 12px 30px rgba(61,232,255,.22); }
.store.live .ic { background: rgba(11,13,16,.12); color: var(--ink); }
.store.live .tx small { color: rgba(11,13,16,.68); }
.store.live .tag { display: none; } .store.live .go { display: block; }
.store.live:hover { box-shadow: 0 16px 38px rgba(61,232,255,.34); transform: translateY(-1px); }
.store.live:active { transform: scale(.98); }
@keyframes shim { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Разделы */
.block { padding: 30px 0 6px; }
.h2 { font-size: 24px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.grid { display: grid; gap: 10px; }
.card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.card .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--lime); background: rgba(200,255,46,.09); }
.card h3 { font-size: 17px; margin: 1px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.story { text-align: center; padding: 44px 0 20px; }
.story .big { font-size: clamp(30px, 8.4vw, 54px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.03em; font-weight: 800; }
.story p { margin: 0 auto; max-width: 30em; color: var(--muted); font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: linear-gradient(120deg, var(--cyan), var(--lime)); }
.steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 14px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 22px; color: var(--cyan); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); margin-top: 38px; padding: 20px 0 34px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 6px; }
.has-cta footer { padding-bottom: 104px; }

/* Кнопка внизу экрана: появляется, когда для этого телефона уже есть ссылка на магазин */
.cta {
  position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 18px; border-radius: 18px;
  background: linear-gradient(120deg, var(--cyan), var(--lime)); color: var(--ink); text-decoration: none; font-size: 17px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.cta[hidden] { display: none; }
.cta:active { transform: scale(.98); }

/* Появление разделов при прокрутке. Без скриптов всё видно сразу. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .art, .scr, .dot, .pill, .bar, .tick, .store::after, .store .tag i { animation: none; }
  .s1 { opacity: 1; } .d1 { fill: #3DE8FF; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .stores { max-width: 460px; }
}
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 34px 0 30px; }
  .hero .art { order: 2; width: 100%; max-width: 330px; margin: 0 auto; }
  .hero::before { left: 76%; top: 0; width: 640px; height: 640px; }
  .lead { font-size: 20px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .card { flex-direction: column; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .h2 { font-size: 30px; }
  .cta { display: none; }
}
