.download-main {
  min-height: 70vh;
  background: #ffffff;
}

.download-hero {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 72px;
  text-align: center;
}

.download-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2167d9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.download-eyebrow::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 0 5px #e8f0ff;
}

.download-title {
  margin: 20px 0 0;
  color: #08090b;
  font-size: 42px;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: 0;
}

.download-lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: #666c76;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.85;
}

.package-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 116px;
  scroll-margin-top: 96px;
}

.package-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (min-width: 861px) {
  .package-grid[data-visible-count="2"] {
    width: min(100%, 794px);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid[data-visible-count="1"] {
    width: min(100%, 386px);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}

.compatibility-notice {
  width: min(920px, 100%);
  margin: 28px auto 0;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #eadfce;
  border-left: 3px solid #d85b08;
  border-radius: 8px;
  background: #ffffff;
}

.compatibility-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d85b08;
  background: #fff0e4;
}

.compatibility-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.compatibility-copy h3 {
  margin: 0;
  color: #292c31;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.5;
}

.compatibility-copy p {
  margin: 3px 0 0;
  color: #707680;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.65;
}

.package-card {
  min-width: 0;
  min-height: 470px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e6ea;
  border-top: 3px solid var(--package-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-3px);
  border-right-color: #d8dce2;
  border-bottom-color: #d8dce2;
  border-left-color: #d8dce2;
  box-shadow: 0 16px 36px rgba(16, 17, 20, 0.08);
}

.package-card:nth-child(1) {
  --package-color: #101114;
  --package-soft: #f0f1f3;
}

.package-card:nth-child(2) {
  --package-color: #2167d9;
  --package-soft: #e8f0ff;
}

.package-card:nth-child(3) {
  --package-color: #008d65;
  --package-soft: #e2f6ee;
}

.package-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.package-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--package-color);
  background: var(--package-soft);
}

.package-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.package-badge {
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--package-color);
  background: var(--package-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.package-name {
  margin: 22px 0 0;
  color: #17191d;
  font-size: 22px;
  font-weight: 740;
  line-height: 1.4;
}

.package-size {
  margin: 6px 0 0;
  color: var(--package-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.package-description {
  min-height: 75px;
  margin: 14px 0 0;
  color: #676d77;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.75;
}

.package-features {
  margin: 20px 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid #eceef1;
  list-style: none;
}

.package-features li {
  position: relative;
  padding-left: 18px;
  color: #555c66;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.package-features li::before {
  width: 7px;
  height: 4px;
  position: absolute;
  top: 7px;
  left: 1px;
  border-bottom: 1.7px solid var(--package-color);
  border-left: 1.7px solid var(--package-color);
  content: "";
  transform: rotate(-45deg);
}

.package-file {
  margin: 18px 0 20px;
  color: #9a9fa7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.package-action {
  width: 100%;
  height: 44px;
  margin-top: auto;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--package-color);
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--package-color) 20%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.package-action:hover,
.package-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--package-color) 25%, transparent);
}

.package-action:active {
  transform: translateY(0);
}

.package-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.package-card[hidden] {
  display: none;
}

.package-action:disabled,
.package-action.is-disabled {
  color: #8b919a;
  background: #eceef1;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.package-action:disabled:hover,
.package-action:disabled:focus-visible,
.package-action.is-disabled:hover,
.package-action.is-disabled:focus-visible {
  transform: none;
  box-shadow: none;
}

.download-guide {
  width: min(920px, 100%);
  margin: 108px auto 0;
  position: relative;
}

.download-guide::before {
  width: min(760px, calc(100% - 36px));
  height: 1px;
  position: absolute;
  top: -54px;
  left: 50%;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.choice-list {
  margin-top: 38px;
  border-top: 1px solid #dfe3e8;
}

.choice-row {
  min-height: 76px;
  padding: 18px 4px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #dfe3e8;
}

.choice-index {
  color: #a0a5ae;
  font-size: 12px;
  font-weight: 700;
}

.choice-copy h3 {
  margin: 0;
  color: #25282d;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.5;
}

.choice-copy p {
  margin: 5px 0 0;
  color: #767c85;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
}

.choice-result {
  color: #2167d9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.download-notice {
  max-width: calc(100vw - 36px);
  min-height: 42px;
  padding: 0 18px;
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #101114;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.download-notice.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 860px) {
  .download-hero {
      padding: 72px 0 60px;
    }

  .download-title {
      font-size: 38px;
    }

  .package-section {
      width: min(100% - 40px, 1200px);
      padding-bottom: 96px;
    }

  .package-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }

  .package-card {
      min-height: 0;
    }

  .package-description {
      min-height: 0;
    }

  .package-action {
      margin-top: 0;
    }
}

@media (max-width: 520px) {
  .download-hero {
      width: min(100% - 36px, 900px);
      padding: 56px 0 48px;
    }

  .download-title {
      margin-top: 16px;
      font-size: 32px;
    }

  .download-lead {
      margin-top: 15px;
      font-size: 14px;
    }

  .package-section {
      width: min(100% - 36px, 1200px);
      padding-bottom: 76px;
    }

  .package-card {
      padding: 22px;
    }

  .package-grid {
      margin-top: 32px;
    }

  .compatibility-notice {
      margin-top: 24px;
      padding: 14px;
    }

  .package-name {
      font-size: 20px;
    }

  .download-guide {
      margin-top: 88px;
    }

  .download-guide::before {
      top: -44px;
    }

  .choice-list {
      margin-top: 30px;
    }

  .choice-row {
      grid-template-columns: 28px minmax(0, 1fr);
      gap: 10px;
    }

  .choice-result {
      grid-column: 2;
      white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
  .package-card,
  .package-action,
  .download-notice {
      transition: none;
    }
}
