/* Download page: a focused install path with compact setup and support guidance. */

.download-main,
.download-main *,
.download-main *::before,
.download-main *::after {
  box-sizing: border-box;
}

.download-main {
  min-height: 100vh;
  overflow: hidden;
  color: #f5f7fa;
}

.download-shell {
  width: min(1100px, calc(100% - 44px));
  margin-inline: auto;
}

.download-hero {
  position: relative;
  isolation: isolate;
  padding: 164px 0 72px;
}

.download-hero::before {
  position: absolute;
  z-index: -1;
  top: -156px;
  left: 50%;
  width: 100vw;
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 52% 48% at 69% 31%, rgba(47, 134, 255, 0.15), rgba(47, 134, 255, 0.035) 52%, transparent 78%),
    radial-gradient(ellipse 46% 34% at 25% 18%, rgba(85, 157, 255, 0.08), transparent 76%);
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.96) 66%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.96) 66%, transparent 100%);
}

.download-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: 58px;
}

.download-hero-copy {
  min-width: 0;
  max-width: 580px;
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #91a0b3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.download-kicker > span {
  display: block;
  width: 18px;
  height: 2px;
  flex: 0 0 18px;
  background: #2f86ff;
}

.download-hero h1 {
  margin: 13px 0 20px;
  color: #f5f7fa;
  font-size: clamp(3rem, 4.35vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.048em;
  line-height: 0.99;
  text-wrap: balance;
}

.download-title-action,
.download-title-product {
  display: block;
}

.download-title-product {
  margin-top: 4px;
  color: #4c93ff;
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(47, 134, 255, 0.15);
}

.download-lede {
  max-width: 520px;
  margin: 0;
  color: #b5bec9;
  font-size: 19px;
  line-height: 1.58;
}

.download-install-button {
  display: inline-flex;
  width: min(100%, 390px);
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 27px;
  padding: 10px 14px;
  gap: 11px;
  border: 1px solid rgba(128, 185, 255, 0.5);
  border-radius: 10px;
  background: linear-gradient(180deg, #4193ff, #2879eb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(47, 134, 255, 0.22);
  color: #fff;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease-out, background 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

.download-install-button img {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.download-install-button .download-button-arrow {
  margin-left: auto;
  color: #d9eaff;
  font-size: 18px;
  font-weight: 600;
  transition: transform 160ms ease-out;
}

.download-install-button:hover {
  border-color: rgba(166, 208, 255, 0.68);
  background: linear-gradient(180deg, #5ba3ff, #3689f6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 15px 32px rgba(47, 134, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.download-install-button:hover .download-button-arrow {
  transform: translateX(2px);
}

.download-install-button:active {
  transform: translateY(0);
}

.download-install-button:focus-visible,
.download-reassurance a:focus-visible,
.download-setup-help a:focus-visible,
.download-control-note a:focus-visible,
.download-help-links a:focus-visible {
  border-radius: 8px;
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
}

.download-reassurance {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 0;
  gap: 4px 8px;
  color: #aeb8c4;
  font-size: 14px;
  line-height: 1.45;
}

.download-reassurance a {
  color: #80b9ff;
  font-weight: 650;
  text-decoration: none;
}

.download-reassurance a:hover,
.download-setup-help a:hover,
.download-control-note a:hover {
  color: #a7d0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-account-note {
  margin: 5px 0 0;
  color: #8d99a8;
  font-size: 14px;
  line-height: 1.45;
}

.download-product-visual {
  min-width: 0;
  margin: 0;
}

.download-product-frame {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  padding: 40px 30px;
  overflow: hidden;
  border: 1px solid rgba(78, 116, 164, 0.38);
  border-radius: 22px;
  background:
    radial-gradient(circle at 52% 42%, rgba(47, 134, 255, 0.16), transparent 50%),
    linear-gradient(145deg, rgba(20, 31, 44, 0.9), rgba(10, 15, 21, 0.96));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.download-product-frame::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 17%, rgba(85, 157, 255, 0.055) 48%, transparent 77%);
  content: "";
  pointer-events: none;
}

.download-product-frame img {
  position: relative;
  display: block;
  width: min(100%, 422px);
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.46));
}

.download-product-visual figcaption {
  margin-top: 13px;
  color: #85919f;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.download-section {
  padding: 58px 0;
}

.download-section[id] {
  scroll-margin-top: 112px;
}

.download-section-heading {
  max-width: 690px;
}

.download-section-label {
  display: block;
  margin-bottom: 9px;
  color: #67a6ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.download-section-heading h2,
.download-closing-panel h2 {
  margin: 0;
  color: #f5f7fa;
  font-size: clamp(2rem, 3.25vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.download-setup {
  border-top: 1px solid rgba(40, 49, 61, 0.7);
  border-bottom: 1px solid rgba(40, 49, 61, 0.7);
  background: linear-gradient(180deg, rgba(12, 16, 21, 0.78), rgba(10, 13, 17, 0.58));
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  gap: 34px;
  list-style: none;
}

.download-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  padding-top: 19px;
  gap: 14px;
  border-top: 1px solid #2d3744;
}

.download-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(85, 157, 255, 0.44);
  border-radius: 11px;
  background: rgba(47, 134, 255, 0.1);
  color: #c5e0ff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
}

.download-steps h3,
.download-compatibility-copy h3 {
  margin: 1px 0 6px;
  color: #f5f7fa;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.download-steps p,
.download-compatibility-copy p {
  margin: 0;
  color: #a9b2be;
  font-size: 15.5px;
  line-height: 1.58;
}

.download-steps strong {
  color: #dce4ed;
}

.download-setup-help {
  margin: 27px 0 0 52px;
  font-size: 14px;
}

.download-setup-help a,
.download-control-note a {
  color: #80b9ff;
  font-weight: 650;
  text-decoration: none;
}

.download-compatibility {
  padding-top: 64px;
  padding-bottom: 64px;
}

.download-compatibility-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 72px;
}

.download-compatibility-copy {
  display: grid;
  gap: 25px;
}

.download-compatibility-copy > div {
  padding-top: 18px;
  border-top: 1px solid #2d3744;
}

.download-control-note a {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  gap: 6px;
  font-size: 14px;
}

.download-help {
  padding-top: 4px;
  padding-bottom: 62px;
}

.download-help-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  gap: 14px;
}

.download-help-links > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 128px;
  align-items: center;
  padding: 20px;
  gap: 16px;
  border: 1px solid #28313d;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(22, 28, 36, 0.78), rgba(12, 17, 23, 0.94)),
    #11161d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f5f7fa;
  text-decoration: none;
  transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.download-help-links strong,
.download-help-links small {
  display: block;
}

.download-help-links strong {
  color: #f5f7fa;
  font-size: 17px;
  line-height: 1.35;
}

.download-help-links small {
  margin-top: 7px;
  color: #9ea9b6;
  font-size: 14px;
  line-height: 1.5;
}

.download-link-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(85, 157, 255, 0.28);
  border-radius: 10px;
  background: rgba(47, 134, 255, 0.07);
  color: #80b9ff;
  font-size: 17px;
  transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.download-help-links > a:hover {
  border-color: rgba(85, 157, 255, 0.48);
  background:
    linear-gradient(145deg, rgba(24, 34, 46, 0.92), rgba(13, 19, 27, 0.98)),
    #11161d;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.download-help-links > a:hover .download-link-arrow {
  border-color: rgba(85, 157, 255, 0.46);
  background: rgba(47, 134, 255, 0.12);
  transform: translateX(2px);
}

.download-closing {
  padding-top: 0;
  padding-bottom: 74px;
}

.download-closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 28px 30px;
  gap: 32px;
  border: 1px solid rgba(60, 79, 104, 0.7);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 24%, rgba(47, 134, 255, 0.12), transparent 29%),
    linear-gradient(145deg, rgba(20, 28, 38, 0.96), rgba(12, 17, 23, 0.98));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.download-closing-panel h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.25rem);
}

.download-closing-panel p {
  margin: 8px 0 0;
  color: #a9b2be;
  font-size: 16px;
  line-height: 1.5;
}

.download-install-button--compact {
  width: 200px;
  min-height: 50px;
  margin-top: 0;
}

.download-install-button--compact img {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

@media (max-width: 1060px) {
  .download-shell {
    width: min(1100px, calc(100% - 48px));
  }

  .download-hero {
    padding-top: 146px;
  }

  .download-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.83fr);
    gap: 42px;
  }

  .download-product-frame {
    min-height: 318px;
    padding-inline: 24px;
  }

  .download-compatibility-grid {
    gap: 48px;
  }

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

  .download-help-links > a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .download-hero {
    padding-bottom: 58px;
  }

  .download-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

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

  .download-product-visual {
    width: min(100%, 590px);
  }

  .download-product-frame {
    min-height: 330px;
  }

  .download-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .download-steps li {
    padding-top: 17px;
  }

  .download-setup-help {
    margin-left: 52px;
  }

  .download-compatibility-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .download-shell {
    width: calc(100% - 40px);
  }

  .download-hero {
    padding-top: 130px;
    padding-bottom: 48px;
  }

  .download-hero-grid {
    gap: 34px;
  }

  .download-hero h1 {
    margin-top: 12px;
    margin-bottom: 17px;
    font-size: clamp(2.5rem, 12.4vw, 3rem);
  }

  .download-lede {
    font-size: 17px;
  }

  .download-install-button {
    width: 100%;
    margin-top: 23px;
  }

  .download-reassurance {
    row-gap: 3px;
  }

  .download-product-frame {
    min-height: 0;
    padding: 28px 18px;
    border-radius: 18px;
  }

  .download-product-frame img {
    border-radius: 13px;
  }

  .download-product-visual figcaption {
    max-width: 30ch;
    margin-inline: auto;
  }

  .download-section {
    padding: 46px 0;
  }

  .download-section[id] {
    scroll-margin-top: 102px;
  }

  .download-section-heading h2,
  .download-closing-panel h2 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .download-steps {
    margin-top: 28px;
  }

  .download-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .download-step-number {
    width: 36px;
    height: 36px;
  }

  .download-steps p,
  .download-compatibility-copy p {
    font-size: 15px;
  }

  .download-setup-help {
    margin-top: 24px;
    margin-left: 48px;
  }

  .download-compatibility {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .download-help {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .download-help-links {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }

  .download-help-links > a:last-child {
    grid-column: auto;
  }

  .download-help-links > a {
    min-height: 0;
    padding: 18px;
  }

  .download-closing {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .download-closing-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 22px;
    gap: 20px;
  }

  .download-install-button--compact {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .download-title-product {
    white-space: normal;
  }

  .download-install-button {
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-main *,
  .download-main *::before,
  .download-main *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
