/**
 * @file style.css
 * @description Presentation website. Same tokens as the Musonic app
 *   (apps/mobile/src/theme): black background, grey grouped surfaces, one
 *   orange accent for primary actions, soft "raised" relief (drop shadow and a
 *   fine light edge), large left-aligned titles. Pages: a short home, then one
 *   page per part (mobile app, web, server) with its documentation and a side
 *   table of contents. Both languages are in the page (`data-l`), the html
 *   `lang` picks one.
 * @author DoodzProg
 * @version 3.0.0
 * @license CC-BY-NC-4.0
 */

:root {
  --bg: #000000;
  --surface1: #1c1c1e;
  --surface2: #2c2c2e;
  --fill: rgba(118, 118, 128, 0.24);
  --text: #ffffff;
  --text2: rgba(235, 235, 245, 0.62);
  --separator: rgba(84, 84, 88, 0.55);
  --accent: #ff6b35;
  --on-accent: #1a0a04;
  --accent-fill: rgba(255, 107, 53, 0.2);
  --success: #30d158;
  --success-fill: rgba(48, 209, 88, 0.18);
  --badge-fill: rgba(255, 255, 255, 0.12);
  --thumb: #636366;

  --raised: 0 8px 24px rgba(0, 0, 0, 0.35);
  --raised-edge: inset 0 0.5px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --glass-edge: inset 0 -0.5px 0 rgba(255, 255, 255, 0.08);

  --r-tile: 12px;
  --r-button: 14px;
  --r-card: 20px;
  --gutter: 20px;
  --max: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.45 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--surface2); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ── Top bar: like the app's compact title bar, frosted ─────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--glass-edge);
}
.bar__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 8px; }
.bar__links { display: flex; gap: 22px; margin-left: 12px; }
.bar__links a { color: var(--text2); text-decoration: none; font-size: 15px; }
.bar__links a:hover { color: var(--text); }
.bar__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.round {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fill); color: var(--text); box-shadow: var(--raised-edge);
}
.round svg { width: 18px; height: 18px; }

/* Segmented control, as in the app */
.segmented {
  display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill);
}
.segmented button {
  font: 600 13px/1 var(--font); color: var(--text); background: transparent; border: 0;
  padding: 7px 12px; border-radius: 7px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--thumb); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.segmented--wide button { padding: 8px 18px; font-size: 14px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
.lead { color: var(--text2); font-size: 19px; line-height: 1.5; max-width: 60ch; margin-top: 14px; }
.note { color: var(--text2); font-size: 14px; margin-top: 14px; }
.note a { color: var(--text2); }
.caption { color: var(--text2); font-size: 14px; margin: 0 0 8px 16px; }

/* ── Buttons, like the app's Play / secondary buttons ─────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--tight { margin-top: 20px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-button);
  background: var(--fill); color: var(--text);
  font: 600 16px/1 var(--font); text-decoration: none;
  box-shadow: var(--raised-edge);
  transition: transform 120ms ease, filter 120ms ease;
}
.button:hover { filter: brightness(1.12); }
.button:active { transform: scale(0.97); }
.button svg { width: 20px; height: 20px; }
.button--accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--raised), var(--raised-edge); }
.button--off { color: var(--text2); cursor: default; box-shadow: none; }
.button--off:hover { filter: none; }
.button--off:active { transform: none; }

/* ── Relief ───────────────────────────────────────────────────────────── */
.raised { background: var(--surface1); border-radius: var(--r-card); box-shadow: var(--raised), var(--raised-edge); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.hero__text h1 { max-width: 13ch; }
.hero__phones { position: relative; height: 560px; }
.phone {
  position: absolute; margin: 0; width: 250px; border-radius: 34px; overflow: hidden;
  background: var(--surface1); border: 6px solid #1c1c1e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--raised-edge);
}
.phone img { width: 100%; }
.phone--back { right: 170px; top: 40px; opacity: 0.55; }
.phone--front { right: 20px; top: 0; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-top: 96px; }
.section > h2 + .lead { margin-bottom: 36px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

/* Grouped list, like the app's ListGroup */
.group { background: var(--surface1); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--raised-edge); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; height: 0.5px; background: var(--separator); }
.row--text { display: block; }
.row--text + .row--text::before { left: 16px; }
.row__body { flex: 1; min-width: 0; }
.row__title { font-weight: 600; font-size: 17px; }
.row__desc { color: var(--text2); font-size: 15px; margin-top: 2px; }

.icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface2); }
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--server { background: var(--accent-fill); }
.icon--server svg { stroke: var(--accent); }
.icon--server circle { fill: var(--accent); stroke: none; }

.badge { flex: none; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--badge-fill); color: var(--text2); }
.badge--ok { background: var(--success-fill); color: var(--success); }
.badge--accent { background: var(--accent-fill); color: var(--accent); }

/* Ecosystem: the server feeds every app */
.tree { max-width: 760px; }
.tree__root { display: flex; gap: 14px; align-items: center; padding: 18px 16px; }
.tree__branches { margin: 16px 0 0 32px; position: relative; }
.tree__branches::before {
  content: ""; position: absolute; left: -16px; top: -16px; bottom: 30px; width: 1.5px; background: var(--separator);
}

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { padding: 22px 20px; display: flex; flex-direction: column; }
.platform__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.platform .actions { margin-top: auto; padding-top: 20px; }

/* Screenshots */
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  --side: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter)));
  padding: 8px var(--side) 24px;
  /* Snap to the content edge, not the scroller's: keeps the first shot aligned with the titles. */
  scroll-padding-inline: var(--side);
  scrollbar-width: thin; scrollbar-color: var(--surface2) transparent;
}
.shots[hidden] { display: none; }
.shots figure { flex: none; width: 220px; margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; box-shadow: var(--raised), var(--raised-edge); }
.shots figcaption { color: var(--text2); font-size: 14px; margin: 12px 0 0 4px; }
.shots--wide figure { width: min(560px, 80vw); }
.shots--wide img { border-radius: 18px; }

/* Highlights */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }

/* Steps: a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.steps li { display: flex; gap: 14px; padding: 20px; }
.step { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-fill); color: var(--accent); font-weight: 700; font-size: 15px; }

/* Footer */
.footer { margin-top: 112px; padding: 28px 0 40px; box-shadow: inset 0 0.5px 0 var(--separator); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--text2); text-decoration: none; font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer .note { margin: 0 0 0 auto; }


/* ── Languages: both are in the page, html[lang] shows one ───────────── */
html[lang="fr"] [data-l="en"], html:not([lang="fr"]) [data-l="fr"] { display: none !important; }

/* Current page in the top bar */
.bar__links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Part pages: the line above the title */
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.hero__shot { min-height: 380px; }
.hero__media img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--raised-edge); }

/* ── Home ─────────────────────────────────────────────────────────────── */
.get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 520px; }
.get .button { justify-content: center; height: 52px; }
.get .button small { font-weight: 500; color: inherit; opacity: 0.7; font-size: 13px; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.part { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; text-decoration: none; transition: transform 160ms ease; }
.part:hover { transform: translateY(-2px); }
.part .icon { width: 44px; height: 44px; border-radius: 12px; }
.part .icon svg { width: 24px; height: 24px; }
.part__more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* ── Part pages: summary, then documentation with a side contents ────── */
.page-hero { padding-top: 64px; padding-bottom: 8px; }
.page-hero .eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.page-hero h1 { max-width: 18ch; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 72px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 14px; }
.toc p { color: var(--text2); font-size: 13px; font-weight: 600; margin: 0 0 8px 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text2); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); background: var(--fill); }
.toc .toc__part { margin-top: 16px; }
.doc__body { min-width: 0; max-width: 760px; }
.doc__body > section { padding-top: 8px; margin-bottom: 64px; scroll-margin-top: 80px; }
.doc__body h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; }
.doc__body h2 .num { color: var(--accent); margin-right: 10px; }
.doc__body h3 { font-size: 19px; margin: 28px 0 8px; }
.doc__body p { color: var(--text2); margin-top: 10px; }
.doc__body p strong, .doc__body li strong { color: var(--text); font-weight: 600; }
.doc__body .row__title { color: var(--text); margin-top: 0; }
.doc__body .row__desc { margin-top: 2px; }
.doc__body ul.list, .doc__body ol.list { margin-top: 12px; display: grid; gap: 8px; color: var(--text2); }
.doc__body ul.list li { position: relative; padding-left: 20px; }
.doc__body ul.list li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc__body ol.list { counter-reset: n; }
.doc__body ol.list li { position: relative; padding-left: 36px; counter-increment: n; min-height: 26px; }
.doc__body ol.list li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-fill); color: var(--accent); font-size: 13px; font-weight: 700; }
.doc__body .group { margin-top: 16px; }
.doc__body a:not(.button) { color: var(--accent); }
code, kbd { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
pre { margin: 14px 0 0; padding: 16px 18px; background: var(--surface1); border-radius: var(--r-tile); overflow-x: auto; box-shadow: var(--raised-edge); }
pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; background: var(--surface1); border-radius: var(--r-tile); overflow: hidden; box-shadow: var(--raised-edge); }
.table th, .table td { text-align: left; padding: 11px 14px; vertical-align: top; }
.table th { color: var(--text2); font-weight: 600; font-size: 13px; }
.table tr + tr td, .table thead + tbody tr:first-child td { box-shadow: inset 0 0.5px 0 var(--separator); }
.table td { color: var(--text2); }
.table td:first-child { color: var(--text); }
.table-wrap { overflow-x: auto; }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--surface1); color: var(--text2); font-size: 15px; box-shadow: var(--raised-edge); }
.callout strong { color: var(--text); }
.soon { display: inline-block; margin-left: 8px; vertical-align: 2px; }
.part-title { margin: 8px 0 32px; padding-top: 24px; box-shadow: inset 0 0.5px 0 var(--separator); }
.part-title h2 { font-size: clamp(30px, 4vw, 40px); }
.slot { margin-top: 16px; display: grid; place-items: center; min-height: 180px; border-radius: var(--r-card); background: var(--surface1); color: var(--text2); font-size: 14px; box-shadow: var(--raised-edge); text-align: center; padding: 20px; }
.doc .shots { padding-inline: 0; scroll-padding-inline: 0; margin-top: 16px; }
.doc .shots figure { width: 180px; }

/* Screenshot viewer */
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(0, 0, 0, 0.92); touch-action: pan-y; }
.viewer[hidden] { display: none; }
.viewer__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1100px, 100%); }
.viewer__fig img { max-height: calc(100vh - 110px); max-width: 100%; width: auto; border-radius: 22px; box-shadow: var(--raised), var(--raised-edge); user-select: none; -webkit-user-drag: none; }
.viewer__fig figcaption { color: var(--text2); font-size: 15px; }
.viewer .round { width: 44px; height: 44px; font-size: 24px; border: 0; cursor: pointer; flex: none; }
.viewer__close { position: absolute; top: 16px; right: 16px; font-size: 18px !important; }

/* Home: the apps together, the benchmark in one line, a screenshot per part */
.showcase { position: relative; padding: 0 0 56px 64px; }
.showcase__web { margin: 0; }
.showcase__web img { width: 100%; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--raised-edge); }
.showcase .showcase__phone { left: 0; bottom: 0; width: 150px; border-radius: 26px; border-width: 5px; }
.proof { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 22px 24px; text-decoration: none; transition: transform 160ms ease; }
.proof:hover { transform: translateY(-2px); }
.proof__value { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.proof__text { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.proof__text strong { font-size: 20px; font-weight: 600; }
.proof__text > span { color: var(--text2); font-size: 15px; }
.proof .part__more { margin: 0; padding: 0; }
.part__shot { width: calc(100% + 40px); max-width: none; margin: -22px -20px 6px; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-radius: var(--r-card) var(--r-card) 0 0; }

/* ── Why Musonic · FAQ: benchmark ─────────────────────────────────────── */
.bar__faq {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px;
  background: var(--fill); color: var(--text); font: 600 13px/1 var(--font); text-decoration: none;
  box-shadow: var(--raised-edge);
}
.bar__faq:hover { filter: brightness(1.12); }
.bar__faq[aria-current="page"] { background: var(--thumb); }

.hero-num { margin-top: 20px; padding: 28px 24px; }
.hero-num__value { font-size: clamp(64px, 9vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.hero-num__label { color: var(--text); font-size: 19px; font-weight: 600; margin-top: 10px; }
.doc__body .hero-num__note { color: var(--text2); font-size: 14px; margin-top: 12px; max-width: 62ch; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { padding: 18px 16px; }
.doc__body .stat p { margin-top: 0; }
.stat__x { color: var(--accent) !important; font-weight: 600; font-size: 14px; }
.doc__body .stat__value { color: var(--text); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.stat__value small { font-size: 16px; font-weight: 600; color: var(--text2); letter-spacing: -0.01em; }
.doc__body .stat__label { color: var(--text); font-size: 15px; margin-top: 4px; }
.doc__body .stat__vs { color: var(--text2); font-size: 13px; margin-top: 8px; }

/* Bar charts: ratio Musonic / Navidrome, log scale, 1× is the baseline */
.chart { margin-top: 16px; padding: 18px 16px 12px; background: var(--surface1); border-radius: var(--r-card); box-shadow: var(--raised-edge); }
.chart__row { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 3.5em; align-items: center; gap: 12px; min-height: 30px; border-radius: 6px; outline-offset: 0; }
.chart__label { color: var(--text2); font-size: 14px; line-height: 1.25; }
.chart__track { position: relative; height: 24px; }
.chart__track i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--separator); }
.chart__track i:first-child { background: var(--text2); opacity: 0.5; }
.chart__bar { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 0 4px 4px 0; background: var(--accent); }
.chart__bar--other { background: var(--thumb); border-radius: 4px 0 0 4px; }
.chart__value { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart__axis { position: relative; height: 20px; margin: 6px 3.5em 0 calc(13em + 12px); font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.chart__axis span { position: absolute; transform: translateX(-50%); }
.chart__tip {
  position: absolute; z-index: 2; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--surface2); color: var(--text);
  font-size: 13px; box-shadow: var(--raised); pointer-events: none; opacity: 0; transition: opacity 120ms ease;
}
.chart__row:hover .chart__tip, .chart__row:focus-visible .chart__tip, .chart__row:focus .chart__tip { opacity: 1; }
.chart__row:hover .chart__label, .chart__row:focus .chart__label { color: var(--text); }

.table--bench .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table--bench td.win { color: var(--text); font-weight: 600; }
.table--bench code { font-size: 12px; margin-left: 4px; color: var(--text2); }
.table--setup td:first-child { width: 1%; white-space: nowrap; color: var(--text2); }
.table--setup td:last-child { color: var(--text); }

/* Results: one card, one tab per family */
.tabs { margin-top: 16px; padding: 6px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 11px; background: var(--fill); }
.tabs__list button {
  flex: 1 1 auto; font: 600 14px/1 var(--font); color: var(--text2); background: transparent; border: 0;
  padding: 10px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.tabs__list button:hover { color: var(--text); }
.tabs__list button[aria-selected="true"] { background: var(--thumb); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.tabs .table { margin-top: 6px; background: none; box-shadow: none; border-radius: 0; }

/* FAQ: the question as people asked it, then the answer */
.faq { margin: 16px 0 0; padding: 20px; background: var(--surface1); border-radius: var(--r-card); box-shadow: var(--raised-edge); }
.faq blockquote { margin: 0; padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq figcaption { color: var(--text2); font-size: 13px; margin: 6px 0 0 14px; }
.faq__a { margin-top: 12px; }
.doc__body .faq__a p:first-child, .doc__body .faq__a .list:first-child { margin-top: 0; }
.try { margin-top: 32px; padding: 24px 20px; }
.doc__body .try h3 { margin: 0; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .showcase { padding-left: 48px; max-width: 640px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bar__inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 0; }
  .bar__links { order: 3; width: 100%; margin: 6px 0 0; padding-bottom: 10px; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .bar__links a { white-space: nowrap; }
  .hero__shot { min-height: 220px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__phones { height: 470px; }
  .phone { width: 210px; }
  .phone--back { right: auto; left: 0; }
  .phone--front { right: auto; left: 130px; }
  .platforms, .columns, .steps, .parts { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .toc { position: static; max-height: none; display: none; }
}
@media (max-width: 520px) {
  .showcase { padding: 0 0 40px 36px; }
  .showcase .showcase__phone { width: 110px; border-radius: 20px; border-width: 4px; }
  .proof__value { font-size: 44px; }
  .stats { grid-template-columns: 1fr; }
  .table--bench code, .table--bench .w { display: none; }
  .table--bench th, .table--bench td { padding: 10px 8px; }
  .table--bench th:first-child, .table--bench td:first-child { padding-left: 14px; }
  .chart__row { grid-template-columns: minmax(0, 1fr) 3.5em; row-gap: 2px; }
  .chart__label { grid-column: 1 / -1; }
  .chart__axis { margin-left: 0; }
  .bar__faq { padding: 0 10px; }
  .viewer { padding: 12px; gap: 0; }
  .viewer__nav { position: absolute; bottom: 20px; }
  .viewer__prev { left: calc(50% - 60px); }
  .viewer__next { right: calc(50% - 60px); }
  .viewer__fig img { max-height: calc(100vh - 140px); }
  .hero__phones { height: 400px; }
  .phone { width: 180px; border-radius: 28px; }
  .phone--front { left: 110px; }
  .tree__branches { margin-left: 18px; }
  .tree__branches::before { left: -10px; }
  .row { align-items: flex-start; }
  .row .badge { position: absolute; top: 14px; right: 16px; }
  .row__body { padding-top: 0; }
  .row .row__title { padding-right: 120px; min-height: 26px; }
  .row--text .row__title { padding-right: 0; min-height: 0; }
  .shots figure { width: 180px; }
  .footer .note { margin-left: 0; }
  .get { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
