/* Peças visuais compartilhadas pela página principal e pelas páginas de ramo:
   celular com conversa (ilustrativa), vídeo do herói, barra fixa de contato e mini funil (exemplo). */

/* Celular */
.celular { width: 300px; max-width: 100%; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #111b21; }
.celular-corpo { position: relative; padding: 11px; border-radius: 48px; background: linear-gradient(150deg, #3a3a3f 0%, #121214 38%, #1d1d20 100%);
  box-shadow: inset 0 0 0 1.5px #4a4a50, inset 0 0 0 4px #0b0b0c, 0 50px 90px -40px rgba(60, 22, 0, .65), 0 18px 36px -18px rgba(0, 0, 0, .5); }
.celular-corpo::before, .celular-corpo::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a2e; }
.celular-corpo::before { left: -3px; top: 120px; height: 56px; box-shadow: 0 72px 0 #2a2a2e; }
.celular-corpo::after { right: -3px; top: 150px; height: 84px; }
.celular-tela { position: relative; display: flex; flex-direction: column; height: 600px; overflow: hidden; border-radius: 38px; background: #efe7de; }
.celular-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px 0 30px; font-size: 14px; font-weight: 600; background: #f7f7f7; }
.celular-ilha { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.celular-sinais { display: inline-flex; align-items: center; gap: 5px; }
.celular-sinais i { display: inline-block; width: 3px; background: #111; border-radius: 1px; }
.celular-sinais i:nth-child(1) { height: 4px; } .celular-sinais i:nth-child(2) { height: 6px; } .celular-sinais i:nth-child(3) { height: 8px; } .celular-sinais i:nth-child(4) { height: 10px; }
.celular-sinais b { position: relative; display: inline-block; width: 22px; height: 11px; margin-left: 4px; border: 1.5px solid #111; border-radius: 3px; }
.celular-sinais b::before { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: #111; border-radius: 1px; }
.celular-sinais b::after { content: ""; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 4px; background: #111; border-radius: 0 1px 1px 0; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; background: #f7f7f7; border-bottom: 1px solid #e2e2e2; }
.chat-topo svg { flex: 0 0 auto; color: #0a7cff; }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, #ffb27a, #e0601c); color: #fff; font-weight: 700; font-size: 15px; }
.chat-topo b { display: block; font-size: 15px; line-height: 1.2; }
.celular .chat-topo small { display: block; margin: 0; font-size: 12px; color: #667781; }
.chat-corpo { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px; overflow: hidden;
  background: linear-gradient(rgba(239, 231, 222, .9), rgba(239, 231, 222, .9)), var(--chat-fundo, none) center / 420px auto; }
.chat-dia { align-self: center; margin-top: auto; margin-bottom: 4px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 12px; color: #54656f; box-shadow: 0 1px .5px rgba(0, 0, 0, .1); }
.balao { position: relative; max-width: 82%; margin: 0; padding: 6px 8px 7px 9px; border-radius: 10px; font-size: 14.5px; line-height: 1.34; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.balao time { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; white-space: nowrap; }
.balao.recebido { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.balao.enviado { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.balao.foto { padding: 3px; }
.balao.foto img { display: block; width: 168px; height: 118px; object-fit: cover; border-radius: 8px; }
.balao.foto time { position: absolute; right: 9px; bottom: 7px; float: none; margin: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lido { display: inline-block; width: 16px; height: 10px; margin-left: 3px; vertical-align: -1px; color: #53bdeb; }
.digitando { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 10px; border-top-left-radius: 3px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3a8; animation: digitando 1.2s infinite ease-in-out; }
.digitando i:nth-child(2) { animation-delay: .18s; } .digitando i:nth-child(3) { animation-delay: .36s; }
@keyframes digitando { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-barra { display: flex; align-items: center; gap: 8px; padding: 8px 10px 26px; background: #f7f7f7; }
.chat-barra span { flex: 1; height: 34px; padding: 0 14px; line-height: 34px; border-radius: 18px; background: #fff; border: 1px solid #e4e4e4; font-size: 14px; color: #8696a0; }
.chat-barra i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1daa61; color: #fff; }
.celular-tela::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 118px; height: 5px; border-radius: 3px; background: #111; transform: translateX(-50%); }
.celular figcaption { margin-top: 14px; font-size: 13px; color: #6b635c; text-align: center; font-family: "DM Sans", system-ui, sans-serif; }

/* A conversa acontece quando o celular aparece na tela. Sem JavaScript, tudo aparece de uma vez. */
.js-vitrine .celular .chat-corpo > * { opacity: 0; transform: translateY(10px) scale(.97); transform-origin: bottom left; }
.js-vitrine .celular .chat-corpo > .enviado { transform-origin: bottom right; }
.js-vitrine .celular.ativo .chat-corpo > * { animation: balao-entra .42s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 1s + .2s); }
@keyframes balao-entra { to { opacity: 1; transform: none; } }

/* Barra fixa de contato: sempre à mão */
.barra-fixa { position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; padding: 0;
  border-radius: 999px; background: none; }
.barra-fixa a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 700 16px/1 "DM Sans", system-ui, sans-serif; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.barra-fixa a:hover { filter: brightness(1.06); } .barra-fixa a:active { transform: scale(.97); }
.barra-fixa a:focus-visible { outline: 3px solid #ffb27a; outline-offset: 2px; }
.barra-fixa .bf-agendar { background: #fff; color: #15110c; box-shadow: 0 10px 28px -10px rgba(0,0,0,.35), inset 0 0 0 1.5px #15110c; }
.barra-fixa .bf-zap { background: #25D366; color: #062b14; box-shadow: 0 10px 28px -10px rgba(7, 94, 45, .55); }
.barra-fixa svg { flex: 0 0 auto; }
.barra-fixa { transition: opacity .25s ease, transform .25s ease; }
.barra-fixa.recolhida { visibility: hidden; opacity: 0; transform: translateY(16px); pointer-events: none; transition: none; }
body:has(.janela:not([hidden])) .barra-fixa { visibility: hidden; }
body:has(#privacidade-painel:not([hidden]):not(.privacidade-inicial)) .barra-fixa,
body:has(#privacidade-painel:not([hidden]) #privacidade-opcoes:not([hidden])) .barra-fixa { visibility: hidden; }
@media (max-width: 560px) {
  .barra-fixa { left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25); }
  .barra-fixa a { flex: 1; padding: 0 12px; font-size: 16px; }
  .barra-fixa .bf-mais { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .js-vitrine .celular .chat-corpo > * { opacity: 1; transform: none; animation: none !important; }
  .digitando i { animation: none; }
}

/* Vídeo no herói: capa, prévia muda quando a conexão permite e play que abre o vídeo completo com som. */
.video-heroi { position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b0806 center / cover no-repeat;
  box-shadow: 0 40px 80px -36px rgba(20, 10, 0, .55), 0 0 0 1px rgba(0, 0, 0, .06); isolation: isolate; }
.video-heroi video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-heroi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .72)); pointer-events: none; }
.video-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; width: 100%; padding: 20px; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font-family: "DM Sans", system-ui, sans-serif; }
.video-play .circulo-play { position: absolute; left: 50%; top: 44%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #15110c; transform: translate(-50%, -50%); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.video-play .circulo-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: onda 2.2s infinite; }
@keyframes onda { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.video-play:hover .circulo-play { transform: translate(-50%, -50%) scale(1.06); }
.video-play:focus-visible { outline: 3px solid #ffb27a; outline-offset: -6px; border-radius: 22px; }
.video-play[hidden] { display: none; }
.video-play b { font-size: 19px; line-height: 1.2; }
.video-play small { font-size: 14px; color: #e7dfd8; }
.janela-video { width: min(440px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: hidden; }
.janela-video::backdrop { background: rgba(0, 0, 0, .82); }
.janela-video video { display: block; width: 100%; max-height: 88vh; background: #000; }
.janela-video form { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.janela-video button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #000; font-size: 22px; line-height: 1; cursor: pointer; }
body:has(.janela-video[open]) .barra-fixa { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .video-play .circulo-play::before { animation: none; } }



/* Mini funil em trilhas (um desenho por ramo): fundo branco, cartões com ícones conhecidos, bolinhas laranja que afinam
   da esquerda para a direita; quem não segue sai por uma trilha cinza curta. Laranja só nas trilhas, bolinhas e selos. */
.mini-funil { margin: 32px 0 0; color: #15110c; font-family: "DM Sans", system-ui, sans-serif; }
.mf-desenho svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini-funil .mf-v { display: none; }
.mf-trilho { fill: none; stroke: #ffe3cf; stroke-linecap: round; }
.mf-trilha { fill: none; stroke: #ffb27a; stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.mf-saida { fill: none; stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.mf-bolas circle { fill: #ff8633; }
.mf-bolas circle.fora { fill: #b8afa7; }
.mf-ic { transition: transform .22s ease; transform-box: fill-box; transform-origin: center; }
.mf-ic.pulso { transform: scale(1.12); }
.mf-num { font: 400 40px "Bebas Neue", "DM Sans", sans-serif; fill: #15110c; font-variant-numeric: tabular-nums; }
.mf-rotulo { font: 600 15px "DM Sans", system-ui, sans-serif; fill: #3d3631; }
.mf-fonte-rotulo { font: 400 13px "DM Sans", system-ui, sans-serif; fill: #7a716a; }
.mini-funil figcaption { margin-top: 10px; font-size: 12px; color: #6f675f; }
.mf-selo { fill: #ff8633; stroke: #fff; stroke-width: 2.5; }
.mf-taxa rect { fill: #fff; stroke: #ff8633; stroke-width: 1.4; }
.mf-taxa text { font: 700 13px "DM Sans", system-ui, sans-serif; fill: #c2410c; }
.mf-num-fonte { font: 400 20px "Bebas Neue", "DM Sans", sans-serif; fill: #3d3631; font-variant-numeric: tabular-nums; }
.mf-alt { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.mf-alt b { font: 400 30px/1 "Bebas Neue", "DM Sans", sans-serif; margin-right: 4px; }
.js-vitrine .mf-alt { display: none; }
@media (max-width: 900px) {
  .mini-funil .mf-h { display: none; } .mini-funil .mf-v { display: block; }
  .mf-num { font-size: 40px; } .mf-rotulo { font-size: 15px; } .mf-fonte-rotulo { font-size: 13px; }
}

.mf-cal-folha { fill: #fff; stroke: #c9d6ee; stroke-width: 1.2; }
.mf-cal-faixa { fill: #4285F4; }
.mf-cal-argola { fill: #1a5fd0; }
.mf-cal-dia-q { fill: #4285F4; opacity: .85; }
.mf-ic.brilho { filter: drop-shadow(0 0 8px rgba(29, 170, 97, .75)); }
.mf-cifrao { font: 800 15px "DM Sans", system-ui, sans-serif; fill: #1daa61; }
.mf-robo-img { animation: mf-balanca 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; transition: filter .25s ease; filter: saturate(.85); }
.mf-robo.ativo .mf-robo-img { filter: saturate(1.15) brightness(1.08) drop-shadow(0 0 7px rgba(255, 134, 51, .85)); }
@keyframes mf-balanca { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mf-balao path { fill: #fff; stroke: #eadfd6; stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 3px 6px rgba(60, 25, 0, .12)); }
.mf-balao text { font: 600 12px "DM Sans", system-ui, sans-serif; fill: #3d3631; }
.mf-ponto { fill: #b8afa7; animation: mf-digita 1s ease-in-out infinite; }
@keyframes mf-digita { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mf-robo-img, .mf-ponto { animation: none; } }
/* Modo escuro da página principal (botão de tema): textos e ícones de traço do funil passam para tons claros. */
:root[data-tema="escuro"] .mini-funil { color: #f4efe9; }
:root[data-tema="escuro"] .mf-num { fill: #fff; }
:root[data-tema="escuro"] .mf-rotulo, :root[data-tema="escuro"] .mf-num-fonte { fill: #d6d1cc; }
:root[data-tema="escuro"] .mf-fonte-rotulo { fill: #b0a79f; }
:root[data-tema="escuro"] .mini-funil figcaption { color: #a39e98; }
:root[data-tema="escuro"] .mf-trilho { stroke: rgba(255, 134, 51, .32); }

/* Botão principal de WhatsApp na cor da marca (pedido do dono em 02/11/2026). */
.heroi .avaliar, .op #cta-heroi { background: #25D366; border-color: #25D366; color: #062b14; }
.heroi .avaliar:hover, .op #cta-heroi:hover { background: #20c35d; }

/* No computador, o aviso de privacidade fica à esquerda para não cobrir Agendar e WhatsApp da barra fixa (medido em 03/11). */
@media (min-width: 561px) { #privacidade-painel { inset: auto auto 20px 20px; } }
