/* MODAPKAM — site styles. Inter type, light glass surfaces.
   Performance: real backdrop blur only on the few things that float over
   content (nav, toolbar, dialogs, the feature caption); everything else is a
   translucent fill, and phones get no blur at all. */

:root {
  --bg: #f4f5f8;
  --text: #0e1322;
  --text-2: #2f3747;
  --muted: #687083;
  --surface: rgb(255 255 255 / .78);
  --surface-solid: #ffffff;
  --surface-2: rgb(255 255 255 / .92);
  --hover: #ffffff;
  --border: rgb(14 19 34 / .08);
  --border-strong: rgb(14 19 34 / .14);
  --hi: inset 0 1px 0 rgb(255 255 255 / .9);
  --shadow: 0 1px 2px rgb(14 19 34 / .05), 0 10px 28px -16px rgb(14 19 34 / .16);
  --shadow-lift: 0 2px 4px rgb(14 19 34 / .05), 0 18px 40px -18px rgb(14 19 34 / .25);
  --shadow-lg: 0 40px 100px -30px rgb(14 19 34 / .4);
  --accent: #3b5bff;
  --accent-2: #5a76ff;
  --accent-soft: rgb(59 91 255 / .10);
  --accent-ink: #ffffff;
  --good: #13a36a;
  --good-soft: rgb(19 163 106 / .12);
  --warm: #b86e00;
  --warm-soft: rgb(255 159 10 / .14);
  --ink: #0e1322;
  --ink-text: #ffffff;
  --star: #e8a20c;
  --blob-1: rgb(59 91 255 / .12);
  --blob-2: rgb(0 190 200 / .10);
  --blob-3: rgb(160 90 230 / .07);
  --scrim: rgb(14 19 34 / .42);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b13;
    --text: #edf0f6;
    --text-2: #c4cad6;
    --muted: #8a92a4;
    --surface: rgb(255 255 255 / .045);
    --surface-solid: #121621;
    --surface-2: rgb(22 26 38 / .9);
    --hover: rgb(255 255 255 / .08);
    --border: rgb(255 255 255 / .08);
    --border-strong: rgb(255 255 255 / .15);
    --hi: inset 0 1px 0 rgb(255 255 255 / .05);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -16px rgb(0 0 0 / .7);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .8);
    --shadow-lg: 0 40px 100px -30px rgb(0 0 0 / .85);
    --accent: #6a84ff;
    --accent-2: #8197ff;
    --accent-soft: rgb(106 132 255 / .16);
    --good: #34d399;
    --good-soft: rgb(52 211 153 / .14);
    --warm: #ffb547;
    --warm-soft: rgb(255 181 71 / .14);
    --ink: #edf0f6;
    --ink-text: #080b13;
    --star: #f5b92e;
    --blob-1: rgb(59 91 255 / .20);
    --blob-2: rgb(0 190 200 / .09);
    --blob-3: rgb(120 90 240 / .14);
    --scrim: rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080b13;
  --text: #edf0f6;
  --text-2: #c4cad6;
  --muted: #8a92a4;
  --surface: rgb(255 255 255 / .045);
  --surface-solid: #121621;
  --surface-2: rgb(22 26 38 / .9);
  --hover: rgb(255 255 255 / .08);
  --border: rgb(255 255 255 / .08);
  --border-strong: rgb(255 255 255 / .15);
  --hi: inset 0 1px 0 rgb(255 255 255 / .05);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -16px rgb(0 0 0 / .7);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .8);
  --shadow-lg: 0 40px 100px -30px rgb(0 0 0 / .85);
  --accent: #6a84ff;
  --accent-2: #8197ff;
  --accent-soft: rgb(106 132 255 / .16);
  --good: #34d399;
  --good-soft: rgb(52 211 153 / .14);
  --warm: #ffb547;
  --warm-soft: rgb(255 181 71 / .14);
  --ink: #edf0f6;
  --ink-text: #080b13;
  --star: #f5b92e;
  --blob-1: rgb(59 91 255 / .20);
  --blob-2: rgb(0 190 200 / .09);
  --blob-3: rgb(120 90 240 / .14);
  --scrim: rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* Light chosen on a phone set to dark: "only" stops Chrome / Samsung Internet
   from force-darkening (and garbling) the light theme. */
:root[data-theme="light"] { color-scheme: only light; }
/* While the theme flips, every colour changes at once (no staggered fades). */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Soft colour behind the glass. Its own fixed layer, so scrolling never repaints it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background:
    radial-gradient(50vw 40vw at 6% -8%, var(--blob-1), transparent 70%),
    radial-gradient(40vw 34vw at 100% 8%, var(--blob-3), transparent 70%),
    radial-gradient(54vw 40vw at 72% 108%, var(--blob-2), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ink-text); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* the surface recipe (no blur: cheap to scroll on any device) */
.glass { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--hi), var(--shadow); }
/* blur only where something floats over moving content */
.blur { backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 8px 20px -10px var(--accent); }
.btn--accent:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: var(--ink-text); }
.btn--dark:hover { opacity: .88; }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--hi); }
.btn--ghost:hover { background: var(--hover); border-color: var(--muted); }
.tg { width: 17px; height: 17px; fill: currentColor; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.iconbtn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  color: var(--text-2); border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.iconbtn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.iconbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn--line { background: var(--surface-2); border-color: var(--border); }
.iconbtn:disabled { opacity: .35; pointer-events: none; }

.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ── nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__in { height: 66px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { width: 30px; height: 30px; color: var(--text); }
.brand__word { font-weight: 800; letter-spacing: 0.03em; font-size: 16px; }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 12px; }
.nav__links a { padding: 7px 14px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav__links a:hover { color: var(--text); background: var(--hover); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__actions .btn { margin-left: 8px; }

/* ── sponsor (AM Hosting) ─────────────────────────────────────────── */
/* Quiet and factual: same surface as the rest of the site, a clear
   "Sponsored" label, real plan facts, one coupon, one button. */
.sponsor { padding-top: 18px; }
.ad {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 16px; border-radius: 18px;
}
.ad:hover { border-color: var(--border-strong); }
.ad__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ad__logo { width: 50px; height: 50px; border-radius: 12px; flex: none; outline: 1px solid var(--border); outline-offset: -1px; }
.ad__copy { flex: 1; min-width: 0; }
.ad__top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ad__top b { font-weight: 700; }
.ad__tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--border-strong); }
.ad__title { display: block; min-width: 0; margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad__title span { color: var(--muted); font-weight: 500; }
.ad__title .sep { font-style: normal; }
.ad__specs { margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad__btn {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--ink); color: var(--ink-text); font-weight: 600; font-size: 14px; pointer-events: none;
}
.ad__btn .ico { width: 15px; height: 15px; }

/* coupon: the only coloured thing in the sponsor unit */
.coupon {
  position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 6px;
  border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--good) 55%, transparent); background: var(--good-soft);
  font-size: 13px; font-weight: 600; color: var(--text); transition: background-color .15s;
}
.coupon:hover { background: color-mix(in srgb, var(--good) 20%, transparent); }
.coupon__off { padding: 4px 8px; border-radius: 6px; background: var(--good); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.coupon__code { font-weight: 800; letter-spacing: .1em; }
.coupon__copy { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; color: var(--good); font-weight: 700; font-size: 12px; }
.coupon__copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 .soft { color: var(--muted); font-weight: 700; }
.lede { margin-top: 22px; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.hero__cta { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.facts { margin: 36px 0 0; display: inline-flex; padding: 14px 0; border-radius: 16px; }
.facts div { padding: 0 26px; border-left: 1px solid var(--border-strong); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.panel { border-radius: 22px; padding: 10px; }
.panel__head { padding: 8px 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feature { display: block; width: 100%; text-align: left; border-radius: 14px; overflow: hidden; position: relative; }
.feature__art { display: block; aspect-ratio: 16 / 8.4; width: 100%; object-fit: cover; background: var(--border); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .feature__art { transform: scale(1.03); }
.feature__bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 12px; color: #fff; background: rgb(10 14 24 / .5); border: 1px solid rgb(255 255 255 / .18);
}
.feature__bar .app-ic { width: 46px; height: 46px; }
.feature__meta { min-width: 0; flex: 1; }
.feature__meta strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature__meta span { font-size: 12px; color: rgb(255 255 255 / .78); }
.feature .dlic { background: #fff; color: #0e1322; border: 0; }
.next { list-style: none; margin: 6px 0 0; padding: 0; }
.next li + li { border-top: 1px solid var(--border); }
.next a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; text-align: left; border-radius: 10px; transition: background-color .15s; }
.next a:hover { background: var(--hover); }
.next .app-ic { width: 38px; height: 38px; }
.next .t { flex: 1; min-width: 0; }
.next .t strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next .t span { font-size: 12px; color: var(--muted); }

/* ── shared app bits ──────────────────────────────────────────────── */
.app-ic { flex: none; border-radius: 18%; background: var(--border); object-fit: cover; outline: 1px solid rgb(127 127 127 / .14); outline-offset: -1px; }
.app-ic--mono { display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 18px; }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; flex: none;
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--good-soft); color: var(--good);
}
.tag--plain { background: var(--warm-soft); color: var(--warm); }
/* download icon button (replaces store-style "Get" pills) */
.dlic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; transition: background-color .15s, color .15s;
}
.dlic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── sections ─────────────────────────────────────────────────────── */
.section { padding-top: 56px; padding-bottom: 24px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section__head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.section__head p { margin-top: 4px; font-size: 14px; }
.arrows { display: flex; gap: 8px; }
.lazy-section { content-visibility: auto; contain-intrinsic-size: auto 400px; }

/* rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; text-align: left; display: block; width: 100%; padding: 8px; border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow-lift); }
.card__art { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 12px; background: var(--border); }
.card__row { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 0 4px 4px; }
.card__row .app-ic { width: 40px; height: 40px; }
.card__row .t { min-width: 0; flex: 1; }
.card__row strong { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__row span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* toolbar */
.toolbar {
  position: sticky; top: 76px; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 16px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--hi), var(--shadow);
}
.search { position: relative; display: flex; align-items: center; flex: 0 1 290px; min-width: 200px; }
.search svg { position: absolute; left: 13px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 38px 0 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); outline: none; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; font: 600 11px/1 "Inter", sans-serif; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 7px; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background-color .15s, color .15s; }
.chip:hover { background: var(--hover); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--ink-text); }
.chip .n { margin-left: 6px; font-size: 11px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; }
.sort select {
  appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92a4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.sort select option { background: var(--surface-solid); color: var(--text); }

/* library: tiles */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-align: left; min-width: 0; padding: 16px; border-radius: 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow-lift); border-color: var(--border-strong); }
.tile:hover .dlic { background: var(--accent); color: #fff; }
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tile .app-ic { width: 58px; height: 58px; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .35); }
.tile strong { margin-top: 14px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.tile__foot .v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.more { display: flex; justify-content: center; padding: 24px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.empty a { color: var(--accent); font-weight: 600; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--border), var(--border-strong), var(--border)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 24px; border-radius: 20px; }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; }
.steps h3 { margin-top: 22px; font-size: 18px; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* app page (/app/…) */
.apppage { padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); font-weight: 500; }
.crumbs a:hover { color: var(--accent); }
.apppage__card { border-radius: 24px; overflow: hidden; padding-bottom: 8px; }
.apppage__banner { width: 100%; aspect-ratio: 16 / 5.6; object-fit: cover; background: var(--border); }
.apppage__head { display: flex; gap: 20px; align-items: flex-end; padding: 0 28px; margin-top: -40px; position: relative; }
.apppage__card > .apppage__head:first-child { margin-top: 0; padding-top: 28px; }
.apppage__head .app-ic { width: 96px; height: 96px; outline: 4px solid var(--surface-solid); outline-offset: 0; box-shadow: var(--shadow); }
.apppage__head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.apppage__head h1 span { color: var(--muted); font-weight: 700; }
.apppage__head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.apppage__actions { display: flex; gap: 10px; padding: 22px 28px 0; flex-wrap: wrap; }
.apppage__actions .btn--accent { min-width: 260px; height: 52px; font-size: 16px; }
.apppage__actions .btn--ghost { height: 52px; }
.apppage .specs { margin: 18px 28px 0; }
.apppage .shots img { height: 240px; }
.apppage__about { padding: 20px 28px 22px; max-width: 860px; }
.apppage__about h2 { font-size: 18px; font-weight: 800; margin: 18px 0 8px; }
.apppage__about h2:first-child { margin-top: 0; }
.apppage__about p, .apppage__about li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.apppage__about ol { margin: 0; padding-left: 20px; }
.notfound { padding: 40px 28px; text-align: center; }
.notfound h1 { font-size: 30px; font-weight: 800; }
.notfound p { margin: 8px 0 20px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq__item { border-radius: 16px; padding: 0; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 18px; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* promotion contact */
.promo-cta { margin-top: 56px; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; }
.promo-cta__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.promo-cta__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.promo-cta div { flex: 1; min-width: 0; }
.promo-cta h3 { font-size: 17px; font-weight: 800; }
.promo-cta p { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* footer */
.foot { margin-top: 56px; border-top: 1px solid var(--border); padding: 48px 0 32px; }
.foot__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot__brand p { margin-top: 10px; font-size: 14px; }
.foot__cols { display: flex; gap: 64px; }
.foot__cols h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot__cols a { display: block; font-size: 14px; padding: 4px 0; color: var(--text-2); font-weight: 500; }
.foot__cols a:hover { color: var(--text); }
.foot__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; }

/* ── dialogs (app sheet + download chooser) ───────────────────────── */
.sheet, .dl {
  padding: 0; border: 1px solid var(--border); color: var(--text); overflow: hidden;
  background: var(--surface-solid); box-shadow: var(--shadow-lg);
}
.sheet { width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 920px); border-radius: 24px; }
.sheet::backdrop, .dl::backdrop { background: var(--scrim); }
.sheet[open], .dl[open] { animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
.sheet[open]::backdrop, .dl[open]::backdrop { animation: fade .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.sheet__body { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }

/* small sponsor line at the top of every app */
.sh__ad {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13px; color: var(--text-2);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.sh__ad img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.sh__ad .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh__ad .txt b { color: var(--text); font-weight: 700; }
.sh__ad .txt em { font-style: normal; color: var(--good); font-weight: 700; }
.sh__ad .lbl { flex: none; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh__ad .ico { width: 15px; height: 15px; color: var(--muted); }
.sh__ad:hover .txt b { color: var(--accent); }

.sh__hero { position: relative; }
.sh__banner { width: 100%; aspect-ratio: 16 / 6.5; object-fit: cover; background: var(--border); }
.sh__close { position: absolute; top: 14px; right: 14px; background: rgb(0 0 0 / .45); color: #fff; border: 1px solid rgb(255 255 255 / .2); }
.sh__close:hover { background: rgb(0 0 0 / .65); color: #fff; border-color: rgb(255 255 255 / .3); }
.sh__top { display: flex; gap: 18px; align-items: flex-end; padding: 0 28px; margin-top: -38px; position: relative; }
.sh__top .app-ic { width: 96px; height: 96px; outline: 4px solid var(--surface-solid); outline-offset: 0; box-shadow: var(--shadow); }
.sh__id { padding-bottom: 4px; min-width: 0; }
.sh__id h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.sh__id p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sh__actions { display: flex; gap: 10px; padding: 22px 28px 0; flex-wrap: wrap; }
.sh__actions .btn--accent { flex: 1; min-width: 220px; height: 50px; font-size: 16px; }
.sh__actions .btn--ghost { height: 50px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 28px 0; padding: 0; list-style: none; }
.specs li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.specs li b { color: var(--text); font-weight: 700; }
.specs .star { color: var(--star); }
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 22px 28px 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { height: 260px; width: auto; border-radius: 12px; scroll-snap-align: start; background: var(--border); }
.sh__about { padding: 20px 28px 28px; }
.sh__about h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.sh__about p { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.sh__file { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; color: var(--muted); word-break: break-all; }
.sh__file b { color: var(--text-2); font-weight: 700; }

/* download chooser */
.dl { width: min(480px, calc(100vw - 32px)); border-radius: 24px; }
.dl__body { position: relative; padding: 20px; }
.dl__head { display: flex; align-items: center; gap: 14px; padding: 2px 44px 18px 2px; }
.dl__head .app-ic { width: 52px; height: 52px; }
.dl__head div { flex: 1; min-width: 0; }
.dl__head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__head p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl__opt {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.dl__opt:hover { border-color: var(--accent); }
.dl__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #229ed9; }
.dl__ic .tg { width: 23px; height: 23px; }
.dl__txt { flex: 1; min-width: 0; }
.dl__txt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.dl__txt span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.dl__go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent); }
.dl__go .ico { width: 15px; height: 15px; }
/* the sponsor here is one small line */
.dl__promo { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--border); }
.dl__promo:hover { border-color: var(--border-strong); }
.dl__promo img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.dl__promo .t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.dl__promo .t b { display: block; font-weight: 700; color: var(--text); }
.dl__promo .t span { color: var(--muted); }
.dl__promo .t em { font-style: normal; color: var(--good); font-weight: 700; }
.dl__promo .lbl { position: absolute; top: -8px; left: 12px; padding: 0 6px; background: var(--surface-solid); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl__promo .coupon { height: 34px; padding-left: 10px; }
.dl__promo .coupon__off { display: none; }
.dl__promo .t b, .dl__promo .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.dl__close { position: absolute; top: 20px; right: 18px; }

/* toast (a popover, so it shows above open dialogs) */
.toast {
  position: fixed; inset: auto auto 24px 50%; margin: 0; border: 0; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--ink-text); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .ad { flex-wrap: wrap; gap: 12px 14px; }
  .ad__copy { flex: 1 1 calc(100% - 70px); }
  .ad__title { white-space: normal; }
  .ad .coupon { flex: 1; justify-content: space-between; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 720px) {
  /* phones: no live blur anywhere (it is the main cause of scroll lag) */
  .blur, .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { background: color-mix(in srgb, var(--bg) 94%, transparent); }
  body::before { position: absolute; height: 1400px; }

  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 170px; }
  .nav__links, .hide-sm { display: none; }
  .nav__in { height: 58px; }
  .hero { padding-top: 28px; padding-bottom: 20px; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 16px; }
  .facts { display: flex; }
  .facts div { padding: 0 16px; }
  .facts dd { font-size: 20px; }
  .tile { padding: 12px; border-radius: 16px; }
  .tile .app-ic { width: 48px; height: 48px; }
  .tile strong { margin-top: 10px; font-size: 14px; }
  .tile .sub { font-size: 12px; }
  .tile__foot { margin-top: 10px; padding-top: 10px; font-size: 11px; }
  .tile .dlic { width: 30px; height: 30px; }
  .tile .tag { height: 18px; font-size: 9px; padding: 0 5px; }
  .rail { grid-auto-columns: 74%; }
  .arrows { display: none; }
  .toolbar { top: 64px; flex-wrap: wrap; gap: 8px; }
  .search { flex: 1 1 100%; }
  .chips { flex: 1 1 0; }
  .sort select { height: 36px; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .apppage { padding-top: 14px; }
  .apppage__head { padding: 0 16px; gap: 14px; margin-top: -32px; }
  .apppage__head .app-ic { width: 76px; height: 76px; }
  .apppage__actions { padding: 18px 16px 0; }
  .apppage__actions .btn--accent { min-width: 0; flex: 1; }
  .apppage .specs { margin: 16px 16px 0; }
  .apppage .shots { padding-left: 16px; padding-right: 16px; }
  .apppage .shots img { height: 200px; }
  .apppage__about { padding: 18px 16px 18px; }
  .promo-cta { flex-wrap: wrap; padding: 18px; }
  .promo-cta .btn { width: 100%; }
  .foot__cols { gap: 40px; }
  .foot__legal { flex-direction: column; }

  .sponsor { padding-top: 12px; }
  .ad { gap: 12px; padding: 14px; }
  .ad__specs { display: none; }
  .ad__logo { width: 44px; height: 44px; border-radius: 11px; }
  .ad__copy { flex: 1 1 calc(100% - 56px); }
  .ad__title { font-size: 15px; white-space: normal; }
  .ad__from { display: block; font-size: 13px; }
  .ad__title .sep { display: none; }
  .ad .coupon { flex: 1; justify-content: space-between; }
  .ad__btn { flex: 1 1 100%; justify-content: center; padding: 0 14px; }

  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .sh__ad .lbl { display: none; }
  .sh__top { padding: 0 18px; }
  .sh__top .app-ic { width: 80px; height: 80px; }
  .sh__id h2 { font-size: 22px; }
  .sh__actions, .sh__about { padding-left: 18px; padding-right: 18px; }
  .specs { margin: 16px 18px 0; }
  .shots { padding-left: 18px; padding-right: 18px; }
  .shots img { height: 220px; }

  .dl { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .dl__body { padding: 18px 16px 22px; }
  .dl__opt { flex-wrap: wrap; }
  .dl__txt { flex: 1 1 calc(100% - 62px); }
  .dl__go { width: 100%; justify-content: center; height: 44px; }
  .dl__promo { flex-wrap: wrap; }
  .dl__promo .t { flex: 1 1 calc(100% - 50px); }
  .dl__promo .coupon { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .blur, .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
