/* Agentes de IA — reusa as variáveis/paleta de ../styles.css (dark premium). */

.ag-wrap { max-width: 720px; padding-bottom: 40px; }

/* ---------- hero ---------- */
.ag-hero { text-align: center; padding: 40px 0 24px; }
.ag-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 16px; border-radius: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.ag-badge svg { width: 30px; height: 30px; }
.ag-hero h1 { margin: 0 0 10px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.ag-hero .subtitle { margin: 0 auto; max-width: 52ch; color: var(--muted); font-size: 1rem; }

/* ---------- como usar ---------- */
.ag-steps {
  display: grid; gap: 10px; margin: 0 0 26px; padding: 16px 18px; list-style: none;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  counter-reset: passo;
}
.ag-steps li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .92rem; color: var(--muted);
}
.ag-steps li::before {
  counter-increment: passo; content: counter(passo);
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .72rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.ag-steps b { color: var(--text); font-weight: 600; }

/* ---------- cards dos agentes ---------- */
.ag-list { display: grid; gap: 16px; }
.agente-card { padding: 20px; }

.agente-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.agente-ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.agente-ico svg { width: 21px; height: 21px; display: block; }
.agente-titles { display: grid; gap: 3px; }
.agente-titles h2 { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.agente-polo {
  justify-self: start;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px;
}

.agente-resumo { margin: 0 0 16px; font-size: .93rem; line-height: 1.55; }

.agente-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.agente-copy svg { width: 16px; height: 16px; flex: 0 0 auto; }
.agente-copy.is-copied { background: var(--wa); border-color: var(--wa); color: #04341a; }
.agente-toggle { font-weight: 600; }

/* bloco com o prompt inteiro — rola dentro de si, nunca empurra a página */
.agente-pre {
  margin: 14px 0 0; padding: 14px 15px; max-height: 340px; overflow: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; line-height: 1.6; color: var(--text);
  white-space: pre-wrap;   /* quebra as linhas longas do prompt */
  overflow-wrap: anywhere; /* nenhuma palavra estoura a largura no celular */
  -webkit-overflow-scrolling: touch;
}

/* ---------- aviso de revisão ---------- */
.ag-aviso {
  margin: 26px 0 0; padding: 15px 17px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: .88rem; line-height: 1.6; color: var(--muted);
}
.ag-aviso b { color: var(--text); }

@media (max-width: 640px) {
  .ag-hero { padding: 28px 0 20px; }
  .ag-hero h1 { font-size: 1.5rem; }
  .agente-card { padding: 17px; }
  .agente-actions .btn { flex: 1 1 100%; }
  .agente-pre { font-size: .76rem; max-height: 300px; }
}
