/* Seção "Como um agente funciona" (P1: A4+A5+A6+A7). Prefixo #root para
   vencer o bundle agents-current.css. Tokens locais. */
.agents-v4-shell {
  --intro-section: clamp(64px, 8vw, 120px);
  --intro-gutter: clamp(20px, 5.3vw, 80px);
}

#root .agent-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: var(--intro-section) var(--intro-gutter);
}

#root .agent-intro__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
  max-width: 1280px;
}

#root .agent-intro__section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

#root .agent-intro__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 900px;
}

#root .agent-intro__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.7vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

#root .agent-intro__subline {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 34px;
  color: var(--ink-body);
}

/* Três pontos · cards de vidro (mesmo vocabulário dos cards de
   Treinamentos/Consultoria) com ícone de traço e detalhe laranja. */
#root .agent-intro__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#root .agent-intro__point {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 30px 20px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(244, 242, 242, 0.34)),
    color-mix(in srgb, var(--cream) 44%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(46, 42, 35, 0.035),
    0 14px 38px rgba(28, 25, 23, 0.065),
    0 2px 8px rgba(28, 25, 23, 0.03);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#root .agent-intro__point:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 48px rgba(28, 25, 23, 0.09),
    0 3px 10px rgba(28, 25, 23, 0.04);
}

#root .agent-intro__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  color: var(--ink-strong);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 180ms ease, transform 180ms ease;
}

#root .agent-intro__icon-accent { color: var(--orange); }
#root .agent-intro__icon-dot { fill: currentColor; stroke: none; }

#root .agent-intro__point:hover .agent-intro__icon {
  color: var(--orange);
  transform: translateY(-2px);
}

#root .agent-intro__point-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  white-space: nowrap;
}

#root .agent-intro__point-body {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.52;
  letter-spacing: -0.012em;
  color: var(--ink-muted);
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  #root .agent-intro__point, #root .agent-intro__icon { transition: none; }
  #root .agent-intro__point:hover { transform: none; }
}

/* Bloco dos agentes aninhado (carrossel + timeline do bundle) */
#root .agent-intro .agent-display {
  padding: 8px 0 0;
  overflow: visible;
  isolation: auto;
}

#root .agent-intro .agent-display .container {
  padding: 0;
}

#root .agent-display__head {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 28px;
}

#root .agent-intro__subhead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 38px;
  color: var(--ink);
}

#root .agent-display__foot {
  width: 100%;
  max-width: 960px;
  margin: 36px auto 0;
}

#root .agent-intro__note {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-body);
}

/* Abaixo de 1280 os três títulos não cabem em uma linha lado a lado:
   os cards viram linhas, ícone à esquerda, título ao lado. */
@media (width <= 1279px) {
  #root .agent-intro__points {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #root .agent-intro__point {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    justify-items: start;
    align-items: center;
    padding: 20px 22px;
    border-radius: 18px;
    text-align: left;
  }
  #root .agent-intro__icon { width: 36px; height: 36px; margin: 0; grid-row: span 2; }
  #root .agent-intro__point-title { font-size: 18px; }
}

@media (width <= 640px) {
  #root .agent-intro__inner { gap: 32px; }
  #root .agent-intro__section-header { gap: 20px; }
  #root .agent-intro__header { gap: 16px; max-width: 100%; }
  #root .agent-intro__headline { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
  #root .agent-intro__subline { font-size: 16px; line-height: 24px; }
  #root .agent-intro__point { padding: 18px 20px; }
  #root .agent-intro__point-title { font-size: 17px; white-space: normal; }
  #root .agent-intro__point-body { font-size: 14px; max-width: none; }
  #root .agent-display__head { margin-bottom: 20px; }
  #root .agent-intro__subhead { font-size: 24px; line-height: 30px; }
  #root .agent-display__foot { margin-top: 28px; }
  #root .agent-intro__note { font-size: 14px; line-height: 22px; }
}

/* A14 (03/09): etapas do método sem H3; o rótulo vira o título do card */
#root .step-card__label { margin: 0; color: var(--ink); font-weight: 700; }
