/* Aero Downloader website
   Layout: one sticky app bar, tonal cards on a soft surface, pill controls. Phone-first; two columns from 900px.
   The look follows the app itself (Material You, brand blue #1550E8, sky #8FD3FF, 28px cards). */

:root {
  --bg: #F5F6FC;
  --surface: #FFFFFF;
  --surface-2: #ECEEF8;
  --surface-3: #E1E4F2;
  --ink: #15172A;
  --ink-2: #474A63;
  --ink-3: #6F7290;
  --brand: #1550E8;
  --brand-deep: #0E3BB3;
  --btn: #1550E8;
  --on-btn: #FFFFFF;
  --sky: #8FD3FF;
  --tint: #DCE4FF;
  --tint-ink: #0B2A8A;
  --rose: #FBDAEE;
  --rose-ink: #5A1E45;
  --ok: #178A4D;
  --ok-bg: #DDF5E6;
  --warn: #B35C00;
  --warn-bg: #FFE9D1;
  --line: rgba(21, 23, 42, .09);
  --shadow: 0 10px 30px rgba(21, 23, 42, .08), 0 2px 6px rgba(21, 23, 42, .05);
  --r: 28px;
  --r-s: 16px;
  --font-display: "Outfit", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, system-ui, sans-serif;
  --mock-bezel: #0F1120;
  --mesh-1: rgba(21, 80, 232, .22); --mesh-2: rgba(236, 72, 153, .14); --mesh-3: rgba(143, 211, 255, .55);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F1A; --surface: #161828; --surface-2: #1E2134; --surface-3: #282C44;
    --ink: #ECEDF8; --ink-2: #B9BCD3; --ink-3: #8A8EAB;
    --brand: #7A9BFF; --brand-deep: #A9BEFF; --btn: #3463F5; --on-btn: #FFFFFF;
    --tint: #1F2E63; --tint-ink: #C7D3FF; --rose: #4A2340; --rose-ink: #FFC9EA;
    --ok: #5BD48E; --ok-bg: #16352A; --warn: #FFB766; --warn-bg: #3D2A12;
    --line: rgba(236, 237, 248, .1);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3);
    --mock-bezel: #2A2E45;
    --mesh-1: rgba(61, 107, 255, .34); --mesh-2: rgba(236, 72, 153, .18); --mesh-3: rgba(143, 211, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F1A; --surface: #161828; --surface-2: #1E2134; --surface-3: #282C44;
  --ink: #ECEDF8; --ink-2: #B9BCD3; --ink-3: #8A8EAB;
  --brand: #7A9BFF; --brand-deep: #A9BEFF; --btn: #3463F5; --on-btn: #FFFFFF;
  --tint: #1F2E63; --tint-ink: #C7D3FF; --rose: #4A2340; --rose-ink: #FFC9EA;
  --ok: #5BD48E; --ok-bg: #16352A; --warn: #FFB766; --warn-bg: #3D2A12;
  --line: rgba(236, 237, 248, .1);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3);
  --mock-bezel: #2A2E45;
  --mesh-1: rgba(61, 107, 255, .34); --mesh-2: rgba(236, 72, 153, .18); --mesh-3: rgba(143, 211, 255, .14);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; word-break: break-word; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.015em; text-wrap: balance; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap {
  max-width: 1140px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.f { fill: currentColor; stroke: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 0;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface-2);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 8px 20px rgba(21, 80, 232, .28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(21, 80, 232, .36); }
.btn-tonal { background: var(--tint); color: var(--tint-ink); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .92rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { .topbar { background: var(--bg); } }
.nav { display: flex; align-items: center; gap: .75rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.12rem var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--brand); }
.nav-links { display: flex; gap: .15rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 999px; color: var(--ink-2); text-decoration: none;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"], .nav-links a.active { background: var(--tint); color: var(--tint-ink); }
.nav .btn-primary { margin-left: .25rem; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-primary { display: none; }
}

/* ---------- bottom tab bar (phones), like the app's ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: .35rem max(10px, env(safe-area-inset-right, 0px)) calc(.35rem + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
}
@supports not (background: color-mix(in srgb, red, blue)) { .tabbar { background: var(--surface); } }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .3rem 0; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 600;
}
.tabbar a .pill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background .2s ease; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active .pill { background: var(--tint); color: var(--tint-ink); }
@media (max-width: 760px) {
  .tabbar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font: 700 .78rem/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); }
.lead { color: var(--ink-2); font-size: 1.15rem; max-width: 62ch; }
.head { max-width: 760px; margin-bottom: clamp(1.6rem, 4vw, 2.75rem); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-tint { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }

/* ---------- cards & grid ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem;
  min-width: 0;
}
.card.tonal { background: var(--surface-2); border-color: transparent; }
.card.tint { background: var(--tint); color: var(--tint-ink); border-color: transparent; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.sp-3 { grid-column: span 3; } .sp-4 { grid-column: span 4; } .sp-5 { grid-column: span 5; }
.sp-6 { grid-column: span 6; } .sp-7 { grid-column: span 7; } .sp-8 { grid-column: span 8; } .sp-12 { grid-column: span 12; }
@media (max-width: 900px) { .sp-3, .sp-4, .sp-5 { grid-column: span 6; } .sp-7, .sp-8 { grid-column: span 12; } }
@media (max-width: 600px) { .bento > * { grid-column: span 12; } }
.tile { display: flex; flex-direction: column; gap: .8rem; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--ink-2); font-size: .98rem; }
.tile .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.tile .more:hover { text-decoration: underline; }
.tile.tint p, .tile.tint .more { color: var(--tint-ink); }
.badge-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--tint); color: var(--tint-ink);
}
.badge-icon.rose { background: var(--rose); color: var(--rose-ink); }
.badge-icon.inv { background: var(--btn); color: var(--on-btn); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: .85rem; font-weight: 600; border: 1px solid transparent;
}
.chip.on { background: var(--tint); color: var(--tint-ink); }
.chip.outl { background: transparent; border-color: var(--line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .08s; } html.js .reveal.d2 { transition-delay: .16s; } html.js .reveal.d3 { transition-delay: .24s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero > .wrap { position: relative; z-index: 1; }
.mesh {
  position: absolute; inset: -25%; z-index: -3; pointer-events: none; filter: blur(48px); will-change: transform;
  background:
    radial-gradient(38% 42% at 72% 32%, var(--mesh-1), transparent 70%),
    radial-gradient(30% 36% at 16% 80%, var(--mesh-2), transparent 70%),
    radial-gradient(26% 30% at 46% 16%, var(--mesh-3), transparent 70%),
    radial-gradient(32% 38% at 90% 88%, var(--mesh-3), transparent 70%);
  animation: meshDrift 26s ease-in-out infinite alternate;
}
@keyframes meshDrift { from { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1); } to { transform: translate3d(3%, 4%, 0) rotate(2deg) scale(1.1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--ink-3) 1.1px, transparent 1.4px); background-size: 24px 24px; opacity: .22;
  -webkit-mask-image: radial-gradient(70% 85% at 62% 45%, #000 15%, transparent 100%); mask-image: radial-gradient(70% 85% at 62% 45%, #000 15%, transparent 100%);
}
.streaks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: .4rem 0 1rem; }
.hero h1 .fly { color: var(--brand); display: inline-block; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 1.6rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.5rem; color: var(--ink-3); font-size: .92rem; font-weight: 600; }
.hero .facts span { display: inline-flex; align-items: center; gap: .35rem; }
.lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.lines i {
  position: absolute; height: 5px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--sky)); opacity: .55;
  animation: drift 7s linear infinite;
}
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

/* ---------- phone mock ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: min(320px, 86vw); aspect-ratio: 9 / 18.4; border-radius: 46px; background: var(--mock-bezel);
  padding: 9px; box-shadow: 0 30px 60px rgba(21, 23, 42, .25), inset 0 0 0 2px rgba(255, 255, 255, .06);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .5s ease; will-change: transform;
}
.screen {
  width: 100%; height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; position: relative;
  display: flex; flex-direction: column; font-size: 11px; color: var(--ink);
}
.m-status { display: flex; justify-content: space-between; padding: 10px 18px 0; font-weight: 600; color: var(--ink-2); font-size: 10px; }
.m-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px 2px; }
.m-head .mark { width: 24px; height: 24px; border-radius: 7px; }
.m-head .t { font: 700 15px var(--font-display); }
.m-sub { padding: 0 16px 8px 48px; color: var(--ink-3); font-size: 9.5px; }
.m-head .sp { margin-left: auto; display: flex; gap: 6px; color: var(--ink-2); }
.m-turbo { margin: 2px 12px; background: var(--tint); color: var(--tint-ink); border-radius: 18px; padding: 10px 12px; }
.m-turbo .row { display: flex; align-items: center; gap: 8px; }
.m-turbo .bolt { width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; flex: none; }
.m-turbo .tt { font: 700 12px var(--font-display); }
.m-turbo .ts { font-size: 8.5px; opacity: .85; }
.m-turbo .speed { display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; }
.m-turbo .big { font: 800 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.m-turbo .unit { font-size: 9px; font-weight: 700; padding-bottom: 2px; }
.m-turbo .bars { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.m-turbo .bars i { width: 3px; border-radius: 2px; background: var(--brand); height: var(--h, 30%); transition: height .6s ease; }
.m-turbo .bars i.m { background: var(--rose-ink); opacity: .7; }
.m-turbo .track { height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .12); margin: 8px 0 6px; overflow: hidden; }
.m-turbo .track b { display: block; height: 100%; width: 86%; background: var(--brand); border-radius: 6px; }
.m-turbo .nets { display: flex; gap: 10px; font-size: 9px; font-weight: 700; }
.m-turbo .nets span { display: inline-flex; align-items: center; gap: 3px; }
.sw { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--surface-3); border: 0; cursor: pointer; margin-left: auto; flex: none; transition: background .25s; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: transform .25s, background .25s; }
.sw[aria-checked="true"] { background: var(--btn); }
.sw[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }
.m-filter { display: flex; gap: 5px; padding: 8px 12px 4px; }
.m-filter span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 9px; font-weight: 700; color: var(--ink-2); }
.m-filter span.on { background: var(--tint); color: var(--tint-ink); border-color: transparent; }
.m-sec { display: flex; justify-content: space-between; padding: 6px 14px 4px; font-size: 9.5px; font-weight: 700; color: var(--ink-2); }
.m-sec b { color: var(--brand); }
.m-dl { margin: 2px 12px; background: var(--surface-2); border-radius: 16px; padding: 9px 10px; }
.m-dl .row { display: flex; align-items: center; gap: 8px; }
.m-dl .fi { width: 28px; height: 28px; border-radius: 9px; background: var(--rose); color: var(--rose-ink); display: grid; place-items: center; flex: none; }
.m-dl .fi.doc { background: var(--tint); color: var(--tint-ink); }
.m-dl .n { font-weight: 700; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-dl .s { font-size: 8.5px; color: var(--ink-3); }
.m-dl .txt { min-width: 0; flex: 1; }
.m-dl .pb { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; flex: none; }
.wave { height: 10px; margin: 6px 0 5px; position: relative; }
.wave svg { width: 100%; height: 10px; overflow: visible; }
.wave .trk { stroke: var(--surface-3); stroke-width: 2; }
.wave .wv { stroke: var(--brand); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.wave .dot { fill: var(--brand); }
.m-dl .chips { gap: 4px; }
.m-dl .chip { font-size: 8px; padding: 2px 7px; }
.m-fab { position: absolute; right: 14px; bottom: 64px; background: var(--tint); color: var(--tint-ink); padding: 10px 16px; border-radius: 16px; font: 700 12px var(--font-display); box-shadow: var(--shadow); display: flex; align-items: center; gap: 5px; }
.m-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 6px 6px 12px; background: var(--surface-2); border-top: 1px solid var(--line); }
.m-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; font-weight: 600; color: var(--ink-2); }
.m-nav span i { display: grid; place-items: center; width: 34px; height: 18px; border-radius: 999px; }
.m-nav span.on i { background: var(--tint); color: var(--tint-ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { text-align: center; padding: 1.2rem 1rem; }
.stat .n { font: 800 clamp(1.9rem, 4vw, 2.6rem)/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--ink-2); font-size: .92rem; margin-top: .35rem; font-weight: 600; }

/* ---------- demos ---------- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1rem, 3vw, 1.8rem); min-width: 0; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.demo-head h3 { margin-right: auto; }
.range { display: grid; gap: .3rem; }
.range label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.range label output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 32px; margin: 0; }
.lanes { display: grid; gap: .9rem; margin-top: 1rem; }
.lane { display: grid; gap: .35rem; }
.lane .lh { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.lane .lh .res { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.lane .bar { position: relative; height: 34px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lane .bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--tint); transition: width .1s linear; }
.lane.mobile .bar b { background: var(--rose); }
.lane.both .bar b { background: linear-gradient(90deg, var(--tint), var(--rose)); }
.lane .bar i { position: absolute; top: 4px; left: calc(var(--p, 0) * 1% - 13px); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); transition: left .1s linear; }
.lane.mobile .bar i { background: var(--rose-ink); }
.lane.won .lh::after { content: "Fastest"; color: var(--ok); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.verdict { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-s); background: var(--tint); color: var(--tint-ink); font-weight: 700; display: flex; gap: .6rem; align-items: center; }
.verdict:empty { display: none; }
.parts { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.parts i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.parts i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .25s linear; }
.parts i.m::after { background: var(--rose-ink); }
.parts i.done::after { background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--ink-2); font-weight: 600; margin-top: .75rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; background: var(--c); vertical-align: -1px; }

/* browser mock */
.bmock { background: var(--bg); border-radius: 24px; border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 440px; display: flex; flex-direction: column; }
.bpage { flex: 1; padding: 14px; position: relative; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.bk { border-radius: 10px; background: var(--surface-2); min-height: 14px; }
.bk.h { height: 40px; background: var(--surface); border: 1px solid var(--line); }
.bk.img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--tint), var(--rose)); display: grid; place-items: center; color: var(--tint-ink); position: relative; }
.bk.img .play { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.bk.txt { height: 10px; width: var(--w, 100%); }
.bk.ad { border: 2px dashed var(--warn); background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; height: 54px; transition: height .4s ease, opacity .3s ease, margin .4s ease; overflow: hidden; }
.bk.ad.gone { height: 0; opacity: 0; margin-top: -10px; }
.bk.file { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.bk.file .badge-icon { width: 30px; height: 30px; border-radius: 9px; }
.cookie { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; font-size: .8rem; box-shadow: var(--shadow); transform: translateY(130%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); display: flex; align-items: center; gap: .6rem; }
.cookie.in { transform: none; }
.cookie .btn { min-height: 30px; padding: .2rem .7rem; font-size: .78rem; }
.bbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface-2); border-top: 1px solid var(--line); }
.bbar .url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 6px 10px; font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.bbar .url .shield { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-weight: 800; font-variant-numeric: tabular-nums; }
.bbar .ib { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: var(--ink-2); border: 0; background: transparent; cursor: pointer; }
.bbar .ib .cnt { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #D33; color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.bbar .ib .cnt.on { transform: scale(1); }
.bbar .ib.sparkle.lit { color: var(--brand); animation: twinkle 1.2s ease-in-out 2; }
@keyframes twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(12deg); } }
.bbar .tabs { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 22px 22px 0 0; padding: .9rem 1rem 1rem; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); z-index: 3; }
.sheet.in { transform: none; }
.sheet .grip { width: 34px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 0 auto .7rem; }
.sheet h4 { font-size: 1.05rem; margin-bottom: .15rem; }
.sheet .sub { font-size: .78rem; color: var(--ink-3); margin-bottom: .6rem; }
.sheet .row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.sheet .row input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.sheet .row .why { color: var(--ink-3); font-size: .74rem; display: block; }
.sheet .act { display: flex; justify-content: space-between; align-items: center; margin: .6rem 0 .4rem; }
.toast { position: absolute; left: 50%; bottom: 70px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; transition: all .3s ease; z-index: 4; white-space: nowrap; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 2; }
.scrim.in { opacity: 1; pointer-events: auto; }

/* ways to add: segmented */
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); padding: .55rem .95rem; border-radius: 999px; font: 600 .92rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.seg button[aria-selected="true"] { background: var(--tint); color: var(--tint-ink); border-color: transparent; }
.way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1.25rem; }
@media (max-width: 700px) { .way { grid-template-columns: 1fr; } }
.way .art { background: var(--surface-2); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1rem; }
.way .art svg { width: min(100%, 300px); height: auto; }
.way ol { padding-left: 1.2rem; margin: .5rem 0 0; color: var(--ink-2); }
.way li { margin-bottom: .35rem; }

/* screenshots */
.shots { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1.2rem; scrollbar-width: thin; }
.shots figure { flex: 0 0 min(250px, 68vw); scroll-snap-align: center; margin: 0; }
.shots img { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; height: auto; }
.shots figcaption { text-align: center; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-top: .6rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 0; font: 700 1.05rem var(--font-body); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.1rem; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--btn); color: var(--on-btn); border-radius: var(--r); padding: clamp(1.8rem, 5vw, 3.2rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: .9; }
.cta-band .btn { background: #fff; color: #1550E8; }
.cta-band .lines i { background: linear-gradient(90deg, transparent, #fff); opacity: .28; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; color: var(--ink-2); font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { margin-bottom: .6rem; font-size: .95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--brand); text-decoration: underline; }
footer .fine { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- docs (guide, privacy) ---------- */
.doc-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; color: var(--ink-3); margin-bottom: 1rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.doc-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: var(--ink-3); font-size: .9rem; margin-top: .8rem; }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.guide > * { min-width: 0; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } }
.toc { min-width: 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: .5rem; scrollbar-width: thin; }
.toc .search { position: relative; margin-bottom: .8rem; }
.toc .search input { width: 100%; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: .5rem 1rem .5rem 2.5rem; font: 500 .95rem var(--font-body); }
.toc .search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: .42rem .8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; border-left: 0; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.active { background: var(--tint); color: var(--tint-ink); }
.toc .hits { font-size: .82rem; color: var(--ink-3); padding: .3rem .8rem; }
@media (max-width: 900px) {
  .toc { position: static; max-height: none; overflow: visible; }
  .toc ol { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
  .toc a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
}
.doc { min-width: 0; }
.doc > section { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc > section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.doc h2 .badge-icon { width: 40px; height: 40px; border-radius: 12px; }
.doc h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; scroll-margin-top: 84px; }
.doc h4 { margin: 1.2rem 0 .4rem; }
.doc p, .doc li { max-width: 72ch; color: var(--ink-2); }
.doc li { margin-bottom: .3rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc b, .doc strong { color: var(--ink); }
.ui { font-weight: 700; color: var(--ink); }
.path { font-weight: 700; color: var(--ink); }
.path i { font-style: normal; color: var(--ink-3); margin: 0 .2em; }
kbd.k { font: 600 .85em var(--font-body); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; color: var(--ink); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: .75rem 0 1rem; display: grid; gap: .6rem; }
.steps li { position: relative; padding-left: 2.6rem; min-height: 2rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -.05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--tint); color: var(--tint-ink); font: 800 .9rem/1.9rem var(--font-display); text-align: center; }
.callout { border-radius: var(--r-s); padding: .9rem 1.1rem; margin: 1rem 0; display: flex; gap: .7rem; align-items: flex-start; background: var(--surface-2); }
.callout .ic { margin-top: .15rem; }
.callout.tip { background: var(--tint); color: var(--tint-ink); } .callout.tip p { color: inherit; }
.callout.warn { background: var(--warn-bg); color: var(--warn); } .callout.warn p { color: inherit; }
.callout.ok { background: var(--ok-bg); color: var(--ok); } .callout.ok p { color: inherit; }
.ref { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .75rem 0 1rem; }
.ref th, .ref td { text-align: left; padding: .6rem .6rem; border-top: 1px solid var(--line); vertical-align: top; }
.ref th { color: var(--ink); font-weight: 700; width: 34%; }
.ref td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.cardlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin: .8rem 0 1rem; }
.cardlist .card { padding: 1rem 1.1rem; }
.cardlist .card h4 { margin: 0 0 .3rem; display: flex; align-items: center; gap: .5rem; }
.cardlist .card p { font-size: .92rem; margin: 0; }
.copy-link { margin-left: auto; opacity: 0; transition: opacity .2s; }
.doc h2:hover .copy-link, .doc h2:focus-within .copy-link { opacity: 1; }
@media (hover: none) { .copy-link { opacity: 1; } }
.checklist { list-style: none; padding: 0; display: grid; gap: .4rem; }
.checklist label { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; border-radius: var(--r-s); background: var(--surface-2); cursor: pointer; color: var(--ink-2); }
.checklist input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: .15rem; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-3); }
.pbar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin: .5rem 0 1rem; }
.pbar b { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 8px; transition: width .3s ease; }
.mocktabs { display: flex; justify-content: space-around; background: var(--surface-2); border-radius: 18px; padding: .5rem; margin: .8rem 0 .6rem; }
.mocktabs button { border: 0; background: transparent; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 .72rem var(--font-body); cursor: pointer; padding: .2rem .3rem; }
.mocktabs button i { display: grid; place-items: center; width: 50px; height: 28px; border-radius: 999px; }
.mocktabs button[aria-selected="true"] { color: var(--ink); }
.mocktabs button[aria-selected="true"] i { background: var(--tint); color: var(--tint-ink); }
.tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 1rem 1.1rem; }
.tabpanel[hidden] { display: none; }
.shot-float { float: right; width: min(270px, 40%); margin: .2rem 0 1rem 1.4rem; }
.shot-float img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-float figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .5rem; }
@media (max-width: 640px) { .shot-float { float: none; width: min(100%, 300px); margin: .5rem auto 1.5rem; } }
.doc-date { color: var(--ink-3); font-size: .95rem; }
.short { background: var(--tint); color: var(--tint-ink); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.short p { color: inherit; }
.never { background: var(--rose); color: var(--rose-ink); border-radius: var(--r-s); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.never p { color: inherit; }
.hosts { font-size: .92rem; }
.hosts code { font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
.theme-note { font-size: .85rem; color: var(--ink-3); }
.hidden-by-search { display: none !important; }
mark.hit { background: var(--sky); color: #0B2A8A; border-radius: 3px; padding: 0 .1em; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .phone { transform: none; }
  .mesh { animation: none; }
}
@media print {
  .topbar, .tabbar, footer.site, .copy-link, .toc, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .doc p, .doc li { color: #000; }
}
