/* =============================================================
   TVBox Publi&com — Landing page
   Mobile-first · variáveis de marca · sem dependências externas
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #14166b;
  --navy-2: #1c1f8f;
  --royal: #2b3fd6;
  --blue-bright: #3d5afe;
  --ink: #0d1030;
  --ink-2: #141850;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e7e9f2;
  --text: #1a1c33;
  --muted: #5b6079;
  --muted-light: #c9d2ff;
  --white: #ffffff;
  --green: #16a34a;
  --green-soft: #dcfce7;

  --grad-cta: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, #23277f 0%, transparent 60%),
               linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #1b1f6e 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(13, 16, 48, 0.06);
  --shadow: 0 12px 34px rgba(13, 16, 48, 0.10);
  --shadow-lg: 0 30px 70px rgba(13, 16, 48, 0.22);

  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --header-h: 66px;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--royal); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--muted-light); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--ink); color: #dfe3ff; }
.section--dark h2 { color: #fff; }
.section--dark p { color: var(--muted-light); }

/* ---------- Botões ---------- */
.btn {
  --_pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--_pad); border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 24px rgba(43, 63, 214, .35); }
.btn--primary:hover { box-shadow: 0 16px 34px rgba(43, 63, 214, .45); }
.btn--wa { background: #25d366; color: #0b3d20; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.btn--wa:hover { box-shadow: 0 16px 34px rgba(37, 211, 102, .45); color: #06331a; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--royal); color: var(--royal); }
.btn--ghost-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); }
.btn--lg { --_pad: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn .ic { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247, 248, 250, .82); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s, background .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(247,248,250,.94); }
/* backdrop-filter cria containing block para descendentes position:fixed (o painel
   #primary-nav), prendendo-o dentro da altura do header em vez do viewport.
   Desativado só enquanto o menu mobile está aberto. */
body.nav-open .site-header { backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand .brand-sub {
  font-weight: 800; color: var(--navy); font-size: .95rem; letter-spacing: -.01em;
  padding-left: 10px; margin-left: 2px; border-left: 2px solid var(--line);
}
.brand .brand-sub span { color: var(--royal); }

.nav { display: flex; align-items: center; gap: 26px; }
/* Desktop: links + CTA em uma única linha, centralizados verticalmente no header.
   (Sem esta regra o #primary-nav é um bloco e empilha nav-links/nav-cta,
   estourando a altura do header — causa do bug de layout no desktop.) */
#primary-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--royal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; background: var(--grad-hero); color: #eaedff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: -10%; bottom: -30%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(61,90,254,.28), transparent 60%); pointer-events: none;
}
.hero-grid { display: grid; gap: 44px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 6vw, 3.35rem); margin-bottom: .35em; }
.hero h1 .hl { color: #8fa6ff; }
.hero-sub { font-size: 1.14rem; color: var(--muted-light); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 28px; color: #b9c2ff; font-size: .92rem; font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .ic { width: 18px; height: 18px; color: #6ee7b7; }

/* ---------- Mockups (device frames em CSS) ---------- */
.device-tv {
  background: #0a0c22; border-radius: 16px; padding: 12px 12px 20px;
  box-shadow: var(--shadow-lg); position: relative; border: 1px solid rgba(255,255,255,.08);
}
.device-tv::after { content: ""; display: block; width: 78px; height: 8px; border-radius: 999px; background: #23264f; margin: 12px auto 0; }
.device-tv .screen { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; position: relative; }
.device-stand { width: 120px; height: 14px; margin: 0 auto; background: linear-gradient(#2a2e5a, #1a1d40); border-radius: 0 0 12px 12px; }

.device-laptop { position: relative; filter: drop-shadow(0 26px 40px rgba(13,16,48,.28)); }
.device-laptop .lid { background: #0a0c22; border: 10px solid #0a0c22; border-radius: 14px 14px 0 0; }
.device-laptop .lid .screen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #fff; }
.device-laptop .lid .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.device-laptop .base { height: 16px; background: linear-gradient(#c7ccdb, #9aa1bd); border-radius: 0 0 12px 12px; margin: 0 -18px; box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
.device-laptop .base::after { content: ""; display: block; width: 90px; height: 6px; background: #7d84a3; border-radius: 0 0 8px 8px; margin: 0 auto; }

/* Conteúdo simulado de TV (promo) */
.tv-promo { position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; font-family: var(--font); }
.tv-promo .top { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.tv-promo .badge { position: absolute; top: 12px; left: 12px; background: #ffd43b; color: #3a2c00; font-weight: 800; font-size: .7rem; padding: 5px 10px; border-radius: 6px; letter-spacing: .04em; }
.tv-promo .price { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; line-height: 1; }
.tv-promo .price small { font-size: .5em; font-weight: 700; }
.tv-promo .label { font-size: .95rem; font-weight: 700; opacity: .95; }
.tv-promo .bar { background: rgba(0,0,0,.35); padding: 8px 14px; font-size: .78rem; display: flex; justify-content: space-between; align-items: center; }
.tv-promo .bar .logo { font-weight: 800; letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-visual .float-badge {
  position: absolute; right: -6px; bottom: 6px; background: #fff; color: var(--navy);
  border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .9rem;
}
.hero-visual .float-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic-badge {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef1ff, #dfe4ff); color: var(--royal); margin-bottom: 16px;
}
.card .ic-badge .ic { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Problema x solução */
.ps-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.ps-col { border-radius: var(--radius); padding: 28px; }
.ps-col--pain { background: #fff5f5; border: 1px solid #ffd9d9; }
.ps-col--pain h3 { color: #b42318; }
.ps-col--gain { background: linear-gradient(160deg, #f0f3ff, #e6ecff); border: 1px solid #d6ddff; }
.ps-col--gain h3 { color: var(--navy); }
.ps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-weight: 500; }
.ps-list .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ps-col--pain .ic { color: #e5533c; }
.ps-col--gain .ic { color: var(--green); }

/* Segmentos */
.seg-card { text-align: left; }
.seg-card .seg-ic { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.seg-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.seg-card p { font-size: .93rem; }

/* Como funciona */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm); }
.step .num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad-cta); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Demonstração do painel */
.demo-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.demo-shots { display: grid; gap: 22px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); background: #fbfbfe; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list .ic { width: 22px; height: 22px; color: var(--royal); flex: none; margin-top: 3px; }
.feature-list strong { display: block; color: var(--navy); }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* Cenários — galeria masonry com imagens reais (proporções mistas preservadas) */
.scenes { column-count: 1; column-gap: 22px; }
.scene {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: inline-block; width: 100%; margin: 0 0 22px; vertical-align: top;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s;
}
.scene:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scene picture { display: block; line-height: 0; }
.scene img { width: 100%; height: auto; display: block; background: #0d1030; }
.scene .scene-cap { padding: 15px 18px 17px; }
.scene .scene-cap h3 { font-size: 1.05rem; margin-bottom: 4px; }
.scene .scene-cap p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Hero — foto real emoldurada */
.hero-photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; line-height: 0;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14);
}
.hero-photo img, .hero-photo video { width: 100%; height: auto; display: block; }
.hero-video { background: #0a0c22; border-radius: 13px; }
@media (min-width: 600px) { .scenes { column-count: 2; } }
@media (min-width: 980px) { .scenes { column-count: 3; } }

/* Benefícios */
.benefit { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
/* Badge auto-contido (a seção Benefícios não usa .card, então precisa do
   fundo, centralização e tamanho do ícone próprios — sem isso o <svg> assumia
   150px de altura e o ícone caía para baixo do texto). */
.benefit .ic-badge {
  margin: 0; width: 48px; height: 48px; flex: none;
  border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef1ff, #dfe4ff); color: var(--royal);
}
.benefit .ic-badge .ic { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.04rem; margin-bottom: 3px; }
.benefit p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Comparação */
.compare { display: grid; gap: 20px; grid-template-columns: 1fr; }
.compare-col { border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.compare-col--old { background: #fff; border: 1px solid var(--line); }
.compare-col--old h3 { color: var(--muted); }
.compare-col--new { background: var(--grad-cta); color: #fff; border: 1px solid transparent; box-shadow: var(--shadow); }
.compare-col--new h3 { color: #fff; }
.compare-col ul li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; }
.compare-col .ic { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.compare-col--old .ic { color: #e5533c; }
.compare-col--new .ic { color: #b9f6ca; }
.compare-col--new .badge-solucao { display: inline-block; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 14px; }

/* Recursos */
.res-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.res { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.res .ic { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.res b { color: var(--navy); }

/* Depoimentos */
.testimonials-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
/* Depoimentos estilo conversa de WhatsApp (ilustrativos) */
.wa-card {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: #efeae2; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.wa-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #008069; color: #fff; }
.wa-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; color: #008069; background: #fff; letter-spacing: .02em;
  overflow: hidden;
}
.wa-avatar--photo { background: #d9d9d9; }
.wa-avatar--photo picture, .wa-avatar--photo img {
  width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%;
}
/* Leve desfoque nas fotos de perfil (privacidade). O scale evita a borda
   translúcida que o blur cria ao puxar pixels de fora da imagem. */
.wa-avatar--photo img {
  filter: blur(2.5px);
  transform: scale(1.18);
}
.wa-contact { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.wa-contact strong { font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-status { font-size: .73rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-headicons { display: flex; gap: 16px; flex: none; color: #fff; }
.wa-headicons svg { width: 18px; height: 18px; display: block; }
.wa-chat {
  flex: 1; padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,80,60,.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wa-bubble {
  position: relative; align-self: flex-start; max-width: 94%;
  background: #fff; color: #111b21; border-radius: 8px; border-top-left-radius: 2px;
  padding: 7px 10px 6px; box-shadow: 0 1px .5px rgba(0,0,0,.15); font-size: .93rem; line-height: 1.45;
}
.wa-bubble::before {
  content: ""; position: absolute; top: 0; left: -7px; width: 0; height: 0;
  border: 6px solid transparent; border-top-color: #fff; border-right-color: #fff;
}
.wa-bubble p { margin: 0; }
.wa-bubble--stars { padding: 5px 10px; }
.wa-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; }
.wa-time { font-size: .66rem; color: #667781; }
.wa-check { width: 16px; height: 12px; flex: none; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.02rem; }
.testimonials-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 26px 0 0; }
.testimonials-fallback { }
.tf-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
.tf-chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.tf-chip .seg-ic { font-size: 1.3rem; }
.tf-invite { text-align: center; background: linear-gradient(160deg, #f0f3ff, #e6ecff); border: 1px solid #d6ddff; border-radius: var(--radius); padding: 30px 24px; }
.tf-invite h3 { color: var(--navy); }
.tf-invite p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

/* Diferenciais */
.diff-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.diff { display: flex; gap: 13px; align-items: flex-start; }
.diff .ic { width: 24px; height: 24px; color: var(--royal); flex: none; margin-top: 2px; }
.diff h3 { font-size: 1.03rem; margin-bottom: 2px; color: #fff; }
.diff p { margin: 0; color: var(--muted-light); font-size: .93rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; cursor: pointer;
  font-size: 1.04rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question .chev { width: 22px; height: 22px; flex: none; transition: transform .2s; color: var(--royal); }
.faq-question[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* CTA final */
.cta-final { background: var(--grad-hero); color: #fff; text-align: center; border-radius: 0; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta-final p { color: var(--muted-light); max-width: 56ch; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-final .hero-cta { justify-content: center; }
.cta-final .small { margin-top: 18px; font-size: .9rem; color: #a9b4ff; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #b9c0e6; padding: 56px 0 30px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: #8f97c6; font-size: .95rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col li { color: #b9c0e6; font-size: .96rem; padding: 5px 0; display: block; }
.footer-col a:hover { color: #fff; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; color: #6ee7b7 !important; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .86rem; color: #7f88b8; }
.footer-bottom a { color: #9aa2d6; }
.footer-solucao { font-weight: 700; color: #cdd3f5; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ---------- Barra CTA mobile ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(13,16,48,.08);
}
.mobile-cta-bar .btn { flex: 1; padding: 13px 12px; font-size: .95rem; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================
   Responsivo
   ============================================================= */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ps-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Header responsivo / menu mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 30px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto; border-top: 1px solid var(--line);
  }
  #primary-nav.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .nav-cta .btn { width: 100%; }

  .brand .brand-sub { display: none; }
}

@media (max-width: 640px) {
  .mobile-cta-bar { display: flex; }
  .wa-float { bottom: 82px; }
  body { padding-bottom: 72px; }
  .hero { padding-bottom: 56px; }
}

/* Ajuste de âncora sob header fixo */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
