/* ==========================================================================
   Evaluating Gateways — AI Gateway page.
   A 2-column layout: Sticky title on the left, a 10-question checklist on
   the right. Placed after the dark Rollout Guide section, this section uses
   a warm light background (#f7f6f2) to transition back to the page's baseline.
   Primary blue gradient is applied to the question numbers and kicker.
   Motion: scroll-reveal rise + stagger for list items.
   ========================================================================== */

.pg-eval {
  background-color: #f4f7fd;
  padding: 120px 0 140px;
}

.pg-eval__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

/* --- Left column: Sticky Title --- */
.pg-eval__left {
  position: sticky;
  top: 120px;
}

.pg-eval__kicker {
  font-family: "Cabin", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-eval__title {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #12140f;
  margin-top: 18px;
  max-width: 440px;
}

.pg-eval__subtitle {
  font-family: "Cabin", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  color: #5a5a5a;
  margin-top: 24px;
  max-width: 400px;
}

/* --- Right column: List --- */
.pg-eval__list {
  display: flex;
  flex-direction: column;
}

.pg-eval__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e6e4db;
  transition: transform 0.3s ease, padding-left 0.3s ease;
  cursor: default;
}

.pg-eval__item:first-child {
  padding-top: 0;
}

.pg-eval__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pg-eval__item:hover {
  transform: translateX(8px);
}

.pg-eval__num {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  background: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  width: 24px;
}

.pg-eval__text {
  font-family: "Cabin", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #12140f;
  transition: color 0.3s ease;
}

.pg-eval__item:hover .pg-eval__text {
  color: #0036fa;
}

/* --- scroll-reveal (site motion language) --- */
.pg-eval__left,
.pg-eval__item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.pg-eval__left.is-in,
.pg-eval__item.is-in {
  opacity: 1;
  transform: none;
}

/* We have 10 items. Add a subtle delay cascade */
.pg-eval__item.is-in:nth-child(1) { transition-delay: 0.05s; }
.pg-eval__item.is-in:nth-child(2) { transition-delay: 0.10s; }
.pg-eval__item.is-in:nth-child(3) { transition-delay: 0.15s; }
.pg-eval__item.is-in:nth-child(4) { transition-delay: 0.20s; }
.pg-eval__item.is-in:nth-child(5) { transition-delay: 0.25s; }
.pg-eval__item.is-in:nth-child(6) { transition-delay: 0.30s; }
.pg-eval__item.is-in:nth-child(7) { transition-delay: 0.35s; }
.pg-eval__item.is-in:nth-child(8) { transition-delay: 0.40s; }
.pg-eval__item.is-in:nth-child(9) { transition-delay: 0.45s; }
.pg-eval__item.is-in:nth-child(10) { transition-delay: 0.50s; }

/* In case of hover overlapping with the transform reveal,
   the hover transition takes over after 'is-in' because hover uses transform: translateX
   Wait, a hover transform on a revealed item needs careful handling so the item doesn't drop down. */
.pg-eval__item.is-in {
  transform: translateX(0); /* explicitly set X to 0 */
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.pg-eval__item.is-in:hover {
  transform: translateX(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


@media (prefers-reduced-motion: reduce) {
  .pg-eval__left,
  .pg-eval__item,
  .pg-eval__item.is-in:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- responsive --- */
@media (max-width: 1040px) {
  .pg-eval {
    padding: 88px 0;
  }
  .pg-eval__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .pg-eval__left {
    position: static;
  }
  .pg-eval__title {
    font-size: 32px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .pg-eval__title {
    font-size: 28px;
  }
  .pg-eval__text {
    font-size: 16px;
    line-height: 24px;
  }
  .pg-eval__item {
    padding: 20px 0;
  }
}
