/* Phase 7E — Home targeted polish
   Scope: homepage only. Preserves the existing hero image and changes only the
   diagnostic-clarity and software-enabled diagnostics layout concerns. */

/* Diagnostic value: remove the framed image box and balance image/cards. */
.home-diagnostic-value__body {
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  align-items: stretch;
  gap: clamp(1rem, 2.3vw, 1.8rem);
}

.home-diagnostic-value__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-diagnostic-value__visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.home-diagnostic-value__body .home-diagnostic-value__grid {
  align-self: stretch;
  align-content: stretch;
  gap: clamp(0.72rem, 1.15vw, 0.95rem);
}

.home-diagnostic-value-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 0.72rem;
  row-gap: 0.48rem;
  min-height: 0;
  padding: clamp(0.9rem, 1.35vw, 1.06rem);
}

.home-diagnostic-value-card__icon {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.home-diagnostic-value-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: clamp(0.98rem, 1.04vw, 1.08rem);
  line-height: 1.14;
}

.home-diagnostic-value-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.93rem;
  line-height: 1.45;
}

/* Software-enabled diagnostics: keep method cards compact and make screenshots supporting evidence, not the main event. */
.home-software-diagnostics__method {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.72rem, 1.2vw, 0.95rem);
}

.home-software-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  min-height: 0;
  padding: clamp(0.9rem, 1.25vw, 1.05rem);
}

.home-software-step__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0.02rem;
}

.home-software-step > div:not(.home-software-step__icon) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.home-software-step h3 {
  margin: 0 0 0.28rem;
  font-size: clamp(0.94rem, 1vw, 1.02rem);
  line-height: 1.16;
}

.home-software-step p {
  font-size: 0.9rem;
  line-height: 1.42;
}

.home-software-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.15vw, 0.9rem);
}

.home-software-shot {
  border-radius: var(--telstar-radius-sm);
  box-shadow: 0 10px 24px rgba(0, 16, 38, 0.055);
}

.home-software-shot__media {
  aspect-ratio: 16 / 8.7;
}

.home-software-shot__media::after {
  content: "View";
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.28rem 0.48rem;
  font-size: 0.64rem;
}

.home-software-shot__body {
  gap: 0.28rem;
  padding: clamp(0.66rem, 1vw, 0.82rem);
}

.home-software-shot__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.home-software-shot strong {
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  line-height: 1.14;
}

.home-software-shot__body span:last-child {
  display: none;
}

@media (max-width: 1180px) {
  .home-software-diagnostics__method,
  .home-software-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-diagnostic-value__body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-diagnostic-value__visual {
    max-width: 54rem;
    justify-self: start;
  }

  .home-diagnostic-value__visual img {
    height: auto;
  }
}

@media (max-width: 760px) {
  .home-software-diagnostics__method,
  .home-software-gallery {
    grid-template-columns: 1fr;
  }

  .home-software-step,
  .home-diagnostic-value-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .home-diagnostic-value-card p {
    grid-column: 1 / -1;
  }
}
