/* Native app captures retain their complete frame, colors, and aspect ratio. */
.app-capture {
  width: min(100%, 310px);
  min-width: 0;
  margin: 0;
  justify-self: center;
  align-self: center;
}

.capture-link {
  display: block;
  overflow: hidden;
  border: 5px solid #303030;
  border-radius: 27px;
  background: #111;
  box-shadow: 0 20px 50px rgb(0 0 0 / 20%);
  transition: box-shadow 180ms ease;
}

.capture-link:hover,
.capture-link:focus-visible {
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  outline: 3px solid var(--theme-accent);
  outline-offset: 5px;
}

.capture-link img {
  display: block;
  width: 100%;
  height: auto;
}

.app-capture figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.hero-product {
  min-width: 0;
  min-height: 740px;
  transform: none;
}

.hero-capture {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
}

.feature-stage {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.stage-tune {
  min-height: 0;
  padding: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.stage-copy {
  min-width: 0;
}

.stage-copy .feature-kicker {
  margin-top: 30px;
}

.stage-copy h3 {
  font-size: clamp(32px, 3.2vw, 46px);
}

.stage-side {
  grid-template-rows: auto auto;
}

.mini-feature {
  min-width: 0;
  min-height: 0;
}

.mini-feature .feature-kicker {
  display: block;
  padding-right: 35px;
}

.hud-capture {
  width: 100%;
  margin-top: 24px;
}

.hud-capture .capture-link {
  border-width: 3px;
  border-radius: 14px;
}

.feature-detail-link {
  display: inline-flex;
  margin-top: 25px;
  gap: 12px;
  color: var(--theme-link);
  font-size: 13px;
}

.feature-detail-link:hover {
  text-decoration: underline;
}

.data-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.trip-capture,
.diagnostic-capture {
  width: min(100%, 330px);
}

.diagnostic-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1120px) {
  .feature-stage {
    grid-template-columns: 1fr;
  }

  .stage-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 900px) {
  .hero-product {
    min-height: 0;
    margin: 35px 0 0;
  }

  .data-panel,
  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top > div {
    min-width: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .stage-tune {
    padding: 28px 22px;
    gap: 32px;
  }

  .stage-side {
    grid-template-columns: 1fr;
  }

  .tuning-capture {
    width: min(100%, 310px);
  }

  .app-capture figcaption {
    font-size: 12px;
  }
}
