/* Lia's website. Calm and exact: Plus Jakarta Sans throughout (titles in two tones, small uppercase
   labels), neutral surfaces with Lia blue as the one accent, and the app's own screens as the pictures.
   Fredoka stays in the logo only. Light with dark sections; dark mode follows the device. Motion is
   fades and short slides. */

:root {
  --blue: #2f5bff;
  --blue-press: #2448d9;
  --blue-soft: #e9eeff;
  --ink: #0b0b0f;
  --text: #0b0b0f;
  --muted: #6b6e7b;
  --faint: #a3a6b2;
  --bg: #ffffff;
  --soft: #f5f5f7;
  --card: #ffffff;
  --well: #f5f5f7;
  --hair: #e6e7ec;
  --night: #09090b;
  --sky: #5ec0ea;
  --mine: #22c55e;
  --spin: #8b5cf6;
  --invite: #0ea5e9;
  --strides: #f97316;
  --tasks: #14b8a6;
  --board: #eab308;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --display: "Plus Jakarta Sans", "IBM Plex Sans Arabic", "Noto Sans Devanagari", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "IBM Plex Sans Arabic", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Small uppercase labels, in the same family; code alone is monospaced. */
  --mono: "Plus Jakarta Sans", system-ui, sans-serif;
  --code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: inset 0 0 0 1px var(--hair);
  color-scheme: light;
}
/* Dark: chosen with the header's switch (data-theme on <html>), or the device's setting until then. */
:root[data-theme="dark"] {
    --text: #f5f5f7;
    --muted: #9799a6;
    --faint: #5d5f6a;
    --bg: #09090b;
    --soft: #111114;
    --card: #141417;
    --well: #1b1b1f;
    --hair: #232328;
    --blue-soft: #18203f;
    --shadow: inset 0 0 0 1px var(--hair);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f5f5f7;
    --muted: #9799a6;
    --faint: #5d5f6a;
    --bg: #09090b;
    --soft: #111114;
    --card: #141417;
    --well: #1b1b1f;
    --hair: #232328;
    --blue-soft: #18203f;
    --shadow: inset 0 0 0 1px var(--hair);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin: 0; }
h3, h4 { font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
svg.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono { font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15.5px/1 var(--body); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn svg.i { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg.i { transform: translateX(2px); }
[dir="rtl"] .btn svg.i { transform: scaleX(-1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262d; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-press); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececf1; }
.btn-glass { background: rgba(255, 255, 255, 0.45); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.7); }
.btn-line { box-shadow: inset 0 0 0 1px var(--hair); color: var(--text); background: var(--card); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--faint); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ---- Navigation: a white card floating over every page. Each tab carries its feature's colour, and
   a menu opens as a matching card under it. ---- */
/* Corners: the hero's are 34px, the tab's lower ones match, the menu card is 24px (10px in), and the
   tabs and buttons inside are 13px (24 less the 11px around a 40px tab). */
.nav { --nav-r: 24px; --nav-in: 13px; position: fixed; z-index: 50; }
.nav-bar { position: relative; z-index: 2; color: var(--text); }
.nav-bar > .wrap { display: flex; align-items: center; width: 100%; height: 62px; padding: 0 10px 0 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 23px/1 "Fredoka", var(--display); letter-spacing: -0.01em; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand-mark img { height: 15px; width: auto; }
:root[data-theme="dark"] .nav .brand-mark { background: #fff; }
:root[data-theme="dark"] .nav .brand-mark img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .brand-mark { background: #fff; } :root:not([data-theme="light"]) .nav .brand-mark img { filter: invert(1); } }
/* The theme switch shows the moon in light, the sun in dark. */
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 30px; }
.dd { display: flex; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--nav-in); font: 600 14.5px/1 var(--body); color: color-mix(in srgb, var(--text) 78%, transparent); transition: background-color 0.18s, color 0.18s; }
.nav-link svg.i { width: 17px; height: 17px; color: var(--c); }
.nav-link:hover, .dd:hover .nav-link, .dd.open .nav-link, .nav-link[aria-current] { background: color-mix(in srgb, var(--c) 13%, var(--bg)); color: var(--text); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--nav-in); font-size: 14px; font-weight: 600; background: var(--blue-soft); color: var(--blue); transition: background-color 0.18s; }
.lang-pill svg.i { width: 16px; height: 16px; }
.lang-pill:hover { background: color-mix(in srgb, var(--blue) 20%, var(--bg)); }
.theme-btn { color: var(--spin); background: color-mix(in srgb, var(--spin) 13%, var(--bg)); }
.theme-btn:hover { background: color-mix(in srgb, var(--spin) 22%, var(--bg)); }
:root[data-theme="dark"] .theme-btn { color: var(--board); background: color-mix(in srgb, var(--board) 16%, var(--bg)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn { color: var(--board); background: color-mix(in srgb, var(--board) 16%, var(--bg)); } }
.get-btn { height: 40px; border-radius: var(--nav-in); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--nav-in, 12px); display: grid; place-items: center; transition: background-color 0.2s; }
.icon-btn:hover { background: var(--soft); }
.nav-menu { display: none; }

/* The header hangs from the top edge as a white tab with rounded lower corners, the same everywhere and
   all the way down the page. At the top of the home page the hero is cut out around it: two small
   fillets curve the hero's top edge into the cut, and the tab's corners match the hero's 34px. Over
   white sections a thin outline keeps it visible. */
.nav { top: 0; left: 50%; right: auto; width: min(1180px, calc(100vw - 180px)); transform: translateX(-50%); }
.nav-bar { padding: 10px; border-radius: 0 0 34px 34px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--hair), inset 1px 0 0 var(--hair), inset -1px 0 0 var(--hair); transition: box-shadow 0.3s; }
.nav .nav-bar { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--hair) calc((1 - var(--cut)) * 100%), transparent), inset 1px 0 0 color-mix(in srgb, var(--hair) calc((1 - var(--cut)) * 100%), transparent), inset -1px 0 0 color-mix(in srgb, var(--hair) calc((1 - var(--cut)) * 100%), transparent); }
.nav { --edge: 10px; --cut: 0; animation: drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes drop { from { translate: 0 -100%; } }
.nav-bar::before, .nav-bar::after { --r: calc(24px * var(--cut)); content: ""; position: absolute; top: var(--edge); width: var(--r); height: var(--r); pointer-events: none; }
.nav-bar::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - 0.5px), var(--bg) var(--r)); }
.nav-bar::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 0.5px), var(--bg) var(--r)); }
.mega { top: calc(100% + 6px); }

/* A menu: a card under the bar */
.mega { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 1; border-radius: var(--nav-r); background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); color: var(--text); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.18s; }
.mega::before { content: ""; position: absolute; inset: -10px 0 100%; }
.dd:hover .mega, .dd:focus-within .mega, .dd.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega .mega-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 10px 10px 10px 18px; }
.mega .mega-inner > div:first-child { padding-block: 14px; }
.mega-head { margin: 4px 10px 12px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mega-grid { display: grid; gap: 2px 16px; }
.mega-grid.two { grid-template-columns: 1fr 1fr; }
.nav-dim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 6, 10, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.nav.menu-open + .nav-dim { opacity: 1; }
.mega-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: calc(var(--nav-r) - 10px); min-height: 196px; }
.mega-card b { font: 700 24px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mega-card small { font-size: 13.5px; }
.mc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.mc-link svg.i { width: 15px; height: 15px; transition: transform 0.2s; }
.mega-card:hover .mc-link svg.i { transform: translateX(3px); }
.mc-blue { background: var(--blue) url(/img/dust.png) 0 0 / 206px; color: #fff; }
.mc-blue small { opacity: 0.8; }
.mc-blue .mining-pill { align-self: flex-start; margin-top: 4px; }
.mc-dark { background: #101015; color: #fff; }
.mc-dark small { color: #9a9caa; }
.mc-xo { display: grid; grid-template-columns: repeat(3, 26px); gap: 4px; margin-bottom: 8px; }
.mc-xo i { height: 26px; border-radius: 7px; background: #1c1c24; display: grid; place-items: center; font: 700 13px/1 var(--display); font-style: normal; }
.mc-soft { background: var(--soft); }
.mc-soft small { color: var(--muted); }
.mc-token { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 0 0 6px var(--blue-soft); }
.mc-token img { height: 20px; width: auto; }

.pop {
  position: absolute; top: 72px; inset-inline-end: var(--gutter); z-index: 60;
  width: min(300px, calc(100vw - 32px)); max-height: min(70vh, 540px); overflow: auto;
  background: var(--card); color: var(--text); border-radius: 20px; padding: 6px;
  box-shadow: inset 0 0 0 1px var(--hair);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s;
}
.pop.open { opacity: 1; transform: none; pointer-events: auto; }
.pop a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 14px; font-weight: 500; font-size: 15px; }
.pop a:hover { background: var(--soft); }
.pop a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pop .pop-cta { margin: 6px; }
.pop .pop-cta .btn { width: 100%; }

/* A page in a menu: an icon tile, its name and a line */
.dd-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background-color 0.15s; }
.dd-item:hover { background: var(--soft); }
.dd-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
.dd-ico svg.i { width: 19px; height: 19px; }
.dd-item b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.dd-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.pop-menu { width: min(360px, calc(100vw - 24px)); }
.pop-head { margin: 12px 12px 4px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pop-menu .dd-item { padding: 8px 10px; justify-content: flex-start; text-align: start; }

/* ---- Hero: Lia blue, the headline, and three phones rising from the bottom edge ---- */
.hero { padding: 10px; }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 34px;
  background: var(--blue) url(/img/dust.png) 0 0 / 280px; color: #fff; text-align: center;
  padding-top: clamp(130px, 16vh, 168px);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: background-color 0.2s; }
.status:hover { background: rgba(255, 255, 255, 0.18); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.status svg.i { width: 14px; height: 14px; opacity: 0.7; }
.hero h1 { font-size: clamp(52px, 8vw, 118px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.94; }
.hero h1 .line:nth-child(2) { color: rgba(255, 255, 255, 0.5); }
.hero-lead { font-size: clamp(17px, 1.5vw, 19.5px); max-width: 38ch; margin-top: 26px; color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero .hero-actions { justify-content: center; }
.btn-onblue { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn-onblue:hover { background: rgba(255, 255, 255, 0.2); }

.devices { position: relative; height: clamp(380px, 46vw, 520px); margin-top: clamp(48px, 6vw, 72px); }
.device {
  --w: 300px; --h: 620px;
  position: absolute; top: 0; left: 50%; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  border-radius: 50px; padding: 10px; background: #0d0d10; box-shadow: inset 0 0 0 1.5px #34343b;
}
.device::before { content: ""; position: absolute; z-index: 3; top: 21px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #000; }
.device-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 40px; background: #f4f5f9; color: var(--ink); font-family: -apple-system, "SF Pro Text", var(--body); text-align: start; }
.devices .device { opacity: 0; translate: 0 60px; transition: opacity 0.9s ease, translate 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.devices.in .device { opacity: 1; translate: 0 0; }
.devices.reveal { opacity: 1; transform: none; }
.devices.in .device-strides, .devices.in .device-xo { transition-delay: 0.15s; }
.home-bar { position: absolute; bottom: 8px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 4px; background: rgba(11, 11, 15, 0.85); }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0 30px; height: 44px; font: 600 14px/1 -apple-system, var(--body); }
.sb-r { display: flex; gap: 5px; align-items: center; }
.sb-r svg { height: 11px; width: auto; fill: currentColor; }

/* The Home screen: the blue top, the white sheet */
.device-home .screen-top { background: var(--blue) url(/img/dust.png) 0 0 / 206px; color: #fff; padding: 0 16px 34px; text-align: center; }
.device-home .sb { padding-inline: 14px 10px; color: #fff; }
.device-home .home-bar { background: rgba(11, 11, 15, 0.8); }
.screen-top .bar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px; }
.screen-top .avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.screen-top .chips { display: flex; gap: 6px; }
.screen-top .chip { height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.screen-top .chip.round { width: 30px; padding: 0; justify-content: center; }
.screen-top .chip svg { width: 13px; height: 13px; }
.bal-label { display: block; font-size: 12px; opacity: 0.78; margin-bottom: 4px; }
.screen-top .bal { font: 700 32px/1 -apple-system, var(--body); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.screen-top .bal small { font-size: 14px; font-weight: 600; opacity: 0.85; letter-spacing: 0; }
.mining-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 12px; font-weight: 500; }
.mining-pill i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.balance-actions { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.balance-actions div { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 500; }
.balance-actions b { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.balance-actions b svg { width: 19px; height: 19px; }
.screen-sheet { background: #fff; border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; padding: 14px; height: 100%; }
.session { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 16px; background: #f4f5f9; }
.session-ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.session-ring circle { fill: none; stroke: #d7f5e2; stroke-width: 4.5; }
.session-ring .p { stroke: var(--mine); stroke-dasharray: 100; stroke-dashoffset: 26; stroke-linecap: round; }
.session b { display: block; font-size: 13px; }
.session span span { font-size: 11.5px; color: #6b6e7b; }
.session .go { margin-inline-start: auto; padding: 7px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; }
.sheet-head { display: flex; justify-content: space-between; margin: 14px 2px 2px; font-weight: 700; font-size: 14px; }
.sheet-head a { color: var(--blue); font-weight: 600; font-size: 12px; }

/* The Strides screen */
.app-head { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; padding: 10px 16px; text-align: center; }
.app-head svg.i { transform: rotate(90deg); width: 20px; height: 20px; }
[dir="rtl"] .app-head svg.i { transform: rotate(-90deg); }
.app-head b { font-size: 15px; }
.big-ring { position: relative; width: 186px; height: 186px; margin: 16px auto 0; }
.big-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.big-ring .track { stroke: #ffe7d4; }
.big-ring .prog { stroke: var(--strides); stroke-dasharray: 100; stroke-dashoffset: 58; }
.big-ring > div { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; }
.big-ring > div svg { color: var(--strides); width: 22px; height: 22px; margin-bottom: 4px; }
.big-ring b { font-size: 30px; letter-spacing: -0.03em; }
.big-ring span { font-size: 11.5px; color: #6b6e7b; }
.claim-card { margin: 18px 16px 0; padding: 13px 14px; border-radius: 16px; background: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #6b6e7b; }
.claim-card b { color: #16a34a; font-size: 15px; }
.claim-btn { display: block; margin: 10px 16px 0; padding: 12px; border-radius: 999px; background: var(--strides); color: #fff; text-align: center; font-size: 13px; font-weight: 600; }
.week-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin: 18px 22px 0; }
.week-bars i { flex: 1; height: var(--h); border-radius: 6px; background: #ffd9bd; }
.week-bars i.today { background: var(--strides); }

/* The Lia XO screen */
.device-xo .device-screen { background: #0f0f14; color: #fff; }
.device-xo .home-bar { background: rgba(255, 255, 255, 0.8); }
.xo-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 0; }
.xo-top b { font-size: 15px; }
.xo-top span { font-size: 11px; color: #9a9caa; }
.xo-players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 14px 0; }
.pl { padding: 11px; border-radius: 16px; background: #1a1a22; display: grid; justify-items: start; gap: 2px; box-shadow: inset 0 0 0 1.5px transparent; }
.pl.turn { box-shadow: inset 0 0 0 1.5px var(--blue); }
.pl i { font: 700 15px/1 var(--display); font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 6px; background: #24242e; }
.pl b { font-size: 13px; }
.pl small { font-size: 11px; color: #9a9caa; }
.mx { color: #6b8cff; }
.mo { color: #f5c542; }
.xo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 18px 14px 0; }
.xo-grid i { aspect-ratio: 1; border-radius: 14px; background: #1a1a22; display: grid; place-items: center; font: 600 30px/1 var(--display); font-style: normal; }
.xo-grid i.hint { box-shadow: inset 0 0 0 1.5px rgba(107, 140, 255, 0.5); }
.xo-timer { height: 5px; margin: 18px 14px 0; border-radius: 4px; background: #1a1a22; overflow: hidden; }
.xo-timer i { display: block; height: 100%; width: 62%; background: var(--blue); border-radius: 4px; }

/* A phone standing on its own (feature pages, Builders) */
.device.static, .fh-device .device { position: relative; top: auto; left: auto; margin: 0 auto; transform: none; }
.fh-device { height: 440px; overflow: hidden; border-radius: 24px; background: color-mix(in srgb, var(--c) 10%, var(--card)); padding-top: 40px; }
.builder-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; padding-bottom: 60px; }
.builder-device { height: 560px; width: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.device-pay .device-screen { background: #120d38; }
.pay-game { position: relative; height: 220px; color: #fff; background: linear-gradient(180deg, #24196b, #120d38); overflow: hidden; }
.pay-game .lane { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 32%, rgba(255, 255, 255, 0.06) 32% 33%); }
.pay-game .ball { position: absolute; left: 50%; top: 130px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #60a5fa 45%, #2f5bff); }
.pay-game .spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fcd34d; }
.pay-sheet { position: absolute; inset: 160px 0 0; background: #fff; border-radius: 26px 26px 0 0; padding: 8px 18px 0; color: var(--ink); }
.grab { display: block; width: 36px; height: 5px; border-radius: 4px; background: #dcdde3; margin: 0 auto 8px; }
.pay-head { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; text-align: center; font-size: 15px; }
.pay-head svg.i { width: 18px; height: 18px; color: #8b8e9a; }
.pay-seller { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #6b6e7b; }
.app-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #ede9fe; color: #7c3aed; }
.app-ico svg.i { width: 14px; height: 14px; }
.pay-big { text-align: center; font: 700 34px/1.1 -apple-system, var(--body); letter-spacing: -0.03em; margin-top: 8px; }
.pay-rows { margin-top: 14px; border-radius: 16px; background: #f4f5f9; }
.pay-rows div { display: flex; justify-content: space-between; padding: 11px 14px; font-size: 13px; }
.pay-rows div + div { border-top: 1px solid #e8e9ef; }
.pay-rows span { color: #6b6e7b; }
.pay-btn { display: block; margin-top: 14px; padding: 13px; border-radius: 999px; background: var(--blue); color: #fff; text-align: center; font-size: 14px; font-weight: 600; }

/* Under the hero: four plain facts */
.trust { border-bottom: 1px solid var(--hair); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; padding: 26px 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust svg.i { width: 18px; height: 18px; color: var(--c); }
.trust span:nth-child(1) { --c: var(--mine); } .trust span:nth-child(2) { --c: var(--invite); } .trust span:nth-child(3) { --c: var(--spin); } .trust span:nth-child(4) { --c: var(--board); }

/* Everyday life: the photo with Lia's balance card on it */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.story .lead { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 38ch; }
.story-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sky); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%; }
.story-photo .balance-card { position: absolute; inset-inline-start: 20px; bottom: 20px; width: 260px; padding: 18px; border-radius: 22px; text-align: center; color: #fff; background: var(--blue) url(/img/dust.png) 0 0 / 206px; }
.story-photo .balance-card small { display: block; font-size: 12px; opacity: 0.8; }
.balance-amount { font: 600 30px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.balance-amount span { font-size: 14px; opacity: 0.8; margin-inline-start: 5px; letter-spacing: 0; }

/* Statement rows, as in the app */
.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.row + .row { border-top: 1px solid #eeeff3; }
.row .ico, .row .av, .row .rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
.row .ico svg { width: 17px; height: 17px; }
.row .av { font: 600 13px var(--body); }
.row .rank { font: 600 13px var(--display); background: color-mix(in srgb, var(--c) 16%, #fff); }
.row .what { flex: 1; min-width: 0; font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.row .what small { display: block; color: #8b8e9a; font-weight: 400; font-size: 12px; }
.row .amt { font-weight: 600; font-size: 13.5px; color: #16a34a; font-variant-numeric: tabular-nums; }

/* ---- The languages, drifting by ---- */
.tongues { padding: 44px 0 40px; text-align: center; overflow: hidden; }
.tongues .mono { margin-bottom: 22px; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: drift 40s linear infinite; }
.marquee-track span { padding-inline-end: 56px; font: 600 22px/1 var(--display); letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* One set of names slides by, exactly its own width (site.js measures it and adds enough copies to fill any screen). */
@keyframes drift { to { transform: translateX(calc(-1 * var(--set, 50%))); } }
/* Names of languages, so the same direction everywhere (right to left would push the track off screen). */
.marquee { direction: ltr; }

/* ---- Sections and their heads ---- */
.section { padding: clamp(84px, 11vw, 140px) 0; }
.soft { background: var(--soft); }
.label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.label-dark { color: rgba(255, 255, 255, 0.7); }
.head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2, .h2 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.04; }
.head h2 > span:not(.w), .h2 > span:not(.w) { color: var(--faint); }
.dark { background: var(--night); color: #f5f5f7; --text: #f5f5f7; --muted: #8e909c; --faint: #55575f; --hair: #1f1f24; --soft: #111114; --card: #111114; --well: #18181c; }
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow::before { content: none; }

/* ---- Earn: six cards, each showing the app's own screen for it ---- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { border-radius: var(--radius); background: var(--card); padding: 14px 14px 26px; box-shadow: var(--shadow); }
.feature h3 { font-size: 22px; letter-spacing: -0.025em; margin: 22px 12px 0; }
.feature p { margin: 8px 12px 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ui { height: 232px; border-radius: 20px; background: var(--well); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; overflow: hidden; color: var(--text); }
.ui-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.ui-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mine); animation: pulse 2s infinite; }

.ring-wrap { position: relative; width: 132px; height: 132px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: color-mix(in srgb, var(--mine) 16%, transparent); }
.ring .prog { stroke: var(--mine); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.in .ring .prog { stroke-dashoffset: 26; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font: 600 22px/1 var(--display); letter-spacing: -0.03em; }
.ring-text span { font-size: 12px; color: var(--muted); margin-top: 4px; }

.ui-steps { justify-content: flex-end; padding: 26px 26px 20px; align-items: stretch; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; }
.bars i { flex: 1; height: 0; border-radius: 8px; background: color-mix(in srgb, var(--strides) 22%, transparent); transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bars i.today { background: var(--strides); }
.in .bars i { height: var(--h); }
.bars i:nth-child(2) { transition-delay: 0.06s; } .bars i:nth-child(3) { transition-delay: 0.12s; } .bars i:nth-child(4) { transition-delay: 0.18s; }
.bars i:nth-child(5) { transition-delay: 0.24s; } .bars i:nth-child(6) { transition-delay: 0.3s; } .bars i:nth-child(7) { transition-delay: 0.36s; }
.ui-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.ui-foot b { font: 600 18px var(--display); color: var(--text); letter-spacing: -0.02em; }
.ui-foot em { font-style: normal; font-weight: 600; color: #16a34a; }

.mini-wheel { width: 148px; height: 148px; border-radius: 50%; position: relative; border: 6px solid var(--card); box-shadow: var(--shadow);
  background: conic-gradient(#8b5cf6 0 45deg, #c4b5fd 0 90deg, #8b5cf6 0 135deg, #ddd6fe 0 180deg, #7c3aed 0 225deg, #c4b5fd 0 270deg, #a78bfa 0 315deg, #ede9fe 0 360deg);
  animation: turn 18s linear infinite; }
.mini-wheel i { position: absolute; inset: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.ui-spin .toast { position: absolute; top: 24px; inset-inline-end: 22px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
@keyframes turn { to { transform: rotate(360deg); } }

.ui-streak { gap: 22px; }
.streak-top { display: flex; align-items: baseline; gap: 8px; color: var(--strides); }
.streak-top svg.i { width: 26px; height: 26px; align-self: center; }
.streak-top b { font: 600 44px/1 var(--display); letter-spacing: -0.04em; color: var(--text); }
.streak-top span { color: var(--muted); font-size: 14px; }
.days { display: flex; gap: 8px; }
.days i { width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--hair); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; }
.days i.done { background: color-mix(in srgb, var(--strides) 18%, var(--card)); box-shadow: none; position: relative; }
.days i.done::after { content: ""; width: 9px; height: 5px; border: solid var(--strides); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.days i.now { background: var(--strides); color: #fff; box-shadow: none; }

.ui-list { align-items: stretch; padding: 18px 20px; gap: 0; }
.ui-list .row { padding: 10px 4px; }
.ui-list .row + .row { border-color: var(--hair); }
.ui-list .row .what { color: var(--text); }
.ui-board .row.me { background: var(--blue-soft); border-radius: 14px; margin: 2px -8px 0; padding: 10px 12px; border: 0; }
.ui-board .amt { color: var(--text); }

/* ---- Lists of points ---- */
.points { list-style: none; padding: 0; margin: 34px 0 0; }
.points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--hair); }
.points .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--c); }
.points li:nth-child(4n+1) { --c: var(--mine); } .points li:nth-child(4n+2) { --c: var(--invite); } .points li:nth-child(4n+3) { --c: var(--spin); } .points li:nth-child(4n+4) { --c: var(--strides); }
.dark .points .ico { background: color-mix(in srgb, var(--c) 20%, #111114); }
.points .ico svg { width: 18px; height: 18px; }
.points b { display: block; font-weight: 600; font-size: 15.5px; }
.points span span { color: var(--muted); font-size: 15px; }

/* ---- Friends ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .float { position: absolute; inset-inline: 18px; bottom: 18px; max-width: 320px; background: rgba(255, 255, 255, 0.9); color: var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 22px; padding: 14px; }
.bubble { display: flex; gap: 10px; align-items: flex-end; }
.bubble .who { width: 28px; height: 28px; border-radius: 50%; background: var(--strides); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.bubble p { background: #f0f1f5; border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 14px; line-height: 1.35; }
.gift { margin-top: 8px; margin-inline-start: auto; width: fit-content; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 12px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.gift svg { width: 16px; height: 16px; }

/* ---- Play ---- */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.game-art { aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative; overflow: hidden; margin: 12px 12px 0; border-radius: 20px; }
.game-body { padding: 20px 24px 26px; }
.game-body h3 { font-size: 22px; letter-spacing: -0.025em; }
.game-body p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.game-body .tag { display: inline-block; margin-top: 14px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.xo { background: #101015; }
.xo-board { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); gap: 8px; }
.xo-board i { border-radius: 14px; background: #1c1c24; display: grid; place-items: center; font: 600 26px/1 var(--display); font-style: normal; }
.xo-board .x { color: #6b8cff; }
.xo-board .o { color: #f5c542; }
.xo-board .win { background: #222c5c; }
.tilt { background: linear-gradient(180deg, #24196b, #0f0b2e); }
.tilt .lane { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 32%, rgba(255, 255, 255, 0.06) 32% 33%); }
.tilt .ball { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #60a5fa 45%, #2f5bff); box-shadow: 0 0 40px rgba(96, 165, 250, 0.75); position: relative; top: 40px; }
.tilt .spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fcd34d; box-shadow: 0 0 16px #fcd34d; }
.wheel { background: var(--well); }
.wheel-disc { width: 176px; height: 176px; border-radius: 50%; border: 7px solid var(--card); box-shadow: var(--shadow);
  background: conic-gradient(#2f5bff 0 45deg, #93a8ff 0 90deg, #2f5bff 0 135deg, #c9d4ff 0 180deg, #1f45e0 0 225deg, #93a8ff 0 270deg, #4a6fff 0 315deg, #e3e9ff 0 360deg);
  animation: turn 16s linear infinite; }
.wheel .pointer { position: absolute; top: calc(50% - 104px); left: 50%; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid var(--ink); }
.apps-band { margin-top: 14px; border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; gap: 20px; background: var(--card); box-shadow: var(--shadow); }
.apps-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.apps-icon svg { width: 26px; height: 26px; }
.apps-band h3 { font-size: 20px; letter-spacing: -0.02em; }
.apps-band p { color: var(--muted); margin-top: 4px; font-size: 15.5px; }
.apps-band .btn { margin-inline-start: auto; }

/* ---- Builders band ---- */
.band { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; min-height: 580px; display: flex; align-items: flex-end; color: #fff; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 6, 10, 0.9) 0%, rgba(6, 6, 10, 0.55) 45%, rgba(6, 6, 10, 0.05) 100%); }
.band-body { padding: clamp(28px, 5vw, 56px); max-width: 700px; }
.band h2 { font-size: clamp(36px, 4.8vw, 58px); }
.band p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, 0.78); }
.band .btn { margin-top: 26px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.perks span { padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 500; }

/* ---- $LIA ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { border-radius: var(--radius); padding: 30px; background: var(--card); box-shadow: var(--shadow); min-height: 300px; display: flex; flex-direction: column; }
.step .when { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step .when i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.step.now .when i { background: var(--mine); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.step h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: auto; padding-top: 48px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.step.supply { background: var(--ink); color: #fff; box-shadow: none; --muted: #9a9caa; }
.step.supply h3 { font-variant-numeric: tabular-nums; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 500; font-size: 15px; color: var(--blue); }
.step.supply .link { color: #fff; }
.link svg.i { width: 16px; height: 16px; }

/* ---- The last call ---- */
.cta-wrap { padding: 10px; }
/* The last call: a Lia blue card, the words on one side and a video in an inset frame on the other
   (12px in, so its 22px corners sit concentric with the card's 34px). */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 12px; padding: 12px; border-radius: 34px; background: var(--blue) url(/img/dust.png) 0 0 / 280px; color: #fff; }
.cta-text { padding: clamp(28px, 5vw, 64px); }
.cta h2 { font-size: clamp(44px, 5.6vw, 84px); letter-spacing: -0.045em; line-height: 0.96; max-width: 10ch; }
.cta h2 > span:not(.w) { display: block; font-size: clamp(17px, 1.5vw, 19px); letter-spacing: -0.01em; line-height: 1.55; color: rgba(255, 255, 255, 0.78); font-family: var(--body); font-weight: 400; max-width: 32ch; margin-top: 22px; }
.cta .get-row { margin-top: 30px; }
.cta .store { background: #fff; color: var(--ink); }
.cta-media { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 12; background: #1b2a6b; }
.cta-media .vid { position: absolute; inset: 0; }
.get-page { padding-top: 96px; min-height: calc(100svh - 10px); display: grid; align-items: center; }

/* An invite link's page (lialabs.org/@alex): who invited you, Open in Lia and Copy. */
.inviter { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); margin-bottom: 26px; }
[dir="rtl"] .inviter { padding: 6px 6px 6px 18px; }
.inviter-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 20px/1 "Fredoka", var(--display); background: #fff; text-transform: uppercase; }
.inviter small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.2; }
.inviter b { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.invite-page .cta h2 { max-width: 12ch; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.invite-copy { background: rgba(255, 255, 255, 0.14); color: #fff; }
.invite-copy:hover { background: rgba(255, 255, 255, 0.22); }
.invite-get { margin-top: 30px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.invite-page .cta .get-row { margin-top: 12px; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.store svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.store small { display: block; font-size: 10.5px; opacity: 0.7; line-height: 1.1; }
.store b { display: block; font: 600 16.5px/1.15 var(--display); letter-spacing: -0.01em; }
.soon { font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: #1d2433; }

/* ---- Inner pages ---- */
.page-hero { padding: 170px 0 80px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -0.045em; line-height: 0.96; max-width: 13ch; }
.page-hero h1 > span:not(.w) { color: var(--faint); }
.page-hero .lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 44ch; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .hero-actions { justify-content: center; }

.contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.contact > div { max-width: 760px; }
.dark .page-hero h1 > span:not(.w) { color: #4b4d56; }

/* ---- Feature pages ---- */
.crumbs { display: flex; gap: 8px; margin-bottom: 26px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.feature-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 6vw, 80px); padding: 160px 0 90px; }
.feature-hero h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; line-height: 0.98; }
.feature-hero h1 > span:not(.w) { color: var(--faint); }
.feature-hero .lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 42ch; }
.feature-hero .hero-actions { margin-top: 30px; }
.fh-ui { border-radius: 32px; background: var(--well); padding: 16px; }
.fh-ui .ui { height: 400px; background: color-mix(in srgb, var(--c) 9%, var(--card)); border-radius: 24px; }
.fh-ui .ui-list { padding: 40px 36px; justify-content: center; }
.fh-art .game-art { margin: 0; aspect-ratio: auto; height: 400px; border-radius: 24px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { padding: 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.related-card:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--faint); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-block: clamp(70px, 9vw, 110px); padding: clamp(32px, 5vw, 56px); border-radius: 32px; background: var(--blue); color: #fff; }
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); max-width: 16ch; }
.cta-band h2 > span:not(.w) { color: rgba(255, 255, 255, 0.6); }
.cta-band .store { background: #fff; color: var(--ink); }
.cta-band .soon { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* A feature page's long-form part: the title on one side, two paragraphs on the other */
.detail-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.detail-grid .head { margin-bottom: 0; }
.detail-text p { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.7; color: var(--muted); }
.detail-text p:first-child { color: var(--text); }
.detail-text p + p { margin-top: 20px; }

/* The roadmap: steps along a line */
.timeline { position: relative; display: grid; gap: 14px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 9px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--hair); }
.tl { position: relative; padding: 28px 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tl::before { content: ""; position: absolute; inset-inline-start: -32px; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--faint); }
.tl.now::before { background: var(--mine); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.tl .when { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tl .when i { display: none; }
.tl h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 14px; }
.tl p { margin-top: 10px; color: var(--muted); max-width: 62ch; }

/* The roadmap by quarter: the quarter on the left, what happens on the right, along a line */
.quarters { position: relative; display: grid; gap: 12px; }
.quarters::before { content: ""; position: absolute; inset-inline-start: 133px; top: 70px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--hair); }
.year { margin: 26px 0 6px; font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.04em; color: var(--faint); }
.year:first-child { margin-top: 0; }
.q { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 46px; align-items: start; }
.q::before { content: ""; position: absolute; inset-inline-start: 127px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 2px var(--faint); }
.q.now::before { background: var(--mine); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.q-when { padding-top: 26px; font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: end; }
.q.now .q-when { color: var(--text); }
.q-card { padding: 22px 26px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.q.now .q-card { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mine) 55%, transparent); }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-head h3 { font-size: 21px; }
.q-state { padding: 5px 10px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: color-mix(in srgb, var(--mine) 16%, var(--card)); color: #15803d; }
.q-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.q-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.q-card li svg.i { width: 17px; height: 17px; margin-top: 3px; color: var(--c, var(--blue)); flex: none; }
.q.now li svg.i { color: var(--mine); }
@media (max-width: 640px) {
  .quarters::before { inset-inline-start: 6px; top: 60px; }
  .q { grid-template-columns: 1fr; gap: 8px; padding-inline-start: 26px; }
  .q::before { inset-inline-start: 0; top: 4px; }
  .q-when { padding-top: 0; text-align: start; }
}

/* The whitepaper's contents */
.toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--hair); }
.toc li:last-child { border-bottom: 1px solid var(--hair); }
.toc li::before { content: "0" counter(toc); grid-row: span 2; font: 600 13px/1.6 var(--mono); color: var(--blue); }
.toc b { font-weight: 600; font-size: 17px; }
.toc span { color: var(--muted); }

/* A chat, as in the app */
.ui-chat { align-items: stretch; justify-content: center; padding: 26px; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg p { padding: 10px 13px; border-radius: 18px 18px 18px 5px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; max-width: 80%; }
.msg .who { width: 28px; height: 28px; border-radius: 50%; background: var(--strides); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.msg.me { justify-content: flex-end; }
.msg.me p { background: var(--blue); color: #fff; box-shadow: none; border-radius: 18px 18px 5px 18px; }
.gift-msg p { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.gift-msg svg.i { width: 16px; height: 16px; }

/* The token mark: Lia's L in a coin of rings */
.token-mark { width: 200px; height: 200px; margin: 0 auto 40px; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--blue); box-shadow: 0 0 0 14px var(--blue-soft), 0 0 0 28px color-mix(in srgb, var(--blue-soft) 50%, transparent); }
.token-mark img { height: 70px; width: auto; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { border-radius: var(--radius); padding: 30px; background: var(--card); box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 40px; background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--c); }
.card:nth-child(6n+1) { --c: var(--mine); } .card:nth-child(6n+2) { --c: var(--invite); } .card:nth-child(6n+3) { --c: var(--spin); }
.card:nth-child(6n+4) { --c: var(--strides); } .card:nth-child(6n+5) { --c: var(--tasks); } .card:nth-child(6n+6) { --c: var(--board); }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 22px; letter-spacing: -0.025em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.feature-list div { padding: 22px 0; border-top: 1px solid var(--hair); display: flex; gap: 14px; }
.feature-list svg { color: var(--c); margin-top: 3px; }
.feature-list div:nth-child(6n+1) { --c: var(--mine); } .feature-list div:nth-child(6n+2) { --c: var(--invite); } .feature-list div:nth-child(6n+3) { --c: var(--spin); }
.feature-list div:nth-child(6n+4) { --c: var(--strides); } .feature-list div:nth-child(6n+5) { --c: var(--tasks); } .feature-list div:nth-child(6n+6) { --c: var(--board); }
.feature-list b { display: block; font-weight: 600; font-size: 15.5px; }
.feature-list span span { color: var(--muted); font-size: 15px; }

.code { border-radius: var(--radius); background: #0c0c11; color: #e4e5ec; padding: 28px 30px; overflow-x: auto; font: 13.5px/1.8 var(--code); box-shadow: inset 0 0 0 1px #202028; margin: 40px 0 0; }
.code .c { color: #6c7080; }
.code .k { color: #a78bfa; }
.code .s { color: #4ade80; }
.code .f { color: #7aa2ff; }

.how { counter-reset: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how div { counter-increment: how; padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.how div::before { content: "0" counter(how); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 700 13px/1 var(--mono); letter-spacing: 0.04em; background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--c); margin-bottom: 36px; }
.how div:nth-child(1) { --c: var(--mine); } .how div:nth-child(2) { --c: var(--invite); } .how div:nth-child(3) { --c: var(--spin); }
.how b { display: block; font: 600 22px/1.15 var(--display); letter-spacing: -0.025em; }
.how span { display: block; margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.earn-table { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 6px 24px; }
.earn-table .row { padding: 16px 0; gap: 16px; }
.earn-table .row + .row { border-color: var(--hair); }
.earn-table .ico { width: 42px; height: 42px; background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.earn-table .what { font-size: 16px; color: var(--text); }
.earn-table .what small { font-size: 14px; color: var(--muted); margin-top: 2px; }
.earn-table .amt { color: var(--text); font-size: 15.5px; text-align: end; }

.facts { padding: 48px 0; border-block: 1px solid var(--hair); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact b { display: block; font: 600 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.035em; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font: 600 19px/1.35 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: 20px; padding: 20px 22px; background: var(--card); box-shadow: var(--shadow); }
.notice svg { color: var(--mine); margin-top: 2px; width: 22px; height: 22px; }
.notice b { display: block; font-weight: 600; }
.notice span span { color: var(--muted); }

.doc { max-width: 760px; margin: 0 auto; padding: 170px 0 110px; }
.doc h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.045em; }
.doc .updated { color: var(--muted); margin-top: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.doc-section { margin-top: 44px; }
.doc-section h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 12px; }
.doc-section p { color: var(--muted); }
.doc-section p + p { margin-top: 12px; }

/* ---- Get the app panel ---- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 10, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(420px, 100%); border-radius: 30px; background: var(--card); color: var(--text); padding: 32px; text-align: center; position: relative; transform: translateY(16px); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal.open .modal-card { transform: none; }
.modal-card .close { position: absolute; top: 14px; inset-inline-end: 14px; }
.modal-card h2 { font-size: 30px; }
.modal-card p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.qr { width: 192px; height: 192px; margin: 24px auto 0; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--hair); position: relative; }
.qr img { width: 100%; height: 100%; }
.qr .qr-mark { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 6px #fff; }
.qr .qr-mark img { width: auto; height: 18px; }
.modal-card .get-row { justify-content: center; margin-top: 24px; }
.modal-card .soon { background: var(--soft); color: var(--muted); }

/* ---- Footer: a statement, the pages, every language, and Lia's name across the bottom ---- */
.footer { background: var(--night); color: #b9bbc6; padding-top: clamp(72px, 9vw, 110px); margin-top: 10px; overflow: hidden; }
.foot-lead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid #1d1d22; }
.foot-lead h2 { font-size: clamp(32px, 4vw, 52px); color: #fff; max-width: 17ch; }
.foot-lead h2 > span:not(.w) { color: #4b4d57; }
.foot-actions { display: flex; align-items: center; gap: 14px; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: #17171b; display: grid; place-items: center; color: #fff; transition: background-color 0.2s, transform 0.2s; }
.social a:hover { background: #26262c; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 32px; padding: 52px 0 20px; }
.footer h4 { font: 600 11.5px/1 var(--mono); color: #fff; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { position: relative; font-size: 15px; transition: color 0.2s; }
.footer ul a::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.footer ul a:hover { color: #fff; }
.footer ul a:hover::after { transform: scaleX(1); }
.foot-langs { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot-langs a[aria-current] { color: #fff; }
.foot-word { --fs: clamp(150px, 27vw, 400px); position: relative; height: calc(var(--fs) * 0.62); margin-top: 28px; overflow: hidden; }
.foot-word span { position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%) translateY(var(--rise, 30%)); font: 600 var(--fs)/1 "Fredoka", var(--display); letter-spacing: -0.03em; color: #17171c; white-space: nowrap; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.foot-word.in span { --rise: 0%; }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 30px; border-top: 1px solid #1d1d22; font-size: 14px; color: #7d808c; }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a:hover { color: #fff; }
.foot-chain { display: inline-flex; align-items: center; gap: 8px; }
.foot-chain svg.i { width: 16px; height: 16px; }

/* ---- Videos: muted loops that play only on screen, with their own pause button ---- */
.vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.band > .vid { position: absolute; inset: 0; z-index: -2; }
.story-photo .vid, .photo-card .vid { position: absolute; inset: 0; }
.vid-toggle { position: absolute; z-index: 3; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10, 10, 14, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); opacity: 0.85; transition: opacity 0.2s, background-color 0.2s; }
.vid-toggle:hover { opacity: 1; background: rgba(10, 10, 14, 0.55); }
.vid-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .play { display: none; fill: currentColor; stroke: none; }
.vid-toggle.paused .pause { display: none; }
.vid-toggle.paused .play { display: block; }
.band .vid-toggle { top: 20px; inset-inline-end: 20px; }

/* ---- Motion ---- */
/* Between pages: the old one fades out as the new one fades in. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s ease both fade-out; }
::view-transition-new(root) { animation: 0.32s ease both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* The hero builds in: the pill, each line of the title rising out of a mask, the text, the buttons. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-line { from { transform: translateY(105%); } }
.hero .status { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; animation: rise-line 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-lead { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.hero .hero-actions { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both; }
.feature-hero .crumbs, .page-hero .crumbs { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* The phones fan out a little as the page scrolls (--p goes 0 to 1). */
.devices { --p: 0; }
.devices .device-strides { transform: translateX(calc(-104% - var(--p) * 48px)) translateY(calc(80px + var(--p) * 20px)) rotate(calc(-6deg - var(--p) * 4deg)); }
.devices .device-xo { transform: translateX(calc(104% + var(--p) * 48px)) translateY(calc(80px + var(--p) * 20px)) rotate(calc(6deg + var(--p) * 4deg)); }
.devices .device-home { transform: translateY(calc(var(--p) * -28px)); }

/* Titles rise word by word as they come into view (site.js wraps the words). */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 40ms); }
.in .w > span, .w.in > span { transform: none; }

/* Sections arrive from a soft blur as well as below. */
.reveal { filter: blur(6px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease; }
.reveal.in { filter: none; }

/* The hero's dust drifts slowly. */
.hero-frame { animation: dust 90s linear infinite; }
@keyframes dust { to { background-position: 280px 560px; } }

/* The phones float gently once they're in. */
@keyframes bob { 50% { top: -10px; } }
.devices.in .device-home { animation: bob 7s ease-in-out 1.2s infinite; }
.devices.in .device-strides { animation: bob 8s ease-in-out 1.6s infinite; }
.devices.in .device-xo { animation: bob 7.5s ease-in-out 2s infinite; }

/* Live screens: a new Activity row slides in, the winning X lands and its line lights up. */
@keyframes row-in { from { opacity: 0; transform: translateY(-14px); max-height: 0; padding-block: 0; } to { max-height: 60px; } }
.device-home .row.new { animation: row-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.xo-grid i { transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; }
.xo-grid i.placed { animation: mark-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(6px); } }
.xo-grid i.line { background: #222c5c; }
.big-ring .prog { transition: stroke-dashoffset 0.8s ease; }

/* Videos drift a little against the page as it scrolls (site.js sets --shift). */
.story-photo .vid, .photo-card .vid, .band > .vid, .cta-media .vid { height: calc(100% + 60px); top: -30px; transform: translateY(var(--shift, 0px)); will-change: transform; }

/* Cards lift a little under the pointer. */
.feature, .game, .card, .related-card, .step, .how > div { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s; }
@media (hover: hover) {
  .feature:hover, .game:hover, .card:hover, .related-card:hover, .step:hover { transform: translateY(-4px); }
}

/* The app screens play when they come into view. */
.ui-list .row, .days i { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.in .ui-list .row, .in .days i { opacity: 1; transform: none; }
.ui-list .row:nth-child(2), .days i:nth-child(2) { transition-delay: 0.12s; }
.ui-list .row:nth-child(3), .days i:nth-child(3) { transition-delay: 0.24s; }
.days i:nth-child(4) { transition-delay: 0.36s; } .days i:nth-child(5) { transition-delay: 0.48s; }
.days i:nth-child(6) { transition-delay: 0.6s; } .days i:nth-child(7) { transition-delay: 0.72s; }
.ui-spin .toast { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease 0.6s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s; }
.in .ui-spin .toast { opacity: 1; transform: none; }

/* A menu's pages cascade in. */
.mega .dd-item, .mega .mega-card { opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dd:hover .mega .dd-item, .dd:focus-within .mega .dd-item, .dd.open .mega .dd-item, .dd:hover .mega .mega-card, .dd:focus-within .mega .mega-card, .dd.open .mega .mega-card { opacity: 1; transform: none; }
.mega .dd-item:nth-child(2) { transition-delay: 0.03s; } .mega .dd-item:nth-child(3) { transition-delay: 0.06s; }
.mega .dd-item:nth-child(4) { transition-delay: 0.09s; } .mega .dd-item:nth-child(5) { transition-delay: 0.12s; }
.mega .dd-item:nth-child(6) { transition-delay: 0.15s; } .mega .mega-card { transition-delay: 0.08s; }

/* ---- Coming into view ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .w > span, .ui-list .row, .days i, .ui-spin .toast, .mega .dd-item, .mega .mega-card { transform: none !important; opacity: 1 !important; transition: none !important; }
  .devices { --p: 0 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wheel-disc, .mini-wheel, .marquee-track, .mining-pill i, .ui-chip i { animation: none; }
  .reveal { filter: none !important; }
  .vid { transform: none !important; }
  .ring .prog { stroke-dashoffset: 26; transition: none; }
  .bars i { height: var(--h); transition: none; }
}

/* ---- Smaller screens ---- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .feature-hero, .faq-grid, .builder-hero, .detail-grid { grid-template-columns: 1fr; }
  .builder-device { margin: 0 auto; }
  .feature-hero { padding-top: 130px; }
  .related { grid-template-columns: 1fr; }
  .nav-menu { display: grid; }
  .features, .games, .cards, .feature-list, .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .supply { grid-column: 1 / -1; min-height: 0; }
  .showcase { grid-template-columns: 1fr; justify-items: center; }
  .showcase > div:first-child { max-width: 640px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols > :last-child { grid-column: 1 / -1; }
  .foot-langs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .devices { height: 430px; }
  .devices .device-strides { transform: translateX(calc(-74% - var(--p) * 30px)) translateY(90px) rotate(-6deg); }
  .devices .device-xo { transform: translateX(calc(74% + var(--p) * 30px)) translateY(90px) rotate(6deg); }
  .split, .story { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cta { grid-template-columns: 1fr; }
  .cta-media { order: -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* The hero sits 6px in with 26px corners; the tab matches them. */
  .nav { --nav-r: 22px; --nav-in: 12px; width: calc(100vw - 48px); }
  .nav-bar { padding: 6px; border-radius: 0 0 26px 26px; }
  .nav-bar > .wrap { height: 54px; padding-inline-start: 12px; }
  .nav-bar::before, .nav-bar::after { top: 6px; }
  .nav .get-btn, .lang-pill span { display: none; }
  .lang-pill { width: 40px; padding: 0; justify-content: center; box-shadow: none; }
  .hero { padding: 6px; }
  .hero-frame, .cta { border-radius: 26px; }
  .hero-frame { padding-top: 104px; }
  .devices { height: 380px; }
  .device { --w: 270px; --h: 560px; border-radius: 46px; }
  .device-screen { border-radius: 37px; }
  .device-strides, .device-xo { display: none; }
  .trust .wrap { justify-content: flex-start; gap: 12px 24px; font-size: 13.5px; }
  .features, .games, .cards, .feature-list, .how, .steps, .steps.two { grid-template-columns: 1fr; }
  .facts-3 { grid-template-columns: 1fr !important; row-gap: 22px; }
  .fh-ui .ui, .fh-art .game-art { height: 320px; }
  .apps-band { flex-direction: column; align-items: flex-start; }
  .apps-band .btn { margin-inline-start: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-langs { grid-template-columns: 1fr 1fr; }
  .foot-actions { width: 100%; justify-content: space-between; }
  .band { border-radius: 26px; min-height: 640px; }
}

/* Scripts that tight tracking would harm: Arabic letters join, Devanagari marks sit over letters. */
html[lang="ar"] *, html[lang="hi"] * { letter-spacing: 0 !important; }
html[lang="ar"] .hero h1, html[lang="hi"] .hero h1 { line-height: 1.15; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { letter-spacing: -0.01em; }
