/* Page-scoped styles for /downloads.html — after global styles */

.downloadPage {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: clip;
}

.downloadHero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 28px 28px 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(75, 179, 255, 0.16), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(99, 210, 151, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(18, 26, 38, 0.98), rgba(11, 15, 22, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.downloadHero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.downloadHero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.downloadHero__desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 40rem;
}

.downloadHero__tagline {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.92;
}

.downloadHero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.downloadHero__primaryAction {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: min(100%, 280px);
}

.downloadHero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  font-weight: 650;
  text-decoration: none;
}

.downloadHero__downloadBtn {
  padding-left: 1.55rem !important;
  padding-right: 1.7rem !important;
  font-size: 1.02rem;
  box-shadow: 0 8px 22px rgba(75, 179, 255, 0.28);
}

.downloadHero__downloadIcon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.downloadHero__btnMeta {
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.downloadHero__actions .btn:focus-visible,
.downloadPage a:focus-visible,
.downloadPage button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.downloadHero__actions .btn.primary {
  background: var(--accent);
  color: #061018;
  border-color: transparent;
}

.downloadHero__actions .btn.secondary {
  background: transparent;
  color: var(--text);
}

.downloadHero__note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.downloadHero__nosignin {
  margin: 0;
  color: var(--ok);
  font-size: 0.88rem;
  font-weight: 600;
}

.downloadHero__notesLink {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.downloadHero__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.downloadMetaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.downloadMetaCard {
  margin: 0;
  padding: 12px 12px 11px;
  border-radius: 10px;
  border: 1px solid rgba(36, 50, 70, 0.95);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.downloadMetaCard__label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.downloadMetaCard__value {
  display: block;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: none;
}

.downloadMetaCard__value--platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow-wrap: normal;
  word-break: normal;
}

.downloadMetaCard__line {
  display: block;
  white-space: nowrap;
}

.downloadStatusRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.downloadBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 210, 151, 0.35);
  background: rgba(99, 210, 151, 0.1);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 700;
}

.downloadBadge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.downloadCount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(75, 179, 255, 0.08);
  text-align: center;
}

.downloadCount__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.downloadCount__value {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.downloadTrustRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.downloadTrustRow__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 38, 0.65);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.downloadTrustRow__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0;
  color: var(--accent);
}

.downloadSection {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 26, 38, 0.55);
}

.downloadSection__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.downloadSection__lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.downloadSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dl-step;
  align-items: stretch;
}

.downloadStep {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 14px 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  counter-increment: dl-step;
  min-width: 0;
}

.downloadStep--emphasis {
  border-color: rgba(75, 179, 255, 0.55);
  background: rgba(75, 179, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(75, 179, 255, 0.12);
}

.downloadStep__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 102, 0.4);
  background: rgba(255, 204, 102, 0.12);
  color: var(--warn);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.downloadStep__badgeIcon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.downloadStep::before {
  content: counter(dl-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(75, 179, 255, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
}

.downloadStep--emphasis::before {
  background: rgba(75, 179, 255, 0.28);
}

.downloadStep__title {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
}

.downloadStep__text {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.downloadStep__text code {
  font-size: 0.9em;
  color: var(--text);
}

.downloadRequirements {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.downloadRequirements li {
  margin: 0 0 6px;
}

.downloadRequirements__link {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.downloadHistory {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.downloadHistory__title {
  margin: 16px 0 10px;
  font-size: 1.25rem;
}

.downloadPage .error {
  margin: 12px 0 0;
}

@media (max-width: 960px) {
  .downloadHero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .downloadSteps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .downloadTrustRow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .downloadHero__actions {
    flex-direction: column;
  }

  .downloadHero__primaryAction,
  .downloadHero__actions .btn {
    width: 100%;
  }

  .downloadMetaGrid {
    grid-template-columns: 1fr 1fr;
  }

  .downloadMetaCard__line {
    white-space: normal;
  }

  .downloadSteps {
    grid-template-columns: 1fr;
  }

  .downloadTrustRow {
    grid-template-columns: 1fr;
  }

  .downloadSection {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .downloadHero,
  .downloadMetaCard,
  .downloadStep,
  .downloadTrustRow__item {
    transition: none !important;
  }
}

.downloadHero__downloadBtn.is-disabled,
a.downloadHero__downloadBtn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
