/* noobify.xyz: the app's own look, and JetBrains Mono, the app's font, for everything
   that isn't a paragraph.

   Colours are tokens, in three layers:
   1. A look: the page's own palette, by night and by day. Three are on trial, picked
      with ?look=a|b|c (site.js sets data-look; a is the default):
        a  Ember glass:  Midnight's black, Clear's frosted panels, Dark's greys, Ember's fire
        b  Skyline night: the logo's ink, violet and sky, with Skyline's lamplight
        c  Frost:        Clear's ice blue and lilac on Midnight's black, under glass
   2. A theme: the themes section's buttons paint the page in one of the app's themes
      (data-theme, colours from src/theme.rs), over whichever look it has.
   3. Everything below the tokens uses only the tokens. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* What every look shares. */
:root {
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --max: 1180px;
  --shadow: 0 30px 80px -30px var(--shade), 0 0 0 1px var(--border);
}

/* a, Ember glass, by night: true black, panels of smoked glass with a light edge,
   neutral greys, and Ember's orange into amber as the only colour. */
:root {
  --bg: #000000;
  --bg-alt: #08080a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-solid: #111113;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --edge: rgba(255, 255, 255, 0.09);
  --blur: 18px;
  --text: #f0f0f0;
  --dim: #a3a3aa;
  --accent: #ff8a40;
  --accent-2: #ffca7a;
  --spark: #ffca7a;
  --ify: var(--accent);
  --on-accent: #140b05;
  --glow: rgba(255, 138, 64, 0.26);
  --glow-1: rgba(255, 120, 48, 0.24);
  --glow-2: rgba(255, 190, 110, 0.12);
  --glow-3: rgba(255, 90, 40, 0.16);
  --shade: rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* b, Skyline night: the logo's ink and its violet into sky, Skyline's navy tiles,
   and its lamplight amber kept for small things (the "ify", the sparks). */
:root[data-look="b"] {
  --bg: #0b0c12;
  --bg-alt: #10131c;
  --surface: rgba(22, 26, 38, 0.62);
  --surface-solid: #151a26;
  --border: rgba(160, 180, 230, 0.13);
  --border-strong: rgba(160, 180, 230, 0.26);
  --edge: rgba(200, 210, 255, 0.07);
  --blur: 14px;
  --text: #eceef6;
  --dim: #a3abc2;
  --accent: #9b7dff;
  --accent-2: #78c8ff;
  --spark: #ecb870;
  --ify: var(--spark);
  --on-accent: #0e0e12;
  --glow: rgba(155, 125, 255, 0.26);
  --glow-1: rgba(155, 125, 255, 0.34);
  --glow-2: rgba(120, 200, 255, 0.2);
  --glow-3: rgba(236, 184, 112, 0.14);
  --shade: rgba(2, 3, 10, 0.85);
}

/* c, Frost: black under frosted glass, Clear's ice blue with lilac beside it. */
:root[data-look="c"] {
  --bg: #000000;
  --bg-alt: #06070b;
  --surface: rgba(200, 220, 255, 0.05);
  --surface-solid: #0e1118;
  --border: rgba(210, 225, 255, 0.12);
  --border-strong: rgba(210, 225, 255, 0.24);
  --edge: rgba(230, 240, 255, 0.1);
  --blur: 20px;
  --text: #eef3fa;
  --dim: #a4aec0;
  --accent: #6ec4ff;
  --accent-2: #c4acff;
  --spark: #c4acff;
  --ify: var(--accent);
  --on-accent: #061019;
  --glow: rgba(110, 196, 255, 0.24);
  --glow-1: rgba(110, 196, 255, 0.28);
  --glow-2: rgba(196, 172, 255, 0.22);
  --glow-3: rgba(150, 230, 255, 0.1);
  --shade: rgba(0, 0, 0, 0.9);
}

/* By day, each look on its own paper, its colours deepened to read on it. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f3;
    --bg-alt: #eeece9;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --border: rgba(20, 20, 24, 0.12);
    --border-strong: rgba(20, 20, 24, 0.24);
    --edge: rgba(255, 255, 255, 0.9);
    --text: #161616;
    --dim: #55555c;
    --accent: #b23f0c;
    --accent-2: #8a5200;
    --spark: #8a5200;
    --on-accent: #ffffff;
    --glow: rgba(230, 100, 30, 0.2);
    --glow-1: rgba(255, 140, 60, 0.22);
    --glow-2: rgba(255, 200, 120, 0.22);
    --glow-3: rgba(255, 110, 60, 0.12);
    --shade: rgba(40, 30, 20, 0.3);
    color-scheme: light;
  }
  :root[data-look="b"] {
    --bg: #f4f3f8;
    --bg-alt: #ebe9f3;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --border: rgba(40, 36, 80, 0.13);
    --border-strong: rgba(40, 36, 80, 0.26);
    --edge: rgba(255, 255, 255, 0.9);
    --text: #15141f;
    --dim: #4f4e66;
    --accent: #5b3fd6;
    --accent-2: #0b6a96;
    --spark: #8f5300;
    --on-accent: #ffffff;
    --glow: rgba(91, 63, 214, 0.18);
    --glow-1: rgba(120, 90, 255, 0.2);
    --glow-2: rgba(80, 180, 255, 0.18);
    --glow-3: rgba(236, 184, 112, 0.2);
    --shade: rgba(40, 36, 90, 0.3);
  }
  :root[data-look="c"] {
    --bg: #f3f6fa;
    --bg-alt: #e9eef5;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --border: rgba(20, 40, 80, 0.12);
    --border-strong: rgba(20, 40, 80, 0.24);
    --edge: rgba(255, 255, 255, 0.95);
    --text: #0f1620;
    --dim: #4a5568;
    --accent: #0a64a0;
    --accent-2: #6544c8;
    --spark: #6544c8;
    --on-accent: #ffffff;
    --glow: rgba(10, 100, 160, 0.16);
    --glow-1: rgba(90, 180, 255, 0.24);
    --glow-2: rgba(170, 140, 255, 0.2);
    --glow-3: rgba(150, 230, 255, 0.2);
    --shade: rgba(20, 40, 80, 0.28);
  }
}

/* The app's themes, over any look: src/theme.rs's colours, deepened only where they
   wouldn't read as text. Each brings its own night or day, as it does in the app. */
:root[data-theme] { --ify: var(--accent); }
:root[data-theme="dark"] {
  --bg: #09090a; --bg-alt: #111113; --surface: rgba(27, 27, 30, 0.62); --surface-solid: #1b1b1e;
  --border: rgba(255, 255, 255, 0.1); --border-strong: rgba(255, 255, 255, 0.2); --edge: rgba(255, 255, 255, 0.05);
  --text: #f0f0f0; --dim: #9e9ea4; --accent: #30d76e; --accent-2: #7ec8ff; --spark: #7ec8ff; --on-accent: #09090a;
  --glow: rgba(48, 215, 110, 0.2); --glow-1: rgba(48, 215, 110, 0.16); --glow-2: rgba(126, 200, 255, 0.1); --glow-3: rgba(48, 215, 110, 0.08);
  --shade: rgba(0, 0, 0, 0.85); color-scheme: dark;
}
:root[data-theme="midnight"] {
  --bg: #000000; --bg-alt: #07070a; --surface: rgba(12, 12, 16, 0.9); --surface-solid: #0c0c10;
  --border: rgba(255, 255, 255, 0.1); --border-strong: rgba(255, 255, 255, 0.2); --edge: rgba(255, 255, 255, 0.04);
  --text: #dddee2; --dim: #868993; --accent: #7783ff; --accent-2: #7aa2ff; --spark: #7aa2ff; --on-accent: #000000;
  --glow: rgba(96, 110, 245, 0.22); --glow-1: rgba(96, 110, 245, 0.18); --glow-2: rgba(122, 162, 255, 0.1); --glow-3: rgba(96, 110, 245, 0.08);
  --shade: rgba(0, 0, 0, 0.9); color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f0ece4; --bg-alt: #e8e2d7; --surface: rgba(252, 250, 246, 0.85); --surface-solid: #fcfaf6;
  --border: rgba(80, 60, 40, 0.16); --border-strong: rgba(80, 60, 40, 0.28); --edge: rgba(255, 255, 255, 0.8);
  --text: #1e1a16; --dim: #5e564d; --accent: #b8371a; --accent-2: #16688a; --spark: #16688a; --on-accent: #ffffff;
  --glow: rgba(194, 60, 26, 0.14); --glow-1: rgba(194, 60, 26, 0.12); --glow-2: rgba(22, 104, 138, 0.12); --glow-3: rgba(194, 60, 26, 0.06);
  --shade: rgba(60, 40, 20, 0.35); color-scheme: light;
}
:root[data-theme="ember"] {
  --bg: #0f0a08; --bg-alt: #160f0c; --surface: rgba(36, 25, 20, 0.62); --surface-solid: #1d1410;
  --border: rgba(255, 196, 150, 0.14); --border-strong: rgba(255, 196, 150, 0.26); --edge: rgba(255, 196, 150, 0.06);
  --text: #f8ede3; --dim: #c3ab99; --accent: #ff8a40; --accent-2: #ffca7a; --spark: #ffca7a; --on-accent: #1a0f08;
  --glow: rgba(255, 138, 64, 0.22); --glow-1: rgba(255, 138, 64, 0.2); --glow-2: rgba(255, 202, 122, 0.12); --glow-3: rgba(255, 138, 64, 0.08);
  --shade: rgba(0, 0, 0, 0.8); color-scheme: dark;
}
:root[data-theme="skyline"] {
  --bg: #0d1018; --bg-alt: #131722; --surface: rgba(22, 26, 36, 0.66); --surface-solid: #161a24;
  --border: rgba(160, 180, 230, 0.14); --border-strong: rgba(160, 180, 230, 0.26); --edge: rgba(200, 210, 255, 0.06);
  --text: #eef0f6; --dim: #a6adc0; --accent: #ecb870; --accent-2: #80a0dc; --spark: #ecb870; --on-accent: #161a24;
  --glow: rgba(236, 184, 112, 0.2); --glow-1: rgba(128, 160, 220, 0.18); --glow-2: rgba(236, 184, 112, 0.14); --glow-3: rgba(236, 184, 112, 0.1);
  --shade: rgba(2, 4, 10, 0.85); color-scheme: dark;
}
:root[data-theme="clear"] {
  --bg: #12141a; --bg-alt: #181b22; --surface: rgba(255, 255, 255, 0.07); --surface-solid: #1c2029;
  --border: rgba(255, 255, 255, 0.17); --border-strong: rgba(255, 255, 255, 0.3); --edge: rgba(255, 255, 255, 0.12);
  --text: #f6f7fa; --dim: #c8ccd6; --accent: #6ec4ff; --accent-2: #c4acff; --spark: #c4acff; --on-accent: #12141a;
  --glow: rgba(110, 196, 255, 0.2); --glow-1: rgba(110, 196, 255, 0.16); --glow-2: rgba(196, 172, 255, 0.14); --glow-3: rgba(110, 196, 255, 0.08);
  --shade: rgba(0, 0, 0, 0.8); color-scheme: dark;
}


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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  transition: background-color 0.45s, color 0.45s;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, picture { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--mono);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }

p { margin: 0 0 14px; }

b { font-weight: 650; color: var(--text); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 820px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: 10px;
  font: 600 14px var(--mono);
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* The bar along the top. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.scrolled { border-bottom-color: var(--border); }

.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.18rem var(--mono);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ify { color: var(--ify); }

/* The logo, drawn as src/logo.rs draws it and tinted as the app tints it: the
   accent into the second accent, with the "n" in the ground's colour. */
.logo { flex: none; }
.logo .from { stop-color: var(--accent); }
.logo .to { stop-color: var(--accent-2); }
.logo .n { stroke: var(--bg); }
.logo-big { filter: drop-shadow(0 16px 30px var(--glow)); margin-bottom: 16px; }

.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font: 500 14px var(--mono);
  color: var(--dim);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.top .btn-small { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn-small { margin-left: 8px; }
}

/* On a narrow screen the sections are behind Menu, which opens them under the bar;
   without script they're a row of their own that scrolls sideways. */
.menu-btn { display: none; }
@media (max-width: 899px) {
  html:not(.js) .top-in { flex-wrap: wrap; height: auto; padding-block: 12px 0; row-gap: 4px; }
  html:not(.js) .nav { display: flex; order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font: 600 14px var(--mono);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 38px;
    cursor: pointer;
  }
  .js .top .btn-small { margin-left: 0; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .top.open .menu-icon { background: transparent; }
  .top.open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .top.open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .js .top.open .nav {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 16px;
    /* solid: the bar's own frosting doesn't reach a panel hanging below it */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -30px var(--shade);
  }
  .js .top.open .nav a { padding: 12px 10px; font-size: 16px; }
}

/* Buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2)));
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
/* (Lifts only under a mouse: a tap would leave it lifted.) */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 36px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}
.btn:active { transform: translateY(0); }
.btn-small { font-size: 14px; padding: 9px 16px; }
.btn-big { font-size: 1.05rem; padding: 16px 26px; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 1px 0 var(--edge);
  font-size: 1rem;
  padding: 15px 22px;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }

/* The first screen. */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  /* the look's first light high on the right, its second high on the left, and a
     small point of the third */
  background:
    radial-gradient(48% 42% at 72% 28%, var(--glow-1), transparent 70%),
    radial-gradient(42% 40% at 18% 12%, var(--glow-2), transparent 70%),
    radial-gradient(16% 14% at 86% 46%, var(--glow-3), transparent 70%);
  filter: blur(10px);
}
.hero-copy { text-align: center; }
.hero-copy .lede { margin: 22px auto 30px; max-width: 640px; }

.eyebrow {
  font: 600 13px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { font-size: clamp(1.06rem, 2.2vw, 1.25rem); color: var(--dim); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font: 500 14px var(--mono);
  color: var(--dim);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 10px var(--spark);
}

.shot.hero-shot { margin-top: 56px; }

/* A screenshot of the app, framed like its window. */
.shot { margin: 0; }
.shot picture, .shot video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-solid);
}
.shot img, .shot video { width: 100%; }
.shot figcaption {
  margin-top: 12px;
  font: 13px var(--mono);
  color: var(--dim);
}
.hero-shot picture {
  box-shadow: 0 50px 120px -40px var(--glow), var(--shadow);
}

/* "Your music, on your disk": the folders noobify keeps things in, as a file list */
.disk { margin: 0; }
.disk-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-solid);
  box-shadow: 0 0 0 1px var(--border);
}
.disk-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.disk-tree {
  list-style: none;
  margin: 0;
  padding: 14px 16px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  font: 13.5px/1.5 var(--mono);
}
.disk-tree li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 6px 0 6px 22px;
  border-top: 1px solid var(--border);
}
.disk-tree li span { color: var(--dim); }
.disk-tree code { font: inherit; color: var(--text); }
.disk-tree .disk-dir {
  padding-left: 0;
  padding-top: 14px;
  border-top: 0;
  color: var(--accent);
  font-weight: 700;
}
.disk-tree .disk-dir:first-child { padding-top: 2px; }
.disk figcaption { margin-top: 12px; font: 13px var(--mono); color: var(--dim); }

/* Sections. */
.band { padding: 88px 0; position: relative; isolation: isolate; overflow: hidden; }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--border); transition: background-color 0.45s; }
/* A soft pool of the look's light behind some sections, for the glass to frost. */
.band-alt::before, #one-place::before, #looks::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 110vw);
  height: 560px;
  top: 6%;
  left: -14%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
}
#one-place::before, #looks::before { left: auto; right: -14%; background: radial-gradient(closest-side, var(--glow-1), transparent); }

.head { max-width: 760px; margin-bottom: 40px; }
.head p:not(.eyebrow) { color: var(--dim); font-size: 1.08rem; }

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1.45fr; gap: 56px; }
  .split-flip > :first-child { order: 2; }
  .split-flip { grid-template-columns: 1.45fr 1fr; }
}

.copy p { color: var(--dim); }
.copy .small, .small { font-size: 0.9rem; color: var(--dim); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--dim);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}

.new {
  display: inline-block;
  font: 600 11px var(--mono);
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 2px;
  white-space: nowrap;
}

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

/* Small cards of features. */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.cards li, .facts li, .faq details, .mini-card {
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--edge);
}
.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
@media (hover: hover) {
  .cards li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
}
.cards p { color: var(--dim); font-size: 0.95rem; margin: 0; }
@media (min-width: 620px) {
  .cards-2, .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

/* The party: the app filmed with its party panel open. */
.party-stage { position: relative; }
  60%, 92% { opacity: 1; transform: none; max-height: 47px; }
  100% { opacity: 0; transform: none; max-height: 47px; }
}

.party-queue {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 88px;
}
.party-queue picture {
  width: 230px;
  max-width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}
.party-queue img { width: 100%; height: auto; object-fit: cover; object-position: top; }
.party-queue .copy { max-width: 460px; }
@media (min-width: 620px) {
  .party-queue { grid-template-columns: auto 1fr; gap: 40px; }
}

/* The Dig. */
.dig-grid { display: grid; gap: 28px; }
.dig-side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 980px) {
  .dig-grid { grid-template-columns: 1.45fr 1fr; gap: 32px; }
}

.stats-shot { margin-top: 64px; }

/* Themes: one window in each, side by side. */
.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.theme-tabs button {
  font: 600 14px var(--mono);
  color: var(--dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.theme-tabs button { display: inline-flex; align-items: center; gap: 9px; }
.theme-tabs button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
/* Each theme's ground and two accents, as the app's quick switcher shows them. */
.swatch { display: inline-flex; }
.swatch i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--surface-solid);
}
.swatch i + i { margin-left: -4px; }
.sw-desktop i:nth-child(1) { background: #343842; } .sw-desktop i:nth-child(2) { background: #d6dae2; } .sw-desktop i:nth-child(3) { background: #8096be; }
.sw-dark i:nth-child(1) { background: #09090a; } .sw-dark i:nth-child(2) { background: #30d76e; } .sw-dark i:nth-child(3) { background: #7ec8ff; }
.sw-midnight i:nth-child(1) { background: #000000; } .sw-midnight i:nth-child(2) { background: #606ef5; } .sw-midnight i:nth-child(3) { background: #7aa2ff; }
.sw-light i:nth-child(1) { background: #f0ece4; } .sw-light i:nth-child(2) { background: #c23c1a; } .sw-light i:nth-child(3) { background: #16688a; }
.sw-ember i:nth-child(1) { background: #0f0a08; } .sw-ember i:nth-child(2) { background: #ff8a40; } .sw-ember i:nth-child(3) { background: #ffca7a; }
.sw-skyline i:nth-child(1) { background: #161a24; } .sw-skyline i:nth-child(2) { background: #ecb870; } .sw-skyline i:nth-child(3) { background: #80a0dc; }
.theme-note { margin: 0 0 18px; font: 13px var(--mono); color: var(--dim); }

.theme-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* room for the pictures' 1px outline, which the scrolling box would clip */
  padding: 1px;
}
.theme-track::-webkit-scrollbar { display: none; }
/* Without script the buttons can't do anything, so they go, and the windows stand
   one under another. */
html:not(.js) .theme-tabs, html:not(.js) .theme-note { display: none; }
html:not(.js) .theme-track { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); overflow: visible; }
.theme-slide { margin: 0; scroll-snap-align: start; }
.theme-slide picture { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.theme-slide figcaption { margin-top: 12px; font: 13px var(--mono); color: var(--dim); }

.looks-more { display: grid; gap: 24px; margin-top: 48px; }
.mini-card {
  display: grid;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.mini-card picture { border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px -16px var(--shade); max-width: 420px; }
.mini-card p { color: var(--dim); margin: 0; }
@media (min-width: 720px) {
  .mini-card { grid-template-columns: auto 1fr; gap: 28px; }
}

/* Privacy. */
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.facts b {
  font: 700 2.4rem/1 var(--mono);
  min-width: 1.4ch;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.facts span { color: var(--dim); }

/* Questions. */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font: 600 1rem var(--mono);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--dim); }

/* The last call. */
.final {
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 40% 50%, var(--glow-1), transparent),
    radial-gradient(closest-side at 64% 46%, var(--glow-2), transparent);
}
.final-in { display: grid; justify-items: center; gap: 6px; }
.final-in p { color: var(--dim); max-width: 520px; }
.final-in .btn { margin: 12px 0 18px; }

/* Footer. */
.foot { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--bg-alt); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-brand p { color: var(--dim); font-size: 0.92rem; margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot-links a { font: 500 14px var(--mono); color: var(--dim); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-small { margin-top: 26px; }
.foot-small p { font-size: 0.8rem; color: var(--dim); margin: 0; }

/* The privacy page. */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 18px; }
.page h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 44px 0 12px; }
.page p, .page li { color: var(--dim); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page code { font: 0.9em var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* A row: copy beside a clip of the app. */
.demo-row { display: grid; gap: 28px; align-items: center; margin-top: 72px; }
.demo-row .copy { max-width: 520px; }
.demo-row h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 12px; }
@media (min-width: 980px) {
  .demo-row { grid-template-columns: 1fr 1.45fr; gap: 56px; }
  .demo-row-flip { grid-template-columns: 1.45fr 1fr; }
  .demo-row-flip > :first-child { order: 2; }
}

/* Things come in as they're scrolled to, unless motion is unwelcome. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cards li, body, .band-alt { transition: none; }
}
