/* Home do site v5: a primeira tela e os blocos. A primeira tela tem o título, o botão, o seletor de
   negócio e o cérebro no padrão H com a conversa (cerebro.css e cerebro.js, 19/11/2026). */
.cn-wrap { max-width: 1280px; margin: 0 auto; padding: 120px clamp(20px, 4vw, 48px) 96px; /* 96 embaixo: a sombra da tela do produto não é cortada pela borda da seção */ display: flex; flex-direction: column; align-items: center; }
.topo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
/* BRANDBOOK §5.2 e §14: display contemplativo. Peso 500 desde a página clara (24/11/2026): tinta sobre
   papel lê mais fina que luz sobre preto, e o 400 deixava o título sem segurar a tela do produto. */
.cn h1 { font-size: clamp(34px, 3.5vw, 54px); font-weight: 500; letter-spacing: -.032em; }
.cn h1 em { font-weight: 500; }
.botoes { justify-content: center; gap: 18px; margin-top: 4px; }
@media (min-width: 901px) {
  .cn-wrap { max-width: 1360px; padding-top: clamp(84px, 10vh, 120px); }
  .nav2 { top: clamp(12px, 2.6vh, 46px); }
  .topo { gap: clamp(8px, 1.4vh, 14px); }
}
/* tela baixa e larga: o título numa linha só */
@media (min-width: 1180px) and (max-height: 940px) { .cn h1 br { display: none; } }
@media (max-width: 900px) { .cn-wrap { padding-top: 96px; padding-bottom: 56px; } }

/* O seletor de negócio: uma frase com um menu ("Escolha o seu nicho [Vendas · Software]") */
.negocios { position: relative; z-index: 10; width: 100%; max-width: 1100px; margin-top: clamp(40px, 4.8vh, 56px); display: flex; justify-content: center; align-items: center; gap: 12px; }
.negocios > span { font-size: 16px; color: var(--fg1); }
.escolha { position: relative; z-index: 6; }
.escolha > button { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 13px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,15,16,.18), 0 4px 14px -8px rgba(10,15,16,.2); color: var(--fg0); font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .2s ease-out; }
.escolha > button svg { width: 17px; height: 17px; fill: none; stroke: var(--t300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.escolha > button .seta { width: 14px; height: 14px; stroke: var(--fg1); transition: transform .2s var(--entrar); }
.escolha > button[aria-expanded="true"] .seta { transform: rotate(180deg); }
.escolha > button .et { color: var(--fg2); font-weight: 500; }
@media (hover: hover) { .escolha > button:hover { background: #f8fbfa; } }
.escolha > button:focus-visible { outline: 2px solid var(--t300); outline-offset: 2px; }
@keyframes abre { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
.escolha [role="listbox"] { position: absolute; left: 50%; top: calc(100% + 8px); width: 560px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(10,15,16,.08), 0 24px 60px -12px rgba(10,15,16,.25); transform: translateX(-50%); transform-origin: top center; animation: abre .18s var(--entrar); }
.escolha [role="listbox"][hidden] { display: none; }
.escolha .col { display: flex; flex-direction: column; gap: 6px; }
.escolha .grupo p { margin: 6px 12px 4px; font: 500 12.5px/1.2 var(--sans); color: var(--fg2); }
.escolha [role="option"] { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--fg1); font: 500 14px/1 var(--sans); cursor: pointer; }
.escolha [role="option"] svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.escolha [role="option"]:hover, .escolha [role="option"][aria-selected="true"] { background: var(--realce); color: var(--fg0); }
.escolha [role="option"][aria-selected="true"] svg { stroke: var(--t300); }
.escolha [role="option"]:focus-visible { outline: 2px solid var(--t300); outline-offset: -2px; }
@media (max-width: 900px) {
  .negocios { flex-direction: column; gap: 8px; margin-top: 32px; }
  .escolha [role="listbox"] { width: min(340px, calc(100vw - 32px)); grid-template-columns: 1fr; max-height: 62vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .escolha [role="listbox"] { animation: none; } }
.nav2 .acts .b1 { transition: opacity .25s ease-out, transform .25s var(--entrar); }
.nav2.sem-cta .acts .b1 { opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .nav2 .acts .b1 { transition: none; } }

/* Texto estático que a busca e as IAs leem (proposta A do site, 13/11/2026): a linha sob o título
   e a seção "O que é a Ziala?". O que a animação do topo mostra também está aqui, em HTML. */
.topo-sub { margin: 0; max-width: 38em; text-align: center; font-size: clamp(14px, 1.9vh, 17px); line-height: 1.45; color: var(--fg2); text-wrap: balance; }
.oq .resp { max-width: 46em; font-size: 19px; line-height: 1.55; color: var(--fg1); }
.oq .exemplo { margin: 28px 0 0; font: 500 13.5px/1 var(--sans); color: var(--fg2); }
.oq .exemplo b { font-weight: 500; color: var(--fg1); }
.oq .h2b { margin-top: 144px; font-size: clamp(28px, 2.6vw, 38px); } /* o mesmo tamanho dos outros blocos (24/11/2026) */
/* "Como a Ziala funciona?": três conversas de WhatsApp em colunas iguais, alinhadas à grade das seis funções. */
.tres { margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; align-items: stretch; }
.tres > section { display: flex; flex-direction: column; }
.tres h3 { margin: 0 0 16px; font: 500 17px/1.3 var(--sans); color: var(--fg0); }
.tres h3 b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--t300); font: 500 12px/1 var(--mono); color: var(--t300); vertical-align: 1px; }
.tres .cx2 { position: relative; flex: 1; display: flex; flex-direction: column; }
.tres .cx2 > * { flex: 1; }
.tres .pf-msgs { padding: 14px 12px; gap: 8px; justify-content: flex-end; } /* a conversa assenta embaixo, junto do campo de mensagem, como no app: o cartão mais alto (o 2, com os botões de horário) não deixa vazio no fim dos outros (25/11/2026) */
.tres .pf-b { opacity: 1; transform: none; max-width: 90%; padding-top: 6px; padding-bottom: 5px; }
.tres .pf-b small { text-align: right; }
.tres .pf-b.dela { overflow-wrap: anywhere; }
.tres section + section .cx2::before { content: ''; position: absolute; left: -40px; top: 50%; width: 24px; height: 1px; background: var(--t300); opacity: .6; }
.tres section + section .cx2::after { content: ''; position: absolute; left: -21px; top: calc(50% - 3px); width: 7px; height: 7px; border-top: 1px solid var(--t300); border-right: 1px solid var(--t300); opacity: .75; transform: rotate(45deg); }
.tres .por { min-height: 3em; margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--fg2); text-wrap: pretty; }
.oq > .b1 { margin-top: 56px; }
/* altura da conversa mais longa entre os nichos (medida em 18/11/2026): trocar o nicho não faz o bloco pular */
@media (min-width: 901px) { .tres .pf-msgs { min-height: 420px; } }
/* selo de data e cartão do anúncio, no desenho do próprio WhatsApp (BRANDBOOK §14: a janela imita o app) */
.tres .pf-msgs { -webkit-mask-image: none; mask-image: none; }
/* no papel, a janela é do tema claro do WhatsApp (site.css) e ganha moldura de papel, não sombra preta */
.tres .pf-zap { box-shadow: 0 0 0 1px rgba(10,15,16,.1), 0 24px 48px -28px rgba(10,15,16,.45); }
.tres .pf-dia { align-self: center; margin: 0 0 4px; padding: 5px 10px; border-radius: 7px; background: var(--zap-selo); font-size: 11.5px; line-height: 1.2; color: var(--zap-sec); box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tres .pf-anuncio { margin: -2px -6px 6px; padding: 6px 8px; border-radius: 6px; background: var(--zap-cartao, rgba(0,0,0,.22)); border-left: 3px solid var(--zap-cita); }
.tres .pf-anuncio span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tres .pf-anuncio b { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--zap-texto); }
.tres .pf-anuncio small { margin: 0; text-align: left; font-size: 11px; color: var(--zap-sec); }
/* troca de nicho (como-funciona.js): a conversa some e volta, sem mexer na grade */
.tres .pf-msgs, .tres h3, .tres .por { transition: opacity .18s var(--entrar); }
.tres.troca .pf-msgs, .tres.troca h3, .tres.troca .por { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tres .pf-msgs, .tres h3, .tres .por { transition: none; } }
/* "O que a Ziala faz na sua conversa?" com prova (decisão do dono, 24/11/2026, depois de "essa parte
   está tão pobre"; textos dele): cada capacidade com uma prova em cima (trecho de conversa no tema claro
   do WhatsApp ou o estado do produto), a legenda do bastidor fora da janela, título de resultado e a frase
   do recurso. Os links internos são os mesmos. Proposta: docs/superpowers/specs/2026-11-24-o-que-a-ziala-faz/ */
.faz-sub { margin: 14px 0 0; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--fg2); }

.faz6 {
  margin: 36px 0 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.faz6 > li {
  padding: 16px 16px 22px; border: 0; border-radius: 18px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; /* subgrid: prova, legenda, título, frase e link na mesma linha em todos */
}
.faz6 > li > b { margin-top: 14px; padding: 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--fg0); text-wrap: balance; }
.faz6 > li > p { margin: 8px 0 0; padding: 0 6px; font-size: 14.5px; line-height: 1.55; color: var(--fg2); }
.faz6 > li > a { margin-top: 10px; padding: 4px 6px; min-height: 24px; justify-self: start; font-size: 14px; color: var(--fg1); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.faz6 > li > a:hover { color: var(--fg0); text-decoration-color: var(--fg1); } /* alvo de toque de 24 px ou mais */

/* a prova: mesma altura em todos os cartões, para os títulos começarem na mesma linha */
.prova { height: 270px; border-radius: 12px; overflow: hidden; position: relative; }

/* trecho de conversa no tema claro do WhatsApp (as mesmas cores --zap-* do site) */
.prova.zap {
  --zap-fundo: #f5f1eb; --zap-in: #ffffff; --zap-out: #d9fdd3; --zap-texto: #0a0a0a; --zap-hora: rgba(0,0,0,.6); --zap-lido: #007bfc; --zap-selo: rgba(255,255,255,.9);
  background: var(--zap-fundo) url("/v5/rabiscos-claro.svg") 0 0 / 260px 260px repeat;
  padding: 50px 12px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.pz, .pz-botoes, .pz-sis, .pz-agenda { flex-shrink: 0; }
.pz { max-width: 86%; padding: 5px 9px 4px; border-radius: 8px; font-size: 12px; line-height: 1.35; color: var(--zap-texto); box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.pz.cli { align-self: flex-start; background: var(--zap-in); }
.pz.dela { align-self: flex-end; background: var(--zap-out); }
.pz small { display: block; margin-top: 1px; text-align: right; font-size: 10px; color: var(--zap-hora); }
.pz small b { font-weight: 400; color: var(--zap-lido); letter-spacing: -2px; }
.pz .audio { display: inline-flex; align-items: center; gap: 2px; }
.pz .audio svg { width: 14px; height: 14px; margin-right: 6px; fill: #6b7175; }
.pz .audio i { display: block; width: 2px; border-radius: 1px; background: #9aa1a5; }
.pz .audio i:nth-child(3n+2) { height: 14px; } .pz .audio i:nth-child(3n) { height: 8px; } .pz .audio i:nth-child(3n+1) { height: 11px; }
.pz .audio em { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--zap-hora); }
/* o cabeçalho do app no topo da prova (nome e "online"), como a janela do topo da home */
.pz-cab { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f7f5f3; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 12.5px; color: #0a0a0a; }
.pz-cab small { display: block; font-size: 10px; color: rgba(0,0,0,.6); }
.pz-av { width: 24px; height: 24px; border-radius: 50%; background: #e9e5df url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='12.5' r='5.5' fill='%238d9599'/%3E%3Cpath d='M6.5 27c1.2-5 5-7.5 9.5-7.5s8.3 2.5 9.5 7.5z' fill='%238d9599'/%3E%3C/svg%3E") center / 100% no-repeat; }
/* a legenda do bastidor fica FORA da janela: a janela é só o que o cliente vê (BRANDBOOK §14) */
.prova-leg { margin: 8px 0 0; padding: 0 6px; font-size: 12.5px; line-height: 1.4; color: var(--fg2); }
/* botões de resposta do WhatsApp (mensagem interativa): é como o agente oferece até 3 horários
   (apps/api/.../scheduling/botoes-de-horario.ts); o botão fica preso embaixo da bolha, com a seta de
   resposta em verde (--WDS-content-action-emphasized #1B8755, lido no WhatsApp Web em 24/11/2026) */
.pz.dela.com-botoes, .pz-botoes { width: 84%; align-self: flex-end; }
.prova.zap:has(.pz-botoes) { padding-top: 44px; gap: 3px; } /* a cena da agenda é a mais alta: um pouco menos de respiro */
.pz.dela.com-botoes { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pz-botoes { display: grid; margin-top: -5px; border-radius: 0 0 8px 8px; overflow: hidden; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.pz-botoes span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 8px; background: var(--zap-out); border-top: 1px solid rgba(0,0,0,.08); font-size: 11.5px; font-weight: 500; color: #0a0a0a; }
.pz-botoes span::before { content: ''; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B8755' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4 2 8l4 4'/%3E%3Cpath d='M2 8h7a5 5 0 0 1 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pz-sis { align-self: center; margin-bottom: 2px; padding: 4px 9px; border-radius: 7px; background: var(--zap-selo); font-size: 11px; color: rgba(0,0,0,.6); box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.pz-agenda { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 5px 9px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,15,16,.12); font: 500 11.5px/1.2 var(--sans); color: var(--fg0); }
.pz-agenda svg { width: 13px; height: 13px; fill: none; stroke: var(--t300); stroke-width: 1.6; stroke-linecap: round; }

/* estado do produto, como o painel mostra (claro, tinta, petróleo só no essencial) */
.prova.painel { --fg2: #4f6264; background: #eef2f1; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; justify-content: center; font-family: var(--sans); }
.pp-topo { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pp-av { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; color: var(--fg1); }
.pp-topo b { display: block; font-size: 13.5px; font-weight: 500; color: var(--fg0); }
.pp-topo small { display: block; font-size: 11.5px; color: var(--fg2); }
.pp-etapa { padding: 4px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); font: 500 11.5px/1 var(--sans); color: var(--fg1); } /* estado em neutro: o petróleo não comunica estado */
.pp-campos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.pp-campos li { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--fg2); }
.pp-campos li:last-child { border-bottom: 0; }
.pp-campos li b { font-weight: 500; color: var(--fg0); }
.pp-res { padding: 4px 4px; } /* sem caixa dentro da caixa: o resumo fica direto na prova */
.pp-res-t { display: block; font: 600 12.5px/1.2 var(--sans); color: var(--fg0); }
.pp-res p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--fg1); }
.pp-res-c { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--fg2); }

.faz-nota { margin: 14px 0 0; font-size: 12.5px; color: var(--fg2); }
.faz-nota + .veja-h { margin-top: 10px; }

@media (max-width: 1100px) { .faz6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .faz6 { grid-template-columns: 1fr; gap: 14px; }
  .faz6 > li { padding: 12px 12px 18px; grid-row: auto; display: flex; flex-direction: column; } /* uma coluna: sem subgrid */
  .prova { height: auto; min-height: 150px; }
  .faz-sub { font-size: 16px; }
  /* no celular, só as três provas mais fortes (áudio, agenda, resumo): os seis títulos e links ficam */
  .faz6 > li.sem-prova-cel > .prova, .faz6 > li.sem-prova-cel > .prova-leg { display: none; }
  .faz6 > li.sem-prova-cel > b { margin-top: 0; }
}
/* medida de leitura (24/11/2026): a linha corria 160 caracteres no computador */
.veja-h { margin: 28px 0 0; max-width: 46em; font-size: 14.5px; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }
.veja-h a { color: var(--fg1); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .oq .resp { font-size: 17px; }
  .oq .h2b { margin-top: 72px; }
  .tres { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .tres > section, .tres > section:first-child, .tres > section:last-child { padding: 0; }
  .tres section + section .cx2::before, .tres section + section .cx2::after { content: none; }
  .tres .por { min-height: 0; }
}

/* ---------- Segurança e controle (decisão do dono, 25/11/2026) ----------
   Reaproveita o cartão com prova de "O que a Ziala faz" (.faz6, .prova, .pz, .pp-*) e só acrescenta
   a caixa de entrada com "Assumir conversa", o ponto de estado de Canais e a linha de dados. */
#confianca .sub { margin: 14px 0 0; max-width: 52em; text-wrap: balance; font-size: 17px; line-height: 1.55; color: var(--fg2); }
#confianca .selo { gap: 8px 10px; }
#confianca .selo span { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--fg1); }

/* 3 cartões: ficam em 3 colunas até 900px (2 colunas deixariam o terceiro sozinho) */
.faz6.seg3 { margin-top: 36px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .faz6.seg3 { grid-template-columns: 1fr; } }

/* Caixa de entrada: a conversa como o painel mostra, com o pedido de pessoa aberto */
.sg-inbox { justify-content: flex-start; gap: 10px; }
.sg-inbox .pp-topo { grid-template-columns: 30px 1fr auto; }
.sg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--t700); color: #fff; font: 500 12px/1 var(--sans); white-space: nowrap; }
.sg-btn svg, .sg-faixa svg, .sg-zap svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-faixa { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: #f6efdc; color: #5c4510; font-size: 12px; line-height: 1.4; }
.sg-faixa svg { margin-top: 1px; }
.sg-msgs { display: flex; flex-direction: column; gap: 6px; }
.sg-m { max-width: 86%; padding: 6px 9px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.sg-m.cli { align-self: flex-start; background: #fff; color: var(--fg0); box-shadow: inset 0 0 0 1px var(--line); }
.sg-m.dela { align-self: flex-end; background: #dfe9e7; color: var(--fg0); }
.sg-zap { color: var(--fg1); }
.sg-inbox .pp-topo small { white-space: nowrap; }
/* Estado com a palavra, como o painel mostra em Canais (BRANDBOOK §4.6.1): o verde de sucesso,
   nunca o petróleo */
.sg-ok { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4f9a3c; vertical-align: 1px; }
.sg-zap svg { width: 16px; height: 16px; }

/* A linha de dados: fato do contrato, sem cartão */
.seg-dados { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: var(--fg1); }
.seg-dados a { margin-left: 0; padding: 10px 2px; color: var(--fg1); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.seg-dados a:hover { color: var(--fg0); text-decoration-color: var(--fg1); }
.seg-dados + .faz-nota { margin-top: 8px; }

/* De 901 a 1100px a caixa de entrada aperta: some o telefone e o botão fica só com a mão */
@media (min-width: 901px) and (max-width: 1100px) {
  .sg-inbox .pp-topo small { display: none; }
  .sg-l2 { display: none; }
}
@media (max-width: 680px) {
  .sg-btn { padding: 6px 8px; }
}
