/* Phase 7D — Home pre-launch polish
   Scope: homepage only. Removes duplicated link treatment, constrains the diagnostic visual,
   and rebalances the software-enabled diagnostics section. */

/* 1. Home symptom/problem cards: the whole card is already the link; remove secondary link noise. */
.home-symptoms .home-context-link-card__meta,
.home-diagnostic-value .home-context-link-card__meta,
.home-software-diagnostics .home-context-link-card__meta {
  display: none !important;
}

.home-symptoms__grid {
  row-gap: clamp(1.2rem, 2.3vw, 1.8rem);
}

.home-symptom-card {
  min-height: 9.4rem;
  gap: 0.62rem;
}

.home-symptom-card p {
  line-height: 1.5;
}

/* 2. Diagnostic-value section: visual and cards work as a balanced pair, not a full-width billboard. */
.home-diagnostic-value__body {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(21rem, 0.78fr);
  gap: clamp(1.1rem, 2.7vw, 2rem);
  align-items: center;
  margin-bottom: clamp(1.2rem, 2.6vw, 1.9rem);
}

.home-diagnostic-value__visual {
  margin: 0;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(11, 37, 69, 0.10);
  border-radius: var(--telstar-radius-md);
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 16, 38, 0.06);
}

.home-diagnostic-value__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(17rem, 28vw, 25rem);
  object-fit: contain;
}

.home-diagnostic-value__body .home-diagnostic-value__grid {
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 1.4vw, 1rem);
  margin-bottom: 0;
}

.home-diagnostic-value-card {
  min-height: 0;
  gap: 0.58rem;
  padding: clamp(1rem, 1.6vw, 1.22rem);
}

.home-diagnostic-value-card h3 {
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
}

.home-diagnostic-value-card p {
  font-size: 0.96rem;
  line-height: 1.5;
}

.home-diagnostic-value__decision-panel {
  margin-top: 0;
}

/* 3. Software-enabled diagnostics: compact proof card, then method cards as a row and screenshots as a clean 2x2 grid. */
.home-software-diagnostics__intro {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  align-items: center;
  gap: clamp(1.1rem, 2.8vw, 2rem);
  margin-bottom: clamp(1.3rem, 2.6vw, 1.95rem);
}

.home-software-diagnostics__proof-card {
  justify-self: end;
  align-self: center;
  width: min(100%, 26rem);
  min-height: 0;
  padding: clamp(1.05rem, 1.8vw, 1.35rem);
  gap: 0.65rem;
}

.home-software-diagnostics__proof-card h3 {
  max-width: 18ch;
  font-size: clamp(1.08rem, 1.26vw, 1.22rem);
  line-height: 1.14;
}

.home-software-diagnostics__proof-card p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.home-software-diagnostics__layout {
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.55rem);
}

.home-software-diagnostics__method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1rem);
}

.home-software-step {
  grid-template-columns: 1fr;
  min-height: 10.1rem;
  gap: 0.65rem;
  padding: clamp(0.96rem, 1.55vw, 1.15rem);
}

.home-software-step h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(0.98rem, 1.06vw, 1.08rem);
}

.home-software-step p {
  font-size: 0.94rem;
  line-height: 1.46;
}

.home-software-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.95rem, 1.7vw, 1.15rem);
  align-items: stretch;
}

.home-software-shot {
  height: 100%;
}

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

.home-software-shot__body {
  padding: clamp(0.92rem, 1.45vw, 1.06rem);
}

.home-software-shot__body span:last-child {
  font-size: 0.92rem;
  line-height: 1.44;
}

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

  .home-software-step {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .home-diagnostic-value__body,
  .home-software-diagnostics__intro {
    grid-template-columns: 1fr;
  }

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

  .home-diagnostic-value__visual img {
    max-height: none;
  }

  .home-software-diagnostics__proof-card {
    justify-self: start;
    width: 100%;
    max-width: 42rem;
  }
}

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

  .home-software-step {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .home-symptom-card,
  .home-diagnostic-value-card,
  .home-software-step {
    padding-inline: 1rem;
  }

  .home-diagnostic-value__body {
    gap: 0.9rem;
  }

  .home-diagnostic-value__visual {
    border-radius: var(--telstar-radius-sm);
  }
}
