/* ---- tokens ---- *
 * Mirrors the desktop app's login-page palette (apps/desktop/src/index.css)
 * so the download landing site reads as the same product. Bright navy/blue
 * accent (#0050c8) on warm-white (#f4f9ff) in light mode; lifted-paper
 * accent (#4d95ff) on near-black (#0d0d0f) in dark mode.
 */
:root {
  --ink: #000000;
  --ink-soft: #14327d;
  --muted: #7a89ac;
  --hair: #d0d6e5;
  --hair-soft: #ddecff;
  --bg-page: #f4f9ff;
  --bg-paper: #ffffff;
  --accent: #0050c8;
  --accent-deep: #14327d;
  --accent-bright: #1e7fff;
  --accent-pale: rgba(0, 80, 200, 0.06);
  --accent-card: rgba(0, 80, 200, 0.035);
  --shadow-xl: 0 24px 60px -20px rgba(20, 50, 125, 0.22), 0 8px 24px -8px rgba(20, 50, 125, 0.1);
  --shadow-btn: 0 8px 20px -8px rgba(0, 80, 200, 0.35);
  --radius: 10px;
  --font: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededef;
    --ink-soft: #bbc2d0;
    --muted: #878891;
    --hair: #2a2a2e;
    --hair-soft: #1d1d22;
    --bg-page: #0d0d0f;
    --bg-paper: #17171a;
    --accent: #4d95ff;
    --accent-deep: #2e7bef;
    --accent-bright: #7ab4ff;
    --accent-pale: rgba(77, 149, 255, 0.14);
    --accent-card: rgba(77, 149, 255, 0.08);
    --shadow-xl: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 8px 24px -8px rgba(0, 0, 0, 0.55);
    --shadow-btn: 0 8px 20px -8px rgba(0, 0, 0, 0.65);
  }
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- base ---- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  padding: 2rem 1rem;
}

main {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---- header ---- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.app-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

header h1 .brand-accent {
  /* Mirrors the desktop login screen where "Beats." pops in --accent
     against an --ink "Token". */
  color: var(--accent);
}

.tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tagline .gcu-logo {
  height: 22px;
  width: auto;
  /* The provided GCU SVG renders as a dark wordmark on a transparent
     background. Both light + dark variants exist; <picture> swaps them
     by prefers-color-scheme. */
}

.tagline .dot {
  color: var(--muted);
  opacity: 0.6;
}

/* ---- release card ---- */
.release {
  background: var(--bg-paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xl);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.channel {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- platform list ---- */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.platform-label {
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---- download button ---- */
a.download,
button.download {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55em 1.2em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition:
    background 0.15s,
    opacity 0.15s,
    transform 0.05s;
  white-space: nowrap;
}

a.download:hover {
  background: var(--accent-bright);
}

a.download:active {
  transform: translateY(1px);
}

button.download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--muted);
  box-shadow: none;
}

.size {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.8em;
}

/* ---- changelog ---- */
.changelog summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  list-style: none;
}

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

.changelog summary::before {
  content: '▸ ';
  font-size: 0.7em;
}

details[open] .changelog summary::before,
.changelog[open] summary::before {
  content: '▾ ';
}

.changelog p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.7;
}

/* ---- install help ---- */
.install-help {
  background: var(--bg-paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.install-help h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.install-help ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.install-help li strong,
.install-help li code {
  color: var(--ink);
}

.install-help code {
  background: var(--bg-page);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
}

/* ---- error block ---- */
.error {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--bg-page);
}

/* ---- footer ---- */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer .made-with {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

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

footer a:hover {
  text-decoration: underline;
}
