/* Approved homepage additions: background, product family and integration feature.
   Do not override homepage tokens, typography, navigation, buttons or existing cards.
   The full Research Atelier companion belongs exclusively to secondary pages. */
body.home-page::before {
  inset: 78px 0 0;
  height: auto;
  min-height: 0;
  background: url("backgrounds/atelier-flow-dark.webp") center top / 100% clamp(640px, 85vw, 1200px) repeat-y;
  -webkit-mask-image: linear-gradient(transparent, #000 64px, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(transparent, #000 64px, #000 calc(100% - 96px), transparent);
}
.theme-light body.home-page::before {
  background-image: url("backgrounds/atelier-flow-light.webp");
}
/* Match the original three-column product cards, rather than two wide banners.
   Existing card classes supply all color, typography, border and button styling. */
body.home-page .product-family-grid {
  gap: 20px;
  margin-top: 20px;
}
body.home-page .product-family-grid .product-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.home-page .product-family-grid .product-card h3 img { flex: none; }
@media (max-width: 980px) {
  body.home-page .product-family-grid { grid-template-columns: 1fr; }
}
body.home-page .integration-feature {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
body.home-page .integration-copy { min-width: 0; }
body.home-page .integration-copy h3 { margin: 0 0 12px; }
body.home-page .integration-copy p { margin: 0; }
body.home-page .integration-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (max-width: 980px) {
  body.home-page .integration-feature { grid-template-columns: 64px minmax(0, 1fr); }
  body.home-page .integration-actions { grid-column: 2; align-items: flex-start; }
}
@media (max-width: 600px) {
  body.home-page .integration-feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.home-page .integration-actions { grid-column: 1; align-items: stretch; }
  body.home-page .integration-actions small { text-align: center; }
}
@media (forced-colors: active), print {
  body.home-page::before { display: none; }
}
