/*
 * "Five moving parts, delivered as a managed service" section (AI Agent Governance page).
 * Scoped under .dlh-aig-parts.
 */

.dlh-aig-parts {
  font-family: "Inter", system-ui, sans-serif;
  isolation: isolate;   /* own stacking context: nothing inside can rise above the theme's sticky nav */
  color: #000;
  /* Figma: white → #f8f4fe at 53.846% → #ece3fd */
  background: linear-gradient(180deg, #fff 0%, #f8f4fe 53.846%, #ece3fd 100%);
  background-color: #f8f4fe;
  padding: 103.5px 16px;
  overflow: hidden;
}

.dlh-aig-parts *,
.dlh-aig-parts *::before,
.dlh-aig-parts *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dlh-aig-parts p,
.dlh-aig-parts h2,
.dlh-aig-parts h3,
.dlh-aig-parts li { font-family: inherit; color: inherit; text-transform: none; }
.dlh-aig-parts ol { list-style: none; }

.dlh-aig-parts__inner {
  max-width: 1168px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.dlh-aig-parts__head {
  max-width: 863px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.dlh-aig-parts .dlh-aig-parts__title {
  font-size: 56px; font-weight: 400; line-height: 62px; letter-spacing: -1.28px;
}
.dlh-aig-parts .dlh-aig-parts__sub {
  max-width: 696px;
  font-size: 17px; line-height: 24px; letter-spacing: -0.18px;
}

/* Cards */
.dlh-aig-parts__cards {
  width: 100%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.dlh-aig-part {
  min-height: 339px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.dlh-aig-parts .dlh-aig-part__number {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #16a34a;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px; font-weight: 500; line-height: 1;
}
.dlh-aig-parts .dlh-aig-part__title {
  color: #1a1a1a;
  font-size: 24px; font-weight: 400; line-height: 29px; letter-spacing: -0.18px;
}
.dlh-aig-parts .dlh-aig-part__text { font-size: 14px; line-height: 22px; }

/* Buttons */
.dlh-aig-parts__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dlh-aig-parts .dlh-aig-parts__button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 20px;
  border-radius: 48px;
  font-size: 16px; font-weight: 500; line-height: 22px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease;
}
.dlh-aig-parts .dlh-aig-parts__button--primary { background: #1a1a1a; color: #fff; }
.dlh-aig-parts .dlh-aig-parts__button--primary:hover { background: #3a3a3a; }
/* Figma draws this 1px outline inside the button, so it adds no height */
.dlh-aig-parts .dlh-aig-parts__button--secondary { background: #fff; box-shadow: inset 0 0 0 1px #3f3f3f; color: #1a1a1a; }
.dlh-aig-parts .dlh-aig-parts__button--secondary:hover { background: #f5f5f9; }
.dlh-aig-parts .dlh-aig-parts__button:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }

/* Narrower desktops: 3 + 2 */
@media (max-width: 1100px) {
  .dlh-aig-parts__cards { grid-template-columns: repeat(6, 1fr); }
  .dlh-aig-part { grid-column: span 2; min-height: 0; }
  .dlh-aig-part:nth-child(4) { grid-column: 2 / span 2; }
}

/* Tablet */
@media (max-width: 1023px) {
  .dlh-aig-parts { padding: 88px 16px; }
  .dlh-aig-parts .dlh-aig-parts__title { font-size: 44px; line-height: 50px; letter-spacing: -1px; }
}

/* Small tablets: 2 columns */
@media (max-width: 900px) {
  .dlh-aig-parts__cards { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .dlh-aig-part,
  .dlh-aig-part:nth-child(4) { grid-column: auto; }
  .dlh-aig-part:last-child { grid-column: 1 / -1; }
}

/* Phones: one column */
@media (max-width: 720px) {
  .dlh-aig-parts { padding: 72px 16px; }
  .dlh-aig-parts .dlh-aig-parts__title { font-size: 36px; line-height: 42px; letter-spacing: -0.8px; }
  .dlh-aig-parts .dlh-aig-parts__sub { font-size: 16px; }
  .dlh-aig-parts__cards { grid-template-columns: 1fr; gap: 12px; }
  .dlh-aig-part { padding: 24px; gap: 12px; }
  .dlh-aig-parts .dlh-aig-part__title { font-size: 22px; line-height: 27px; }
}
