
/* ── Cool Soil IQ "in action" section (2026-11-10) ──
   Alternating image/text features plus a centered platform screenshot.
   Images are capped at their native width so they are never upscaled;
   on narrow screens they shrink to fit and the columns stack. */
.iq-feature {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 2.75rem;
  align-items: center;
  margin: 3rem 0;
}
.iq-feature.iq-reverse { grid-template-columns: 40fr 60fr; }
.iq-feature.iq-reverse .iq-shot { order: 2; }
.iq-feature.iq-reverse .iq-text { order: 1; }
.iq-text h3 { margin-bottom: 0.9rem; }
.iq-text p { color: var(--text-mid); margin: 0; }

.iq-shot { margin: 0; }
.iq-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: var(--cream-dark);
}

/* Centered platform screenshot. max-width is the image's own pixel width,
   so it is shown at most 1:1 and never stretched. */
.iq-platform {
  margin: 4rem auto 0;
  max-width: 1100px;
  text-align: center;
}
.iq-platform h3 { margin-bottom: 0.9rem; }
.iq-platform > p {
  color: var(--text-mid);
  max-width: 700px;
  margin: 0 auto 2rem;
}
.iq-badge {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.iq-shot-wide { max-width: 1100px; margin: 0 auto; }
.iq-shot figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 0.85rem;
  text-align: left;
}
.iq-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.iq-zoom:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* Lightbox */
.iq-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 20, 20, 0.92);
}
.iq-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.iq-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
}
.iq-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 820px) {
  .iq-feature,
  .iq-feature.iq-reverse { grid-template-columns: 1fr; gap: 1.5rem; margin: 2.5rem 0; }
  .iq-feature.iq-reverse .iq-shot { order: 1; }
  .iq-feature.iq-reverse .iq-text { order: 2; }
  .iq-platform { margin-top: 3rem; }
  .iq-shot figcaption { text-align: center; }
}

/* 13. The platform screenshot already carries its own bottom spacing, so the
   section's full padding on top of it opened an oversized gap before the next
   section. */
.iq-action { padding-bottom: 2.5rem; }

/* 9. The Applied header runs one line longer than the other two; this keeps
   all three dark blocks level at desktop widths. */
@media (min-width: 821px) {
  .tier-header { min-height: 176px; }
}
