/* Product-page previews: the full app image stays wide. */
.clean-product .hero {
  padding-block: 24px 48px;
}

.clean-product .hero .container {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.clean-product .hero .crumbs {
  margin-bottom: 16px;
}

.clean-product .hero h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
}

.clean-product .hero-lead {
  margin-top: 12px;
  font-size: 1.125rem;
}

.clean-product .hero-lead p + p {
  margin-top: 8px;
}

.clean-product .hero .device-window {
  width: 100%;
}

.clean-product > .section {
  padding-block: 40px;
}

.clean-product #related h2 + ul {
  margin-top: 16px;
}

.clean-product #related li + li {
  margin-top: 8px;
}

/* Device detection may reorder the list. Mac remains the visual primary. */
.clean-mac #get .stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
}

.clean-mac #get .stores > li {
  order: 1;
}

.clean-mac #get .stores > li[data-platform="macos"] {
  order: 0;
  flex: 0 0 100%;
  margin-bottom: 8px;
}

.clean-mac #get .stores > li[data-platform="macos"] .store {
  max-width: 24rem;
  min-height: 64px;
  padding: 12px 18px;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--primary-glow);
}

.clean-mac #get .stores > li[data-platform="macos"] .store-state {
  color: var(--on-primary);
}

.clean-mac #get .stores > li:not([data-platform="macos"]) .store {
  display: inline-block;
  height: auto;
  min-height: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  box-shadow: none;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clean-mac #get .stores > li:not([data-platform="macos"]) .store:hover {
  box-shadow: none;
  text-decoration-thickness: 2px;
}

.clean-mac #get .stores > li:not([data-platform="macos"]) .store-icon,
.clean-mac #get .stores > li:not([data-platform="macos"]) .store-state {
  display: none;
}

.clean-mac #get .stores > li:not([data-platform="macos"]) .store-name {
  font-size: inherit;
  font-weight: 600;
}

@media (max-width: 767px) {
  .clean-product .hero .container {
    gap: 0;
  }

  .clean-product .hero .container > .device {
    margin-block: 24px;
  }

  .clean-product .hero .get {
    margin-top: 8px;
  }
}

@media (min-width: 768px) {
  .clean-product > .section {
    padding-block: 48px;
  }
}

@media (min-width: 1100px) {
  .clean-product .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 48px;
  }

  .clean-product .hero-copy .crumbs {
    grid-column: 1;
    grid-row: 1;
  }

  .clean-product .hero-copy h1 {
    grid-column: 1;
    grid-row: 2;
  }

  .clean-product .hero-copy .hero-lead {
    grid-column: 1;
    grid-row: 3;
  }

  .clean-product .hero-copy .guide-meta {
    grid-column: 1;
    grid-row: 4;
  }

  .clean-product .hero-copy .get {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
  }
}
