.download-primary,
.download-secondary {
  flex: none;
  white-space: nowrap;
  outline: none;
}

.download-primary {
  position: relative;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 26px 10px 22px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0) 42%
    ),
    #05070b;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--download-radius-pill);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 46px rgba(7, 17, 31, 0.28);
  isolation: isolate;
  transition:
    background-color 160ms ease-out,
    border-color 260ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 260ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.download-primary::before,
.download-primary::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  border-radius: inherit;
}

.download-primary::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0) 68%
  );
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.23, 1, 0.32, 1);
}

.download-primary::after {
  background: radial-gradient(
    150px 140% at 50% 50%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.13) 34%,
    rgba(255, 255, 255, 0.04) 54%,
    rgba(255, 255, 255, 0) 72%
  );
  opacity: 0;
  filter: blur(16px);
  transition:
    opacity 380ms cubic-bezier(0.23, 1, 0.32, 1),
    filter 380ms cubic-bezier(0.23, 1, 0.32, 1);
}

.download-primary > span {
  position: relative;
  z-index: 1;
}

.download-primary-icon {
  width: 22px;
  font-size: 24px;
  line-height: 1;
}

.download-primary span:last-child {
  display: grid;
  gap: 1px;
  min-width: max-content;
  text-align: left;
}

.download-primary strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
}

.download-primary small {
  font-size: 11px;
  font-weight: 650;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.download-primary:hover {
  background-color: #0c111d;
  border-color: rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset -1.2px -1.6px 10px rgba(94, 151, 255, 0.14),
    0 26px 58px rgba(7, 17, 31, 0.32);
  transform: translateY(-2px);
}

.download-primary:hover::before {
  opacity: 0.9;
}

.download-primary:hover::after {
  opacity: 0.88;
  filter: blur(10px);
}

.download-primary:active {
  transform: scale(0.98);
  transition-duration: 90ms;
}

.download-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(7, 17, 31, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--download-radius-pill);
  backdrop-filter: blur(18px) saturate(1.1);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.download-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.download-secondary-status {
  gap: 8px;
  justify-content: center;
  cursor: default;
}

.download-secondary-status-icon {
  flex: none;
  width: 18px;
  height: 18px;
  background:
    radial-gradient(
      circle at 50% 50%,
      #4285f4 0 30%,
      #ffffff 31% 39%,
      transparent 40%
    ),
    conic-gradient(
      from -28deg,
      #ea4335 0 118deg,
      #fbbc05 118deg 205deg,
      #34a853 205deg 316deg,
      #ea4335 316deg 360deg
    );
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26) inset;
}

.download-secondary-status-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.download-secondary-status-main {
  font-size: 13px;
  line-height: 16px;
}

.download-secondary-status-note {
  font-size: 12px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.download-secondary-status:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
}

.download-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  width: min(430px, 100%);
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 560;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 8px 22px rgba(7, 17, 31, 0.2);
}

.download-version {
  display: inline-flex;
  align-items: center;
  padding-left: 9px;
  margin-left: 3px;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.78);
}

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

.download-version::before {
  flex: none;
  width: 1px;
  height: 14px;
  margin-right: 9px;
  content: "";
  background: rgba(255, 255, 255, 0.3);
}

.download-platform-option {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  outline: none;
  border-bottom: 1px solid currentColor;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.download-platform-option[href]:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.96);
}

.download-platform-option[aria-current="true"] {
  color: #ffffff;
  border-bottom-width: 2px;
}

.download-platform-option[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.44);
  cursor: default;
  border-bottom-style: dashed;
}

.download-platform-option:focus-visible {
  border-radius: 3px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 0 0 6px rgba(19, 152, 255, 0.54);
}

.download-platform-note {
  width: min(430px, 100%);
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 640;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 8px 22px rgba(7, 17, 31, 0.18);
}

.download-feature-list {
  position: absolute;
  bottom: clamp(40px, 7svh, 88px);
  left: max(0px, calc((100% - 1440px) / 2));
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(228px, 1.7fr) minmax(
      112px,
      1fr
    );
  row-gap: 2px;
  column-gap: clamp(14px, 1.4vw, 28px);
  width: min(540px, calc(100vw - 96px));
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(7, 17, 31, 0.18);
  pointer-events: none;
  list-style: none;
}

.download-feature-list li {
  margin: 0;
  white-space: nowrap;
}

.download-feature-list li:nth-child(3n + 2) {
  text-align: center;
}

.download-feature-list li:nth-child(3n) {
  text-align: right;
}

.download-primary:focus-visible {
  box-shadow:
    inset 0 -3px 4px rgba(255, 255, 255, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(7, 17, 31, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 0 0 6px rgba(19, 152, 255, 0.54);
}

.download-secondary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 0 0 6px rgba(19, 152, 255, 0.54);
}
