/* noobify.xyz, design d: Skyline's city at night over a page drawn the way the app
   is. Below the cover everything comes from noobify's own design system (src/theme.rs
   and the views that use it): flat tiles with a hairline edge and the app's 7 px
   corner, one accent, quiet second lines in the dim colour, small accent capitals
   over a hairline as Settings heads its sections, and figures set as the Stats page
   sets them, a small dim label over a bold value.

   Type: Segoe UI, the app's own default face (Settings, Font: Segoe UI), from the
   PC; Selawik, Microsoft's open stand-in drawn to its measures, where it isn't
   installed (only fetched there, and only used if it comes in time for the first
   paint, so nothing moves when it does). JetBrains Mono, the app's monospace, only where the page shows a file's
   name or a key.

   Colours: by night, Skyline's palette (the city's navy, lamplight amber, its blue);
   by day, the Light theme's warm paper and red. The cover and the last call stay at
   night (.night) whatever the hour. */

@font-face {
  font-family: "Selawik";
  src: local("Selawik"), url("/v/d/fonts/selawik.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Selawik";
  src: local("Selawik Semibold"), url("/v/d/fonts/selawik-semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* The app's tokens. */
:root {
  /* theme::GAP between tiles, the inner margin of a tile (12) doubled for the page. */
  --gap: 8px;
  --pad: 24px;
  /* theme::RADIUS for tiles and windows; menus 5, chips 6, controls 4. */
  --r-tile: 7px;
  --r-menu: 5px;
  --r-chip: 6px;
  --r-ctl: 4px;

  --font: "Segoe UI Variable Text", "Segoe UI", "Selawik", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Selawik", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --gutter: 16px;
  --max: 1200px;
  --measure: 62ch;

  /* Skyline (Palette::build over its picture): bg, a tile a step up from it, the
     border and hover as the light of its hue at low alpha, text, dim, and the
     theme's two accents. */
  --bg: #0b0d15;
  --bg-alt: #0e1119;
  --tile: #12151f;
  --border: rgba(169, 179, 208, 0.22);
  --border-strong: rgba(169, 179, 208, 0.36);
  --hover: rgba(169, 179, 208, 0.1);
  --text: #e8e9ee;
  --dim: #a0a5b5;
  --accent: #ecb870;
  --accent-2: #80a0dc;
  --on-accent: #0e0e12;
  --yes: #62d6a0;
  --no: #ff8f8f;
  --catch: #e8a030;
  color-scheme: dark;
}

/* The Light theme (theme.rs LIGHT), as it is. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0ece4;
    --bg-alt: #e9e4da;
    --tile: #faf8f3;
    --border: #d6cfc3;
    --border-strong: #c2b9ab;
    --hover: #e5dfd4;
    --text: #1e1a16;
    --dim: #665e54;
    --accent: #c23c1a;
    --accent-2: #16688a;
    --on-accent: #fffaf4;
    --yes: #0d7a4a;
    --no: #a33a3a;
    --catch: #a8640c;
    color-scheme: light;
  }
}

/* What stays at night whatever the hour. */
.night {
  --bg: #0b0d15;
  --tile: #12151f;
  --border: rgba(169, 179, 208, 0.24);
  --border-strong: rgba(169, 179, 208, 0.38);
  --hover: rgba(169, 179, 208, 0.12);
  --text: #e8e9ee;
  --dim: #b4b8c6;
  --accent: #ecb870;
  --accent-2: #80a0dc;
  --on-accent: #0e0e12;
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, summary, dt { text-wrap: balance; }
p, dd, li, figcaption { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
b, strong { font-weight: 600; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: var(--r-ctl); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 12px 16px; border-radius: var(--r-chip);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.link { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* Buttons, as the app's: the accent filled for the one to press, the hover fill for
   the rest; the chip's corner. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-chip);
  font: 600 0.95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
@media (max-width: 899px) { .btn-sm { min-height: 44px; } }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.btn-quiet { background: var(--hover); color: var(--text); border-color: var(--border); }
.btn-quiet:hover { background: var(--hover); border-color: var(--border-strong); }

/* The bar: clear over the cover, then the app's bar once the page moves. */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: #e8e9ee;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  border-bottom: 1px solid transparent;
}
.bar.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  color: var(--text);
}
.bar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font: 600 1.05rem var(--font); }
.brand .ify { color: #ecb870; }
.bar.scrolled .brand .ify, .foot .brand .ify { color: var(--accent); }
.bar-nav { display: none; margin-left: auto; gap: 2px; }
.bar-nav a {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 12px; border-radius: var(--r-chip); text-decoration: none;
  font: 400 0.9rem var(--font); opacity: 0.88;
}
.bar-nav a:hover { opacity: 1; background: rgba(169, 179, 208, 0.14); }
.bar .btn-sm { margin-left: auto; }
@media (min-width: 900px) {
  .bar-nav { display: flex; }
  .bar .btn-sm { margin-left: 8px; }
}

/* The cover. The picture is laid out at its own 16:9, at least as tall as the cover,
   and slid so the balcony stays in view; the lamps sit on its windows. */
.cover {
  --h: clamp(640px, 100svh, 1020px);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: var(--h);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 150px;
}
.sky {
  --w: max(100%, calc(var(--h) * 16 / 9));
  position: absolute; z-index: -2; top: 0;
  width: var(--w);
  aspect-ratio: 16 / 9;
  left: clamp(calc(100% - var(--w)), calc(50% - var(--w) * 0.58), 0px);
  will-change: transform;
}
.sky img { width: 100%; height: 100%; object-fit: cover; }
.cover-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.55) 0%, rgba(8, 10, 18, 0) 22%),
    linear-gradient(0deg, #0b0d15 0%, rgba(11, 13, 21, 0.92) 26%, rgba(11, 13, 21, 0.35) 62%, rgba(11, 13, 21, 0) 80%);
}
@media (min-width: 900px) {
  .cover { justify-content: center; padding: 120px 0 200px; }
  .cover-shade {
    background:
      linear-gradient(180deg, rgba(8, 10, 18, 0.5) 0%, rgba(8, 10, 18, 0) 18%),
      linear-gradient(90deg, rgba(11, 13, 21, 0.94) 0%, rgba(11, 13, 21, 0.78) 34%, rgba(11, 13, 21, 0.1) 62%, rgba(11, 13, 21, 0) 100%),
      linear-gradient(0deg, #0b0d15 0%, rgba(11, 13, 21, 0) 30%);
  }
}

/* Lit windows, breathing like lamps in the distance. */
.lamp {
  position: absolute; width: 0.32%; aspect-ratio: 1; border-radius: 50%;
  background: #ffd79a;
  box-shadow: 0 0 6px 2px rgba(255, 196, 110, 0.75), 0 0 18px 6px rgba(255, 170, 80, 0.28);
  opacity: 0.85;
  animation: breathe 5.5s ease-in-out infinite;
}
.lamp:nth-of-type(1) { left: 79.4%; top: 79.2%; animation-delay: -1s; }
.lamp:nth-of-type(2) { left: 85.8%; top: 84.6%; animation-delay: -3.4s; }
.lamp:nth-of-type(3) { left: 83.3%; top: 52.6%; animation-delay: -2.2s; }
.lamp:nth-of-type(4) { left: 17.1%; top: 62.8%; animation-delay: -4.6s; }
.lamp:nth-of-type(5) { left: 17.8%; top: 69.1%; animation-delay: -0.4s; }
.lamp:nth-of-type(6) { left: 3.1%; top: 80.4%; animation-delay: -2.9s; }
.lamp:nth-of-type(7) { left: 10.9%; top: 86.9%; animation-delay: -5s; }
.lamp:nth-of-type(8) { left: 35.9%; top: 48.6%; animation-delay: -1.7s; }
.lamp:nth-of-type(9) { left: 41.6%; top: 40.6%; animation-delay: -3.9s; }
.lamp:nth-of-type(10) { left: 55.1%; top: 38.1%; animation-delay: -0.9s; }
.lamp:nth-of-type(11) { left: 75.5%; top: 43.6%; animation-delay: -4.2s; }
.lamp:nth-of-type(12) { left: 84.9%; top: 43.4%; animation-delay: -2.6s; }
.lamp:nth-of-type(13) { left: 25%; top: 43.6%; animation-delay: -3.1s; }
.lamp:nth-of-type(14) { left: 45.3%; top: 51.9%; animation-delay: -1.3s; }
@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.15); }
}

/* The strongest type on the page, and the plainest: one weight, one colour. */
.cover-copy { max-width: var(--max); }
.cover .kicker { font-size: 0.95rem; color: var(--dim); }
.cover h1 {
  margin-top: 12px;
  font: 600 clamp(2.5rem, 6vw, 4.5rem)/1.05 var(--font-display);
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.lede { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.6; color: #c9ccd6; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cover-notes { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 22px; font-size: 0.875rem; color: var(--dim); }
.cover-notes li + li::before { content: "·"; margin: 0 10px; }
.cover-credit {
  position: absolute; right: var(--gutter); bottom: 120px;
  font-size: 0.75rem; color: rgba(232, 233, 238, 0.7);
}
.cover-credit a { color: inherit; }
@media (max-width: 899px) { .cover-credit { bottom: auto; top: 72px; } }

/* The plate: the app, pulled up over the cover's edge, framed as a window is. */
.plate { position: relative; z-index: 2; margin-top: -110px; }
.plate-fig img {
  width: 100%; border-radius: var(--r-tile);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(169, 179, 208, 0.22);
}
figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--dim); line-height: 1.5; }
.plate-fig figcaption { max-width: var(--measure); }
@media (min-width: 900px) { .plate { margin-top: -170px; } }

/* Where songs come from: the app's chips. */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; font-size: 0.875rem; }
.sources span { padding: 5px 10px; border-radius: var(--r-chip); background: var(--hover); color: var(--text); }
.sources .sources-k { background: none; padding-inline: 0 6px; color: var(--dim); }

/* Sections: one headline, one line under it, the same rhythm every time. */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
@media (min-width: 1024px) { .sec { padding: 104px 0; } }
.sec-head { max-width: 46rem; margin-bottom: 40px; }
.sec-head h2 { font: 600 clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--font-display); letter-spacing: -0.015em; }
.sec-head p { margin-top: 12px; max-width: var(--measure); font-size: 1.0625rem; color: var(--dim); }

/* Features: the app's tiles. Each is its words over its picture, the picture edge to
   edge under a hairline, as a view sits in a tile. Tiles side by side share their
   rows (subgrid), so headlines line up across, and are given widths in the shape of
   their pictures, so pictures side by side come out the same height. */
.bento { display: grid; gap: calc(var(--gap) * 2); }
.row { display: grid; gap: calc(var(--gap) * 2); grid-template-columns: minmax(0, 1fr); }
.tile {
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
  background: var(--tile); border: 1px solid var(--border); border-radius: var(--r-tile);
  overflow: hidden;
}
.tile-copy { padding: var(--pad) var(--pad) 20px; }
.tile-copy > p { margin-top: 6px; max-width: var(--measure); color: var(--dim); font-size: 0.9375rem; line-height: 1.55; }
.tile h3 { font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -0.01em; }
/* Settings' section heads: small accent capitals. */
.tag { margin: 0 0 8px; font: 700 0.75rem/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.tile-copy .tag { margin-top: 0; color: var(--accent); }
.tile-copy .aside { margin-top: 12px; font-size: 0.8125rem; }

/* A picture or clip under its words. */
.tile > .clip, .tile > .crop { align-self: end; border-top: 1px solid var(--border); }
.tile > .clip { --clip-radius: 0; --clip-border: transparent; --clip-bg: var(--bg); --clip-shadow: none; border-width: 1px 0 0; border-color: var(--border); }

/* A crop of a screenshot: the picture scaled so the crop's width fills the frame,
   then moved by its own size to the crop's corner. */
.crop { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: var(--bg); container-type: size; }
.crop picture { display: contents; }
.crop img {
  position: absolute; left: 0; top: 0; max-width: none;
  width: calc(100cqw / var(--cw));
  transform: translate(calc(var(--cx) * -100%), calc(var(--cy) * -100%));
}
/* Each crop as parts of the 1600x1000 screenshot: the app's middle tile whole across,
   from just above its top edge, so the crop starts at an edge of the app's own. */
.c-lib { --cx: 0.175; --cy: 0.062; --cw: 0.644; --ar: 1030 / 698; }
.c-stats { --cx: 0.175; --cy: 0.062; --cw: 0.644; --ar: 1030 / 492; }

/* The clips' shapes here: the party without the sliver of the library at its left,
   the Dig without the list's first line under its buttons, so each starts and ends
   at an edge of the app's. The box keeps its shape; the film is fitted to it. */
.tile .clip-party { --ar: 1308 / 864; }
.tile .clip-party img, .tile .clip-party video { object-position: right top; }
.tile .clip-dig { --ar: 888 / 768; }

/* Figures as the Stats page sets them: a small dim label over a bold value. */
.facts { display: grid; gap: 1px; align-self: end; background: var(--border); border-top: 1px solid var(--border); }
.facts div { display: grid; gap: 2px; padding: 16px var(--pad); background: var(--tile); }
.facts dt { font-size: 0.8125rem; color: var(--dim); }
.facts dd { font: 600 1.25rem/1.3 var(--font-display); }

/* Lists in a tile, a hairline between rows, as the app's lists. */
.rows, .files { align-self: start; padding: 0 var(--pad) var(--pad); }
.rows > div, .rows > li { padding: 12px 0; border-top: 1px solid var(--border); }
.rows dt { font-weight: 600; font-size: 0.9375rem; }
.rows dd { margin-top: 2px; color: var(--dim); font-size: 0.875rem; }
.files p { padding: 14px 0 6px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--accent-2); }
.files p + dl { margin-bottom: 4px; }
.files dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.875rem; }
.files dt code { font-size: 0.8125rem; }
.files dd { color: var(--dim); text-align: right; }

.keys li { display: flex; align-items: center; gap: 16px; font-size: 0.9375rem; }
.keys .k { display: flex; gap: 4px; min-width: 8.5rem; }
.keys li > span:last-child { color: var(--dim); }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 7px;
  border-radius: var(--r-ctl); font-size: 0.75rem; color: var(--text);
  background: var(--hover); border: 1px solid var(--border);
}

.mini-shot { align-self: start; margin: 0 var(--pad) var(--pad); max-width: 420px; }
.mini-shot img { width: 100%; border-radius: var(--r-tile); box-shadow: 0 0 0 1px var(--border); }

@media (min-width: 720px) {
  /* Side by side: the row's two lines (words, then picture) shared by both tiles. */
  .r-pair { grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); grid-template-rows: auto auto; }
  .r-pair > .tile { grid-row: span 2; grid-template-rows: subgrid; gap: 0; }
  .r-media > .tile > .clip, .r-media > .tile > .crop { align-self: start; }
  /* Widths in proportion to the pictures' shapes, so their heights match. */
  .r-pair:has(.t-dig) { --cols: minmax(0, 1.156fr) minmax(0, 1.007fr); }
  .r-pair:has(.t-viz) { --cols: minmax(0, 2.192fr) minmax(0, 2.093fr); }

  /* A tile across the row: its words beside what it shows. */
  .r-one > .tile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto; }
  .r-one > .tile > .tile-copy { align-self: center; padding: 32px; }
  .r-one > .t-party > .clip { border-width: 0 0 0 1px; }
  .t-radio > .facts { align-self: stretch; border-top: 0; border-left: 1px solid var(--border); }
  .t-radio > .facts div { align-content: center; }
}
@media (min-width: 720px) and (max-width: 1079px) {
  /* The party's clip needs the width: under its words. */
  .r-one > .t-party { grid-template-columns: minmax(0, 1fr); }
  .r-one > .t-party > .tile-copy { align-self: start; padding: var(--pad) var(--pad) 20px; }
  .r-one > .t-party > .clip { border-width: 1px 0 0; }
}
@media (min-width: 1080px) {
  .r-one > .t-party { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .r-one > .tile > .tile-copy { padding: 40px; }
  .t-radio > .facts { grid-template-columns: 1fr 1fr; }
}

/* The little things: a spec sheet, headed as Settings heads a section. */
.spec { margin-top: 64px; }
.spec-h { font: 700 0.75rem/1.2 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.spec-list { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
.spec-list div { display: grid; align-content: start; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.spec-list dt { font-weight: 600; font-size: 0.9375rem; }
.spec-list dd { color: var(--dim); font-size: 0.875rem; }
@media (min-width: 720px) { .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* One line between what it does and how it compares. */
.pull { margin: 0 auto; max-width: 40rem; text-align: center; padding: 72px 0; }
.pull p { font: 600 clamp(1.375rem, 2.6vw, 1.75rem)/1.35 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }

/* Comparison: Settings' rows, one question to a line, with noobify's answers in a tile
   of their own down the middle, as a view sits in the app. Each answer is said in
   words; the dot before it is the tag the app puts beside a setting's name (Settings,
   cost_tag): green for yes, amber for a catch, red for no. On a phone the table keeps
   noobify and one other, picked with the app's chips. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; line-height: 1.45; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; font-weight: 400; }
.compare thead th { padding-top: 18px; padding-bottom: 14px; vertical-align: bottom; font-weight: 600; }
.th-sub { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--dim); }
.us-name { display: flex; align-items: center; gap: 8px; }
.us-name img { width: 20px; height: 20px; }
.compare tbody th { padding-left: 0; font-weight: 600; }
.compare tbody > tr > * { border-top: 1px solid var(--border); }

/* noobify's column: one tile from its name to its last answer. */
.compare .us { background: var(--tile); border-inline: 1px solid var(--border); }
.compare thead .us { border-top: 1px solid var(--border); border-radius: var(--r-tile) var(--r-tile) 0 0; }
.compare tbody tr:last-child .us { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--r-tile) var(--r-tile); }
.compare tbody .us .a { font-weight: 600; }

.a { display: grid; grid-template-columns: 7px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.a i { width: 7px; height: 7px; margin-top: calc(0.725em - 3.5px); border-radius: 50%; background: var(--dot); }
.a-good { --dot: var(--yes); }
.a-catch { --dot: var(--catch); }
.a-no { --dot: var(--no); }
.compare small { display: block; margin: 6px 0 0 17px; font-size: 0.8125rem; line-height: 1.45; color: var(--dim); }

.cmp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 32px; margin-top: 20px; font-size: 0.8125rem; color: var(--dim); }
.cmp-foot p { max-width: var(--measure); }
.key { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.key .a { column-gap: 8px; }

/* Which one to set beside noobify, when there's only room for two. */
.vs { display: none; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.vs legend { float: left; margin-right: 12px; padding: 0; line-height: 40px; font-size: 0.875rem; color: var(--dim); }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vs input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.vs label {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 20px; border: 1px solid var(--border); background: var(--hover);
  font-size: 0.875rem; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.vs label:hover { border-color: var(--border-strong); }
.vs input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.vs input:focus-visible + label { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (min-width: 900px) {
  .compare { table-layout: fixed; }
  .compare .c-feat { width: 21%; }
  .compare .c-us { width: 25%; }
}
@supports selector(:has(*)) {
  @media (max-width: 899px) {
    .vs { display: block; }
    .compare [data-col] { display: none; }
    .cmp:has(#vs-spotify:checked) [data-col="spotify"],
    .cmp:has(#vs-ytm:checked) [data-col="ytm"],
    .cmp:has(#vs-local:checked) [data-col="local"] { display: table-cell; }
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .compare tbody th { width: 34%; }
  .compare td { width: 33%; }
}
/* A phone: each question across the top of its row, the two answers under it. */
@media (max-width: 599px) {
  .vs legend { float: none; margin-bottom: 8px; line-height: 1.4; }
  .vs-chips { flex-wrap: nowrap; }
  .vs label { flex: 1 1 auto; justify-content: center; padding: 0 12px; white-space: nowrap; }
  .compare, .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .compare thead { position: sticky; top: 60px; z-index: 1; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
  .compare thead td { display: none; }
  .compare thead th, .compare thead .us { padding: 10px 12px; border: 0; background: none; border-radius: 0; }
  .compare .th-sub { display: none; }
  .compare tbody tr { padding: 16px 0; border-top: 1px solid var(--border); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody > tr > * { border-top: 0; }
  .compare tbody th { grid-column: 1 / -1; padding: 0 0 10px; }
  .compare tbody td { padding: 10px 12px; }
  .compare tbody .us, .compare tbody tr:last-child .us { border: 1px solid var(--border); border-radius: var(--r-tile); }
  @supports selector(:has(*)) {
    .cmp:has(#vs-spotify:checked) [data-col="spotify"],
    .cmp:has(#vs-ytm:checked) [data-col="ytm"],
    .cmp:has(#vs-local:checked) [data-col="local"] { display: block; }
  }
}

/* Themes: the seven as the app lists its rows, each with the theme's swatch, its name
   and a few words; the one showing lit as the app lights a chosen row. Beside the
   window on a wide screen, a grid of the same over it on a narrower one. */
.themes { display: grid; gap: 20px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 6px; }
.swatches button {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 56px; padding: 8px 12px; text-align: left;
  border-radius: var(--r-tile); border: 1px solid var(--border); background: var(--tile); color: var(--text);
  font: 400 0.9375rem/1.3 var(--font); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.swatches button:hover { background: var(--hover); }
.swatches button[aria-pressed="true"] { border-color: var(--accent); background: var(--hover); }
.swatches i {
  grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--s1) 0 50%, var(--s2) 50% 75%, var(--s3) 75% 100%);
  box-shadow: inset 0 0 0 1px rgba(128, 128, 140, 0.35);
}
.sw-n { font-weight: 600; }
.sw-d { font-size: 0.8125rem; color: var(--dim); }
.swatches button { align-content: center; }
/* Each theme's background and two accents, as src/theme.rs's swatches. */
.sw-desktop { --s1: #343842; --s2: #d6dae2; --s3: #8096be; }
.sw-dark { --s1: #09090a; --s2: #30d76e; --s3: #7ec8ff; }
.sw-midnight { --s1: #000000; --s2: #606ef5; --s3: #7aa2ff; }
.sw-light { --s1: #f0ece4; --s2: #c23c1a; --s3: #16688a; }
.sw-ember { --s1: #0f0a08; --s2: #ff8a40; --s3: #ffca7a; }
.sw-skyline { --s1: #161a24; --s2: #ecb870; --s3: #80a0dc; }
.sw-clear { --s1: #cedcea; --s2: #6ec4ff; --s3: #c4acff; }
.theme-frame img { width: 100%; border-radius: var(--r-tile); box-shadow: 0 0 0 1px var(--border); transition: opacity 0.25s ease; }
.theme-frame img.swapping { opacity: 0.35; }
.theme-frame figcaption { max-width: var(--measure); }
@media (min-width: 1080px) {
  .themes { grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 24px; }
  .swatches { grid-template-columns: 1fr; gap: 2px; padding: 6px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r-tile); }
  .swatches button { border-color: transparent; background: none; border-radius: var(--r-menu); }
  .swatches button:hover { background: var(--hover); }
  .swatches button[aria-pressed="true"] { background: var(--hover); border-color: transparent; box-shadow: inset 3px 0 0 var(--accent); }
}

/* Privacy: three tiles, each a Settings section: what's on your PC, what never
   happens, and what goes over the network, a line to each. */
.trio { display: grid; gap: calc(var(--gap) * 2); }
.p-tile { grid-template-rows: auto 1fr auto; }
.p-tile .rows { padding-bottom: 8px; }
.p-foot {
  display: grid; gap: 4px; padding: 14px var(--pad) 18px; border-top: 1px solid var(--border);
  font-size: 0.875rem; color: var(--dim);
}
.p-foot code { justify-self: start; padding: 3px 8px; border-radius: var(--r-ctl); background: var(--hover); color: var(--text); font-size: 0.8125rem; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ: two tiles of questions, a hairline between each as the app's lists have, the
   app's chevron at the right turning up when one is open. Each is a <details>, so it
   opens with Enter or Space and is found by the browser's find. */
.faq { display: grid; gap: calc(var(--gap) * 2); align-items: start; }
.faq-col { display: block; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px var(--pad); cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem; line-height: 1.4;
  transition: background-color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.faq details:first-child summary:focus-visible { border-radius: var(--r-tile) var(--r-tile) 0 0; }
.faq details:last-child:not([open]) summary:focus-visible { border-radius: 0 0 var(--r-tile) var(--r-tile); }
.faq summary svg { flex: none; color: var(--dim); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq details p { padding: 0 var(--pad) 20px; max-width: var(--measure); color: var(--dim); font-size: 0.9375rem; }
.faq details p b { color: var(--text); }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The last call: the city again, in a window of its own. Its words and buttons on
   one side; on the other what it needs and how it installs, set as the Stats page
   sets its figures, a small dim label over the value. */
.get { padding: 24px 0 96px; }
@media (min-width: 1024px) { .get { padding: 32px 0 120px; } }
.get-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 32px; align-items: center;
  padding: 40px var(--pad); border-radius: var(--r-tile); border: 1px solid var(--border);
}
.get-sky { position: absolute; inset: 0; z-index: -2; }
.get-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.get-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 13, 21, 0.86) 0%, rgba(11, 13, 21, 0.72) 50%, rgba(11, 13, 21, 0.92) 100%);
}
.get-logo { width: 48px; height: 48px; }
.get-main h2 { margin-top: 20px; font: 600 clamp(2rem, 4vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.get-main > p { margin-top: 12px; max-width: 30em; color: #c9ccd6; font-size: 1.0625rem; }
.get-main .cta { margin-top: 24px; }
.get-spec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  border-radius: var(--r-tile); border: 1px solid var(--border); overflow: hidden;
  background: var(--border);
}
.get-spec div { display: grid; align-content: start; gap: 2px; padding: 14px 18px; background: rgba(14, 17, 25, 0.82); }
.get-spec dt { font-size: 0.8125rem; color: var(--dim); }
.get-spec dd { font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.get-spec .get-warn { grid-column: 1 / -1; }
.get-spec .get-warn dd { font-weight: 400; color: var(--dim); font-size: 0.875rem; }
.get-spec .get-warn b { color: var(--text); }
@media (max-width: 459px) { .get-spec { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 960px) {
  .get-card { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 56px; padding: 64px; }
}

/* Footer: the name and what it is, then the links in two short columns headed as
   Settings heads its sections, then the credits under a hairline. */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: 0.9375rem; }
.foot-in { display: grid; gap: 32px; }
.foot-brand p { margin-top: 4px; color: var(--dim); }
.foot-brand .brand { min-height: 36px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 48px; }
.foot-nav .tag { margin-bottom: 4px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--text); }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.colophon {
  display: grid; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.8125rem; line-height: 1.55; color: var(--dim);
}
.colophon p { max-width: 80ch; }
@media (max-width: 899px) { .foot-nav a { min-height: 44px; } }
@media (min-width: 720px) {
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-nav { gap: 72px; }
}

/* Coming in as they're reached. Only with scripts on and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.seen { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: none; }
  .btn, .swatches button, .theme-frame img, .vs label, .faq summary, .faq summary svg { transition: none; }
}
