/* =========================================================================
   O Estagiário — a página inicial (20/10/2026): o assistente em destaque, o método da profissão, as profissões e os
   agentes de documentos. Só a index.html usa este arquivo.
   Complementa o styles.css (mesmas variáveis e componentes); nada de estilo na página (CSP: style-src 'self').
   ========================================================================= */

/* ---------------------------- Herói ---------------------------- */
.hero-assist .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hero-assist h1 { font-size: clamp(2.25rem, 1.25rem + 3vw, 3.5rem); }
.hero-assist .lead { max-width: 40ch; }

/* ---------------------------- A tela do assistente (desenho) ---------------------------- */
.aw {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.45;
}
.aw-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding-left: 12px; background: #F3F5F9; border-bottom: 1px solid var(--line); }
.aw-bar-icon { width: 16px; height: 16px; border-radius: 4px; }
.aw-title { font-size: 12px; font-weight: 600; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-ctrls { margin-left: auto; display: flex; height: 100%; flex: none; }
.aw-ctrls i { position: relative; width: 44px; height: 100%; }
.aw-min::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: #5B6578; transform: translate(-50%, -50%); }
.aw-max::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: 1px solid #5B6578; border-radius: 2px; transform: translate(-50%, -50%); }
.aw-close::before, .aw-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: #5B6578; transform: translate(-50%, -50%) rotate(45deg); }
.aw-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.aw-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.aw-nav { padding: 10px 8px; }
.aw-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 18px 12px; }

.aw-head { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; min-height: 28px; }
.aw-head img { border-radius: 5px; }
.aw-menu { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: grid; align-content: center; justify-items: center; gap: 3px; width: 28px; height: 26px; border: 1px solid var(--line); border-radius: 6px; }
.aw-menu i { display: block; width: 12px; height: 1.5px; background: var(--ink); border-radius: 1px; }

.aw-prof { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.aw-prof-label { font-size: 12px; color: var(--muted); }
.aw-combo {
  display: inline-flex; align-items: center; gap: 8px; min-width: 220px; padding: 5px 10px; background: #fff;
  border: 1px solid #D5DCE7; border-bottom-color: #A9B4C5; border-radius: 6px; font-size: 13px; white-space: nowrap;
}
.aw-combo em { font-style: normal; font-size: 11px; color: var(--muted); }
.aw-combo svg { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: var(--body); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* A barra de ondas do assistente: só um desenho; parada com os efeitos de animação desligados. */
.aw-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 28px; }
.aw-wave i { display: block; width: 3px; height: 45%; border-radius: 2px; background: linear-gradient(var(--brand), #7FAEF7); animation: aw-wave 1.8s ease-in-out infinite; }
.aw-wave i:nth-child(odd) { height: 60%; }
.aw-wave i:nth-child(3n) { height: 85%; animation-delay: -.5s; }
.aw-wave i:nth-child(4n) { height: 35%; animation-delay: -.9s; }
.aw-wave i:nth-child(5n) { height: 100%; animation-delay: -1.3s; }
.aw-wave i:nth-child(7n) { height: 70%; animation-delay: -.2s; }
@keyframes aw-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

.aw-msgs { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.aw-attach { align-self: center; text-align: center; font-size: 11.5px; color: var(--muted); }
.aw-link { margin-left: 6px; color: var(--brand); font-weight: 600; }
.aw-msg { max-width: 86%; padding: 8px 11px 6px; border: 1px solid var(--line); border-radius: 8px; }
.aw-msg p { color: var(--ink); font-size: 13px; line-height: 1.5; }
.aw-user { align-self: flex-end; background: var(--brand-soft); border-color: #D6E4FD; }
.aw-bot { align-self: flex-start; background: #F7F9FC; }
.aw-time { display: block; margin-top: 2px; text-align: right; font-size: 10.5px; color: var(--muted); }

.aw-input { display: flex; align-items: stretch; gap: 8px; margin-top: 4px; }
.aw-field {
  flex: 1; min-width: 0; padding: 8px 10px; background: #fff; border: 1px solid #D5DCE7; border-bottom: 2px solid var(--brand);
  border-radius: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-btn { flex: none; display: grid; place-items: center; width: 40px; background: #F7F9FC; border: 1px solid #D5DCE7; border-radius: 6px; }
.aw-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aw-btn-mic { background: var(--brand); border-color: var(--brand); }
.aw-btn-mic svg { stroke: #fff; }
.aw-usage { text-align: center; font-size: 11px; color: var(--muted); }

/* ---------------------------- Faixa das profissões ---------------------------- */
.prof-band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.prof-line { max-width: 980px; margin-inline: auto; padding-block: 26px; text-align: center; text-wrap: balance; color: var(--muted); font-size: 1.0625rem; }
.prof-line span { color: var(--ink); font-weight: 600; }

/* Títulos com as linhas equilibradas (sem uma palavra sozinha na última linha). */
.hero h1, .section-head h2, .feature h2, .cta-inner h2 { text-wrap: balance; }
.section-sub, .lead { text-wrap: pretty; }

/* O rótulo acima do título num bloco de texto e imagem: a regra ".feature-text > p" do styles.css o deixava cinza. */
.feature-text > .eyebrow { color: var(--brand); margin-bottom: var(--s-4); }

/* ---------------------------- O método da profissão ---------------------------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.method-steps { display: grid; gap: 26px; counter-reset: passo; }
.method-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; counter-increment: passo; }
.method-steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 56px; bottom: -22px; width: 2px; background: var(--line); }
.method-ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.method-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.method-ico::after {
  content: counter(passo); position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.method-steps h3 { margin: 3px 0 6px; font-size: 1.125rem; }
.method-steps p { color: var(--body); font-size: .96875rem; }

.method-visual { position: sticky; top: 104px; }
.proof { display: grid; gap: 14px; margin: 0; }
.proof-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.proof-card .aw-msg { max-width: 94%; }
.proof-card .aw-msg p { font-size: .9375rem; line-height: 1.55; }
.proof-tag { align-self: center; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 700; }
mark.hl { padding: 0 2px; border-radius: 3px; color: inherit; }
.hl-a { background: #FFF1C2; box-shadow: inset 0 -2px 0 #F2C94C; }
.hl-b { background: #DDF5E6; box-shadow: inset 0 -2px 0 #3FB874; }

/* A linha do anexo que o programa escreve na conversa, centralizada, sem balão. */
.proof-card .aw-attach { font-size: .8125rem; }

/* O registro como a tela Conhecimento o mostra: cabeçalho, profissão, título, fonte, conferência e origem. */
.kb-card { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kb-title { margin-bottom: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kb-row { display: grid; gap: 3px; }
.kb-head { color: var(--ink); font-size: 1rem; }
.kb-line { color: var(--body); font-size: .8125rem; line-height: 1.45; }
.kb-muted { color: var(--muted); }
.kb-source { color: var(--brand-dark); }

.proof-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--body); font-size: .875rem; }
.proof-legend .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.dot-a { background: #F2C94C; }
.dot-b { background: #3FB874; }
.dot-c { background: var(--brand); }

.method-note { margin-top: clamp(36px, 4vw, 56px); padding: 20px 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); color: var(--body); font-size: 1rem; }
.method-note strong { color: var(--ink); font-weight: 600; }

/* ---------------------------- No dia a dia ---------------------------- */
.daily { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.mini-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.mini-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mini h3 { margin-bottom: 6px; font-size: 1.0625rem; }
.mini p { color: var(--body); font-size: .9375rem; }

.daily-visual { display: grid; justify-items: center; gap: 12px; }
.confirm { display: grid; gap: 10px; width: 100%; max-width: 400px; padding: 18px; background: #fff; border: 1px solid #9DBDF6; border-radius: 10px; box-shadow: var(--shadow-lg); color: var(--ink); }
.confirm-q { font-size: .9375rem; line-height: 1.45; }
.confirm-cap { color: var(--muted); font-size: .75rem; }
.confirm-preview { display: grid; gap: 4px; padding: 10px 12px; background: #FBFCFE; border: 1px solid var(--line); border-radius: 6px; color: var(--body); font-size: .8125rem; line-height: 1.45; }
.confirm-preview strong { color: var(--ink); letter-spacing: .02em; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-btn { padding: 7px 16px; background: #fff; border: 1px solid #D5DCE7; border-radius: 6px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.confirm-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.daily-caption { color: var(--muted); font-size: .9375rem; }
.assist-req { margin-top: 32px; text-align: center; color: var(--muted); font-size: .9375rem; }

/* ---------------------------- As profissões ---------------------------- */
.prof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prof-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prof-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.prof-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prof-card h3 { font-size: 1.0625rem; line-height: 1.25; }
.prof-card p { color: var(--body); font-size: .90625rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.chips li { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 600; line-height: 1.4; }
.prof-card-note { justify-content: center; background: var(--bg-alt); border-style: dashed; box-shadow: none; }

/* ---------------------------- Os agentes de documentos ---------------------------- */
.docs-window { width: 100%; max-width: 460px; }
.docs-window .win-content { padding: 20px 22px; }
.docs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.docs-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.docs-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 700; }
.docs-steps strong { display: block; color: var(--ink); font-size: 1rem; }
.docs-steps div span { display: block; margin-top: 2px; color: var(--body); font-size: .875rem; line-height: 1.5; }

/* ---------------------------- Segurança (seis itens) ---------------------------- */
.sec-grid.sec-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------- Responsivo ---------------------------- */
@media (max-width: 1180px) {
  .prof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Em três colunas, o cartão "Sem profissão escolhida" ocupa duas: a última linha fica completa. */
@media (max-width: 1180px) and (min-width: 961px) {
  .prof-card-note { grid-column: span 2; }
}
@media (max-width: 1040px) {
  .daily { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-assist .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-assist .hero-visual { order: 0; max-width: 620px; }
  .hero-assist .hero-glow { inset: -8% 0; }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method-visual { position: static; }
  .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-steps { grid-template-columns: minmax(0, 1fr); }
  .sec-grid.sec-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .daily-grid, .prof-grid, .sec-grid.sec-grid-6 { grid-template-columns: minmax(0, 1fr); }
}
/* Tela estreita: o desenho do assistente fica como o programa numa janela estreita — sem a coluna do menu. */
@media (max-width: 560px) {
  .aw-body { grid-template-columns: minmax(0, 1fr); }
  .aw-nav { display: none; }
  .aw-main { padding: 12px; }
  .aw-msg { max-width: 94%; }
  .aw-prof { flex-direction: column; gap: 4px; }
  .aw-combo { width: 100%; min-width: 0; }
  .aw-ctrls i { width: 34px; }
  .method-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .method-ico { width: 44px; height: 44px; }
  .method-steps li:not(:last-child)::before { left: 21px; top: 52px; }
}
@media (max-width: 480px) {
  .hero-assist .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .aw-wave i { animation: none; }
}
