/* Abecedica website — the app's design language on the web: airy white with
   a cool tint, the violet brand, soft blue-undertone shadows, rounded cards. */
:root {
  --bg: #ffffff; --bg-tint: #f6f7ff; --bg-soft: #eef0fe; --card: #ffffff; --line: #e8e9f4;
  --ink: #11142d; --ink-2: #2b3048; --muted: #6d748a;
  --brand: #7a5af8; --brand-strong: #6848e8; --brand-soft: #f1ecff; --brand-border: #d8cbff;
  --teal: #0e9e99; --green: #1fa257; --blue: #2d7ef7; --magenta: #d6489a; --amber: #d9a40c; --orange: #f45d2f;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-round: 999px;
  --shadow-card: 0 14px 34px rgba(46, 40, 110, .08); --shadow-float: 0 26px 60px rgba(46, 40, 110, .16);
  --shadow-button: 0 12px 24px rgba(122, 90, 248, .28);
  --container: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; } a:hover { text-decoration: underline; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; } .lead { font-size: 19px; color: var(--ink-2); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; padding: 15px 24px; border-radius: 18px; font-weight: 700; box-shadow: var(--shadow-button); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--brand-strong); text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: var(--brand-soft); color: var(--brand); box-shadow: none; border: 1px solid var(--brand-border); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-round); background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(17,20,45,.06), 0 2px 6px rgba(46,40,110,.12); }
.nav a { margin-left: 22px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 640px) { .nav a { margin-left: 14px; font-size: 14px; } .nav a.section-link { display: none; } .brand { font-size: 17px; } }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 520px at 80% -10%, #ede7ff 0%, rgba(237,231,255,0) 60%), linear-gradient(180deg, #fbfaff, #ffffff 70%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin: 18px 0 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* The phone stands a little left; Ruvi stands in front of its lower right
   corner, overlapping it on purpose, as a sticker would. */
/* The art box is exactly as tall as the phone (frame = screen 2.0263w + bezels .068w), so the floor is the same line in every browser. */
.hero-art { --phone-w: min(240px, 42vw); position: relative; display: flex; align-items: flex-end; max-width: 520px; margin: 0 auto; width: 100%; height: calc(var(--phone-w) * 2.0943); }
/* A width in real units: padding and radius must share one base, or the
   screen corners stop matching the bezel. */
.hero-art .phone { --phone-w: inherit; position: relative; margin-left: 6%; z-index: 1; flex: none; }
.hero-art .badger { position: absolute; right: 0; bottom: 0; width: 56%; z-index: 2; filter: drop-shadow(0 22px 28px rgba(46,40,110,.22)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}

/* Phone: RoamDrop's device, a #111426 bezel of 3.4% of the width around a
   screen of exactly 1206 × 2622, the size every capture was taken at. */
.phone { --phone-w: 260px; width: var(--phone-w); max-width: 100%; padding: calc(var(--phone-w) * .034); border-radius: calc(var(--phone-w) * .155); background: #111426; box-shadow: 0 30px 70px rgba(14,16,32,.28); position: relative; margin: 0; }
.phone-screen { position: relative; width: 100%; aspect-ratio: 1206 / 2622; overflow: hidden; border-radius: calc(var(--phone-w) * .1257 * .932); background: #f4f3fb; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.small { --phone-w: min(250px, 62vw); margin: 0 auto; }

/* Sections */
.section { padding: 76px 0; } .section.alt { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 36px; } .section-head p { margin-top: 12px; }
.grid { display: grid; gap: 18px; } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-card); }
.level { border-radius: var(--r-xl); padding: 22px; border: 1.5px solid; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.level img { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.7); }
.level h3 { margin-top: auto; } .level p { font-size: 14.5px; color: var(--ink-2); }
.level .stars { font-size: 13px; font-weight: 700; }

/* Screens row */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.screens figure { margin: 0; text-align: center; } .screens figcaption { margin-top: 14px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 760px) { .screens { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* Prizes */
.prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.prize { text-align: center; border-radius: var(--r-lg); padding: 18px 10px; border: 1.5px solid; }
.prize .emoji { font-size: 44px; line-height: 1; } .prize b { display: block; margin-top: 8px; font-size: 15px; } .prize span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .prizes { grid-template-columns: repeat(2, 1fr); } .prizes .prize:last-child { grid-column: span 2; } }

/* Parents */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 18px; }
.checks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: #fff; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; } details p { margin-top: 10px; color: var(--ink-2); }

/* Final */
.final { text-align: center; padding: 70px 0 60px; }
.final img { width: 180px; margin: 0 auto 18px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(17,20,45,.06), 0 14px 30px rgba(46,40,110,.16); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 22px 80px; }
.legal h1 { font-size: 36px; } .legal h2 { font-size: 22px; margin: 34px 0 10px; } .legal p, .legal li { color: var(--ink-2); }
.legal .date { color: var(--muted); margin-top: 8px; } .legal ul { padding-left: 22px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); font-weight: 600; margin-right: 18px; }

/* ---------- Play: clouds, the road through the worlds, reveals ---------- */
.cloud { position: absolute; width: 120px; height: 44px; background: #fff; border-radius: 999px; opacity: .9; filter: drop-shadow(0 10px 18px rgba(46,40,110,.08)); pointer-events: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; } .cloud::after { width: 40px; height: 40px; left: 60px; top: -16px; }
.cloud.c1 { left: 47%; top: 6%; animation: drift 38s linear infinite; }
.cloud.c2 { right: 3%; top: 10%; width: 90px; height: 34px; animation: drift 52s linear infinite reverse; }
.cloud.c3 { right: 28%; top: 58%; width: 70px; height: 28px; opacity: .7; animation: drift 46s linear infinite; }
.cloud.c2::before { width: 40px; height: 40px; left: 14px; top: -20px; } .cloud.c2::after { width: 30px; height: 30px; left: 46px; top: -12px; }
.cloud.c3::before { width: 32px; height: 32px; left: 10px; top: -16px; } .cloud.c3::after { width: 24px; height: 24px; left: 36px; top: -10px; }
@keyframes drift { from { translate: 0 0; } 50% { translate: 26px -6px; } to { translate: 0 0; } }
.sun { position: absolute; right: 12%; top: -10px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #ffe08a 0%, #ffd45c 55%, rgba(255,212,92,0) 72%); opacity: .9; animation: glow 4s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero-art { z-index: 1; }


@media (prefers-reduced-motion: reduce) { .cloud, .sun, .world .fauna span, .world .prize i, .road path.dash, .walker { animation: none !important; } [data-fx], .section-head .w, .section-head p, .hero-intro > *, .hero-art .phone, .hero-art .badger, .story .shot, .story .step { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; } }

/* ---------- Hero play: floating letters, hill ---------- */
.letters { position: absolute; inset: 0; pointer-events: none; }
.letters span { position: absolute; font-weight: 900; font-size: 36px; color: var(--brand); opacity: .10; animation: floaty 7s ease-in-out infinite; }
.letters span:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; } .letters span:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
@keyframes floaty { 0%,100% { margin-top: 0; rotate: -6deg; } 50% { margin-top: -14px; rotate: 6deg; } }
.hero { padding-bottom: 76px; }
.hero-hill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.hero .container { position: relative; z-index: 1; }
.hero-art .badger { transition: transform .2s; } .hero-art .badger:hover { transform: rotate(-4deg) scale(1.04); }

/* ---------- Wavy section edges ---------- */
.section.alt { position: relative; }
.section.alt::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 42px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1440 0 L1440 14 C1260 40 1100 4 900 22 S560 42 380 18 S120 6 0 26 Z' fill='%23ffffff'/%3E%3C/svg%3E") top/100% 100% no-repeat; pointer-events: none; }
.section.alt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 42px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42 L1440 42 L1440 28 C1260 2 1100 38 900 20 S560 0 380 24 S120 36 0 16 Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; pointer-events: none; }
.level { transition: transform .25s, box-shadow .25s; } .level:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-card); }
.level img { transition: transform .3s; } .level:hover img { transform: scale(1.1) rotate(6deg); }

/* ---------- The map: one panorama through five worlds ---------- */
.scene { position: relative; margin: 28px 0 14px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); background: #dcecff; }
.scene-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .scene-scroll::-webkit-scrollbar { display: none; }
.scene-svg { display: block; width: 100%; min-width: 900px; height: auto; font-family: var(--font); }
.scene-hint { position: absolute; left: 14px; top: 12px; border: 0; background: rgba(17,20,45,.78); color: #fff; font: 700 12.5px/1 var(--font); padding: 9px 12px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.scene-hint.gone { opacity: 0; transition: opacity .4s; pointer-events: none; }
.w-name { font-size: 15px; font-weight: 800; fill: #11142d; } .w-sub { font-size: 10.5px; font-weight: 600; fill: rgba(17,20,45,.6); }
.cloud-g { animation: cloudx 40s ease-in-out infinite; } @keyframes cloudx { 0%,100% { translate: 0 0; } 50% { translate: 34px 4px; } }
.sun-g { transform-box: fill-box; transform-origin: center; animation: glow 4s ease-in-out infinite; }
.fauna-g { transform-box: fill-box; transform-origin: center bottom; animation: bob 3.2s ease-in-out infinite; }
.twinkle-g { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.prize-g { cursor: pointer; } .prize-g:hover .twinkle-g { animation-duration: .8s; }
.dash-g { animation: roll 2.2s linear infinite; }
.wave-g { animation: wavex 5s ease-in-out infinite; } @keyframes wavex { 0%,100% { translate: 0 0; } 50% { translate: 18px 0; } }
.stop-now circle { animation: breathe 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%,100% { transform: scale(1); stroke: #d8cbff; } 50% { transform: scale(1.18); stroke: #7A5AF8; } }
.walker-g { cursor: pointer; } .walker-g image { transform-box: fill-box; transform-origin: center bottom; }
.walker-g.jump image { animation: hop .7s cubic-bezier(.3,1.4,.6,1) 1; }
@keyframes hop { 0%,100% { transform: translateY(0) scaleY(1); } 30% { transform: translateY(-34px) scaleY(1.06) rotate(-6deg); } 60% { transform: translateY(-20px) rotate(6deg); } 85% { transform: translateY(0) scaleY(.92); } }
.scene-bubble { position: absolute; left: 50%; top: 14px; transform: translateX(-50%) scale(.6); background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 800; font-size: 16px; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-card); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.3,1.5,.6,1); pointer-events: none; }
.scene-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }
@media (max-width: 760px) { .letters span { font-size: 24px !important; } .hero-hill { height: 44px; } .section.alt::before, .section.alt::after { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .letters span, .cloud-g, .sun-g, .fauna-g, .twinkle-g, .dash-g, .wave-g, .stop-now circle, .level, .level img { animation: none !important; transition: none !important; } .scene-svg animateMotion { display: none; } }
@media (max-width: 760px) { .sun { width: 64px; height: 64px; right: 4%; top: 6px; } }

/* ---------- The prizes: a stage in the app's colours; the prizes arrive one by one as the page scrolls ---------- */
.showcase { position: relative; }
.showcase.live { height: 340vh; }
.showcase.live .stage { position: sticky; top: 84px; }
.stage { position: relative; height: 400px; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(720px 320px at 50% 108%, rgba(122,90,248,.28), rgba(122,90,248,0) 70%), linear-gradient(180deg, #f7f6ff, #ece8ff 60%, #dcd4ff); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; background: var(--brand); animation: twinkle 2.6s ease-in-out infinite; }
.spot-rays { position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; margin: -210px 0 0 -210px; background: repeating-conic-gradient(rgba(122,90,248,.16) 0 12deg, transparent 12deg 28deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 64%); mask: radial-gradient(circle, #000 18%, transparent 64%); animation: spin 18s linear infinite; opacity: 0; pointer-events: none; }
.spot-label { position: absolute; left: 50%; top: calc(42% + 84px); transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; white-space: nowrap; }
.spot-label b { display: block; font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -.01em; } .spot-label span { font-size: 15px; font-weight: 600; color: #5b4bb5; }
.podium { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 0 150px 0 20px; }
.plinth { position: relative; flex: none; width: 150px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.rays { position: absolute; left: 50%; top: 0; width: 220px; height: 220px; margin-left: -110px; margin-top: -46px; background: repeating-conic-gradient(rgba(122,90,248,.16) 0 14deg, transparent 14deg 32deg); -webkit-mask: radial-gradient(circle, #000 22%, transparent 68%); mask: radial-gradient(circle, #000 22%, transparent 68%); animation: spin 16s linear infinite; pointer-events: none; opacity: 0; transition: opacity .6s; }
.plinth.rest .rays { opacity: 1; } .plinth:hover .rays { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.trophy { position: relative; z-index: 2; font-size: 64px; line-height: 1; margin-top: 18px; filter: drop-shadow(0 14px 18px rgba(46,40,110,.28)); animation: hover 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); will-change: transform; }
.plinth.won .trophy { animation: prizeJump .8s cubic-bezier(.3,1.5,.5,1) 1; }
@keyframes hover { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes prizeJump { 0%,100% { transform: scale(1); } 35% { transform: translateY(-40px) scale(1.25) rotate(-10deg); } 70% { transform: translateY(0) scale(1.05) rotate(6deg); } }
.spark { position: absolute; font-style: normal; font-size: 18px; animation: twinkle 1.8s ease-in-out infinite; pointer-events: none; opacity: 0; transition: opacity .5s; } .spark.s2 { animation-delay: -.9s; font-size: 14px; }
.plinth.rest .spark { opacity: 1; }
.base { position: relative; margin-top: 14px; width: 100%; height: calc(58px + var(--h) * 16px); border-radius: 16px 16px 0 0; background: linear-gradient(180deg, #ddd3ff, #b7a6ff); box-shadow: inset 0 6px 0 rgba(255,255,255,.6), 0 -8px 24px rgba(122,90,248,.18); display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 4px; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.live .base { transform: translateY(110%); } .live .plinth.up .base { transform: none; }
.base b { display: inline-block; background: #fff; color: #11142d; border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 800; line-height: 1.2; box-shadow: 0 4px 10px rgba(46,40,110,.16); white-space: nowrap; }
.base span { font-size: 13px; color: #4b3fb0; font-weight: 700; }
.stage-ruvi { position: absolute; right: 10px; bottom: 0; width: 120px; filter: drop-shadow(0 10px 16px rgba(46,40,110,.25)); pointer-events: none; transform-origin: 60% 100%; transition: transform .8s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.live .stage-ruvi { opacity: 0; transform: scale(.3) rotate(-15deg); } .live .stage-ruvi.in { opacity: 1; transform: none; }
.confetto { position: absolute; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; z-index: 3; }
.stage-bubble { position: absolute; left: 50%; top: 14px; transform: translateX(-50%) scale(.6); background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-card); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.3,1.5,.6,1); pointer-events: none; z-index: 4; }
.stage-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }
@media (max-width: 1000px) { .podium { padding-right: 20px; } .stage-ruvi { display: none; } }
@media (max-width: 760px) { .stage { height: 360px; } .podium { gap: 6px; padding: 0 12px; } .plinth { width: calc((100% - 24px) / 5); } .trophy { font-size: 34px; margin-top: 10px; } .base { height: calc(44px + var(--h) * 9px); padding-top: 7px; } .base b { font-size: 10.5px; padding: 4px 7px; } .base span { display: none; } .rays { width: 120px; height: 120px; margin-left: -60px; margin-top: -30px; } .spot-label b { font-size: 26px; } .spot-rays { width: 300px; height: 300px; margin: -150px 0 0 -150px; } }
@media (prefers-reduced-motion: reduce) { .rays, .spot-rays, .trophy, .spark, .sky i { animation: none !important; } .rays, .spark { opacity: 1; } }

/* ---------- Header: burger on the right, a menu that drops down ---------- */
.site-header { position: sticky; top: 0; z-index: 20; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); margin-left: 18px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; transition: background .2s, color .2s; }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(46,40,110,.15); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: 10px; }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); } .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; } .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 8px; display: grid; transform-origin: top right; animation: menuIn .25s cubic-bezier(.2,.8,.2,1); }
.menu[hidden] { display: none; }
.menu a { padding: 13px 14px; border-radius: 12px; font-weight: 700; color: var(--ink); } .menu a:hover { background: var(--bg-soft); text-decoration: none; }
.menu a.lang { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .nav { display: none; } .burger { display: flex; } .site-header .container { display: flex; align-items: center; justify-content: space-between; } .lang-switch { margin-left: auto; } }
/* Five languages in the switch: a little tighter on a phone. */
@media (max-width: 440px) { .lang-switch { margin-left: auto; } .lang-switch a { padding: 5px 6px; font-size: 12px; } .brand { font-size: 0; gap: 0; } }

/* ---------- Stories: a phone that stays while the steps scroll by ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 8px; }
.story-phone { position: sticky; top: 92px; display: flex; justify-content: center; }
.story-phone .phone { --phone-w: min(270px, 40vw); will-change: transform; }
.story-phone .phone-screen { position: relative; }
.story .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; will-change: transform, opacity; }
.story .shot:first-child { position: relative; }
.badges { position: absolute; right: calc(50% - var(--phone-w, 270px) / 2 - 56px); top: 40px; width: 72px; pointer-events: none; }
.badges span { position: absolute; left: 0; top: 0; font-size: 30px; background: #fff; border-radius: 999px; padding: 10px 14px; box-shadow: var(--shadow-card); border: 1px solid var(--line); white-space: nowrap; transform: scale(0); will-change: transform, opacity; }
.story-steps { padding: 4vh 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity; }
.step .num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step h3 { font-size: 26px; margin: 0 0 10px; } .step p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 460px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-phone { top: 70px; z-index: 1; } .story-phone .phone { --phone-w: min(200px, 42vw); }
  .badges { right: calc(50% - var(--phone-w, 200px) / 2 - 48px); top: 20px; } .badges span { font-size: 22px; padding: 8px 11px; }
  .step { min-height: 40vh; justify-content: flex-end; padding-bottom: 5vh; text-align: center; align-items: center; } .step h3 { font-size: 22px; } .step p { font-size: 15.5px; }
}
.checks li { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .story-phone { position: static; } .story .shot:not(:first-child) { display: none; } .step { min-height: 0; margin-bottom: 24px; } }

/* ---------- Hero intro on load; heading words are inline blocks for the scroll-linked lift ---------- */
.section-head .w { display: inline-block; will-change: transform, opacity; }
.hero-intro > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-intro > :nth-child(1) { animation-delay: .05s; } .hero-intro > :nth-child(2) { animation-delay: .15s; } .hero-intro > :nth-child(3) { animation-delay: .32s; } .hero-intro > :nth-child(4) { animation-delay: .45s; }
.hero h1 .w { display: inline-block; animation: wordUp .7s cubic-bezier(.2,.9,.3,1.15) both; animation-delay: calc(.15s + var(--w, 0) * 70ms); }
.hero-art .phone { animation: rise 1s cubic-bezier(.2,.8,.2,1) .25s both; }
.hero-art .badger { animation: pop .9s cubic-bezier(.3,1.5,.5,1) .6s both; transform-origin: 60% 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { opacity: 0; transform: translateY(.6em) rotate(5deg); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
[data-fx] { will-change: transform, opacity; }
.nav { margin-left: auto; }

/* iOS Safari draws its toolbar as glass over the page, and the page scrolls
   under it above our pinned header; the header's own background reaches up
   under the toolbar so no text shows through there (owner, 2026-10-20). */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 160px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); pointer-events: none; }
html { background: #ffffff; }

/* Store badges: Apple's and Google's artwork, the same height, at least a
   quarter of the height apart. Google Play has no link until the app is
   there; its «Uskoro» sits on the badge's top right corner (owner's choice). */
.stores { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; margin-top: 28px; }
.store { display: inline-flex; position: relative; }
.store:hover { text-decoration: none; }
.store img { display: block; height: 48px; width: auto; }
.store.soon { cursor: default; }
.store.soon small { position: absolute; top: 0; right: 0; transform: translate(28%, -55%); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .03em; color: #fff; background: var(--brand); border-radius: var(--r-round); padding: 5px 9px; white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(46,40,110,.25); }
footer .tm { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 400px) { .stores { column-gap: 12px; } .store img { height: 44px; } }
