/* Paginas dos agentes de IA (site/agente-ia-para-*.html).
   Complementa trilha.css: so o que a pagina de agente tem a mais —
   a conversa de exemplo, o aviso de privacidade, os passos e o FAQ.
   Tokens vem de trilha.css (:root). */

.hero-grid.agente { grid-template-columns: minmax(0, 1fr) 430px; }

.hero .emblema {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ambar);
  color: var(--petroleo);
}
.hero .emblema svg { width: 32px; height: 32px; }

/* Conversa no formato de aplicativo de mensagem. */
.chat {
  overflow: hidden;
  border: 1px solid rgba(251, 246, 236, 0.22);
  border-radius: 22px;
  background: var(--areia);
  color: var(--grafite);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.chat-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--petroleo);
  color: var(--papel);
}
.chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ambar);
  color: var(--petroleo);
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-quem strong {
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}
.chat-quem span { color: rgba(251, 246, 236, 0.75); font-size: 0.8rem; }
.chat-selo {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.14);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chat-corpo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 16px;
}
.msg {
  position: relative;
  max-width: 88%;
  padding: 10px 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(9, 28, 33, 0.14);
}
.msg::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 14px;
}
.msg-eu {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: var(--petroleo);
  color: var(--papel);
}
.msg-eu::after {
  right: -7px;
  background: var(--petroleo);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.msg-agente {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
}
.msg-agente::after {
  left: -7px;
  background: #fff;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.msg ul { list-style: none; }
.msg li + li { margin-top: 5px; }
.msg-revisar {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--linha);
  color: var(--taupe);
  font-size: 0.84rem;
}
.chat-campo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 16px;
}
.chat-campo span:first-child {
  flex: 1;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--taupe);
  font-size: 0.88rem;
}
.chat-enviar {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ambar);
  color: var(--petroleo);
}
.chat-enviar svg { width: 20px; height: 20px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.campo {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--ambar-claro);
  color: var(--ambar-texto);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}

/* Sem checkout: "em breve" em contorno tracejado, sem cara de defeito. */
.botao[aria-disabled="true"] {
  border: 2px dashed var(--ambar);
  background: transparent;
  color: var(--ambar);
  cursor: default;
}
.botao[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.cta .botao[aria-disabled="true"] { color: var(--papel); }
.nav-links .nav-cta[aria-disabled="true"] {
  border: 2px dashed var(--petroleo);
  background: transparent;
  color: var(--petroleo);
  cursor: default;
}

/* O que preparar: lista em linhas, nome a esquerda e entrada a direita. */
.rotinas {
  margin-top: 30px;
  border-top: 1px solid var(--linha);
  list-style: none;
}
.rotinas li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--linha);
}
.rotina-nome { display: flex; align-items: baseline; gap: 16px; }
.rotina-num {
  color: var(--ambar-texto);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
}
.rotinas h3 {
  color: var(--petroleo);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}
.rotina-entrada span {
  display: block;
  color: var(--taupe);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rotina-entrada p { margin-top: 2px; color: var(--grafite); }

/* Como funciona */
.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
  list-style: none;
  counter-reset: passo;
}
.passos > li {
  padding: 26px;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: #fff;
  counter-increment: passo;
}
.passos > li::before {
  content: counter(passo);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--petroleo);
  color: var(--papel);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
}
.passos h3 { font-family: "Hanken Grotesk", sans-serif; font-size: 1.1rem; }
.passos p { margin-top: 6px; color: var(--taupe); font-size: 0.95rem; }
.checklist { margin-top: 8px; list-style: none; }
.checklist li {
  position: relative;
  padding: 0 0 0 26px;
  border: 0;
  background: none;
  color: var(--grafite);
  font-size: 0.93rem;
  counter-increment: none;
}
.checklist li + li { margin-top: 5px; }
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--verde);
  border-left: 2px solid var(--verde);
  transform: rotate(-45deg);
}

/* Exemplo completo: a mesma janela de chat, larga e sobre fundo claro. */
.exemplo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}
.leitura {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 14px;
  background: var(--petroleo-claro);
}
.leitura h3 {
  color: var(--petroleo);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.15rem;
}
.leitura dt { margin-top: 18px; color: var(--petroleo); font-weight: 700; font-size: 0.95rem; }
.leitura dt strong { font-weight: 800; }
.leitura dd { margin-top: 4px; color: var(--grafite); font-size: 0.9rem; }
.exemplo-chat .chat {
  border-color: var(--linha);
  box-shadow: var(--sombra);
}
.exemplo-chat .msg { max-width: 92%; }
.nota { margin-top: 14px; color: var(--taupe); font-size: 0.9rem; }

/* Aviso de privacidade, com o texto exato que o agente usa. Texto escuro
   sobre ambar: o ambar so aceita texto petroleo-escuro (contraste AA). */
.seguranca .aviso {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--ambar);
  color: var(--petroleo-escuro);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}
.aviso-rotulo {
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.limites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.limite {
  padding: 24px;
  border: 1px solid rgba(251, 246, 236, 0.16);
  border-radius: 14px;
  background: rgba(251, 246, 236, 0.05);
}
.limite h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.15rem;
}
.limite-sim h3 { color: #7fd6c9; }
.limite-nao h3 { color: var(--ambar); }
.limite-info h3 { color: var(--papel); }
.limite ul { margin-top: 12px; list-style: none; }
.limite li {
  position: relative;
  padding-left: 24px;
  color: rgba(251, 246, 236, 0.86);
  font-size: 0.95rem;
}
.limite li + li { margin-top: 8px; }
.limite li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}
.limite-sim li::before { content: "✓"; color: #7fd6c9; }
.limite-nao li::before { content: "✕"; color: var(--ambar); }
.limite p { margin-top: 12px; color: rgba(251, 246, 236, 0.86); font-size: 0.95rem; }

/* Perguntas frequentes: titulo a esquerda, perguntas a direita, +/- proprio. */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  color: var(--petroleo);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--petroleo-claro);
  color: var(--petroleo);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--petroleo); color: var(--papel); }
.faq summary:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
.faq details p { max-width: 62ch; padding: 0 2px 20px; color: var(--grafite); }

@media (max-width: 900px) {
  .hero-grid.agente { grid-template-columns: 1fr; }
  .exemplo-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .leitura { position: static; }
  .passos { grid-template-columns: 1fr; }
  .limites-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cruzado-grid { grid-template-columns: 1fr; }
  .rotinas li { grid-template-columns: 1fr; gap: 8px; }
  .rotina-entrada { padding-left: 38px; }
}
@media (max-width: 640px) {
  .chat-corpo { padding: 16px 14px 12px; }
  .hero .emblema { width: 48px; height: 48px; margin-bottom: 14px; }
  .hero .emblema svg { width: 24px; height: 24px; }
  .hero-acoes { flex-direction: column; align-items: stretch; }
  .hero-acoes .botao { width: 100%; }
  .msg { max-width: 94%; }
  .campo { white-space: normal; }
}
