/* Compact, paired challenge / solution catalogue for the AIP homepage. */
.insight-section {
  padding: clamp(64px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse at 18% 10%, rgba(37, 99, 235, .085), transparent 38%),
    var(--bg-secondary);
  scroll-margin-top: 76px;
}

.insight-intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.insight-intro .section-title {
  font-weight: 500;
  letter-spacing: -.035em;
  margin-bottom: 12px;
}

.insight-intro .section-subtitle {
  max-width: 650px;
  margin-bottom: 0;
}

.insight-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
}

.insight-column {
  min-width: 0;
  scroll-margin-top: 96px;
}

.insight-column-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.015em;
}

.insight-column-heading > span {
  color: #72a9ff;
  font: 500 .7rem/1 var(--sans);
  letter-spacing: .12em;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.insight-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(178, 202, 239, .13);
  border-radius: 6px;
  background: rgba(17, 25, 40, .72);
  transition: border-color .2s ease, background-color .2s ease;
}

.insight-toggle {
  display: flex;
  min-height: 49px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #e5edf9;
  text-align: left;
  font: 500 .91rem/1.35 var(--sans);
  letter-spacing: -.01em;
  cursor: pointer;
}

.insight-toggle > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.insight-section .insight-thumb {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(178, 202, 239, .2);
  border-radius: 4px;
  object-fit: cover;
  background: #202e42;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), border-color .2s ease;
}

.insight-section .insight-card:hover .insight-thumb {
  transform: scale(1.035);
  border-color: rgba(125, 177, 255, .55);
}

.insight-mark {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #8db9ff;
  opacity: .7;
}

.insight-mark::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0;
  content: "i";
}

.insight-detail {
  margin: 0;
  padding: 0 14px 14px;
  color: #bdcbe0;
  font-size: .84rem;
  line-height: 1.62;
  font-weight: 300;
  overflow-wrap: anywhere;
}

/* The Why AIP column borrows the insight interaction without changing its
   testimonial neighbour or the original section's spacing rules. */
.usp-left-col .usp-list {
  gap: 8px;
}

.usp-list .usp-item.insight-card {
  display: block;
  padding: 0;
  border: 1px solid rgba(178, 202, 239, .13);
  border-radius: 6px;
  background: rgba(17, 25, 40, .72);
}

.usp-list .usp-item.insight-card:first-child {
  border-top: 1px solid rgba(178, 202, 239, .13);
}

.usp-list .usp-item .usp-item-title.insight-toggle {
  display: flex;
  min-height: 49px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #e5edf9;
  text-align: left;
  font-family: var(--sans);
  font-size: .91rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
  cursor: pointer;
}

.usp-list .usp-item .usp-item-title.insight-toggle > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.usp-list .usp-item .usp-item-desc.insight-detail {
  color: #bdcbe0;
  font-size: .84rem;
  line-height: 1.62;
  font-weight: 300;
}

/* Without JavaScript every explanation remains in normal document flow. */
.insights-enhanced .insight-card {
  z-index: 0;
}

.insights-enhanced .insight-card.is-open {
  z-index: 5;
  border-color: rgba(99, 157, 255, .55);
  background: #15243a;
}

.insights-enhanced .insight-toggle {
  position: relative;
  z-index: 1;
}

.insights-enhanced .insight-detail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  padding: 15px 14px;
  border: 1px solid rgba(99, 157, 255, .55);
  border-radius: 6px;
  background: #14233a;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(11px);
  transition:
    opacity .24s ease,
    transform .34s cubic-bezier(.2, .8, .2, 1),
    visibility .24s;
}

.insights-enhanced .insight-card.is-open .insight-detail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.insights-enhanced .insight-toggle:focus-visible {
  outline: 2px solid #7db1ff;
  outline-offset: 2px;
}

@media (min-width: 820px) {
  .insight-columns {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: start;
  }
}

@media (max-width: 479px) {
  .insight-section {
    padding: 56px 0;
  }

  .insight-intro {
    margin-bottom: 32px;
  }

  .insight-columns {
    gap: 34px;
  }

  .insight-column-heading {
    font-size: 1rem;
  }

  .insight-toggle {
    min-height: 48px;
    gap: 9px;
    padding: 10px;
    font-size: .9rem;
  }

  .insight-section .insight-thumb {
    flex-basis: 54px;
    width: 54px;
    height: 38px;
  }

  .usp-list .usp-item .usp-item-title.insight-toggle {
    min-height: 48px;
    padding: 11px 12px;
    font-size: .9rem;
  }

  .insights-enhanced .insight-detail {
    padding: 14px 12px;
    font-size: .875rem;
    line-height: 1.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-card,
  .insight-section .insight-thumb,
  .insights-enhanced .insight-detail {
    transition: none !important;
  }
}
