.download-hero {
  padding-top: clamp(54px, 8vw, 94px);
  padding-bottom: clamp(50px, 7vw, 82px);
}

.download-hero-copy {
  max-width: 880px;
}

.download-hero h1 {
  max-width: 850px;
  color: var(--color-brand);
}

.download-hero .lead {
  max-width: 840px;
}

.download-hero strong {
  color: var(--color-ink);
}

.download-facts {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.download-checkline {
  display: grid;
  margin-top: clamp(34px, 6vw, 62px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-hero);
  background: var(--color-surface);
}

.download-checkline > div {
  display: grid;
  padding: 24px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  border-right: 1px solid var(--color-line);
}

.download-checkline > div:last-child {
  border-right: 0;
}

.download-checkline strong {
  font-size: 16px;
}

.download-checkline span:last-child {
  grid-column: 2;
  color: var(--color-ink-soft);
  font-size: 13px;
}

.checkline-index {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-surface-soft);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
}

.download-tabs {
  min-width: 0;
}

.download-tab-list {
  display: flex;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 8px;
  overflow-x: auto;
  gap: 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-round);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.download-tab-button {
  display: inline-flex;
  min-width: max-content;
  min-height: 50px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-round);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
}

.download-tab-button:hover {
  background: var(--color-surface-soft);
}

.download-tab-button[aria-selected="true"],
.download-tab-button.is-active {
  background: var(--color-current);
  color: var(--color-on-brand);
}

.download-tab-button[aria-selected="true"] .tab-check,
.download-tab-button.is-active .tab-check {
  border-color: var(--color-on-brand);
  color: var(--color-current);
}

.download-tab-panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-hero);
  background: var(--color-surface-soft);
}

.download-tab-panel[hidden] {
  display: none;
}

.platform-intro {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.platform-intro > div {
  max-width: 760px;
}

.platform-intro h3 {
  color: var(--color-brand);
}

.platform-intro p:last-child {
  margin-bottom: 0;
  color: var(--color-ink-soft);
}

.platform-code {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 13px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-round);
  background: var(--color-surface);
  color: var(--color-brand-deep);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-client-card {
  min-height: auto;
}

.download-client-card .client-logo {
  width: 52px;
  height: 52px;
}

.download-client-card .client-card-head {
  padding-right: 82px;
}

.download-client-card .client-card-head h4 {
  margin-bottom: 2px;
  color: var(--color-brand);
  font-size: 24px;
}

.download-client-card .client-meta {
  margin-bottom: 0;
}

.download-client-card .client-card-body > p {
  max-width: 820px;
}

.package-grid,
.linux-primary-packages {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.package-option {
  display: flex;
  min-height: 100%;
  padding: 22px;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.package-option.is-main {
  border-color: var(--color-brand);
}

.package-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.package-copy .badge {
  width: fit-content;
  margin-bottom: 13px;
}

.package-copy h4 {
  margin-bottom: 7px;
  color: var(--color-ink);
  font-size: 19px;
}

.package-copy > p:not(.package-file) {
  color: var(--color-ink-soft);
  font-size: 14px;
}

.package-file {
  max-width: 100%;
  margin-top: auto;
  margin-bottom: 15px;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
  font-size: 11px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.package-download {
  width: 100%;
  min-height: 52px;
}

.requirements-block {
  margin-top: 26px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.requirements-block h4 {
  margin-bottom: 16px;
  color: var(--color-brand);
  font-size: 20px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .data-table {
  min-width: 650px;
}

.table-scroll td {
  color: var(--color-ink-soft);
}

.android-client-stack {
  display: grid;
  gap: 20px;
}

.arm-package-row {
  display: grid;
  margin-top: 18px;
  padding: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
  gap: 18px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.arm-package-row .badge {
  margin-bottom: 12px;
}

.arm-package-row h4 {
  margin-bottom: 6px;
}

.arm-package-row p {
  margin-bottom: 0;
  color: var(--color-ink-soft);
  font-size: 14px;
}

.arm-package-actions {
  display: grid;
  align-content: center;
  gap: 10px;
}

.arm-package-files {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
}

.arm-package-files code {
  display: block;
  max-width: 100%;
  padding: 8px 11px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
  font-size: 11px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.download-process {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.download-process .eyebrow {
  color: var(--color-current);
}

.download-process h2,
.download-process h3,
.download-process .lead {
  color: var(--color-on-brand);
}

.download-process .lead {
  opacity: .82;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-hero);
  background: var(--color-line-strong);
  list-style: none;
}

.process-list li {
  display: grid;
  padding: clamp(22px, 4vw, 36px);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  background: var(--color-brand-deep);
}

.process-list h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--color-on-brand);
  opacity: .78;
}

.process-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-current);
  color: var(--color-on-brand);
  font-size: 13px;
  font-weight: 800;
}

.process-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.download-process .process-actions .btn-primary {
  border-color: var(--color-on-brand);
  background: var(--color-on-brand);
  color: var(--color-brand);
}

.download-process .process-actions .btn-secondary {
  border-color: var(--color-on-brand);
  background: transparent;
  color: var(--color-on-brand);
}

.package-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.package-guide .card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.package-guide .card h3 {
  color: var(--color-brand);
}

.package-guide .card > p:not(.eyebrow) {
  color: var(--color-ink-soft);
}

.guide-example {
  display: block;
  max-width: 100%;
  margin-top: auto;
  padding: 11px 13px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
  font-size: 12px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .download-checkline {
    grid-template-columns: 1fr;
  }

  .download-checkline > div {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .download-checkline > div:last-child {
    border-bottom: 0;
  }

  .package-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .package-grid,
  .linux-primary-packages {
    grid-template-columns: 1fr;
  }

  .platform-intro {
    flex-direction: column;
    gap: 16px;
  }

  .arm-package-row {
    grid-template-columns: 1fr;
  }

  .arm-package-files {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .download-hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .download-facts {
    gap: 8px;
  }

  .download-checkline > div {
    padding: 18px;
  }

  .download-tab-list {
    margin-right: 0;
    margin-left: 0;
    border-radius: var(--radius-card);
  }

  .download-tab-button {
    min-height: 46px;
    padding: 9px 16px;
  }

  .download-tab-panel {
    padding: 18px;
  }

  .download-client-card {
    padding: 20px;
  }

  .download-client-card .client-card-head {
    padding-right: 0;
  }

  .package-option {
    padding: 18px;
  }

  .requirements-block {
    padding: 18px;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .process-number {
    width: 42px;
    height: 42px;
  }

  .process-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 380px) {
  .download-client-card .client-card-head {
    align-items: flex-start;
  }

  .download-client-card .client-logo {
    width: 48px;
    height: 48px;
  }

  .download-tab-panel {
    padding: 15px;
  }

  .package-option,
  .arm-package-row {
    padding: 16px;
  }
}