/* Self-hosted fonts (25.11), cut to Ukrainian, Latin and the hryvnia sign: about 55 KB in all, no request to Google.
   Unbounded is one static weight (800) used for every heading weight; Manrope is variable 400-800. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-cyr.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-lat.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2019, U+201C-201D, U+2026, U+2190, U+2192, U+2197; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-uah.woff2") format("woff2"); unicode-range: U+20B4; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("fonts/unbounded-cyr.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("fonts/unbounded-lat.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2019, U+201C-201D, U+2026, U+2190, U+2192, U+2197; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("fonts/unbounded-uah.woff2") format("woff2"); unicode-range: U+20B4; }
/* Light by default, dark by the device's setting or the switch (partners, 25.11). Blue accent; green only
   means "in stock", orange only means distance. No blur and no heavy effects: weak Androids come first. */
:root {
  --bg: #f6f8fc; --surface: #ffffff; --ink: #0f172a; --muted: #52607a; --line: #e2e8f2;
  --blue: #2563eb; --blue-ink: #ffffff; --blue-soft: #e8f0ff; --green: #16a34a; --amber: #ea7a12; --warn: #d97706;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --display: "Unbounded", system-ui, sans-serif; --text: "Manrope", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #121b2e; --ink: #eef2fb; --muted: #9aa8c2; --line: #223049;
    --blue: #5b8cff; --blue-ink: #08122b; --blue-soft: #16264a; --green: #3ddc84; --amber: #ffa24d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2e; --ink: #eef2fb; --muted: #9aa8c2; --line: #223049;
  --blue: #5b8cff; --blue-ink: #08122b; --blue-soft: #16264a; --green: #3ddc84; --amber: #ffa24d;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font: 700 18px var(--display); text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.nav-cta { color: var(--blue-ink) !important; background: var(--blue); padding: 9px 14px; border-radius: 12px; }
.theme { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
@media (max-width: 720px) { .top nav a:not(.nav-cta) { display: none; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 14px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin-top: 16px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; }
.big { display: block; font-size: clamp(44px, 9vw, 92px); font-weight: 900; color: var(--blue); }
.sub { display: block; font: 700 clamp(20px, 3.2vw, 30px)/1.25 var(--display); margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; }
.btn.primary { background: var(--blue); color: var(--blue-ink); }
.btn.ghost { border-color: var(--line); background: var(--surface); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* the phone: a plain picture, no 3D, fast on any device */
.hero-phone { position: relative; display: grid; place-items: center; }
.glow { position: absolute; inset: 8% 6%; background: var(--blue-soft); border-radius: 50%; }
.phone { position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 18.5; background: var(--surface); border: 8px solid var(--ink); border-radius: 38px; box-shadow: var(--shadow); overflow: hidden; }
.notch { position: absolute; top: 0; left: 50%; width: 38%; height: 18px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2; }
.screen { padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.s-search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; background: var(--bg); }
.s-ico { width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 50%; }
.caret { width: 2px; height: 16px; background: var(--blue); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; opacity: .25; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.s-list li.in { opacity: 1; transform: none; }
.s-list b { display: block; font-size: 13px; }
.s-list small { color: var(--amber); font-size: 11px; font-weight: 600; }
.price { font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--green); } .dot.low { background: var(--warn); }
.s-map { position: relative; flex: 1; min-height: 80px; border-radius: 12px; background: var(--blue-soft); overflow: hidden; }
.pin { position: absolute; width: 14px; height: 14px; background: var(--blue); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(0); transition: transform .4s; }
body.map-on .pin { transform: rotate(-45deg) scale(1); }
.p1 { left: 30%; top: 30%; } .p2 { left: 62%; top: 52%; } .p3 { left: 40%; top: 66%; }
.me { position: absolute; left: 50%; top: 42%; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 3px solid var(--surface); }
.float { position: absolute; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.f1 { left: 0; top: 18%; } .f2 { right: 0; top: 40%; } .f3 { left: 4%; bottom: 14%; color: var(--amber); }
@media (max-width: 480px) { .f1 { left: -4px; } .f2 { right: -4px; } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; margin: 0 -20px; }
.track { display: flex; gap: 36px; width: max-content; animation: slide 40s linear infinite; font: 700 20px var(--display); color: var(--muted); }
@keyframes slide { to { transform: translateX(-50%); } }

.story-head h2, .sellers h2, .final h2, .door-copy h2 { font-size: clamp(26px, 4.4vw, 42px); }
.story-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step, .cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.step-n { font: 800 14px var(--display); color: var(--blue); }
.step h3, .cards h3 { font-size: 20px; margin: 10px 0 8px; }
.step p, .cards p { color: var(--muted); font-size: 16px; }
.mini { margin-top: 18px; height: 84px; border-radius: 14px; background: var(--blue-soft); position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.bars { width: 110px; height: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 8px, transparent 8px 12px); }
.laser { position: absolute; left: 12%; right: 12%; height: 2px; background: var(--amber); animation: laser 2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 22%; } 50% { top: 76%; } }
.mini b { font: 800 30px var(--display); }
.num-old { color: var(--muted); text-decoration: line-through; }
.arrow { width: 28px; height: 2px; background: var(--blue); position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid var(--blue); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.pulse { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); animation: pulse 2.2s ease-out infinite; }
.pulse.d2 { animation-delay: 1.1s; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.pin-big { width: 22px; height: 22px; background: var(--blue); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
@media (max-width: 860px) { .story-steps { grid-template-columns: 1fr; } }

.door { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.door-art { position: relative; display: grid; place-items: center; }
.shopfront { position: relative; width: min(320px, 82%); aspect-ratio: 4 / 3.4; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.awn { height: 26%; border-radius: 14px 14px 0 0; background: repeating-linear-gradient(90deg, var(--blue) 0 20px, var(--blue-soft) 20px 40px); }
.win { position: absolute; left: 8%; top: 36%; width: 40%; height: 48%; background: var(--blue-soft); border-radius: 8px; }
.dr { position: absolute; right: 8%; top: 36%; width: 36%; height: 58%; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.qr { width: 62%; aspect-ratio: 1; background: repeating-conic-gradient(var(--ink) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; border: 4px solid var(--surface); outline: 2px solid var(--ink); }
.scan-beam { position: absolute; right: 12%; top: 46%; width: 90px; height: 2px; background: var(--amber); animation: laser2 2.4s ease-in-out infinite; }
@keyframes laser2 { 0%, 100% { transform: translateY(-14px); } 50% { transform: translateY(26px); } }
@media (max-width: 860px) { .door { grid-template-columns: 1fr; } }

.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ic { display: block; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); position: relative; }
.ic::after { content: ""; position: absolute; inset: 11px; border: 3px solid var(--blue); border-radius: 6px; }
.i2::after { border-radius: 50%; } .i3::after { border-radius: 3px 14px 3px 14px; } .i4::after { border-radius: 50% 50% 6px 6px; }

.final { text-align: center; padding-bottom: 80px; }
.final .lead { margin-inline: auto; }
.foot { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.will { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.will.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will { opacity: 1; transform: none; }
}

/* 3D mode (off by default): a full-screen round room of shop cards, drawn by room.js with WebGL.
   The section is tall and its picture stays pinned while it scrolls: scrolling turns the room into a tunnel. */
.room { display: none; position: relative; height: 230svh; }
body.mode3d .room { display: block; }
.room-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.room canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.room canvas:active { cursor: grabbing; }
.room-top { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: 20px; max-width: min(520px, 80vw); padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); pointer-events: none; }
.room-title { font: 900 clamp(34px, 6vw, 64px)/1 var(--display); color: var(--blue); }
.room-hint { margin-top: 8px; font-size: 15px; color: var(--muted); }
.room-pick { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 28px; max-width: min(360px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.room-pick-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.room-pick-shop { font-size: clamp(20px, 2.6vw, 28px); margin-top: 6px; }
.room-pick-sub { margin-top: 6px; color: var(--muted); }
.room-pick .cta-row { margin-top: 14px; }
.room-fps, .room-slow { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font: 600 13px var(--text); }
.mode3d { font: 800 14px var(--display); }
.mode3d[aria-pressed="true"] { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .mode3d { display: none; } }

/* The navigator example: a town plan on a canvas with the next turn on top, like a car navigator. */
.nav { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.nav-copy h2 { font-size: clamp(26px, 4.4vw, 42px); }
.nav-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.nav-device { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--blue-soft); }
.nav-device canvas { display: block; width: 100%; aspect-ratio: 1000 / 640; height: auto; }
.nav-panel { position: absolute; left: 12px; right: 12px; top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--blue); color: var(--blue-ink); }
.nav-next { font: 700 clamp(15px, 2.2vw, 20px)/1.25 var(--display); }
.nav-left { margin-top: 4px; font-size: 14px; opacity: .9; }
.nav-card { position: absolute; right: 12px; bottom: 12px; width: min(280px, 60%); padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-shop { font: 700 15px var(--display); }
.nav-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.nav-items li { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr; }
  .nav-device canvas { aspect-ratio: 1000 / 760; }
  .nav-card { position: static; width: auto; margin: 0 12px 12px; }
}
@media (max-width: 420px) { .top { padding: 10px 12px; } .top nav { gap: 8px; } .top nav .nav-cta { display: none; } }
