/* ---------- Animação da abertura: site no ar → 1º no Google com avaliações → clientes chamando no WhatsApp ----------
   Tudo dentro de .hd usa medidas fixas (440 px de notebook). O hero-demo.js encolhe o conjunto com zoom pra caber
   e põe em --z quanto encolheu; a etiqueta da etapa cresce na mesma proporção pra continuar legível. */
.hero-demo { grid-column: 9 / 13; position: relative; z-index: 1; display: flex; align-items: flex-start; padding-top: 8px; }
.hd { --z: 1; flex: none; position: relative; width: 440px; height: 470px; font-family: Manrope, sans-serif; color: var(--ink); }

.hd-etapa { position: absolute; left: 0; top: 0; margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hd-etapa b { background: var(--ink); color: var(--bg); padding: 4px 10px; white-space: nowrap; transition: background .4s; }
.hd-etapa.is-verde b { background: var(--accent); }
.hd-etapa span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.35; }
.hd-passos { position: absolute; left: 0; top: 28px; display: flex; gap: 5px; }
.hd-passos i { width: 22px; height: 4px; background: #cdd5d8; transition: background .4s; }
.hd-passos i.is-on { background: var(--accent); }

/* Notebook na cor da marca. A tela fica sempre no mesmo lugar, pra o mouse e as janelas por cima continuarem alinhados. */
.hd-note { position: absolute; left: 0; top: 46px; width: 440px; }
.hd-note::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -20px; height: 22px; background: radial-gradient(closest-side, rgba(14,42,51,.28), transparent); z-index: -1; }
.hd-tela { position: relative; background: #0a1f26; border-radius: 16px 16px 0 0; padding: 12px 12px 14px; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px #1d3d47; }
.hd-tela::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; border-radius: 16px 16px 0 0; background: linear-gradient(rgba(255,255,255,.07), transparent); pointer-events: none; }
.hd-tela::before { content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 6px var(--accent-light); z-index: 1; }
.hd-nav { background: #fff; border-radius: 3px 3px 0 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.hd-nav i { width: 8px; height: 8px; border-radius: 50%; background: #dadce0; }
.hd-url { flex: 1; margin-left: 8px; height: 18px; background: #f1f3f4; border-radius: 9px; font-size: 11px; color: #3c4043; padding: 0 10px; display: flex; align-items: center; gap: 1px; }
.hd-cursor { width: 1px; height: 11px; background: #3c4043; animation: hd-pisca 1s steps(1) infinite; }
@keyframes hd-pisca { 50% { opacity: 0; } }
.hd-janela { position: relative; background: #fff; height: 248px; overflow: hidden; }
.hd-base { position: relative; height: 13px; margin: 0 -32px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#3a5c66 0, #1f3f49 18%, var(--ink) 60%, #081a20 100%); border-bottom: 2px solid var(--accent); }
.hd-base::before { content: ""; position: absolute; left: 32px; right: 32px; top: -3px; height: 3px; background: linear-gradient(#05141a, #12313a); }
.hd-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 84px; margin-left: -42px; height: 5px; background: #0a1f26; border-radius: 0 0 8px 8px; }

/* Ato 1: o site da empresa */
.hd-pag { position: absolute; inset: 0; padding: 12px 14px; transition: opacity .5s, transform .5s; }
.hd-pag > * { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.hd-pag > .is-on { opacity: 1; transform: none; }
.hd-cab { display: flex; justify-content: space-between; align-items: center; }
.hd-cab b { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.hd-cab b::before { content: ""; width: 14px; height: 14px; background: var(--accent); border-radius: 3px; }
.hd-cab span { font-size: 9px; font-weight: 700; color: var(--muted); }
.hd-topo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 14px; }
.hd-topo strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.hd-topo p { margin: 6px 0 10px; font-size: 9px; color: var(--muted); line-height: 1.35; }
.hd-botao { display: inline-flex; align-items: center; background: #25d366; color: #fff; font-size: 9px; font-weight: 800; padding: 7px 10px; border-radius: 4px; }
.hd-foto { border-radius: 4px; overflow: hidden; min-height: 104px; }
/* Fachada de um comércio qualquer no lugar da foto: placa, toldo, vitrine e porta com "aberto" */
.hd-foto svg { display: block; width: 100%; height: 100%; }
.hd-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hd-serv div { background: var(--bg); padding: 8px; font-size: 9px; font-weight: 800; }
.hd-serv div i { display: block; height: 4px; width: 70%; background: #c4d0d4; margin-top: 5px; }
.hd.is-google .hd-pag { opacity: 0; transform: translateX(-20px); }

/* Ato 2: a busca no Google, com a empresa em 1º */
.hd-goo { position: absolute; inset: 0; padding: 10px 14px; opacity: 0; transform: translateX(20px); transition: opacity .5s, transform .5s; }
.hd.is-google .hd-goo { opacity: 1; transform: none; }
.hd-busca { display: flex; align-items: center; gap: 10px; }
.hd-g { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.hd-g span:nth-child(1), .hd-g span:nth-child(4) { color: #4285f4; }
.hd-g span:nth-child(2), .hd-g span:nth-child(6) { color: #ea4335; }
.hd-g span:nth-child(3) { color: #fbbc05; }
.hd-g span:nth-child(5) { color: #34a853; }
.hd-campo { flex: 1; height: 24px; border: 1px solid #dadce0; border-radius: 12px; font-size: 10px; color: #202124; padding: 0 10px; display: flex; align-items: center; gap: 1px; }
.hd-mapa { height: 34px; margin-top: 8px; border-radius: 6px; background: linear-gradient(135deg, #e8eef0 25%, #dfe7ea 25%, #dfe7ea 50%, #e8eef0 50%, #e8eef0 75%, #dfe7ea 75%) 0 0 / 16px 16px; position: relative; }
.hd-mapa i { position: absolute; top: 9px; width: 10px; height: 10px; background: #d93025; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.hd-mapa i:nth-child(1) { left: 30%; background: var(--accent); width: 12px; height: 12px; top: 7px; }
.hd-mapa i:nth-child(2) { left: 55%; }
.hd-mapa i:nth-child(3) { left: 75%; }
.hd-lista { margin-top: 6px; }
.hd-res { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border: 1px solid #ececec; border-radius: 6px; margin-top: 5px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s, border-color .4s, background .4s; }
.hd-res.is-on { opacity: 1; transform: none; }
.hd-pos { grid-row: 1 / 3; font-size: 11px; font-weight: 800; color: #70757a; text-align: center; }
.hd-nome { font-size: 11px; font-weight: 700; color: #1a0dab; grid-column: 2; grid-row: 1; }
.hd-nota { font-size: 9px; color: #70757a; grid-column: 2; grid-row: 2; }
.hd-nota b { color: #e37400; }
.hd-acoes { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 4px; }
.hd-acoes span { font-size: 8px; font-weight: 800; border: 1px solid #dadce0; border-radius: 10px; padding: 3px 7px; color: #1a73e8; }
.hd-res.is-destaque { border-color: var(--accent); background: #f3fbf7; }
.hd-res.is-destaque .hd-pos { color: var(--accent-deep); }
.hd-acoes .hd-zap { background: #25d366; border-color: #25d366; color: #fff; transition: transform .15s, filter .15s; }
.hd-acoes .hd-zap.is-clique { transform: scale(.9); filter: brightness(.9); }
.hd-selo { display: none; font-size: 8px; font-weight: 800; color: #fff; background: var(--accent); padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.is-destaque .hd-selo { display: inline-block; }

/* Avaliações chegando por cima do Google */
.hd-aval { position: absolute; right: -40px; top: 222px; width: 190px; display: grid; gap: 6px; z-index: 5; }
.hd-aval div { background: #fff; padding: 8px 10px; box-shadow: 0 14px 28px -16px rgba(14,42,51,.55); border-left: 4px solid #fbbc05; font-size: 10px; line-height: 1.35; opacity: 0; transform: translateX(16px); transition: opacity .4s, transform .4s; }
.hd-aval div.is-on { opacity: 1; transform: none; }
.hd-aval b { display: block; font-size: 10px; }
.hd-aval b span { color: #e37400; margin-left: 4px; letter-spacing: 1px; }

/* Ato 3: o cliente clica no WhatsApp e as conversas chegam */
.hd-mouse { position: absolute; left: 330px; top: 330px; width: 18px; transition: left 1.1s cubic-bezier(.4,0,.2,1), top 1.1s cubic-bezier(.4,0,.2,1), opacity .3s; opacity: 0; z-index: 7; }
.hd-mouse.is-on { opacity: 1; }
.hd-zapjan { position: absolute; right: -26px; top: 230px; width: 240px; background: #efeae2; box-shadow: 0 22px 40px -20px rgba(14,42,51,.6); transform: translateY(20px) scale(.96); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.1,1), opacity .5s; z-index: 6; padding-bottom: 8px; }
.hd-zapjan.is-on { transform: none; opacity: 1; }
.hd-zapjan > b { background: #075e54; color: #fff; padding: 8px 10px; font-size: 11px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.hd-zapjan > b span { font-size: 9px; background: #25d366; border-radius: 9px; padding: 2px 7px; }
.hd-bolha { margin: 8px 10px 0 34px; background: #fff; padding: 7px 9px; font-size: 10px; line-height: 1.35; border-radius: 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.hd-bolha.is-on { opacity: 1; transform: none; }
.hd-bolha b { display: block; font-size: 9px; color: #075e54; }
.hd-bolha small { display: block; text-align: right; font-size: 8px; color: #667781; }

/* Entre 1081 e 1279 px o texto da abertura abre espaço: menos colunas, texto de apoio menor e os três itens um embaixo do outro */
@media (min-width: 1081px) and (max-width: 1279px) {
  .hero-text { grid-column: 1 / 8; }
  .hero-demo { grid-column: 8 / 13; }
  .hd { margin-left: 32px; } /* a base do notebook sai 32 px pra esquerda; sem isso encosta no link do WhatsApp */
  .hero .lead { font-size: clamp(1.0625rem, .35rem + 1.15vw, 1.25rem); margin: 24px 0 28px; max-width: 40ch; }
  .hero-actions { gap: 16px 24px; }
  .hero-proof { flex-direction: column; gap: 8px; margin-top: 28px; }
}

/* Em 1080 px ou menos (mesma quebra do menu) não cabe ao lado do texto: desce pra baixo dele, centralizada */
@media (max-width: 1080px) {
  .hero-demo { grid-column: 1 / -1; justify-content: center; margin: 88px 0 56px; padding-top: 0; }
  .hd { margin: 0 44px 0 40px; }
  /* A etiqueta fica logo acima das barrinhas e pode quebrar em duas linhas pra cima, sem encostar em nada */
  .hd-etapa { font-size: calc(13px / var(--z)); top: auto; bottom: calc(100% - 20px); width: calc(100% + 40px); }
  .hd-etapa span { flex: 1; }
  .hd-passos { top: 30px; gap: calc(5px / var(--z)); }
  .hd-passos i { width: calc(22px / var(--z)); height: calc(4px / var(--z)); }
}

@media (prefers-reduced-motion: reduce) {
  .hd *, .hd *::before, .hd *::after { transition: none !important; animation: none !important; }
}
