/* =========================================================
   DOWNLOAD
   ========================================================= */

.download-hero,
.download-options,
.release-info,
.download-choice,
.download-help {
  position: relative;
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
  margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.download-hero {
  min-height: 500px;
  padding: 108px 0 105px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 90px;
  align-items: end;
}

.download-hero::before,
.download-options::before,
.release-info::before,
.download-choice::before,
.download-help::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.download-hero::before,
.release-info::before,
.download-help::before {
  background: #101010;
}

.download-options::before,
.download-choice::before {
  background: #181818;
}

.download-hero__intro {
  max-width: 650px;
  margin-left: 4%;
}

.download-hero__intro h1 {
  margin: 0;

  font-size: clamp(48px, 5.8vw, 66px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.download-hero__intro > p:not(.technical-label) {
  max-width: 530px;

  margin: 30px 0 0;

  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.download-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;

  padding-bottom: 6px;
}

.download-hero__meta span {
  margin-top: 10px;

  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.download-hero__meta strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   DOWNLOAD OPTIONS
   ========================================================= */

.download-options {
  padding: 118px 0 128px;
}

.download-options__heading {
  margin-left: 9%;
}

.download-options__heading h2 {
  margin: 0;

  font-size: clamp(38px, 4.7vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.download-list {
  margin-top: 68px;
}

.download-item {
  position: relative;

  min-height: 190px;

  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;

  gap: 30px;

  padding: 30px 10px;

  border-top: 1px solid #303030;

  transition:
    background-color var(--transition),
    padding var(--transition);
}

.download-item:last-child {
  border-bottom: 1px solid #303030;
}

.download-item:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: #1d1d1d;
}

.download-item__number {
  align-self: start;
  padding-top: 5px;

  color: var(--green);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.download-item__content {
  min-width: 0;
}

.download-item__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.download-item__title h3 {
  margin: 0;

  color: var(--text);

  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.download-item__title span {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.download-item__content > p {
  max-width: 600px;

  margin: 12px 0 0;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.65;
}

.download-item__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;

  margin-top: 18px;
}

.download-item__details span {
  color: var(--text-muted);
  font-size: 12px;
}

.download-item__button {
  flex-shrink: 0;
  min-width: 118px;
}

/* =========================================================
   RELEASE
   ========================================================= */

.release-info {
  padding: 120px 0 130px;

  display: grid;
  grid-template-columns: 140px minmax(0, 620px);
  gap: 65px;
}

.release-info__marker {
  padding-top: 3px;

  color: var(--green);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.release-info__content {
  margin-left: 6%;
}

.release-info__content h2 {
  margin: 0;

  font-size: clamp(40px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.release-info__content > p:not(.technical-label) {
  max-width: 580px;

  margin: 26px 0 0;

  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.7;
}

.release-points {
  margin-top: 40px;
}

.release-points div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);

  gap: 14px;

  padding: 15px 0;

  border-bottom: 1px solid #303030;
}

.release-points span {
  color: var(--green);

  font-size: 10px;
  font-weight: 600;
}

.release-points strong {
  color: var(--text);

  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   CHOICE
   ========================================================= */

.download-choice {
  padding: 116px 0 128px;

  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 100px;
}

.download-choice__intro {
  margin-left: 7%;
}

.download-choice__intro h2 {
  margin: 0;

  font-size: clamp(40px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.choice-list {
  border-top: 1px solid #303030;
}

.choice-row {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  border-bottom: 1px solid #303030;
}

.choice-row span {
  color: var(--text-secondary);
  font-size: 14px;
}

.choice-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   HELP
   ========================================================= */

.download-help {
  padding: 110px 0 125px;

  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 50px;
}

.download-help h2 {
  margin: 0;

  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}

.download-help > div > p:not(.technical-label) {
  max-width: 450px;

  margin: 22px 0 0;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .download-hero {
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
  }

  .download-hero__intro {
    margin-left: 4%;
  }

  .download-hero__meta {
    margin-left: 12%;
  }

  .download-options__heading {
    margin-left: 5%;
  }

  .download-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .download-item__button {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }

  .release-info {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .release-info__content {
    margin-left: 4%;
  }

  .download-choice {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .download-choice__intro {
    margin-left: 5%;
  }

  .download-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .download-hero {
    min-height: auto;
    padding: 66px 0 82px;
    gap: 40px;
  }

  .download-hero__intro,
  .download-options__heading,
  .download-choice__intro {
    margin-left: 0;
  }

  .download-hero__intro h1 {
    font-size: 43px;
  }

  .download-hero__intro > p:not(.technical-label) {
    font-size: 16px;
  }

  .download-hero__meta {
    margin-left: 0;
  }

  .download-options {
    padding: 84px 0 94px;
  }

  .download-options__heading h2 {
    font-size: 40px;
  }

  .download-list {
    margin-top: 46px;
  }

  .download-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
    padding: 27px 5px;
  }

  .download-item:hover {
    padding-left: 10px;
    padding-right: 10px;
  }

  .download-item__title {
    gap: 8px;
    flex-direction: column;
  }

  .download-item__title h3 {
    font-size: 19px;
  }

  .download-item__content > p {
    font-size: 13px;
  }

  .download-item__button {
    grid-column: 2;
    width: 100%;
    margin-top: 6px;
  }

  .release-info {
    padding: 84px 0 96px;

    grid-template-columns: 1fr;
    gap: 26px;
  }

  .release-info__content {
    margin-left: 0;
  }

  .release-info__content h2 {
    font-size: 41px;
  }

  .download-choice {
    padding: 84px 0 96px;
  }

  .download-choice__intro h2 {
    font-size: 41px;
  }

  .download-help {
    padding: 84px 0 100px;
  }

  .download-help h2 {
    font-size: 40px;
  }

  .choice-row {
    min-height: 62px;
  }
}
