/* DeskSmash product layout, shared with the standalone site. */
.desksmash-page .hero--desksmash {
  --hero-padding: clamp(12px, 2svh, 24px);
  min-height: 0;
  padding-block: var(--hero-padding);
}

.desksmash-page .hero--desksmash .hero__inner {
  height: calc(100svh - var(--header-height) - 16px - env(safe-area-inset-top, 0px) - (var(--hero-padding) * 2));
  min-height: 36rem;
  gap: 0;
}

.desksmash-page .hero__content--product {
  --product-hero-cluster-gap: clamp(8px, 1.4svh, 16px);

  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--product-hero-cluster-gap);
  align-items: stretch;
}

.desksmash-page .product-hero__main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--product-hero-cluster-gap);
  align-content: stretch;
  justify-items: center;
  min-height: 0;
}

.desksmash-page .product-hero__top {
  display: grid;
  justify-items: center;
}

.desksmash-page .product-hero__top {
  width: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(8rem, 1fr) auto;
  gap: var(--space-2);
  align-content: stretch;
}

.desksmash-page .product-identity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0;
  text-align: left;
}

.desksmash-page .product-identity__icon {
  position: relative;
  width: clamp(40px, 5svh, 56px);
  height: clamp(40px, 5svh, 56px);
  flex: 0 0 auto;

}

.desksmash-page .product-identity__icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.desksmash-page .product-identity__name {
  color: var(--text-primary);
  font-size: clamp(var(--text-lg), 2.4svh, var(--text-2xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.desksmash-page .product-hero__middle {
  display: grid;
  gap: var(--product-hero-cluster-gap);
  align-content: start;
  justify-items: center;
  width: 100%;
  min-height: 0;
}

.desksmash-page .product-hero__actions {
  display: grid;
  justify-items: center;
}

.desksmash-page .hero--desksmash .hero__title,
.desksmash-page .hero--desksmash .hero__subtitle {
  margin-bottom: clamp(0.45rem, 1.2svh, var(--space-3));
}

.desksmash-page .hero--desksmash .u-margin-bottom-sm {
  margin-bottom: clamp(0.45rem, 1.2svh, var(--space-3));
}

.desksmash-page .hero--desksmash .hero__title {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.75rem, 4.5svh, 3rem);
  text-wrap: balance;
}

.desksmash-page .hero--desksmash .hero__subtitle {
  max-width: 70ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.8svh, 1.125rem);
  line-height: 1.4;
  text-wrap: balance;
}

.desksmash-page .hero--desksmash .hero__actions--product-cta {
  margin-top: 0;
  gap: var(--space-2);
}

.desksmash-page .hero--desksmash .download-checksum {
  margin-top: 0;
}

.desksmash-page .product-details {
  padding-block: var(--space-5);
}

.desksmash-page .product-details__note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.desksmash-page .product-details__note + .product-details__note {
  margin-top: var(--space-3);
}

.desksmash-page .hero-demo-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  container-type: size;
}

.desksmash-page .hero-demo {
  position: relative;
  width: min(100cqw, calc(100cqh * 1600 / 1020), 56rem);
  min-width: 0;
  aspect-ratio: 1600 / 1020;
  margin: 0 auto;
}

.desksmash-page .hero-demo__video {
  position: absolute;
  left: 7.875%;
  top: 5.88235294%;
  width: 84.25%;
  height: 82.59803922%;
  object-fit: contain;
  border-radius: 0.9% / 1.4%;
  background: #08090a;
}

.desksmash-page .hero-demo__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 767px) {
.desksmash-page .hero--desksmash .hero__inner {
    display: block;
    height: auto;
    min-height: calc(100svh - var(--header-height) - 16px - env(safe-area-inset-top, 0px) - (var(--hero-padding) * 2));
  }

.desksmash-page .hero__content--product {
    height: auto;
    min-height: inherit;
  }

.desksmash-page .product-hero__top {
    grid-template-rows: repeat(4, auto);
    align-content: center;
    gap: var(--space-3);
  }

.desksmash-page .hero-demo-slot {
    container-type: normal;
  }

.desksmash-page .hero-demo {
    width: 100%;
  }
}

.desksmash-page .mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.desksmash-page .mode-grid > article {
  min-width: 0;
}

.desksmash-page .mode-visual {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-block: var(--space-4);
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}

.desksmash-page .mode-visual:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.desksmash-page .mode-visual__image {
  width: 100%;
  min-width: 44rem;
  max-width: none;
  height: auto;
}

.desksmash-page .feature-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
.desksmash-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.desksmash-page .feature-grid > article {
  min-width: 0;
}

@media (min-width: 768px) {
.desksmash-page .feature-grid > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.desksmash-page .surface {
  padding: clamp(16px, 3vw, 24px);
}

/* The icon PNG supplies its own corners; do not add another frame. */
.desksmash-page .product-identity__icon {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.desksmash-page .product-hero__actions { width: 100%; }
.desksmash-page .product-details .product-switcher {
  margin: 0 auto var(--space-5);
}
.desksmash-page .download-platforms a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
