/* CROSSFADE product site (2026-10-23 redesign).
   A plain, product-page look: neutral dark greys, one blue accent, Inter, thin borders, real screenshots.
   No glows, gradient text or looping motion; hover changes colour and nothing else moves.
   The in-browser mixer has its own stylesheet (mixer.css) in the app's colours. */

:root {
  --bg: #0c0d10;
  --bg-alt: #111317;
  --surface: #16181d;
  --surface-2: #1c1f25;
  --line: #262a31;
  --line-2: #343943;
  --text: #e8e9ec;
  --dim: #a3a9b3;
  --faint: #737a85;
  --accent: #2f81f7;
  --accent-hover: #4a93ff;
  --link: #6cb0ff;
  --ok: #3fb950;
  --warn: #d4a72c;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  /* Older pages colour their callouts and tiles with these names: muted versions of the app's colours. */
  --a: #6cb0ff; --b: #f0a868; --pink: #e58fb8; --purple: #b6a1f0; --green: #6fcf8e; --yellow: #d9b85c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: #f4f5f7; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: #f4f5f7; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: .05em .4em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; }
/* Phones don't get the mixer demo (it needs a big screen), nor the links to it. */
@media (max-width: 767px) { .hide-phone { display: none !important; } }
.muted { color: var(--dim); }
.small { font-size: .875rem; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 1.25em; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--surface-2); border-color: var(--line-2); transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #23272f; border-color: #454b56; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--sm { min-height: 36px; padding: 0 1em; font-size: .875rem; }
.btn--lg { min-height: 50px; padding: 0 1.5em; font-size: 1rem; }

/* ── Top bar ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(12, 13, 16, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 32px; height: 20px; }
.crumb { color: var(--faint); font-size: .8125rem; padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.crumb a { color: var(--dim); }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--dim); font-size: .9rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); text-decoration: none; background: var(--surface); }
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1080px) { .crumb { display: none; } }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 8px; font-size: 1rem; }
  .topbar .btn { display: none; }
}

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding: 64px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--dim); font-size: 1.075rem; margin: 0; }
.kicker { display: block; margin-bottom: 12px; color: var(--link); font-size: .875rem; font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-text { max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--dim); margin-bottom: 32px; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 16px 0 0; color: var(--faint); font-size: .875rem; }
.counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; color: var(--dim); font-size: .875rem; }
.counts[hidden] { display: none; }
.counts a { color: var(--dim); }
.counts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.counts .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.hero-shot { margin: 56px 0 0; }

/* ── Screenshots ───────────────────────────────────────────────────── */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); }
.shot figcaption { margin-top: 10px; color: var(--faint); font-size: .85rem; }

/* ── At a glance ───────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.facts span { color: var(--dim); font-size: .875rem; }
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div:nth-child(4) { border-left: 0; }
  .facts > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
}

/* ── Feature rows: words on one side, a screenshot on the other ────── */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 14px; }
.feature-text > p { color: var(--dim); }
.feature .kicker { margin-bottom: 8px; }
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
}
.ticks { list-style: none; margin: 20px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--dim); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.note { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius-sm); background: var(--surface); color: var(--dim); font-size: .925rem; }
.note strong { color: var(--text); }
.label { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--dim); font-size: .75rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.label--new { color: var(--link); border-color: rgba(108, 176, 255, .4); }

/* Two pictures on one side (karaoke: the DJ's panel and the singer's screen). */
.shot-pair { display: grid; gap: 16px; }

/* The video wall, drawn: one visualiser picture across a 3 x 2 grid of screens with a gap for their frames. */
.wall { margin: 0; }
.wall-screens {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  background: #050506; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
}
.wall-screens span {
  aspect-ratio: 16 / 9; border-radius: 2px; background-image: var(--pic); background-size: 300% 200%;
  outline: 1px solid #1a1c20;
}
.wall-screens span:nth-child(1) { background-position: 0 0; }
.wall-screens span:nth-child(2) { background-position: 50% 0; }
.wall-screens span:nth-child(3) { background-position: 100% 0; }
.wall-screens span:nth-child(4) { background-position: 0 100%; }
.wall-screens span:nth-child(5) { background-position: 50% 100%; }
.wall-screens span:nth-child(6) { background-position: 100% 100%; }
.wall figcaption { margin-top: 10px; color: var(--faint); font-size: .85rem; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--dim); margin: 0; font-size: .95rem; }
.card p + p { margin-top: .75em; }

/* Pad modes: a small crop of the pads above each description. */
.tool img { width: 100%; height: auto; aspect-ratio: 294 / 92; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 16px; background: #000; }
.tool .where { display: block; margin-bottom: 4px; color: var(--faint); font-size: .75rem; font-weight: 600; letter-spacing: .06em; }

/* ── Effects, by family ────────────────────────────────────────────── */
.fx-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fx-table th, .fx-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.fx-table tr:first-child th, .fx-table tr:first-child td { border-top: 0; }
.fx-table th { width: 190px; font-weight: 600; color: var(--text); white-space: nowrap; }
.fx-table td { color: var(--dim); }
.fx-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (max-width: 600px) { .fx-table th, .fx-table td { display: block; width: auto; } .fx-table td { border-top: 0; padding-top: 0; } }

/* ── Visualisers ───────────────────────────────────────────────────── */
.vis-stage { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.vis-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vis-picker { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.vis-picker button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--dim);
  cursor: pointer; overflow: hidden; font: 500 .75rem/1 var(--font); text-align: center;
}
.vis-picker button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vis-picker button span { display: block; padding: 7px 4px; }
.vis-picker button:hover { border-color: var(--line-2); color: var(--text); }
.vis-picker button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
@media (max-width: 900px) { .vis-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vis-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Gallery ───────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #000; cursor: zoom-in; overflow: hidden; }
.gallery button:hover { border-color: var(--line-2); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.gallery figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; }
.gallery figcaption b { color: var(--text); font-weight: 600; }

.lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--text); max-width: min(1400px, 94vw); width: 94vw; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.lb-bar p { margin: 0 auto 0 4px; color: var(--dim); font-size: .9rem; }

/* ── Android ───────────────────────────────────────────────────────── */
.droid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .droid { grid-template-columns: 1fr; gap: 40px; } }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--dim); font-size: .875rem; font-weight: 500; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.droid-shot { margin: 0; }
.droid-frame { padding: 10px; border-radius: 22px; background: #050506; border: 1px solid var(--line-2); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); }
.droid-frame img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 13px; }
.droid-shot figcaption { margin-top: 12px; color: var(--dim); font-size: .9rem; min-height: 1.5em; }
.droid-shot figcaption b { color: var(--text); font-weight: 600; }
.droid-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.droid-tabs button { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--dim); font: 500 .875rem/1 var(--font); cursor: pointer; }
.droid-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.droid-tabs button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.spec-list { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.spec-list div { border-top: 1px solid var(--line); padding-top: 12px; }
.spec-list dt { font-weight: 600; font-size: .95rem; }
.spec-list dd { margin: 2px 0 0; color: var(--dim); font-size: .9rem; }
@media (max-width: 520px) { .spec-list { grid-template-columns: 1fr; } }

/* ── Visitors and downloads ────────────────────────────────────────── */
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }
.live-tile { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.live-head h3 { font-size: 1rem; color: var(--dim); font-weight: 500; margin: 0; }
.live-today { color: var(--dim); font-size: .875rem; }
.live-today b { color: var(--text); }
.live-value { display: block; margin: 6px 0 18px; font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.live-chart { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.live-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.live-bar { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--lc, #4b5563); opacity: .55; }
.live-col.is-today .live-bar { opacity: 1; }
.live-col.is-zero .live-bar { background: var(--line-2); opacity: 1; }
.live-col:hover .live-bar, .live-col:focus-visible .live-bar { opacity: 1; }
.live-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  padding: 6px 9px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--dim); font-size: .78rem;
  display: none; pointer-events: none;
}
.live-tip b { color: var(--text); }
.live-col:hover .live-tip, .live-col:focus-visible .live-tip { display: block; }
.live-col:first-child .live-tip { left: 0; transform: none; }
.live-col:last-child .live-tip { left: auto; right: 0; transform: none; }
.live-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: .78rem; }
[data-live="visitors"] { --lc: #8b7cf6; }
[data-live="downloads"] { --lc: #3fb950; }
.is-bumped { color: var(--ok) !important; transition: color .2s; }

/* ── Download ──────────────────────────────────────────────────────── */
.download { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .download { grid-template-columns: 1fr; gap: 32px; } }
.release { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.release > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .925rem; }
.release > div:first-child { border-top: 0; }
.release dt { color: var(--faint); }
.release dd { margin: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release dd.hash { font-family: var(--mono); font-size: .8rem; color: var(--dim); }
.release dd:last-child:not(.hash) { grid-column: span 2; }
.steps { counter-reset: step; list-style: none; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; color: var(--dim); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text); font-size: .85rem; font-weight: 600; display: grid; place-items: center;
}
.steps li strong { display: block; color: var(--text); }
.req { margin-top: 24px; color: var(--dim); font-size: .925rem; }

/* Release history. */
.history { width: 100%; border-collapse: collapse; font-size: .925rem; }
.history th, .history td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.history thead th { border-top: 0; color: var(--faint); font-weight: 500; font-size: .8rem; }
.history td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.history td:nth-child(2) { white-space: nowrap; color: var(--faint); }
.history td:last-child { color: var(--dim); }
.history-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }

/* ── Support the project: donate and share ─────────────────────────── */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent; color: var(--dim);
  font: 500 .875rem/1 var(--font); cursor: pointer; text-decoration: none;
}
.share-btn:hover { color: var(--text); border-color: #4a505b; text-decoration: none; }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn[hidden] { display: none; }
.share-btn.is-done { color: var(--ok); border-color: rgba(63, 185, 80, .5); }
.share-toast { min-height: 1.4em; margin: 12px 0 0; color: var(--ok); font-size: .875rem; visibility: hidden; }
.share-toast.is-on { visibility: visible; }
.fine { margin-top: 12px; color: var(--faint); font-size: .8125rem; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: #fff; }
.faq details > div { padding: 0 0 20px; color: var(--dim); max-width: 760px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 32px; color: var(--dim); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot .brand { margin-bottom: 12px; color: #fff; }
.foot p { max-width: 360px; }
.foot-h { margin: 0 0 12px; font-size: .8125rem; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--text); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-base p { margin: 0; max-width: none; }

/* ═══ The other pages: support, privacy, the manual ═══════════════════ */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: var(--dim); font-size: 1.1rem; max-width: 760px; margin: 0; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--link); font-size: .875rem; font-weight: 600; }
.grad-text { color: inherit; }

.prose-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 96px; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: .875rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc b { margin-bottom: 8px; color: var(--text); font-weight: 600; }
.toc a { padding: 5px 10px; border-left: 2px solid var(--line); color: var(--dim); }
.toc a:hover { color: var(--text); border-left-color: var(--line-2); text-decoration: none; }
.toc a.is-hidden { display: none; }
.toc-h { margin: 14px 0 4px; color: var(--faint); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) {
  .toc { position: static; max-height: none; flex-flow: row wrap; gap: 6px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; }
  .toc-h { display: none; }
}

.prose { max-width: 780px; color: #cfd2d8; }
.prose h2 { margin: 56px 0 16px; padding-top: 8px; font-size: 1.65rem; }
.prose > h2:first-child, .prose > .man-empty + section h2, .prose > :first-child h2 { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--faint); }
.prose table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; border-bottom-color: var(--line-2); }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.prose .ticks li { color: #cfd2d8; }
.callout { margin: 20px 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--cc, var(--accent)); border-radius: var(--radius-sm); background: var(--surface); }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.keys td:first-child, .keys th:first-child { white-space: nowrap; }

/* Privacy. */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 900px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .glance { grid-template-columns: 1fr; } }
.glance-tile { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.glance-tile svg { width: 20px; height: 20px; color: var(--dim); margin-bottom: 10px; }
.glance-tile b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.glance-tile span { color: var(--dim); font-size: .9rem; }
.plat { display: flex; align-items: center; gap: 12px; margin: 56px 0 12px; }
.plat h2 { margin: 0; padding: 0; }
.plat-ico { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--dim); }
.plat-ico svg { width: 18px; height: 18px; }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
@media (max-width: 700px) { .conn-grid { grid-template-columns: 1fr; } }
.conn { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.conn h3 { margin: 0 0 4px; font-size: 1rem; }
.host { display: inline-block; margin-bottom: 10px; font-family: var(--mono); font-size: .8rem; color: var(--faint); }
.conn dl { margin: 0; font-size: .9rem; }
.conn dt { color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 10px; }
.conn dd { margin: 2px 0 0; color: var(--dim); }
.perm td:first-child { white-space: nowrap; color: var(--text); }
@media (max-width: 640px) {
  .perm thead { display: none; }
  .perm tr, .perm td { display: block; }
  .perm td { border-bottom: 0; padding: 4px 12px; }
  .perm tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
.droid-note { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--dim); font-size: .8rem; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.pv-updated { color: var(--faint); font-size: .875rem; }

/* The manual. */
.man-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; color: var(--faint); font-size: .875rem; }
.man-search { position: relative; max-width: 560px; margin-top: 24px; }
.man-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); }
.man-search input {
  width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 400 1rem var(--font);
}
.man-search input:focus { outline: none; border-color: var(--accent); }
.man-count { min-height: 1.4em; margin-top: 10px !important; color: var(--dim); font-size: .9rem !important; }
.man-empty { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--dim); }
.man-sec { padding-bottom: 8px; }
.man-sec + .man-sec { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 8px; }
.man-sec > h2 { margin-top: 32px; }
.chap { display: inline-block; min-width: 1.6em; margin-right: 12px; color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 500; }
.ui {
  display: inline-block; padding: 0 .4em; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface);
  font: 600 .78em/1.6 var(--font); letter-spacing: .03em; color: var(--text); white-space: nowrap;
}
.def { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); margin: 12px 0 20px; border-top: 1px solid var(--line); }
.def dt, .def dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.def dt { font-weight: 600; color: var(--text); padding-right: 16px; font-size: .925rem; }
.def dd { color: #c3c7ce; font-size: .925rem; }
@media (max-width: 560px) { .def { grid-template-columns: 1fr; } .def dt { border-bottom: 0; padding-bottom: 0; } }
.qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
@media (max-width: 560px) { .qs-grid { grid-template-columns: 1fr; } }
.qs { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--dim); font-size: .9rem; }
.qs:hover { border-color: var(--line-2); text-decoration: none; }
.qs b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.man-fig { margin: 24px 0; }
.man-fig img { border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.man-fig figcaption { margin-top: 8px; color: var(--faint); font-size: .85rem; }
.progress { display: none; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; visibility: hidden;
}
.to-top.is-on { visibility: visible; }
.to-top svg { width: 18px; height: 18px; }

@media print {
  .topbar, .foot, .toc, .man-search, .to-top, .skip { display: none !important; }
  body { background: #fff; color: #111; }
  .prose, .prose strong, h1, h2, h3, .def dt, .def dd { color: #111; }
  .prose-grid { display: block; }
  .ui { color: #111; background: #f2f2f2; border-color: #ccc; }
  a { color: #111; }
}

/* The message wall's two pictures: the screen, and the guest's phone beside it. */
.wall-pair { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: end; }
@media (max-width: 520px) { .wall-pair { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; } }
/* A phone screenshot on its own: kept to a phone's size. */
.phone-shot { max-width: 300px; margin-inline: auto; }
.prose h4 { margin: 24px 0 8px; font-size: 1rem; }

/* Two-column card grids on a tablet: an odd last card is centred at the width
   of one column instead of sitting alone against the left edge. */
@media (min-width: 701px) and (max-width: 960px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (min-width: 701px) {
  .conn-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}

/* SEND TO SCREEN: three displays, each showing its own thing, numbered as IDENTIFY DISPLAYS shows them. */
.wall-screens--send span { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.wall-screens--send span:nth-child(n) { background-position: center; }
.wall-screens--send b {
  position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; font-weight: 600;
}
.wall-screens--send i {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 8px 5px; font-style: normal; font-size: .7rem;
  font-weight: 600; letter-spacing: .04em; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
