/* BitVarejo · site institucional (bitvarejo.com.br).
   Escuro, tipografia grande, violeta da marca sobre ardósia. Mesma linguagem do bitrural.com.br.
   Tokens derivados de web/DESIGN_SYSTEM.md — NUNCA hex solto fora deste :root. */
:root {
  --fundo: #0b1220;          /* navy ardósia (nunca preto puro) */
  --fundo-2: #0f172a;        /* --brand-ink */
  --superficie: #131c30;
  --superficie-2: #182238;
  --linha: rgba(255, 255, 255, 0.09);
  --linha-forte: rgba(255, 255, 255, 0.16);
  --texto: #eef2f7;
  --texto-2: #aab4c3;
  --texto-3: #7c879a;
  --marca: #7c3aed;          /* --brand-600: botão primário */
  --marca-hover: #6d28d9;    /* --brand-700 */
  --marca-escura: #5b21b6;   /* --brand-800 */
  --acento: #a78bfa;         /* --brand-400: texto/ícone de marca no escuro */
  --acento-2: #c4b5fd;       /* --brand-300 */
  --acento-suave: #ddd6fe;   /* --brand-200 */
  --marca-rgb: 124, 58, 237;
  --acento-rgb: 167, 139, 250;
  --verde: #22c55e; --verde-suave: rgba(34, 197, 94, .14);
  --ambar: #f59e0b; --ambar-suave: rgba(245, 158, 11, .14);
  --vermelho: #ef4444; --vermelho-suave: rgba(239, 68, 68, .14);
  --info: #38bdf8;
  --raio: 14px; --raio-md: 10px; --raio-sm: 8px;
  --gutter: clamp(16px, 5vw, 104px);
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --sombra: 0 30px 90px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 96px; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(var(--acento-rgb), .55); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- topo (barra flutuante de vidro) ---------- */
.topo {
  position: fixed; z-index: 50;
  top: calc(14px + env(safe-area-inset-top, 0px)); left: clamp(10px, 2.4vw, 40px); right: clamp(10px, 2.4vw, 40px);
  max-width: 1280px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px;
  min-height: 68px; padding: 0 10px 0 22px; border-radius: 20px;
  background: rgba(15, 23, 42, .62); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .3s, box-shadow .3s;
}
.topo.rolado { background: rgba(11, 18, 32, .9); box-shadow: 0 14px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
.marca { display: flex; align-items: center; height: 68px; padding-right: 22px; border-right: 1px solid var(--linha); flex: none; }
.marca img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.menu a { color: #c3ccd8; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 9px 13px; border-radius: 11px; transition: color .2s, background .2s; white-space: nowrap; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.menu a.atual { color: #fff; background: rgba(var(--acento-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--acento-rgb), .3); }
.menu .so-celular { display: none; }
.acoes-topo { display: flex; align-items: center; gap: 8px; }
.link-entrar {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  color: var(--texto); text-decoration: none; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--linha-forte); transition: background .2s, border-color .2s;
}
.link-entrar:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.abrir-menu { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--linha-forte); background: transparent; cursor: pointer; place-items: center; }
.abrir-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.abrir-menu .i-fechar { display: none; }
.topo.aberto .abrir-menu .i-menu { display: none; }
.topo.aberto .abrir-menu .i-fechar { display: inline; }
@media (max-width: 1180px) { .menu a { padding: 9px 9px; font-size: 14px; } .marca { padding-right: 14px; } .topo { gap: 0 10px; } }
@media (max-width: 1023px) {
  .topo { min-height: 62px; padding: 0 8px 0 16px; border-radius: 18px; }
  .marca { height: 62px; border-right: 0; padding-right: 0; margin-right: auto; }
  .marca img { height: 30px; }
  .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding: 8px 6px 12px; border-top: 1px solid var(--linha); margin-top: 6px; }
  .menu a { padding: 13px 14px; font-size: 16px; }
  .menu .so-celular { display: block; }
  .topo.aberto .menu { display: flex; }
  .link-entrar { display: none; }
  .abrir-menu { display: grid; }
}

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.botao:active { transform: translateY(1px); }
.botao.pequeno { min-height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.botao-marca { background: var(--marca); color: #fff; box-shadow: 0 10px 30px rgba(var(--marca-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.botao-marca:hover { background: var(--marca-hover); }
.botao-claro { background: #fff; color: var(--fundo-2); }
.botao-claro:hover { background: #e9eef5; }
.botao-contorno { background: rgba(255, 255, 255, .04); border-color: var(--linha-forte); color: var(--texto); }
.botao-contorno:hover { border-color: rgba(255, 255, 255, .35); }
.botao svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.botao .seta { display: inline-block; transition: transform .2s var(--ease); }
.botao:hover .seta { transform: translateX(4px); }

/* ---------- blocos de seção ---------- */
.secao { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.secao-escura { background: linear-gradient(180deg, var(--fundo), var(--fundo-2) 30%, var(--fundo-2) 70%, var(--fundo)); }
.largura { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.largura.estreita { max-width: 1100px; }
.sobretitulo { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acento); margin-bottom: 14px; }
.titulo-secao { font-size: clamp(34px, 4.6vw, 64px); margin: 0 0 22px; }
.titulo-secao.centro, .sobretitulo.centro, .lead.centro, .lead-menor.centro { text-align: center; }
.titulo-secao.centro { max-width: 20ch; margin-left: auto; margin-right: auto; }
.lead { color: #c9d2de; font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch; }
.lead-menor { color: var(--texto-2); font-size: clamp(16px, 1.3vw, 19px); }
.estreito { max-width: 60ch; }
.lead-menor.centro.estreito, .lead.centro { margin-left: auto; margin-right: auto; }
.declaracao { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.25; letter-spacing: -.025em; text-align: center; max-width: 30ch; margin: 0 auto clamp(70px, 10vw, 140px); }
.declaracao span { color: var(--texto-3); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .dupla { grid-template-columns: 1fr; } }

/* grade de cartões com filetes (estilo bitrural) */
.grade-3, .grade-4, .grade-2 { display: grid; gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; margin-top: 56px; }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-4 { grid-template-columns: repeat(4, 1fr); }
.grade-2 { grid-template-columns: repeat(2, 1fr); }
.cartao { background: var(--fundo); padding: 34px 30px 38px; }
.cartao svg.ic { width: 30px; height: 30px; fill: none; stroke: var(--acento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.cartao h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -.02em; }
.cartao p { color: var(--texto-2); }
@media (max-width: 1000px) { .grade-4 { grid-template-columns: repeat(2, 1fr); } .grade-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grade-3, .grade-4, .grade-2 { grid-template-columns: 1fr; } .cartao { padding: 26px 22px 30px; } }

/* painel elevado (fundo de superfície, borda, sombra) */
.painel { background: var(--superficie); border: 1px solid var(--linha-forte); border-radius: var(--raio); box-shadow: var(--sombra); }

/* selos e marcadores */
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.selo-verde { background: var(--verde-suave); color: #86efac; border-color: rgba(34,197,94,.3); }
.selo-ambar { background: var(--ambar-suave); color: #fcd34d; border-color: rgba(245,158,11,.3); }
.selo-vermelho { background: var(--vermelho-suave); color: #fca5a5; border-color: rgba(239,68,68,.3); }
.selo-marca { background: rgba(var(--acento-rgb), .14); color: var(--acento-2); border-color: rgba(var(--acento-rgb), .3); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); display: inline-block; }
.ponto.pulsa { animation: pulsa 1.6s infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 60% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.lista-check { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--texto-2); }
.lista-check li { position: relative; padding-left: 30px; }
.lista-check li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--acento-rgb), .18); }
.lista-check li::after { content: ''; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--acento-2); border-bottom: 2px solid var(--acento-2); transform: rotate(-45deg); }
.nota { color: var(--texto-3); font-size: 14px; margin-top: 18px; }

/* moldura de navegador (vitrine de telas) */
.vitrine { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--linha-forte); background: #070b14; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.moldura-navegador { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0e1626; border-bottom: 1px solid var(--linha); }
.moldura-navegador span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.moldura-navegador .url { margin-left: 12px; flex: 1; max-width: 420px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--texto-3); font-size: 12px; display: flex; align-items: center; padding: 0 10px; }
.vitrine img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: opacity .25s; }
.abas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 42px auto 26px; }
.aba { border: 1px solid var(--linha-forte); background: transparent; color: var(--texto-2); border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.aba:hover { color: var(--texto); border-color: rgba(255,255,255,.35); }
.aba[aria-selected="true"] { background: rgba(var(--acento-rgb), .14); color: #fff; border-color: rgba(var(--acento-rgb), .45); }

/* vitrine sem imagem (tela ainda não capturada): placeholder discreto no lugar do alt quebrado */
.vitrine.sem-imagem img { display: none; }
.vitrine.sem-imagem::after { content: 'Tela em captura.'; display: grid; place-items: center; min-height: 220px; color: var(--texto-3); font-size: 14px; background: radial-gradient(ellipse at 50% 60%, rgba(var(--marca-rgb), .14), transparent 60%), var(--fundo-2); }

/* celular (mockup WhatsApp) */
.celular { width: min(380px, 100%); margin: 0 auto; padding: 12px; border-radius: 46px; background: #0f172a; border: 1px solid var(--linha-forte); box-shadow: var(--sombra); }
.celular-tela { border-radius: 34px; overflow: hidden; background: #0b141a; min-height: 560px; display: flex; flex-direction: column; }
.wpp-topo { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; background: #1f2c34; color: #fff; font-size: 14px; }
.wpp-topo small { display: block; color: #aebac1; font-size: 12px; }
.wpp-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--marca); display: grid; place-items: center; overflow: hidden; flex: none; }
.wpp-avatar img { width: 100%; height: 100%; }
.wpp-conversa { flex: 1; padding: 14px 12px; display: grid; gap: 8px; align-content: start; background: #0b141a; }
.bolha { position: relative; background: #202c33; color: #e9edef; border-radius: 10px; padding: 8px 10px 20px; font-size: 13.5px; line-height: 1.45; max-width: 92%; justify-self: start; }
.bolha p + p { margin-top: 4px; }
.bolha .hora { position: absolute; right: 9px; bottom: 5px; font-size: 11px; color: #8696a0; }
.bolha-eu { background: #005c4b; justify-self: end; }
.bolha-img { padding: 4px 4px 20px; }
.bolha-img img { border-radius: 8px; }

/* entrada ao rolar */
.revela { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.revela.vis { opacity: 1; transform: none; }
.revela[data-atraso="1"] { transition-delay: .1s; } .revela[data-atraso="2"] { transition-delay: .2s; } .revela[data-atraso="3"] { transition-delay: .3s; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 44px 0 calc(44px + env(safe-area-inset-bottom, 0px)); color: var(--texto-3); font-size: 14px; }
.rodape-linha { display: grid; gap: 10px; }
.rodape img { height: 28px; width: auto; margin-bottom: 8px; }
.rodape .nota { font-size: 13px; margin-top: 0; }
.rodape a { color: var(--texto-2); }

/* modal de vídeo */
.modal-video { border: 0; padding: 0; background: #000; border-radius: 16px; max-width: min(1100px, 94vw); width: 100%; box-shadow: var(--sombra); }
.modal-video::backdrop { background: rgba(5, 8, 16, .85); backdrop-filter: blur(6px); }
.modal-video video { width: 100%; aspect-ratio: 16/9; }
.modal-video .fechar { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linha-forte); background: rgba(11,18,32,.8); color: #fff; font-size: 22px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .ponto.pulsa, .botao .seta { animation: none; transition: none; }
}
