/* Sections 4 and 5 of the homepage, restyled to match the real browser
   captures: solid surfaces, product crops instead of wireframes, and two
   distinct layouts so the sections no longer read as the same grid. */

/* ---- Section 4: core capabilities, one real crop per card ---- */
html body.ai-home-page #ai-capabilities .ai-badge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 1.5rem;
}
html body.ai-home-page #ai-capabilities .ai-capability-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 0 0 1.375rem;
  overflow: hidden;
  border: 1px solid #dfe3ee;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1.5rem 2.5rem -1.75rem rgba(26, 31, 84, .32);
}
html body.ai-home-page #ai-capabilities .cap-visual {
  position: relative;
  order: -1;
  display: block;
  height: 15.5rem;
  min-height: 0;
  margin: 0;
  padding: 1.375rem 1.375rem 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e3e6f0;
  border-radius: 0;
  background: linear-gradient(160deg, #eef0fb 0%, #e2e6f6 100%);
  background-image: none;
  background-color: #e8ebf8;
}
html body.ai-home-page #ai-capabilities .cap-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem .75rem 0 0;
  box-shadow: 0 0 0 1px rgba(22, 26, 64, .08), 0 .875rem 1.75rem -.5rem rgba(25, 30, 82, .32);
}
/* Inset content only; the hover lighting canvas must cover the full card. */
html body.ai-home-page #ai-capabilities .ai-capability-card > :is(.cap-head, h3, p, .cap-footer) {
  width: auto;
  max-width: none;
  margin-inline: 1.5rem;
}
html body.ai-home-page #ai-capabilities .cap-head { order: 0; margin-top: 1.25rem; margin-bottom: .5rem; }
html body.ai-home-page #ai-capabilities .ai-capability-card > h3 {
  order: 1;
  margin-top: 0;
  margin-bottom: .375rem;
  color: #191c3b;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
html body.ai-home-page #ai-capabilities .ai-capability-card > p { order: 2; color: #5d6578; }
html body.ai-home-page #ai-capabilities .cap-footer { order: 3; margin-top: auto; padding-top: 1rem; }

/* The one capability without a single screen: a solid brand tile. */
html body.ai-home-page #ai-capabilities .ai-capability-card--solid {
  border-color: transparent;
  background: linear-gradient(155deg, #23266f 0%, #3e43c4 55%, #6a5cf0 100%);
  color: #fff;
  box-shadow: 0 1.5rem 2.75rem -1.5rem rgba(44, 46, 160, .55);
}
html body.ai-home-page #ai-capabilities .ai-capability-card--solid .cap-visual {
  display: grid;
  place-items: center;
  padding: 1.375rem;
  border-bottom-color: rgba(255, 255, 255, .14);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .14), transparent 70%);
}
html body.ai-home-page #ai-capabilities .cap-solid {
  display: grid;
  justify-items: center;
  gap: .875rem;
  text-align: center;
}
html body.ai-home-page #ai-capabilities .cap-solid__in {
  padding: .375rem .875rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 62.4375rem;
  color: rgba(255, 255, 255, .86);
  font-size: .8125rem;
}
html body.ai-home-page #ai-capabilities .cap-solid__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
html body.ai-home-page #ai-capabilities .cap-solid__chips b {
  padding: .5rem .875rem;
  border-radius: .625rem;
  background: #fff;
  color: #2f33a8;
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: 0 .5rem 1rem -.5rem rgba(10, 12, 50, .5);
}
html body.ai-home-page #ai-capabilities .cap-solid__out {
  padding: .375rem .875rem;
  border-radius: 62.4375rem;
  background: rgba(56, 188, 128, .2);
  color: #b9f2d6;
  font-size: .8125rem;
  font-weight: 600;
}
html body.ai-home-page #ai-capabilities .ai-capability-card--solid :is(h3, .cap-head span, .cap-link, .cap-link__label) { color: #fff; }
html body.ai-home-page #ai-capabilities .ai-capability-card--solid > p { color: rgba(255, 255, 255, .78); }
html body.ai-home-page #ai-capabilities .ai-capability-card--solid .cap-symbol {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

@media (max-width: 1100px) and (min-width: 768px) {
  html body.ai-home-page #ai-capabilities .ai-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  html body.ai-home-page #ai-capabilities .ai-badge-grid { grid-template-columns: 1fr; gap: 1rem; }
  html body.ai-home-page #ai-capabilities .cap-visual { height: 13rem; min-height: 0; }
}

/* ---- Section 5: use cases as wide request → result cards ---- */
html body.ai-home-page #solutions .site-solutions__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
html body.ai-home-page #solutions .site-solution {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #dfe3ee;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1.25rem 2.25rem -1.75rem rgba(26, 31, 84, .3);
}
html body.ai-home-page #solutions .site-solution::after { content: none; }
html body.ai-home-page #solutions .site-solution > :not(.site-solution__request) { grid-column: 1; }
html body.ai-home-page #solutions .site-solution__top { grid-row: 1; margin: 0 0 .75rem; }
html body.ai-home-page #solutions .site-solution > h3 { grid-row: 2; margin: 0 0 .5rem; color: #191c3b; font-size: 1.1875rem; line-height: 1.35; }
html body.ai-home-page #solutions .site-solution__description { grid-row: 3; margin: 0; color: #5d6578; }
html body.ai-home-page #solutions .site-solution > .overview-text-link { grid-row: 4; align-self: end; margin-top: 1rem; }

/* Homepage placement only; the bubble itself lives in solid-request.css. */
html body.ai-home-page #solutions .site-solution__request {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  margin: 0;
}

@media (max-width: 1100px) {
  html body.ai-home-page #solutions .site-solutions__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html body.ai-home-page #solutions .site-solution { display: flex; flex-direction: column; padding: 1.125rem; }
  html body.ai-home-page #solutions .site-solution__top { order: 0; }
  html body.ai-home-page #solutions .site-solution > h3 { order: 1; }
  html body.ai-home-page #solutions .site-solution__description { order: 2; }
  html body.ai-home-page #solutions .site-solution__request { order: 3; margin-block: 1rem 0; }
  html body.ai-home-page #solutions .site-solution > .overview-text-link { order: 4; }
}
