/* ==========================================================================
   /ai-agent.html — page-specific styles
   --------------------------------------------------------------------------
   Namespace: .aig-*  (ai-agent — to avoid clash with the .ai-* one-offs
   that lived in the homepage AI section before it was relocated here).
   Reuses .page-hero / .lp-hero, .lp-shell, .sec__eyebrow / __h2 /
   __lede from sections.css. Hero-video chrome (.hero-media) is shared
   with /index.html and /composer.html via hero-video.js.

   Width discipline: every section on the page renders content inside a
   1200px shell with 48px horizontal padding (so 1104px content area at
   wide viewports). The default .page-hero / .sec wrappers from sections.css
   apply their own outer padding which would double-pad the inner shell —
   .aig-hero and .aig-section override that so the shell controls width
   alone, matching .aig-tinted-section.
   ========================================================================== */

/* Drop .page-hero's outer max-width + horizontal padding so .page-hero__inner
   (1200px + 48px) is the sole horizontal constraint. Without this the hero
   content area is ~48px narrower than every tinted section below it. */
.aig-hero.page-hero {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ---- Hero — 2-col layout (copy left, Simba video right) ---------------
   Mirrors the homepage AI section's right-column proportions: at the
   1200px shell width with 48px L/R padding, each column is ~552px,
   which renders the 2160×2160 Simba media at ~552×552 — same size the
   chat panel had on the homepage AI section. Stats strip sits below
   the grid, full-width. */

.aig-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.aig-hero__copy {
  display: flex;
  flex-direction: column;
}
.aig-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-600);
}
.aig-hero .page-hero__h1 {
  margin: 0 0 18px;
  max-width: none;
}
.aig-hero .page-hero__lede {
  max-width: none;
  margin: 0 0 28px;
}

/* Right column wrapper: relative for the absolute-positioned close (×)
   button, and 100% width so the .hero-media chrome (with width:100%)
   fills the column. The 1:1 aspect of the source image dictates the
   height naturally. */
.aig-hero__vis {
  position: relative;
  width: 100%;
}
/* Devops/dataops task bullets in the hero left column. Same teal-
   checkmark pattern as the .aig-scope "good at" card so the bullets
   read consistently with the rest of the page. */
.aig-hero__tasks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.aig-hero__tasks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}
.aig-hero__tasks strong {
  color: var(--color-navy-800);
  font-weight: 500;
}
.aig-hero__task-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-600);
  margin-top: 4px;
}
.aig-hero__task-icon svg { width: 12px; height: 12px; }

.aig-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

/* Light-bg buttons. */
.aig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.aig-btn--primary {
  background: var(--color-navy-800);
  color: white;
  border: 0.5px solid var(--color-navy-800);
}
.aig-btn--primary:hover {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
}
.aig-btn--secondary {
  background: var(--color-bg);
  color: var(--color-navy-800);
  border: 0.5px solid var(--color-border);
}
.aig-btn--secondary:hover { border-color: var(--color-navy-800); }

/* 4-stat strip. The "BYOK" stat uses --accent so the eye lands on it
   as the punchline after registering three big numbers. */
.aig-hero__stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 0.5px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.aig-hero__stat { display: flex; flex-direction: column; gap: 4px; }
.aig-hero__num {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-navy-800);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.aig-hero__num--accent { color: var(--color-teal-600); }
.aig-hero__label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ---- 2. Section wrappers (plain + tinted) ----------------------------- */

/* Plain section — full-bleed wrapper, .lp-shell inside controls horizontal
   width. Drop-in replacement for the generic .sec class on this page so
   all sections (plain, tinted, hero) share one 1104px content width. */
.aig-section {
  border-top: var(--border-thin);
  padding: 56px 0;
}
.aig-tinted-section {
  background: var(--color-bg-tint);
  border-top: var(--border-thin);
}
.aig-tinted-section__shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 48px;
}
.aig-challenge__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.aig-challenge__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
}
.aig-challenge__h {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-navy-800);
}
.aig-challenge__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 460px;
}
.aig-challenge__card {
  background: var(--color-bg);
  border: 0.5px solid #FCD7A1;
  border-left: 3px solid #F59E0B;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.aig-challenge__body {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.aig-challenge__body--strong {
  margin-bottom: 0;
  color: var(--color-navy-800);
  font-weight: 500;
}

/* ---- 3. Capability grid ----------------------------------------------- */

.aig-caps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.aig-cap {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.aig-cap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-teal-50);
  color: var(--color-teal-900);
  margin-bottom: 14px;
}
.aig-cap__icon svg { width: 16px; height: 16px; }
.aig-cap__h {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.aig-cap__d {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---- 4. Three ways to use Simba (tinted bg) -------------------------- */

.aig-use__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.aig-use-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.aig-use-card__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.aig-use-card__h {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.aig-use-card__d {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex: 1;
}
.aig-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-teal-900);
  text-decoration: none;
  align-self: flex-start;
}
.aig-link:hover { text-decoration: underline; }

/* ---- 5. What Simba is and isn't -------------------------------------- */

.aig-scope__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.aig-scope-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
/* Good-at: green left border (positive). Limit: gray left border —
   deliberately NOT red, the framing is "isn't trying to" not "can't". */
.aig-scope-card--good  { border-left: 3px solid var(--color-teal-600); }
.aig-scope-card--limit { border-left: 3px solid var(--color-text-tertiary); }
.aig-scope-card__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.aig-scope-card__eyebrow--good { color: var(--color-teal-1000); }

/* base.css zeroes list-style globally; restore via flex+icon. */
.aig-scope__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}
.aig-scope__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
}
.aig-scope__list--limit li { padding: 8px 0; }
.aig-scope__list--limit strong {
  color: var(--color-navy-800);
  font-weight: 500;
}
.aig-scope__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-600);
  margin-top: 3px;
}
.aig-scope__check svg { width: 12px; height: 12px; }
.aig-scope__x {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.aig-scope__x svg { width: 14px; height: 14px; }

/* ---- 6. How Simba handles your data (tinted bg) --------------------- */

.aig-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.aig-trust-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.aig-trust-card__h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.aig-trust-card__d {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex: 1;
}

/* ---- 7. FAQ ----------------------------------------------------------- */

.aig-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.aig-faq__item {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.aig-faq__q {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.aig-faq__a {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.aig-faq__a:last-child { margin-bottom: 0; }

/* ---- 8. Footer CTA (dark navy) --------------------------------------- */

.aig-dark-section { background: var(--color-navy-800); }
.aig-dark-section__shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 48px;
}
.aig-cta__h {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: white;
}
.aig-cta__lede {
  margin: 0 0 24px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-on-navy-muted);
}
.aig-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aig-dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.aig-dark-btn--primary {
  background: white;
  color: var(--color-navy-800);
  border: 0.5px solid white;
}
.aig-dark-btn--primary:hover { background: var(--color-bg-tint); }
.aig-dark-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.aig-dark-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

/* ---- Section rhythm --------------------------------------------------- */

.aig-caps .sec__lede,
.aig-use .sec__lede,
.aig-scope .sec__lede,
.aig-trust .sec__lede,
.aig-faq .sec__lede {
  max-width: 820px;
  margin: 12px 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 1000px) {
  /* Hero collapses to single column — copy on top, video below. The
     square video is capped at 480px so it doesn't overpower a tablet
     viewport. */
  .aig-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aig-hero__vis { max-width: 480px; }

  .aig-caps__grid,
  .aig-use__grid,
  .aig-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aig-challenge__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .aig-hero .page-hero__inner { padding-left: 24px; padding-right: 24px; }
  .aig-hero__cta { flex-direction: column; align-items: stretch; }
  .aig-btn { justify-content: center; }
  .aig-hero__vis { max-width: 100%; }
  .aig-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aig-caps__grid,
  .aig-use__grid,
  .aig-trust__grid,
  .aig-scope__grid { grid-template-columns: 1fr; }
  .aig-tinted-section__shell { padding: 40px 20px; }
  .aig-dark-section__shell { padding: 48px 20px; }
}
