/* Página de segmento (varejo e automação comercial) · 26/11/2026
   Cena própria: o mesmo ERP anunciado de dois jeitos (genérico x língua do nicho). */

/* Cena do topo */
.anuncios { position: relative; display: grid; gap: 14px; margin: 0; }
.anuncio { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.anuncio__cab { display: flex; align-items: center; gap: 10px; }
.anuncio__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--text-3); font-size: .75rem; font-weight: 700; }
.anuncio__quem { display: grid; line-height: 1.25; }
.anuncio__quem strong { color: var(--white); font-size: .875rem; }
.anuncio__quem span { color: var(--text-3); font-size: .75rem; }
.anuncio__rotulo { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.anuncio__texto { color: var(--white); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.anuncio__nota { color: var(--text-3); font-size: .8125rem; line-height: 1.45; }

.anuncio--generico { opacity: .72; }
.anuncio--generico .anuncio__rotulo { background: rgba(139,147,167,.14); color: var(--text-3); }
.anuncio--generico .anuncio__texto { color: var(--text-2); font-weight: 500; }

.anuncio--nicho { border: 1px solid rgba(255,94,0,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.anuncio--nicho .anuncio__avatar { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio--nicho .anuncio__rotulo { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio__resultado { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.anuncio__resultado strong { color: var(--white); font-size: 1.125rem; }

.segmentos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.segmentos li { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.segmentos__fonte { color: var(--text-3); font-size: .75rem; }

@media (min-width: 960px) {
  .anuncio--generico { margin-right: 14%; }
  .anuncio--nicho { margin-left: 8%; }
}

/* Tabela de canais */
.tabela-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.tabela { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.tabela caption { padding: 14px 18px; color: var(--text-3); font-size: .8125rem; text-align: left; caption-side: bottom; border-top: 1px solid var(--line); }
.tabela th, .tabela td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabela thead th { background: var(--surface); color: var(--text-3); font-size: .8125rem; font-weight: 600; }
.tabela tbody th { color: var(--white); font-weight: 700; white-space: nowrap; }
.tabela td { color: var(--text-2); line-height: 1.5; }
.tabela tbody tr:last-child th, .tabela tbody tr:last-child td { border-bottom: 0; }

/* Lista de como vende */
.vende { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.vende li { padding: 16px 18px; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--bg-alt); color: var(--text-2); line-height: 1.55; }
.vende strong { display: block; color: var(--white); }
@media (min-width: 768px) { .vende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cases do setor */
.cases-setor { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.case-setor { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color .2s; }
.case-setor:hover, .case-setor:focus-visible { border-color: var(--blue); }
.case-setor__nome { color: var(--white); font-size: 1.1875rem; font-weight: 700; }
.case-setor__soft { font-size: .875rem; }
.case-setor__num { margin-top: 6px; color: var(--blue); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.case-setor__rot { font-size: .9375rem; line-height: 1.45; }
.case-setor__ir { margin-top: 8px; color: var(--white); font-size: .875rem; font-weight: 600; }
@media (min-width: 768px) { .cases-setor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* Fundo do topo: caixa de loja com maquininha e impressora de cupom (Gemini, 26/11/2026). Escurecido para manter o contraste do texto. */
.hero--setor { position: relative; isolation: isolate; background-color: var(--bg); background-image:
    linear-gradient(180deg, rgba(5,7,15,.84) 0%, rgba(5,7,15,.70) 45%, rgba(5,7,15,.94) 100%),
    url("../img/fundo-varejo-cel.webp");
  background-size: cover; background-position: center top; }
@media (min-width: 768px) {
  .hero--setor { background-image:
      linear-gradient(90deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.80) 40%, rgba(5,7,15,.30) 72%, rgba(5,7,15,.45) 100%),
      linear-gradient(180deg, rgba(5,7,15,.25) 0%, rgba(5,7,15,0) 25%, rgba(5,7,15,0) 75%, rgba(5,7,15,1) 100%),
      url("../img/fundo-varejo-1920.webp");
    background-position: center 60%; }
}
.hero--setor .anuncio { background: rgba(16,23,43,.92); backdrop-filter: blur(6px); }
.hero--setor .segmentos li { background: rgba(5,7,15,.6); }

/* Ajustes v4 (26/11/2026): a trilha entra no topo, sobre a foto; 2 depoimentos centralizados */
.hero--setor .trilha { margin: 0 auto 28px; padding-top: 0; }
@media (min-width: 900px) { .vozes--duas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; } }

/* v6 (26/11/2026): revisão do Edson */
/* 1. No celular, a tabela de canais vira cartões (no computador continua tabela) */
@media (max-width: 767px) {
  .tabela-wrap { overflow: visible; border: 0; border-radius: 0; }
  .tabela { min-width: 0; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: 100%; }
  .tabela tbody { display: grid; gap: 12px; }
  .tabela tr { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
  .tabela tbody th, .tabela td { padding: 0; border: 0; white-space: normal; }
  .tabela tbody th { margin-bottom: 10px; font-size: 1.0625rem; }
  .tabela td + td { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tabela td::before { content: attr(data-rotulo); display: block; margin-bottom: 2px; color: var(--text-3); font-size: .75rem; font-weight: 600; }
  .tabela caption { display: block; padding: 12px 2px 0; border: 0; }
}
/* 2. Frase do José Luis centralizada, na largura dos depoimentos */
#case .citacao--case { max-width: 780px; margin-inline: auto; }
/* 3. Links do fim da seção viram botões pequenos */
.links-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.links-botoes a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-alt); color: var(--white); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.links-botoes a:hover, .links-botoes a:focus-visible { border-color: var(--blue); }
@media (max-width: 479px) { .links-botoes { flex-direction: column; } .links-botoes a { justify-content: center; width: 100%; } }

/* v7 (26/11/2026): ícone de cada canal na tabela */
.canal-tab { display: inline-flex; align-items: center; gap: 10px; }
.canal-tab__icone { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.canal-tab__icone svg { width: 18px; height: 18px; }
.tabela tbody tr:last-child .canal-tab__icone { background: rgba(255,94,0,.14); }
@media (max-width: 767px) { .tabela { display: flex; flex-direction: column; } .tabela caption { order: 2; } }

#case .cta-linha { text-align: center; }


/* Cena própria da página de varejo: painel das frentes de campanha da Maqplan */
.frentes { margin: 0; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(16,23,43,.76); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.frentes__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.frentes__topo img { width: auto; height: 24px; }
.frentes__tag { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.frentes__total { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: .875rem; }
.frentes__total strong { color: var(--white); font-size: 2rem; font-weight: 800; line-height: 1; }
.frentes__lista { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.frente { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 10px; color: var(--text-2); font-size: .8125rem; }
.frente__nome { color: var(--white); font-weight: 600; }
.frente__trilho { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.frente__trilho span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #49dbff); transform-origin: left; }
.frente--revenda .frente__trilho span { background: linear-gradient(90deg, var(--orange), #ff9a5c); }
.frente__val { color: var(--white); font-weight: 700; text-align: right; }
.frentes__destaque { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255,94,0,.45); border-radius: var(--radius); background: rgba(255,94,0,.08); color: var(--text-2); font-size: .875rem; }
.frentes__destaque strong { color: #ff8a4d; font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.frentes__rodape { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .75rem; }
@media (min-width: 960px) { .frentes { margin-left: 6%; } }
@media (max-width: 399px) { .frente { grid-template-columns: 96px 1fr 48px; } }
.case-marca { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; color: var(--text-2); font-size: .9375rem; }
.case-marca img { width: auto; height: 32px; }
.cases-setor { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .cases-setor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.case-setor { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color .2s; }
.case-setor:hover, .case-setor:focus-visible { border-color: var(--blue); }
.case-setor__logo { display: block; width: auto; height: 28px; max-width: 70%; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.case-setor__soft { font-size: .875rem; }
.case-setor__num { margin-top: 6px; color: var(--blue); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.case-setor__rot { font-size: .9375rem; line-height: 1.45; }
.case-setor__ir { margin-top: 8px; color: var(--white); font-size: .875rem; font-weight: 600; }
#cases .citacao--case { max-width: 780px; margin-inline: auto; }
#cases .cta-linha { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .frentes { animation: fr-entra .5s ease-out both; }
  .frente { animation: fr-surge .4s ease-out both; }
  .frente__trilho span { animation: fr-barra .9s cubic-bezier(.2,.8,.2,1) both; }
  .frente:nth-child(1), .frente:nth-child(1) .frente__trilho span { animation-delay: .5s; }
  .frente:nth-child(2), .frente:nth-child(2) .frente__trilho span { animation-delay: .7s; }
  .frente:nth-child(3), .frente:nth-child(3) .frente__trilho span { animation-delay: .9s; }
  .frente:nth-child(4), .frente:nth-child(4) .frente__trilho span { animation-delay: 1.1s; }
  .frente:nth-child(5), .frente:nth-child(5) .frente__trilho span { animation-delay: 1.3s; }
  .frentes__destaque { animation: fr-surge .5s ease-out 2.2s both, fr-brilho 1.4s ease-out 2.6s 1; }
  .frentes__rodape { animation: fr-surge .5s ease-out 2.6s both; }
}
@keyframes fr-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fr-surge { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fr-barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fr-brilho { 0% { box-shadow: 0 0 0 0 rgba(255,94,0,.45); } 100% { box-shadow: 0 0 0 14px rgba(255,94,0,0); } }
@media (max-width: 479px) { .frentes__destaque { flex-direction: column; align-items: flex-start; gap: 4px; } }
