:root {
  --bg: #0b0d12;
  --bg-card: #151821;
  --bg-card-hi: #1d2230;
  --fg: #e8eaf0;
  --fg-muted: #9aa1b2;
  --accent: #5b8cff;
  --accent-hi: #74a0ff;
  --border: #262b38;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 600px at 50% -10%, #161b29 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 10px;
  font-weight: 700;
}

.tagline {
  color: var(--fg-muted);
  font-size: 17px;
  margin: 0;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Extra top padding leaves room for the absolutely-positioned
     "recommended" badge without shifting the icon, so icons/titles line up
     across every card whether or not it carries the badge. */
  padding: 32px 24px 24px;
  text-align: center;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card.recommended {
  border-color: var(--accent);
  background: var(--bg-card-hi);
}

.card.recommended::before {
  content: "Recommended for you";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

.card-icon {
  line-height: 1;
  margin-bottom: 12px;
  color: var(--fg);
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.btn-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.btn-label {
  white-space: nowrap;
}

.btn-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hi);
}

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn.secondary:hover {
  background: var(--bg-card-hi);
}

.btn-size {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  white-space: nowrap;
  flex: 0 0 auto;
}

.btn[aria-disabled="true"],
.btn.loading {
  background: var(--bg-card-hi);
  color: var(--fg-muted);
  pointer-events: none;
  border-color: var(--border);
}

.meta {
  color: var(--fg-muted);
  font-size: 13px;
  /* Pin to the bottom of the (equal-height) card so the version line aligns
     across all platforms regardless of how many download buttons a card has.
     padding-top keeps a minimum gap from the buttons on the tallest card. */
  margin-top: auto;
  padding-top: 16px;
  min-height: 1.2em;
}

.meta.error {
  color: #ff8f8f;
}

.mobile {
  text-align: center;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.mobile-heading {
  font-size: 18px;
  margin: 0 0 4px;
}

.mobile-sub {
  color: var(--fg-muted);
  margin: 0 0 22px;
  font-size: 14px;
}

.badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  text-align: left;
  min-width: 150px;
}

.badge.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.badge-top {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.badge-store {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.footer {
  text-align: center;
  margin-top: 56px;
  color: var(--fg-muted);
  font-size: 13px;
}

#resolved-version {
  margin: 0 0 6px;
}

.fineprint {
  margin: 0;
  opacity: 0.7;
}
