/* Page styles for musimo.app. Tokens live in tokens.css; this file only uses them.
   Breakpoints: phone < 640, tablet 640 to 1023, desktop 1024 and up. Most layout is fluid;
   only the nav and the phones strip switch at 640. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------- Base ---------- */

.page {
  min-height: 100vh;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  color: var(--color-accent-ink);
}

/* Lucide icons, inlined. Size classes match the design's s="" values. */
.i {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill {
  fill: currentColor;
}
.i-14 {
  width: 14px;
  height: 14px;
}
.i-15 {
  width: 15px;
  height: 15px;
}
.i-16 {
  width: 16px;
  height: 16px;
}
.i-18 {
  width: 18px;
  height: 18px;
}
.i-20 {
  width: 20px;
  height: 20px;
}
.i-22 {
  width: 22px;
  height: 22px;
}
.i-24 {
  width: 24px;
  height: 24px;
}
.i-26 {
  width: 26px;
  height: 26px;
}
.accent {
  color: var(--color-accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
}
.brand:hover {
  color: var(--color-text);
}
.wordmark {
  display: block;
  width: auto;
}

/* ---------- Type ---------- */

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.h2 {
  font-size: var(--text-h2);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--color-muted);
  text-wrap: pretty;
}
.body {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-muted);
  text-wrap: pretty;
}
.small {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-muted);
  text-wrap: pretty;
}
.caption {
  font-size: 15px;
  color: var(--color-muted);
}
.caption b {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Layout ---------- */

.section {
  padding: var(--space-section) var(--space-gutter) 0;
}
.wrap {
  max-width: var(--content);
  margin: 0 auto;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}
.head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}
.head-narrow {
  max-width: 560px;
}
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.head-row > .head {
  flex: 1 1 340px;
  max-width: 560px;
}
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.shot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-line-strong);
  overflow: hidden;
  background: var(--color-sidebar);
  box-shadow: var(--shadow-frame);
}
.frame-lg {
  border-radius: var(--radius-lg);
}
.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  flex: 0 1 auto;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--color-accent) 86%, var(--color-text));
  color: var(--color-accent-ink);
}
.btn-primary:active {
  transform: translateY(1px);
  background: color-mix(in oklab, var(--color-accent) 82%, var(--color-canvas));
}
.btn-secondary {
  border: 1px solid var(--color-line-strong);
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-hover);
  border-color: var(--color-good-line);
  color: var(--color-text);
}
.btn-secondary:active {
  transform: translateY(1px);
  background: var(--color-active);
}
.btn-secondary .i {
  color: var(--color-muted);
}

/* ---------- Nav ---------- */

/* Without JavaScript the nav is always glass, so it stays readable over the page.
   site.js adds .js to <html> and .is-scrolled to the nav after 8px of scroll. */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-nav-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--color-line);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.js .nav:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-hover);
}
.nav-gh {
  gap: 8px;
  margin-left: 8px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong);
  color: var(--color-text);
}
.nav-gh:hover {
  border-color: var(--color-good-line);
}
.nav-cta {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav-cta:hover {
  background: color-mix(in oklab, var(--color-accent) 86%, var(--color-text));
  color: var(--color-accent-ink);
}
@media (max-width: 639.98px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: flex;
  }
}

/* Phone tap targets: every button and standalone link is at least 44px tall.
   Links inside sentences are left as they are. */
@media (max-width: 639.98px) {
  a.brand {
    min-height: 44px;
  }
  .skip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .copy {
    height: 44px;
  }
}

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

.hero {
  padding: clamp(56px, 9vw, 112px) var(--space-gutter) 0;
}
.hero-copy {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: var(--text-display);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hot {
  color: var(--color-accent-hot);
}
.hero .lead {
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-faint);
  text-wrap: balance;
}
.hero-shot {
  position: relative;
  max-width: var(--content);
  margin: clamp(48px, 7vw, 88px) auto 0;
}
.hero-glow {
  position: absolute;
  inset: 4% 2% -6%;
  background:
    radial-gradient(
      48% 58% at 30% 42%,
      color-mix(in oklab, var(--wash-pink) var(--wash-strength), transparent),
      transparent 72%
    ),
    radial-gradient(
      40% 50% at 72% 62%,
      color-mix(in oklab, var(--wash-violet) 20%, transparent),
      transparent 72%
    );
  filter: blur(48px);
}
.hero-shot .frame {
  position: relative;
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-line);
}
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-line-strong);
}
.chrome-url {
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-sunken);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-faint);
}
.chrome-pad {
  width: 46px;
}

/* ---------- Why ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--color-active);
  color: var(--color-accent);
}
.card h3 {
  margin-top: 4px;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Feature washes ---------- */

.wash-violet {
  background: radial-gradient(
    50% 60% at 78% 60%,
    color-mix(in oklab, var(--wash-violet) var(--tint-strength), transparent),
    transparent 70%
  );
}
.wash-pink {
  background: radial-gradient(
    50% 50% at 50% 70%,
    color-mix(in oklab, var(--wash-pink) var(--tint-strength), transparent),
    transparent 70%
  );
}
.wash-teal {
  background: radial-gradient(
    45% 50% at 20% 70%,
    color-mix(in oklab, var(--tint-teal) var(--tint-strength), transparent),
    transparent 70%
  );
}
.wash-amber {
  background: radial-gradient(
    45% 50% at 80% 70%,
    color-mix(in oklab, var(--tint-amber) var(--tint-strength), transparent),
    transparent 70%
  );
}
.wash-green {
  background: radial-gradient(
    45% 55% at 70% 55%,
    color-mix(in oklab, var(--color-accent) var(--tint-strength), transparent),
    transparent 70%
  );
}

/* ---------- Playback ---------- */

.play {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}
.play-copy {
  flex: 1 1 340px;
  max-width: 460px;
}
.wave-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
}
.wave span {
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
}
.wave .w-b {
  background: var(--color-wave-bass);
}
.wave .w-m {
  background: var(--color-wave-mids);
}
.wave .w-h {
  background: var(--color-wave-highs);
}
.wave .w-dim {
  opacity: 0.32;
}
.wave-note {
  font-size: 14px;
  color: var(--color-faint);
}
.play-shot {
  flex: 1.7 1 520px;
  min-width: 0;
}
.play-shot .frame {
  background: #020305;
}
/* Reduced motion: the still replaces the video (site.js also pauses it). */
.frame .viz-still {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .frame .viz-video {
    display: none;
  }
  .frame .viz-still {
    display: block;
  }
}
.kbd-caption {
  display: flex;
  align-items: center;
  gap: 10px;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--color-line-strong);
  border-bottom-width: 2px;
  background: var(--color-raised);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
}

/* ---------- Phones ---------- */

.phones {
  padding: var(--space-section) 0 0;
}
.phones-head {
  padding: 0 var(--space-gutter);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.phones-head .lead {
  max-width: 640px;
}
.phones-wide {
  max-width: var(--content-wide);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 clamp(16px, 2vw, 32px);
}
.phones-wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 2.4vw, 36px);
}
.phones-wide figcaption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  text-align: center;
}
.phone-cap {
  font-size: 14px;
  color: var(--color-faint);
}
.phone-cap b {
  font-weight: 600;
  color: var(--color-muted);
}
.phones-strip {
  display: none;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 20px 8px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.phones-strip::-webkit-scrollbar {
  display: none;
}
.phones-strip li {
  flex: 0 0 76%;
  scroll-snap-align: center;
}
.phones-strip figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.phones-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--color-line-strong);
  background: #0d1110;
}
@media (max-width: 639.98px) {
  .phones-wide {
    display: none;
  }
  .phones-strip {
    display: flex;
  }
}

/* ---------- Layouts ---------- */

.switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--color-sunken);
  border: 1px solid var(--color-line);
}
/* The switch needs JavaScript. Without it the page shows Classic and its caption. */
html:not(.js) .switch {
  display: none;
}
.switch button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font: 600 15px var(--font-sans);
  cursor: pointer;
  background: transparent;
  color: var(--color-muted);
}
.switch button:hover {
  color: var(--color-text);
}
.switch button[aria-checked='true'] {
  background: var(--color-active);
  color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-line-strong) inset;
}

/* ---------- Search ---------- */

.badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.badge-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: clamp(48px, 5vw, 64px);
  padding: 0 clamp(16px, 2vw, 24px);
  border-radius: 14px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.badge-owned {
  background: var(--color-owned-bg);
  border: 1px solid var(--color-good-line);
  color: var(--color-good);
  transform: rotate(-2deg);
}
.badge-missing {
  margin-left: clamp(16px, 3vw, 40px);
  background: var(--color-hover);
  border: 1px solid var(--color-line-strong);
  color: var(--color-muted);
  transform: rotate(1.5deg);
}

/* ---------- Downloads ---------- */

.strong {
  color: var(--color-text);
}
.strong b {
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps li > .i {
  color: var(--color-faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--color-raised);
  border: 1px solid var(--color-line-strong);
}
.step {
  padding: 0 16px 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-active);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Octive ---------- */

.octive {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 96px);
}
.octive-copy {
  flex: 1 1 340px;
  max-width: 480px;
}
.asks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ask {
  padding: 0 18px 0 14px;
  font-size: 16px;
  font-weight: 500;
}
.octive-phone {
  position: relative;
  flex: 0 1 300px;
  padding-top: 44px;
}
/* Octive, drawn the way the app's welcome screen draws it. */
.pet {
  position: absolute;
  top: 2px;
  right: 40px;
  width: 56px;
  height: 56px;
  z-index: 2;
}
.pet span {
  position: absolute;
  background: var(--color-accent);
}
.pet .ear-l {
  left: 14%;
  top: 8%;
  width: 30%;
  height: 34%;
  clip-path: polygon(30% 0, 100% 78%, 0 100%);
  transform: rotate(-4deg);
}
.pet .ear-r {
  left: 56%;
  top: 8%;
  width: 30%;
  height: 34%;
  clip-path: polygon(70% 0, 100% 100%, 0 78%);
  transform: rotate(4deg);
}
.pet .face {
  left: 12%;
  top: 26%;
  width: 76%;
  height: 66%;
  border-radius: 46% 46% 40% 40% / 52% 52% 42% 42%;
}
.pet .eye {
  top: 44.5%;
  width: 11%;
  height: 11%;
  background: var(--color-accent-ink);
  border-radius: 50%;
}
.pet .eye-l {
  left: 28.5%;
}
.pet .eye-r {
  left: 60.5%;
}
.pet .mouth {
  left: 43%;
  top: 62%;
  width: 14%;
  height: 6%;
  background: var(--color-accent-ink);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.pet .note {
  left: -26px;
  top: -6px;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-accent);
}
.phone-frame {
  position: relative;
  padding: 8px;
  border-radius: 44px;
  background: var(--color-sidebar);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-frame);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* ---------- And more ---------- */

.more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--color-line);
}
.more-item {
  display: flex;
  gap: 16px;
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--color-line);
}
.more-item > .i {
  color: var(--color-accent);
  margin-top: 2px;
}
.more-item div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.more-item h3 {
  font-size: 17px;
  font-weight: 600;
}
.themes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.themes li {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--ln);
  display: grid;
  place-items: center;
}
.themes li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ac);
}
.themes-row p {
  max-width: 420px;
}

/* ---------- Get started ---------- */

.start {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-line);
  background: radial-gradient(
    120% 140% at 0% 0%,
    color-mix(in oklab, var(--color-accent) 12%, var(--color-raised)) 0%,
    var(--color-raised) 60%
  );
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
}
.start-copy {
  flex: 1 1 300px;
  max-width: 400px;
}
.start-main {
  flex: 2 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.term {
  border-radius: 16px;
  background: var(--color-sidebar);
  border: 1px solid var(--color-line-strong);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 57px;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid var(--color-line);
}
.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong);
  background: transparent;
  color: var(--color-text);
  font: 600 14px var(--font-sans);
  cursor: pointer;
}
.copy:hover {
  background: var(--color-hover);
}
.copy:active {
  background: var(--color-active);
}
.copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.copy .when-done {
  display: none;
}
.copy.is-copied {
  border-color: var(--color-good-line);
  background: var(--color-good-bg);
  color: var(--color-good);
}
.copy.is-copied .when-idle {
  display: none;
}
.copy.is-copied .when-done {
  display: inline-flex;
}
/* Copying needs JavaScript; without it the command is still there to select. */
html:not(.js) .copy {
  display: none;
}
.term pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: 1.85;
  color: var(--color-text);
}
/* Browsers give <code> its own monospace; take the pre's font instead. */
.term code {
  font-family: inherit;
}
.prompt {
  color: var(--color-faint);
  user-select: none;
}
code.path {
  font-family: var(--font-mono);
  font-size: 0.94em;
  color: var(--color-text);
}
.mono-link {
  font-family: var(--font-mono);
  font-size: 0.94em;
}
.start-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.start-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-canvas);
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.start-link:hover {
  border-color: var(--color-good-line);
  background: var(--color-hover);
  color: var(--color-text);
}
.start-link > .i:first-child {
  color: var(--color-accent);
}
.start-link > .i:last-child {
  color: var(--color-faint);
}
.start-link span {
  flex: 1;
}

/* ---------- Good to know ---------- */

.gtk-title {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gtk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.gtk-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}
.gtk-item > .i {
  color: var(--color-muted);
}
.gtk-item h3 {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

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

.footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--color-line);
  background: var(--color-sidebar);
  padding: clamp(40px, 5vw, 64px) var(--space-gutter) 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-version {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-faint);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 15px;
}
.footer-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.footer-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-faint);
}
.footer-notes .support {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-notes .support .i {
  color: var(--color-muted);
}

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

.lost {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.lost-head {
  max-width: var(--content);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  height: 64px;
  display: flex;
  align-items: center;
}
.lost-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px var(--space-gutter) 96px;
}
.lost-body {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.player {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.player-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cover-empty {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg,
    var(--color-sunken) 0 6px,
    var(--color-hover) 6px 7px
  );
  border: 1px solid var(--color-line);
  display: grid;
  place-items: center;
  color: var(--color-faint);
}
.player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-meta .label {
  color: var(--color-faint);
}
.player h1 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--color-hover);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}
.seek {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-faint);
}
.seek-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--color-line-strong);
}
.seek-track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--color-faint);
}
.transport-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-active);
  color: var(--color-muted);
}
