/* ======================================================================
   AI AGENTS — BESPOKE SOLUTION PAGE
   Graduated off the shared partials/solution-page.blade.php (still used
   only by White-Label now) into its own fully custom page, same tier as
   Insight 360X / DecisionDesk AI / Real-time BI / AI over BI. All copy
   is the real content the shared partial rendered — this file only
   changes presentation. Page-scoped .aga-* classes throughout.
   ====================================================================== */

.aga-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.aga-eyebrow-rule {
  width: 32px;
  height: 1px;
  background: var(--accent-1);
}

.aga-caps-head {
  max-width: 56ch;
}

.aga-section-title {
  max-width: 22ch;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent-2);
}

/* ============================ CAPABILITIES ==============================
   An automation log — six real capabilities each with a real outcome
   status (Automated / Escalated / Logged / Configured), not an icon
   grid. What an agent actually produces is a trail of resolved items,
   so the section shows exactly that. */

.aga-caps {
  padding: 100px 0 108px;
  background: #ffffff;
}

@media (max-width: 767px) {
  .aga-caps {
    padding: 76px 0 84px;
  }
}

.aga-caps-lede {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 45, 73, 0.65);
}

.aga-log {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  border-top: 1px solid #e5ebf1;
}

.aga-log__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #e5ebf1;
}

.aga-log__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.aga-log__icon svg {
  width: 16px;
  height: 16px;
}

.aga-log__icon--automated {
  background: rgba(35, 152, 91, 0.12);
  color: #178a53;
}

.aga-log__icon--escalated {
  background: rgba(204, 191, 147, 0.22);
  color: #8a6d1f;
}

.aga-log__icon--logged {
  background: rgba(15, 45, 73, 0.08);
  color: var(--accent-2);
}

.aga-log__icon--configured {
  background: rgba(15, 45, 73, 0.08);
  color: var(--accent-2);
}

.aga-log__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aga-log__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-2);
}

.aga-log__text {
  margin-top: 5px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 45, 73, 0.62);
}

.aga-log__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.aga-log__status--automated {
  background: rgba(35, 152, 91, 0.1);
  color: #178a53;
}

.aga-log__status--escalated {
  background: rgba(204, 191, 147, 0.22);
  color: #8a6d1f;
}

.aga-log__status--logged,
.aga-log__status--configured {
  background: rgba(15, 45, 73, 0.06);
  color: rgba(15, 45, 73, 0.6);
}

@media (min-width: 640px) {
  .aga-log__row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .aga-log__status {
    margin-top: 0;
  }
}

/* ============================ HOW IT WORKS ===============================
   Sticky intro beside a plain numbered list — no cards, no dot markers,
   no connecting line. Same grammar as AI over BI's How It Works. */

.aga-how {
  padding: 100px 0 108px;
  background: var(--page-bg);
}

@media (max-width: 767px) {
  .aga-how {
    padding: 76px 0 84px;
  }
}

.aga-how-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .aga-how-layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }

  .aga-how-intro {
    position: sticky;
    top: 120px;
  }
}

.aga-how-title {
  margin: 18px 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--accent-2);
}

.aga-how-lede {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 45, 73, 0.65);
}

.aga-how-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.aga-how-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 300ms ease;
}

.aga-how-cta:hover svg {
  transform: translateX(3px);
}

.aga-how-list {
  display: flex;
  flex-direction: column;
}

.aga-how-row {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid #e5ebf1;
}

.aga-how-list .aga-how-row:last-child {
  border-bottom: 1px solid #e5ebf1;
}

.aga-how-row__num {
  flex: none;
  width: 44px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--accent-1);
}

.aga-how-row__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-2);
}

.aga-how-row__text {
  margin: 8px 0 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(15, 45, 73, 0.62);
}

.aga-how-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.aga-how-row__tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5ebf1;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 500;
}

/* ============================ WHO IT'S FOR ===============================
   Photo focus-cards — same grammar as About / Insight 360X / DecisionDesk
   AI / Real-time BI / AI over BI. */

.aga-who {
  padding: 100px 0 108px;
  background: #ffffff;
}

@media (max-width: 767px) {
  .aga-who {
    padding: 76px 0 84px;
  }
}

.aga-focus-grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .aga-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aga-focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--accent-2);
  background-image: var(--card-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.aga-focus-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 19, 31, 0.1) 0%,
    rgba(6, 19, 31, 0.1) 30%,
    rgba(6, 19, 31, 0.72) 62%,
    rgba(6, 19, 31, 0.96) 100%
  );
}

.aga-focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 31, 0);
  transition: background-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.aga-focus-card:hover::after {
  background: rgba(6, 19, 31, 0.16);
}

.aga-focus-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aga-focus-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.aga-focus-card__text {
  max-width: 32ch;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================ FAQ ========================================
   Left sticky intro + right accordion — same split-column grammar used
   across the other bespoke solution pages. */

.aga-faq {
  padding: 100px 0 108px;
  background: var(--page-bg);
}

@media (max-width: 767px) {
  .aga-faq {
    padding: 76px 0 84px;
  }
}

.aga-faq-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .aga-faq-layout {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }

  .aga-faq-intro {
    position: sticky;
    top: 120px;
  }
}

.aga-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.aga-faq-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 300ms ease;
}

.aga-faq-cta:hover svg {
  transform: translateX(3px);
}

.aga-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aga-faq-item {
  border: 1px solid #e5ebf1;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 250ms ease;
}

.aga-faq-item[open] {
  border-color: rgba(204, 191, 147, 0.5);
}

.aga-faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.aga-faq-item summary::-webkit-details-marker {
  display: none;
}

.aga-faq-item__figure {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-1);
}

.aga-faq-item__question {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}

.aga-faq-item__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-2);
  color: var(--accent-1);
}

.aga-faq-item__icon svg {
  width: 16px;
  height: 16px;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aga-faq-item[open] .aga-faq-item__icon svg {
  transform: rotate(45deg);
}

.aga-faq-answer {
  margin: 0;
  padding: 0 24px 22px 58px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(15, 45, 73, 0.65);
}

/* ============================ FINAL CTA ==================================
   Same "point of the company" navy-gradient family as Insight 360X /
   DecisionDesk AI / Products / Real-time BI / AI over BI. */

.aga-point {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 130px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--accent-3) 0%, var(--accent-2) 55%, #0a1e33 100%);
}

.aga-point-arc {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 1;
  height: 70px;
  pointer-events: none;
}

.aga-point-arc svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .aga-point-arc {
    height: 40px;
  }
}

.aga-point__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aga-point__photo {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  background-color: #0f2d49;
  background-image: var(--img);
  background-position: center;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.aga-point__photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 42, 78, 0.5) 0%, rgba(0, 20, 38, 0.25) 100%);
  mix-blend-mode: multiply;
}

.aga-point__photo--tl { top: 14%; left: 6%; width: 210px; height: 270px; }
.aga-point__photo--tr { top: 10%; right: 7%; width: 190px; height: 150px; }
.aga-point__photo--bl { bottom: 12%; left: 8%; width: 220px; height: 140px; }
.aga-point__photo--br { bottom: 16%; right: 5%; width: 200px; height: 250px; }

@media (max-width: 1279px) {
  .aga-point__photo--tl { width: 170px; height: 220px; left: 20px; }
  .aga-point__photo--tr { width: 150px; height: 120px; right: 24px; }
  .aga-point__photo--bl { width: 170px; height: 110px; left: 24px; }
  .aga-point__photo--br { width: 160px; height: 200px; right: 20px; }
}

@media (max-width: 1023px) {
  .aga-point {
    padding: 96px 0;
  }

  .aga-point__media {
    display: none;
  }
}

.aga-point__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.aga-point__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.aga-point__eyebrow-icon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--accent-1);
}

.aga-point__title {
  margin: 22px auto 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.aga-point__lede {
  margin: 18px auto 0;
  max-width: 50ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.aga-point__alt {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.aga-point__alt a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aga-point__card {
  max-width: 560px;
  margin: 34px auto 0;
  text-align: left;
}

.aga-point__form-row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

@media (min-width: 480px) {
  .aga-point__form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aga-point__field--wide {
    grid-column: span 2;
  }
}

.aga-point__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aga-point__field span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.aga-point__field input {
  min-height: 34px;
  padding: 0 0 6px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  transition: border-color 220ms ease;
}

.aga-point__field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.aga-point__field input:focus {
  outline: none;
  border-color: var(--accent-1);
}

.aga-point__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 6px;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #d9cfae 0%, var(--accent-1) 100%);
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 600;
  transition: transform 300ms ease;
}

.aga-point__submit svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms ease;
}

.aga-point__submit:hover {
  transform: translateY(-2px);
}

.aga-point__submit:hover svg {
  transform: translateX(3px);
}

.aga-point__assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.aga-point__assurances li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
