/* ---------------------------------------------------------------------------
   LyricVerse — website

   The tokens below are copied verbatim from the app's `src/styles/global.css`
   so the site and the program read as one product: near-black stage-console
   neutrals with a single warm accent for anything that is about to go live.
   If the app's palette changes, change it here too — this is a deliberate
   second copy, not an import, so the site can be hosted anywhere.
--------------------------------------------------------------------------- */

:root {
  --bg: #0a0c0f;
  --panel: #12151a;
  --panel-raised: #181c23;
  --panel-sunken: #0d1014;
  --border: #232833;
  --border-strong: #313846;

  --text: #e9edf3;
  --text-muted: #909aab;
  --text-faint: #626d7e;

  --accent: #f0a83a;
  --accent-soft: rgba(240, 168, 58, 0.14);
  --accent-line: rgba(240, 168, 58, 0.4);
  --accent-ink: #12151a;

  --live: #e5484d;
  --live-soft: rgba(229, 72, 77, 0.14);
  --ok: #46b17b;
  --info: #5b8def;

  --verse: #5b8def;
  --chorus: #f0a83a;
  --bridge: #b06cf0;
  --other: #46b17b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-panel: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 12px 48px rgba(0, 0, 0, 0.6);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --header-h: 56px;
  --wrap: 1140px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Anchors must clear the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--panel-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons, chips: the app's controls ---------------------------------- */

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--panel-raised);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.btn:hover {
  background: #202631;
  color: var(--text);
  border-color: #3d4657;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

.btn--primary:hover {
  background: #f6b856;
  border-color: #f6b856;
  color: var(--accent-ink);
}

.btn--lg {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn--sm {
  padding: 4px 9px;
  font-size: 11.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 550;
  color: var(--text-muted);
  background: var(--panel-raised);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}

.chip:hover {
  color: var(--text);
  border-color: #3d4657;
  text-decoration: none;
}

.chip[data-active="true"] {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}

.chip[data-active="true"] .chip__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.chip--live {
  border-color: var(--live);
  color: #ff8a8e;
  background: var(--live-soft);
}

.chip--live .chip__dot {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 2s ease-in-out infinite;
}

.chip--xs {
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.02em;
  gap: 4px;
}

.chip--xs .chip__dot {
  width: 4px;
  height: 4px;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* --- Header -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(18, 21, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.topbar__brand:hover {
  text-decoration: none;
}

.topbar__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(140deg, #f7bb45, #d45c17);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.topbar__mark--sm {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.topbar__version {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.topbar__nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.topbar__nav a {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 550;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
}

.topbar__nav a:hover {
  color: var(--text);
  background: var(--panel-raised);
  text-decoration: none;
}

.topbar__spacer {
  flex: 1;
}

/* --- Segmented control (the language switch) ----------------------------- */

.seg {
  display: inline-flex;
  background: var(--panel-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
  flex: none;
}

.seg__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  padding: 4px 11px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.seg__item:hover {
  color: var(--text-muted);
}

.seg__item[aria-selected="true"] {
  background: var(--panel-raised);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* The warm wash behind the copy — the same colour the app uses for "live". */
.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 640px;
  background: radial-gradient(
      ellipse 55% 60% at 22% 40%,
      rgba(240, 168, 58, 0.16),
      transparent 70%
    ),
    radial-gradient(ellipse 45% 50% at 80% 20%, rgba(91, 141, 239, 0.1), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 11px;
  border-radius: 999px;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --- The console mock ---------------------------------------------------- */

.mock {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  font-size: 10px;
  line-height: 1.4;
  user-select: none;
  /* A hair of perspective so it reads as a screenshot of a window rather than
     part of the page's own chrome. */
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.5s ease;
}

.mock:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
}

.mock__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.mock__dots {
  display: flex;
  gap: 5px;
}

.mock__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 11px;
}

.mock__chips {
  margin-left: auto;
  display: flex;
  gap: 5px;
}

.mock__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  background: var(--panel-sunken);
  border-bottom: 1px solid var(--border);
}

.mock__now {
  color: var(--text-muted);
  font-size: 10.5px;
}

.mock__now b {
  color: var(--accent);
  font-weight: 600;
}

.mock__transport {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.key {
  font-style: normal;
  font-size: 9px;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--panel-raised);
}

.mock__body {
  display: grid;
  grid-template-columns: 58px 1.15fr 1.25fr 1.1fr;
  min-height: 300px;
}

.mock__rail {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 5px;
}

.mock__tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 550;
}

.mock__tab svg {
  width: 14px;
  height: 14px;
}

.mock__tab[data-on="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.mock__panel {
  background: var(--panel-sunken);
  border-right: 1px solid var(--border);
  min-width: 0;
}

.mock__panelhead {
  padding: 7px 9px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.mock__panelttl {
  display: block;
  font-size: 8.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
}

.mock__search {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--panel-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  color: var(--text-faint);
  font-size: 9.5px;
  /* The Ukrainian placeholder is longer than the English one — it clips
     rather than growing the field to two lines. */
  white-space: nowrap;
  overflow: hidden;
}

.mock__rows {
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 1px;
}

.mock__row {
  display: flex;
  gap: 8px;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__row i {
  font-style: normal;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 2em;
  flex: none;
}

/* text-overflow does not apply to a flex container's anonymous text, so the
   title needs to be a box of its own to get its ellipsis. */
.mock__row b {
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__row[data-on="true"] {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}

.mock__row[data-on="true"] i {
  color: var(--accent);
}

.mock__slides {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
}

.mock__slide {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 6px 8px 7px;
  color: var(--text-faint);
  font-size: 9.5px;
  display: grid;
  gap: 3px;
}

.mock__slide[data-live="true"] {
  border-color: var(--accent);
  background: var(--panel-raised);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 20px -6px var(--accent);
}

.mock__slide b {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mock__slide b::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.mock__slide b[data-kind="verse"] {
  color: var(--verse);
}
.mock__slide b[data-kind="chorus"] {
  color: var(--chorus);
}
.mock__slide b[data-kind="bridge"] {
  color: var(--bridge);
}

.mock__side {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--panel);
  min-width: 0;
}

.mock__screen {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #05070a;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}

.mock__lyric {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Chroma key: the fill really is one flat colour, as the app requires. */
.mock__screen--key {
  background: #00b140;
  align-items: end;
  padding: 0 0 9%;
}

.mock__band {
  width: 88%;
  margin: 0 auto;
  background: rgba(10, 12, 15, 0.86);
  border-left: 2px solid var(--accent);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 3px;
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background: var(--panel-sunken);
}

.section__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section__lede {
  margin: 14px 0 0;
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 15.5px;
}

/* --- Feature cards ------------------------------------------------------- */

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--panel-raised);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.card__icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  margin: 15px 0 7px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

/* --- Download cards ------------------------------------------------------ */

.dl {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.dl__card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.dl__card:hover {
  border-color: var(--accent-line);
  background: var(--panel-raised);
  transform: translateY(-2px);
  text-decoration: none;
}

/* The build matching the visitor's own machine leads. */
.dl__card[data-yours="true"] {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--panel);
}

.dl__os {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dl__os svg {
  width: 15px;
  height: 15px;
}

.dl__card[data-yours="true"] .dl__os {
  color: var(--accent);
}

.dl__card h3 {
  margin: 11px 0 4px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dl__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.dl__go {
  display: inline-block;
  margin-top: 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.dl__go:hover {
  text-decoration: none;
}

/* The primary download covers the whole card, so anywhere but the alternative
   links below it starts the download. */
.dl__go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.dl__alt {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-faint);
}

.dl__alt a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl__alt a:hover {
  color: var(--accent);
}

/* --- Notes --------------------------------------------------------------- */

.note {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.note summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  list-style: none;
}

.note summary::-webkit-details-marker {
  display: none;
}

.note summary svg {
  color: var(--accent);
  flex: none;
}

.note[open] summary {
  border-bottom: 1px solid var(--border);
}

.note p {
  color: var(--text-muted);
  font-size: 14px;
}

.note p:last-child {
  padding-bottom: 6px;
}

.note pre {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: var(--panel-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0;
  overflow-x: auto;
}

.note pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  white-space: pre;
}

.note pre .btn {
  flex: none;
}

.fineprint {
  margin-top: 22px;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* --- Donate -------------------------------------------------------------- */

/* Five cards: a 3-column track leaves a 3 + 2 second row rather than a single
   orphan under a row of four. */
.donate {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.donate__card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.donate__card:hover {
  border-color: var(--accent-line);
  background: var(--panel-raised);
  transform: translateY(-2px);
  text-decoration: none;
}

.donate__card[data-featured="true"] {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--panel);
}

.donate__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.donate__icon svg {
  width: 18px;
  height: 18px;
}

.donate__card h3 {
  margin: 14px 0 5px;
  font-size: 16px;
  font-weight: 650;
}

.donate__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  flex: 1;
}

.donate__go {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.donate__free {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.donate__free h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}

.donate__free ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.donate__free li {
  margin-bottom: 6px;
}

/* --- Developer ----------------------------------------------------------- */

.dev {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dev__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.dev__head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dev__avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex: none;
}

.dev__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dev__role {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 13.5px;
}

.dev__role span {
  font-family: var(--font-mono);
  color: var(--accent);
}

.dev__card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.dev__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.dev__facts {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.dev__facts h3 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.dev__facts dl {
  margin: 0;
}

.dev__facts dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.dev__facts dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dev__facts dt {
  color: var(--text-faint);
  font-size: 12.5px;
}

.dev__facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- 404 ----------------------------------------------------------------- */

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  border-bottom: 0;
}

.notfound__inner {
  position: relative;
  text-align: center;
}

.notfound h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.notfound .lede {
  margin: 16px auto 0;
}

.notfound .hero__actions {
  justify-content: center;
}

/* --- Footer -------------------------------------------------------------- */

.foot {
  padding: 30px 0;
  background: var(--panel);
}

.foot__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.foot__links a {
  color: var(--text-faint);
  font-size: 13px;
}

.foot__links a:hover {
  color: var(--accent);
}

.foot__copy {
  color: var(--text-faint);
  font-size: 12.5px;
  margin-left: auto;
}

/* --- Narrow screens ------------------------------------------------------ */

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .mock {
    transform: none;
  }

  /* The side previews are the first thing to lose at this width — the song
     list and its running order are what the picture is about. */
  .mock__body {
    grid-template-columns: 52px 1fr 1.1fr;
  }

  .mock__side {
    display: none;
  }

  .dev {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar__nav {
    display: none;
  }
}

@media (max-width: 560px) {
  /* The language switch matters more in the header than a second link to
     GitHub, which the footer carries anyway. */
  .topbar__gh {
    display: none;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .mock__body {
    grid-template-columns: 46px 1fr;
  }

  .mock__panel--slides {
    display: none;
  }

  .hero__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot__links,
  .foot__copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
