/* Parity Jukebox — landing page (/) styles.
   Same design language as the joiner: dark bg, amber accent, system font,
   14px radii, gradient title. Pure CSS, no JS. */

:root {
  color-scheme: dark;
  --bg: #0d0b12;
  --surface: #171420;
  --surface-2: #1f1b2c;
  --border: rgba(244, 241, 250, 0.09);
  --text: #f4f1fa;
  --text-dim: rgba(244, 241, 250, 0.58);
  --accent: #ffb648;
  --accent-bright: #ffc86b;
  --accent-ink: #2a1c04;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#landing {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 48px 24px;
  padding-top: calc(48px + env(safe-area-inset-top));
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

/* Amber glow behind the top of the card stack — same treatment as the
   joiner's centered screens. */
#landing::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 0;
  right: 0;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 182, 72, 0.13),
    transparent 65%
  );
  pointer-events: none;
}

/* --- Brand header --- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.app-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  background: linear-gradient(120deg, #ffd58a, #ffb648);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}

/* Mini equalizer — decorative brand mark, hidden from AT. */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 26px;
  margin-bottom: 2px;
}

.eq-bar {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  transform-origin: bottom;
  animation: eq-bounce 1.1s ease-in-out infinite;
}

.eq-bar:nth-child(1) { height: 45%; animation-delay: -0.15s; }
.eq-bar:nth-child(2) { height: 90%;  animation-delay: -0.55s; }
.eq-bar:nth-child(3) { height: 60%;  animation-delay: -0.30s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: -0.75s; }
.eq-bar:nth-child(5) { height: 40%;  animation-delay: -0.05s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.45); }
}

/* --- Choice cards --- */

.choices {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  border-color: rgba(255, 182, 72, 0.35);
}

.choice:active {
  transform: scale(0.985);
}

.choice:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.choice-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border: none;
  color: var(--accent-ink);
}

.choice-primary:hover {
  filter: brightness(1.05);
}

.choice-title {
  font-size: 17px;
  font-weight: 800;
}

.choice-sub {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-dim);
}

.choice-primary .choice-sub {
  color: rgba(42, 28, 4, 0.72);
}

/* --- Footer: supported-platform logos --- */

.foot {
  position: relative;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

.platforms {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.platforms svg {
  display: block;
  height: 20px;
  width: 20px;
  opacity: 0.9;
}

.platforms li:last-child svg {
  /* Plex viewBox is trimmed to the glyph (6.24 0 19.52 32) — keep the
     square sizing rule from distorting it via aspect ratio. */
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion: freeze the equalizer, keep the static heights. */
@media (prefers-reduced-motion: reduce) {
  .eq-bar {
    animation: none;
  }
  .choice {
    transition: none;
  }
  .choice:active {
    transform: none;
  }
}
