/* 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: 154px 0 62px;
}

.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);
  align-items: center;
  gap: 54px;
}

.download-hero-copy {
  min-width: 0;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.download-hero-copy .download-kicker,
.download-hero-copy .download-reassurance {
  justify-content: center;
}

.download-hero-copy .download-install-button {
  margin-inline: auto;
}

.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 auto;
  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-whats-new {
  display: inline-flex;
  align-items: center;
  margin-top: 13px;
  gap: 6px;
  color: #80b9ff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.download-whats-new span {
  transition: transform 160ms ease-out;
}

.download-whats-new:hover {
  color: #b7d7ff;
  text-decoration: none;
}

.download-whats-new:hover span {
  transform: translateX(2px);
}

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

.download-product-visual .dd-demo {
  width: 100%;
}

.download-demo-display-heading {
  max-width: 14ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(46px, 4vw, 56px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.03;
  overflow-wrap: break-word;
}

.download-demo-display-heading span {
  color: var(--accent-hover);
}

.download-product-visual figcaption {
  margin: 5px auto 0;
  color: #8d99a8;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

/* The download preview has longer copy than the homepage. Route its callout
   vertically beside the app so the label never crosses that copy. */
@media (min-width: 961px) {
  .download-product-visual .dd-demo-try-it {
    top: -31px;
    left: -11px;
    width: 76px;
    height: 166px;
  }

  .download-product-visual .dd-demo-try-it > span {
    top: 0;
    right: auto;
    left: 0;
    font-size: 16px;
    transform-origin: left center;
  }

  .download-product-visual .dd-demo-try-it-desktop {
    visibility: hidden;
  }

  .download-product-visual .dd-demo-try-it-compact {
    visibility: visible;
  }
}

.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: 30px;
}

.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;
}

.download-main + .site-footer {
  content-visibility: visible;
  contain-intrinsic-size: none;
  padding-top: 10px;
}

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

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

  .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-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-visual figcaption {
    max-width: 34ch;
    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: 24px;
  }

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

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

@media (max-width: 1100px) and (min-width: 901px) {
  .download-demo-display-heading {
    font-size: 46px;
  }
}

@media (max-width: 900px) {
  .download-demo-display-heading {
    max-width: 14ch;
    margin-inline: auto;
    font-size: clamp(44px, 6.2vw, 50px);
  }
}

@media (max-width: 620px) {
  .download-demo-display-heading {
    max-width: none;
    font-size: clamp(36px, 10vw, 40px);
  }

  .download-main + .site-footer {
    padding-top: 6px;
  }
}

@media (max-width: 390px) {
  .download-demo-display-heading {
    font-size: 37px;
  }
}

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

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

@media (max-width: 960px) and (orientation: landscape) {
  /* The download demo uses the same overlaid toolbar, but needs a smaller
     shift than the homepage because its preview is already more compact. */
  .download-product-visual .dd-demo-hero .hero-copy {
    top: clamp(64px, 7.5vw, 74px);
  }

  .download-product-visual .download-demo-display-heading {
    max-width: 14ch;
    margin-inline: 0;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.02;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .download-product-visual .dd-demo-hero .hero-copy {
    top: 58px;
    left: clamp(18px, 4vw, 28px);
    width: min(58%, 360px);
  }

  .download-product-visual .dd-demo-hero .hero-copy .eyebrow {
    margin-bottom: 6px;
  }

  .download-product-visual .download-demo-display-heading {
    max-width: 15ch;
    font-size: 30px;
  }

  .download-product-visual .dd-demo-hero .hero-lead {
    max-width: none;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }

  .download-product-visual .dd-demo-hero .hero-actions {
    margin-top: 8px;
    gap: 6px;
  }

  .download-product-visual .dd-demo-hero .hero-actions .button {
    width: 136px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }
}

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