/* Let the cards and status strip determine the desktop hero height. */
@media (min-width: 1101px) {
  .hero {
    --aria-hero-spacing: clamp(14px, 1vw, 28px);
    min-height: 0;
    row-gap: 0;
  }

  .hero > .aria-hero-stage,
  .hero > .telemetry {
    margin-top: var(--aria-hero-spacing);
  }

  .hero > .hero-banner .hero-download {
    width: 88%;
  }
}

/* Scale the two menu rows with the viewport to preserve legibility at lower zoom. */
@media (min-width: 1500px) {
  header.topbar {
    --aria-header-unit: clamp(1px, calc(100vw / 1540), 1.6px);
    grid-template-columns: calc(220 * var(--aria-header-unit)) minmax(0, 1fr) calc(176 * var(--aria-header-unit));
    grid-template-rows: calc(38 * var(--aria-header-unit)) calc(30 * var(--aria-header-unit));
    column-gap: calc(20 * var(--aria-header-unit));
    row-gap: calc(6 * var(--aria-header-unit));
    padding-top: calc(18 * var(--aria-header-unit));
    padding-bottom: calc(8 * var(--aria-header-unit));
  }

  header.topbar .aria-header-primary > .brand img {
    width: calc(220 * var(--aria-header-unit));
    height: calc(66 * var(--aria-header-unit));
  }

  header.topbar .aria-header-primary > nav {
    gap: calc(27 * var(--aria-header-unit));
  }

  header.topbar .aria-header-primary > nav a {
    font-size: calc(16 * var(--aria-header-unit));
    padding-top: calc(4 * var(--aria-header-unit));
    padding-bottom: calc(4 * var(--aria-header-unit));
  }

  header.topbar nav#company-introduction.aria-header-details {
    gap: calc(6 * var(--aria-header-unit));
  }

  header.topbar nav#company-introduction.aria-header-details a {
    min-height: calc(30 * var(--aria-header-unit));
    height: calc(30 * var(--aria-header-unit));
    font-size: calc(11 * var(--aria-header-unit));
    padding-left: calc(7 * var(--aria-header-unit));
    padding-right: calc(7 * var(--aria-header-unit));
  }

  header.topbar .aria-header-account .zena-brand {
    width: calc(96 * var(--aria-header-unit));
    height: calc(12 * var(--aria-header-unit));
    bottom: calc(100% + 2 * var(--aria-header-unit));
  }

  header.topbar .aria-header-account .zena-brand img {
    width: calc(96 * var(--aria-header-unit));
    height: calc(25 * var(--aria-header-unit));
    transform: translateY(calc(-5 * var(--aria-header-unit)));
  }

  header.topbar .aria-header-account .aria-header-actions {
    gap: calc(6 * var(--aria-header-unit));
  }

  header.topbar .aria-header-account .aria-header-actions button {
    min-height: calc(38 * var(--aria-header-unit));
    height: calc(38 * var(--aria-header-unit));
    font-size: calc(14 * var(--aria-header-unit));
    padding-left: calc(11 * var(--aria-header-unit));
    padding-right: calc(11 * var(--aria-header-unit));
  }

  header.topbar .aria-header-account #aria-header-signup {
    min-width: calc(86 * var(--aria-header-unit));
  }

  .hero .hero-download .download {
    padding-top: clamp(16px, 1.05vw, 24px);
    padding-bottom: clamp(16px, 1.05vw, 24px);
    padding-left: clamp(20px, 1.3vw, 32px);
    padding-right: clamp(20px, 1.3vw, 32px);
  }

  .hero .hero-download .download span {
    font-size: clamp(17px, 1.1vw, 26px);
  }

  .hero .hero-download .download b {
    font-size: clamp(10px, .65vw, 15px);
  }
}

/* Keep the status strip in view on common short desktop viewports. */
@media (min-width: 1101px) and (max-height: 800px) {
  .hero .aria-introduction,
  .hero .aria-feature-card {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero .aria-introduction-body p:not(:last-child) {
    margin-bottom: 10px;
  }

  .hero .aria-feature-guide h3 {
    margin-top: 4px;
    margin-bottom: 14px;
  }

  .hero .aria-feature-guide ul {
    gap: 8px;
  }

  .hero > .telemetry {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .hero > .telemetry > div {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .hero > .telemetry i {
    top: 50%;
    transform: translateY(-50%);
  }
}
