/* Evolução da home: mantém os tokens e componentes de styles.css. */
section[id] { scroll-margin-top: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.diferenciais-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.diferenciais-grid article { border-top: 1px solid var(--borda-clara); padding-top: 24px; }
.diferenciais-grid svg { width: 24px; color: var(--azul-claro); margin-bottom: 20px; }
.diferenciais-grid h3, .problema-row h3, .processo-list h3 { font-size: 1.05rem; margin-bottom: 10px; }
.diferenciais-grid p, .problema-row p, .processo-list p { color: var(--texto-corpo); font-size: .9rem; line-height: 1.8; }
.problemas, .evolucao { background: var(--bg-equipe); }
.problemas-list { max-width: 980px; margin: auto; }
.problema-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 32px; padding: 28px 0; border-top: 1px solid var(--borda-clara); }
.problema-row > svg { color: var(--azul-claro); }
.problema-row .section-label { margin-bottom: 8px; }
.processo-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.processo-list li { position: relative; }
.processo-list li:not(:last-child)::after { content: ''; position: absolute; height: 1px; background: var(--borda-clara); top: 23px; left: 58px; right: -12px; }
.processo-num { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--azul-claro); border-radius: 50%; color: var(--azul-claro); font-weight: 600; margin-bottom: 24px; }
.produtos-list { display: grid; gap: 72px; }
.produto-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.produto-row:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.produto-row:nth-child(even) .produto-info { order: 2; }
.produto-info h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.35; margin-bottom: 20px; }
.produto-info p { color: var(--texto-corpo); margin-bottom: 16px; }
.produto-info .link-externo { margin-top: 8px; }
.produto-visual { border: 1px solid var(--borda-clara); border-radius: var(--raio-borda-grande); overflow: hidden; background: var(--bg-membro-card); box-shadow: var(--sombra-suave); }
.produto-logo { height: 60px; max-width: 180px; object-fit: contain; margin: 16px 24px; }
.produto-screenshot { width: 100%; height: auto; border-block: 1px solid var(--borda-clara); }
.produto-visual figcaption { font-size: .75rem; color: var(--texto-secundario); padding: 16px 24px; }
.produto-identidade > img { width: 100%; height: auto; padding: 28px; background: #fff; }
.projeto:focus-within { border-color: var(--azul-claro); }
.projeto-img { transition: transform .3s ease; }
.projeto:hover .projeto-img { transform: scale(1.025); }
.planos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plano-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--borda-clara); border-radius: var(--raio-borda-grande); background: var(--bg-membro-card); box-shadow: var(--sombra-suave); }
.plano-destaque { border-color: var(--azul-claro); }
.plano-identificacao { position: relative; padding-top: 32px; min-height: 145px; }
.plano-identificacao h3 { font-size: 1.3rem; margin-bottom: 10px; }
.plano-identificacao p { color: var(--texto-secundario); font-size: .9rem; }
.plano-recomendado { position: absolute; top: 0; color: var(--azul-claro); font-size: .75rem; font-weight: 600; }
.plano-valor { margin: 28px 0; padding-bottom: 24px; border-bottom: 1px solid var(--borda-clara); }
.plano-valor span { display: block; font-size: .8rem; color: var(--texto-secundario); }
.plano-valor strong { display: block; font-size: clamp(1.65rem, 2.5vw, 2rem); }
.plano-card ul { display: grid; gap: 16px; margin-bottom: 32px; }
.plano-card li { display: flex; gap: 10px; font-size: .9rem; color: var(--texto-corpo); }
.plano-card li svg { flex: 0 0 18px; color: var(--azul-claro); width: 18px; height: 22px; }
.plano-card .btn { margin-top: auto; padding-inline: 12px; white-space: normal; text-align: center; }
.planos-nota { text-align: center; max-width: 720px; margin: 28px auto 0; color: var(--texto-secundario); font-size: .9rem; }
.evolucao-content { max-width: 780px; margin: auto; text-align: center; color: var(--texto-corpo); }
.evolucao-content p { margin-bottom: 24px; }
.faq-list { max-width: 860px; margin: auto; }
.faq-item { border-bottom: 1px solid var(--borda-clara); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 500; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; flex-shrink: 0; color: var(--azul-claro); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { color: var(--texto-corpo); padding: 0 32px 24px 0; }
/* Pequenos ajustes nos componentes originais. */
.hero-content, .hero-visual, .sobre-content, .cta-content, .solucao-info { min-width: 0; }
.hero-container { padding-inline: clamp(24px, 6vw, 80px); }
.hero-visual { max-width: 100%; }
.review-cta { grid-column: 1 / -1; margin-top: 0; }
.footer-contact li { overflow-wrap: anywhere; }
.footer-contact svg { flex-shrink: 0; }
.link-externo { flex-wrap: wrap; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Assistente: cores herdadas do tema, janela sem bloquear a página. */
.polvinho-launcher { position: fixed; z-index: 1100; right: 24px; bottom: max(16px, env(safe-area-inset-bottom)); width: 72px; height: 72px; border-radius: 50%; background: var(--bg-membro-card); border: 1px solid var(--borda-clara); box-shadow: var(--sombra-media); }
.polvinho-launcher img { animation: polvinho-float 5s ease-in-out infinite; }
.polvinho-status { position: absolute; right: 3px; bottom: 5px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg-membro-card); }
.polvinho-tooltip { position: absolute; bottom: calc(100% + 12px); right: 0; white-space: nowrap; padding: 8px 12px; border-radius: 8px; background: var(--bg-membro-card); border: 1px solid var(--borda-clara); box-shadow: var(--sombra-suave); font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.polvinho-launcher:hover .polvinho-tooltip, .polvinho-launcher:focus-visible .polvinho-tooltip { opacity: 1; }
.polvinho-chat { position: fixed; z-index: 1101; right: 24px; bottom: max(100px, calc(88px + env(safe-area-inset-bottom))); width: 390px; max-width: calc(100% - 24px); height: 570px; max-height: calc(100dvh - 116px); display: flex; flex-direction: column; background: var(--bg-membro-card); border: 1px solid var(--borda-clara); border-radius: 16px; box-shadow: var(--sombra-media); overflow: hidden; animation: chat-enter .2s ease; }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 14px 12px; background: var(--azul-escuro); color: #fff; flex-shrink: 0; }
.chat-header > img { flex-shrink: 0; }
.chat-heading { flex: 1; min-width: 0; }
.chat-heading h2 { font-size: 1rem; }
.chat-heading p { font-size: .65rem; }
.chat-online { display: block; color: #a7f3d0; font-size: .6rem; margin-top: 3px; }
.chat-header button { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.chat-header button:hover { background: #ffffff20; }
.chat-header svg { width: 18px; }
.chat-messages { flex: 1; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 92%; padding: 12px; border-radius: 12px 12px 12px 2px; background: var(--bg-equipe); border: 1px solid var(--borda-clara); font-size: .8rem; overflow-wrap: anywhere; flex-shrink: 0; }
.chat-message p { white-space: pre-wrap; }
.chat-message time { display: block; text-align: right; font-size: .65rem; color: var(--texto-secundario); margin-top: 6px; }
.chat-message--user { align-self: flex-end; border-radius: 12px 12px 2px 12px; background: var(--azul-escuro); color: #fff; }
.chat-message--user time { color: #b6cce4; }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-links a { color: var(--azul-claro); text-decoration: underline; text-underline-offset: 3px; }
.chat-typing { padding: 4px 16px; font-size: .7rem; color: var(--texto-secundario); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--borda-clara); max-height: 124px; overflow-y: auto; flex-shrink: 0; }
.chat-quick button { border: 1px solid var(--borda-clara); border-radius: 16px; padding: 6px 10px; font-size: .7rem; }
.chat-quick button:hover { border-color: var(--azul-claro); color: var(--azul-claro); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--borda-clara); flex-shrink: 0; }
.chat-form input { width: 100%; min-width: 0; border: 1px solid var(--borda-clara); border-radius: 8px; padding: 10px; font: inherit; font-size: 16px; color: var(--texto-escuro); background: var(--bg-sobre); }
.chat-form button { display: grid; place-items: center; width: 42px; border-radius: 8px; background: var(--azul-claro); color: #fff; flex-shrink: 0; }
.chat-form button:disabled, .chat-quick button:disabled { opacity: .5; cursor: wait; }
.chat-form svg { width: 20px; }
@keyframes polvinho-float { 50% { transform: translateY(-2px); } }
@keyframes chat-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
    .diferenciais-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .processo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .processo-list li:nth-child(3)::after { display: none; }
    .planos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plano-card { min-height: 520px; }
}
@media (min-width: 769px) and (max-width: 900px) {
    .nav-list, .nav-menu { gap: 12px; }
    .nav-link { font-size: .85rem; }
    .nav-cta { padding-inline: 12px; }
    .nav-actions { gap: 8px; }
}
@media (max-width: 768px) {
    .produto-row, .produto-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .produto-row:nth-child(even) .produto-info { order: 0; }
    .sobre-brand { position: static; }
    .nav-menu { visibility: hidden; }
    .nav-menu.active { visibility: visible; }
    .hero-container { padding-inline: 24px; padding-bottom: 76px; }
    .slider-arrow { top: auto; bottom: 14px; transform: none; }
    .portfolio-grid, .equipe-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}
@media (max-width: 600px) {
    .diferenciais-grid, .planos-grid { grid-template-columns: minmax(0, 1fr); }
    .plano-card { min-height: 500px; }
    .plano-identificacao { min-height: auto; }
    .processo-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .processo-list li { padding: 0 0 28px 66px; min-height: 112px; }
    .processo-num { position: absolute; left: 0; top: 0; margin: 0; }
    .processo-list li:not(:last-child)::after, .processo-list li:nth-child(3)::after { display: block; left: 22px; top: 54px; bottom: 8px; right: auto; height: auto; width: 1px; }
    .problema-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .problema-row > svg { transform: rotate(90deg); width: 20px; }
    .polvinho-launcher { width: 60px; height: 60px; right: 12px; }
    .polvinho-chat { right: 12px; bottom: max(88px, calc(76px + env(safe-area-inset-bottom))); max-height: calc(100dvh - 100px); }
    .cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
    .footer-bottom { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
