/* Ebb website. Mobile first; the two-column layout starts at 900px. */
:root {
  --bg: #050507;
  --fg: #f5f5f7;
  --fg2: rgba(235, 235, 245, .68);
  --fg3: rgba(235, 235, 245, .55);
  --line: rgba(255, 255, 255, .1);
  --blue: #0a84ff;
  --green: #34c759;
  --red: #ff3b30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC", "Helvetica Neue", "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(ja) body { word-break: auto-phrase; }
:lang(ko) body { word-break: keep-all; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Helvetica Neue", "Segoe UI", "Malgun Gothic", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(40, 60, 110, .16), transparent 70%),
    var(--bg);
}
h1, h2, p, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Page frame ---------- */
.page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(12px, env(safe-area-inset-top));
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: 10px;
}
.brand img { width: 28px; height: 28px; }

/* ---------- Language menu ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px 0 10px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: var(--fg2);
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: var(--fg); }
.lang-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .i-chev { width: 11px; height: 11px; stroke-width: 1.6; opacity: .7; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(32, 32, 36, .94);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: top right;
  animation: pop .18s var(--ease);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg2);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255, 255, 255, .08); color: var(--fg); outline: none; }
.lang-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.lang-menu button[aria-checked="true"] { color: var(--fg); background: rgba(10, 132, 255, .22); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr) auto;
  grid-template-areas: "intro" "stage" "details";
  padding: 16px 0 0;
  min-height: 0;
}
.intro { grid-area: intro; text-align: center; }
.headline {
  font-size: clamp(27px, min(8.4vw, 4.6svh), 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;   /* app.js shrinks the size if a line would not fit */
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .headline {
    background: linear-gradient(180deg, #fff 35%, #bdbec6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
:lang(zh) .headline, :lang(ja) .headline, :lang(ko) .headline { letter-spacing: .01em; }
:lang(th) .headline, :lang(vi) .headline { line-height: 1.25; }
.sub {
  max-width: 34em;
  margin: 8px auto 0;
  color: var(--fg2);
  font-size: 14.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Stage + phone ---------- */
.stage {
  grid-area: stage;
  position: relative;
  container-type: size;
  display: grid;
  place-items: center;
  margin: 14px 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 4% 8%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .2), rgba(10, 132, 255, .05) 60%, transparent);
  pointer-events: none;
}
.phone {
  --ph: min(60svh, 560px);
  position: relative;
  height: var(--ph);
  width: calc(var(--ph) * .488);
  font-size: calc(var(--ph) / 100);   /* 1em = 1% of the phone's height */
  padding: .42em;
  border-radius: 7.5em;
  background: linear-gradient(150deg, #6a6a72 0%, #2b2b30 22%, #1b1b1f 55%, #3d3d44 82%, #6a6a72 100%);
  box-shadow: 0 3.5em 7em -2em rgba(0, 0, 0, .9), 0 0 0 .06em rgba(255, 255, 255, .08);
}
@supports (height: 1cqh) {
  .phone { --ph: min(100cqh, 190cqw, 720px); }
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: .36em;
  border-radius: .2em;
  background: #3a3a40;
}
.phone::before { left: -.3em; top: 19em; height: 6.4em; box-shadow: 0 9em #3a3a40, 0 -7em 0 0 #3a3a40; }
.phone::after { right: -.3em; top: 24em; height: 10em; }
.bezel { height: 100%; padding: 1.08em; border-radius: 7.1em; background: #000; box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .06); }
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 6em;
  background: #000;
  color: #fff;
  isolation: isolate;
}
.island {
  position: absolute;
  z-index: 6;
  top: 1.2em;
  left: 50%;
  width: 14.4em;
  height: 4.2em;
  margin-left: -7.2em;
  border-radius: 2.1em;
  background: #000;
  box-shadow: 0 0 0 .08em rgba(255, 255, 255, .05);
}
.island::after {
  content: "";
  position: absolute;
  right: 1.5em;
  top: 1.35em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3350, #07080d 70%);
}
.sbar {
  position: absolute;
  z-index: 5;
  top: 1.3em;
  left: 4.6em;
  right: 3.4em;
  height: 4.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clock { font-size: 1.95em; font-weight: 600; letter-spacing: -.01em; }
.sicons { display: flex; align-items: center; gap: .6em; }
.sicons svg { height: 1.3em; width: auto; fill: currentColor; }
.apptitle {
  position: absolute;
  z-index: 4;
  top: 7em;
  left: 2.3em;
  right: 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apptitle span { font-size: 3.7em; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.more {
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: rgba(120, 120, 128, .24) radial-gradient(circle, #fff .3em, transparent .32em) center / 1.25em .8em repeat-x;
  box-shadow: inset 0 0 0 .08em rgba(255, 255, 255, .1);
  background-origin: content-box;
  padding: 0 .85em;
}
.viewport { position: absolute; inset: 12.7em 0 0 0; overflow: hidden; }
.viewport::before, .viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.viewport::before { top: 0; height: 2em; background: linear-gradient(#000, transparent); }
.viewport::after { bottom: 0; height: 17em; background: linear-gradient(transparent, rgba(0, 0, 0, .78) 55%, #000); }
.feed {
  --t: 13.62em;         /* tile side */
  --g: .78em;           /* gap */
  --p: calc(var(--t) + var(--g));
  --s: 0;               /* rows scrolled */
  position: absolute;
  top: .4em;
  left: 1.62em;
  width: calc(var(--t) * 3 + var(--g) * 2);
  transform: translate3d(0, calc(var(--s) * var(--p) * -1), 0);
  transition: transform .85s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.row {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: var(--g);
  transform: translate3d(0, calc(var(--r, 0) * var(--p)), 0);
}
.tile {
  position: relative;
  width: var(--t);
  height: var(--t);
  flex: none;
  overflow: hidden;
  border-radius: 1.9em;
  background: #1c1c1e;
  transform: translateZ(0);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity .35s ease-out;
}
.tile.del::after { opacity: .42; }
.rb {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(.6);
  transform-origin: 100% 100%;
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1), opacity .22s ease-out;
}
.tile.v .rb { opacity: 1; transform: none; }
.rb b {
  position: absolute;
  left: 80%;
  top: 80%;
  width: 100%;
  height: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: linear-gradient(#41d36c, #1d9b47);
  box-shadow: 0 .12em .3em rgba(0, 0, 0, .3);
  color: #fff;
  font: 900 calc(var(--t) * .084)/1 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .13em;
  text-indent: .13em;
  text-shadow: 0 .05em .05em rgba(0, 0, 0, .25);
}
.rb b::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  border-top: .07em solid rgba(255, 255, 255, .55);
  border-bottom: .07em solid rgba(255, 255, 255, .55);
}
.tile.del .rb b { background: linear-gradient(#ff5b50, #d2222a); letter-spacing: .05em; text-indent: .05em; }

.scanner {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--t);
  height: var(--t);
  border-radius: 1.9em;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(calc(var(--c, 0) * var(--p)), calc(var(--r, 0) * var(--p)), 0);
  transition: transform .42s cubic-bezier(.35, .1, .2, 1), opacity .3s;
  box-shadow: 0 0 2.2em .2em rgba(10, 132, 255, .5);
}
.scanner.on { opacity: 1; }
.scanner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 .4em var(--blue);
}
.scanner i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  background: linear-gradient(rgba(10, 132, 255, 0), rgba(10, 132, 255, .5), rgba(10, 132, 255, 0));
  animation: sweep .95s ease-in-out infinite;
}
@keyframes sweep { from { transform: translateY(-100%); } to { transform: translateY(222%); } }

.controls {
  position: absolute;
  z-index: 5;
  left: 1.62em;
  right: 1.62em;
  bottom: 3.3em;
  display: flex;
  gap: 1.1em;
}
.pill, .round {
  height: 6.6em;
  border-radius: 3.3em;
  background: rgba(58, 58, 64, .55);
  -webkit-backdrop-filter: blur(1.6em) saturate(1.8);
  backdrop-filter: blur(1.6em) saturate(1.8);
  box-shadow: inset 0 .08em 0 rgba(255, 255, 255, .16), inset 0 0 0 .08em rgba(255, 255, 255, .08), 0 1em 2.4em rgba(0, 0, 0, .45);
}
.pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  padding: 0 1.8em;
}
.ptext {
  font-size: 1.72em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.005em;
}
.ptext b { display: inline-block; font-weight: 700; font-variant-numeric: tabular-nums; }
.spin {
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  border: .28em solid rgba(10, 132, 255, .25);
  border-top-color: var(--blue);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.round { width: 6.6em; flex: none; display: grid; place-items: center; }
.round i { width: 1.9em; height: 2.1em; border-left: .62em solid #fff; border-right: .62em solid #fff; border-radius: .15em; }
.homebar {
  position: absolute;
  z-index: 5;
  bottom: .95em;
  left: 50%;
  width: 15em;
  height: .6em;
  margin-left: -7.5em;
  border-radius: .3em;
  background: rgba(255, 255, 255, .85);
}

/* ---------- Features + downloads ---------- */
.details { grid-area: details; }
.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
.feats li { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.feats h2 { font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; text-wrap: balance; }
.feats p { display: none; }
.fi {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.fi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fi1 { color: #4aa3ff; background: rgba(10, 132, 255, .16); }
.fi2 { color: #4cd26b; background: rgba(52, 199, 89, .15); }
.fi3 { color: #d7d7de; background: rgba(255, 255, 255, .09); }

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "p s" "m m";
  gap: 10px;
  margin: 18px auto 0;
  max-width: 400px;
}
.dl-item { display: contents; }
.qr, .cap { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.btn .i-apple { margin-top: -2px; }
.btn:active { transform: scale(.97); }
.btn-ios, [data-platform="android"] .btn-apk { background: #f5f5f7; color: #0b0b0e; box-shadow: none; }
.btn-ios:hover, [data-platform="android"] .btn-apk:hover { background: #fff; }
.btn-apk, [data-platform="android"] .btn-ios { background: rgba(255, 255, 255, .08); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn-apk:hover, [data-platform="android"] .btn-ios:hover { background: rgba(255, 255, 255, .13); }
.apk-meta {
  grid-area: m;
  position: relative;
  color: var(--fg3);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.howto::before { content: "·"; margin: 0 .45em; }
.howto-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(235, 235, 245, .35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.howto-btn:hover { color: var(--fg); }
.howto-pop {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  padding: 12px 36px 12px 14px;
  border-radius: 14px;
  background: rgba(40, 40, 46, .97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 0, 0, .55);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  transform: translateX(-50%);
  animation: pop .18s var(--ease);
}
.howto-pop[hidden] { display: none; }
.x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}
.x svg, .inapp-x svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }

/* Platform emphasis: the other platform shrinks to an icon button. */
[data-platform="ios"] .btn-ios, [data-platform="android"] .btn-apk { grid-area: p; }
[data-platform="ios"] .btn-apk, [data-platform="android"] .btn-ios { grid-area: s; width: 52px; padding: 0; }
[data-platform="ios"] .btn-apk span, [data-platform="android"] .btn-ios span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-platform="ios"] .apk-meta { display: none; }
[data-platform="desktop"] .dl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "i" "a" "m"; }
[data-platform="desktop"] .btn-ios { grid-area: i; }
[data-platform="desktop"] .btn-apk { grid-area: a; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  padding: 14px 0 max(10px, env(safe-area-inset-bottom));
  color: var(--fg3);
  font-size: 11px;
  line-height: 1.6;
}
.foot nav { display: contents; }
.foot nav span { display: none; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--fg); }

/* ---------- In-app browser hint ---------- */
.inapp {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: max(6px, env(safe-area-inset-top)) 22px 0;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade .25s ease-out;
}
.inapp[hidden] { display: none; }
.inapp-arrow { width: 92px; height: 92px; margin-right: 6px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.inapp p { max-width: 15em; margin: 14px 4px 0 0; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.5; text-align: right; text-wrap: balance; }
:lang(zh) .inapp p, :lang(ja) .inapp p { word-break: keep-all; }
.inapp .dots { display: inline-block; padding: 0 .45em; margin: 0 .1em; border-radius: 1em; background: rgba(255, 255, 255, .18); letter-spacing: .05em; line-height: 1.35; }
.inapp-x {
  position: absolute;
  left: 50%;
  bottom: max(32px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
}
.inapp-x svg { width: 14px; height: 14px; }

/* ---------- Wide screens ---------- */
@media (min-width: 900px) {
  .page { padding: 0 clamp(32px, 5vw, 72px); }
  .top { padding-top: max(22px, env(safe-area-inset-top)); }
  .brand { font-size: 19px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .lang-menu { grid-template-columns: repeat(3, auto); }
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". stage" "intro stage" "details stage" ". stage";
    column-gap: clamp(32px, 5vw, 96px);
    padding: 0;
  }
  .intro { text-align: left; }
  .headline { font-size: clamp(42px, min(5.1vw, 8.2svh), 76px); line-height: 1.06; letter-spacing: -.035em; }
  :lang(zh) .headline, :lang(ja) .headline, :lang(ko) .headline { letter-spacing: 0; line-height: 1.12; }
  .sub { margin: clamp(14px, 2.4svh, 22px) 0 0; font-size: clamp(16px, min(1.45vw, 2.5svh), 20px); max-width: 30em; }
  .stage { margin: clamp(12px, 3svh, 36px) 0; }
  .stage::before { inset: 0 -10%; }
  .phone { --ph: min(76svh, 700px); }
  @supports (height: 1cqh) { .phone { --ph: min(100cqh, 190cqw, 720px); } }
  .details { margin-top: clamp(24px, 4.6svh, 44px); }
  .feats { gap: 0 24px; }
  .feats li { align-items: flex-start; gap: 0; text-align: left; padding-top: 16px; border-top: 1px solid var(--line); }
  .feats h2 { margin-top: 12px; font-size: 15px; }
  .feats p { display: block; margin-top: 4px; color: var(--fg2); font-size: 13px; line-height: 1.5; }
  .fi { width: 32px; height: 32px; }
  .dl { margin: clamp(24px, 4.4svh, 40px) 0 0; max-width: 420px; }
  .apk-meta { text-align: left; padding-left: 4px; }
  .foot { justify-content: space-between; padding: 16px 0 max(18px, env(safe-area-inset-bottom)); font-size: 12px; }
  .foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .foot nav span { display: inline; }

  /* Desktop visitors get both stores, each with its QR code. */
  [data-platform="desktop"] .dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 24px;
    max-width: 600px;
  }
  [data-platform="desktop"] .dl-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 13px;
    align-content: start;
  }
  [data-platform="desktop"] .btn { grid-area: 1 / 1 / 2 / 3; width: 100%; margin-bottom: 14px; padding: 0 16px; }
  [data-platform="desktop"] .qr { display: block; grid-area: 2 / 1 / 4 / 2; width: 64px; height: 64px; padding: 3px; border-radius: 10px; background: #fff; }
  [data-platform="desktop"] .cap { display: block; grid-area: 2 / 2 / 3 / 3; align-self: end; color: var(--fg2); font-size: 12.5px; line-height: 1.4; }
  [data-platform="desktop"] .dl-ios .cap { grid-row: 2 / 4; align-self: center; }
  [data-platform="desktop"] .apk-meta { grid-area: 3 / 2 / 4 / 3; align-self: start; margin-top: 3px; padding: 0; font-size: 11.5px; }
  [data-platform="desktop"] .howto { display: block; }
  [data-platform="desktop"] .howto::before { content: none; }
  [data-platform="desktop"] .howto-pop { left: -77px; transform: none; animation-name: pop; }
}
/* Short desktop windows (or .tight, set by app.js when a translation would overflow):
   keep the feature titles, drop their descriptions. */
.tight .feats p { display: none; }
@media (min-width: 900px) and (max-height: 680px) {
  .feats p { display: none; }
}
/* Tall phones and tablets have room for the feature descriptions. */
@media (max-width: 899px) and (min-height: 960px) and (min-width: 600px) {
  .feats p { display: block; margin-top: 2px; color: var(--fg2); font-size: 13px; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(32px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
.howto-pop { animation-name: popc; }
@keyframes popc { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.js .top, .js .intro, .js .stage, .js .details, .js .foot { opacity: 0; }
.js.ready .top { animation: fade .8s var(--ease) both; }
.js.ready .intro { animation: rise .9s .05s var(--ease) both; }
.js.ready .stage { animation: lift 1.1s .12s var(--ease) both; }
.js.ready .details { animation: rise .9s .2s var(--ease) both; }
.js.ready .foot { animation: fade .9s .35s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .js.ready .top, .js.ready .intro, .js.ready .stage, .js.ready .details, .js.ready .foot { animation: fade .4s both; }
  .feed, .scanner, .rb, .tile::after, .btn { transition: none; }
  .scanner i, .spin, .lang-menu, .howto-pop, .inapp { animation: none; }
  .scanner i { transform: translateY(62%); }
}

/* ---------- Share image (?og=1, captured at 1200x630) ---------- */
.og body { overflow: hidden; }
.og .page { position: relative; max-width: none; height: 630px; min-height: 0; padding: 0 104px 0 88px; grid-template-rows: 1fr; }
.og .top { position: absolute; top: 50px; left: 88px; padding: 0; }
.og .brand { font-size: 26px; gap: 12px; }
.og .brand img { width: 40px; height: 40px; }
.og .lang, .og .details, .og .foot { display: none; }
.og .hero {
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas: ". stage" "intro stage" ". stage";
  column-gap: 64px;
}
.og .intro { padding-top: 40px; }
.og .headline { font-size: 80px; }
.og .sub { max-width: 17em; margin-top: 26px; font-size: 25px; word-break: keep-all; }
.og .stage::before { inset: -8% -30%; }
.og .hero { overflow: hidden; }
.og .stage { margin: 36px 0; }
.og .phone { --ph: 558px; }
.og .scanner i { animation: none; transform: translateY(62%); }
