/* EcomVision — site público (marketing + legais). Tema escuro + laranja. */
:root {
  --bg: #0b0f17;
  --bg-2: #111725;
  --surface: #131a2a;
  --border: #1f2940;
  --text: #e8edf6;
  --text-muted: #9aa7bd;
  --brand: #f39213;   /* laranja exato do logo EcomVision */
  --brand-2: #ffb454; /* tom mais claro para gradientes */
  --good: #22c55e;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Fundação elástica =====
   Nada aqui é decorativo: cada regra impede uma classe inteira de scroll
   horizontal. O site rodou sem `img { max-width: 100% }` até 13/09/2026 — os
   selos de parceiro (360px de largura intrínseca) estouravam qualquer viewport
   estreito. Guarda: scripts/qa-site-elastico.mjs */

/* Mídia nunca passa do container, e nunca deforma ao ser limitada. */
img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }

/* Palavra sem espaço (URL, ASIN, e-mail, token) não empurra o layout. */
code, kbd, samp, pre { overflow-wrap: anywhere; }
pre { overflow-x: auto; }

/* Tabela larga rola DENTRO da própria tabela — o documento não rola.
   É a única exceção prevista no contrato do qa-site-elastico.mjs. */
.legal table, .article-body table, .mock .m-tbl {
  display: block; width: 100%; max-width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* O header é sticky com 64px + 1px de borda. Sem isto, TODA âncora (#faq,
   #como-funciona, os itens do mega menu que apontam para um card) rola até a
   posição certa e o alvo fica escondido atrás do cabeçalho. scroll-margin só
   afeta o scroll até o elemento — não desloca nem espaça nada no layout. */
[id] { scroll-margin-top: 80px; }

/* Cabeçalho */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo .mark { width: 36px; height: 36px; display: block; object-fit: contain; }
.logo .brand-logo { height: 28px; width: auto; display: block; object-fit: contain; }
.brand-vision { color: var(--brand); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Secao atual do nav. Substitui o style="color:var(--brand)" que era inline no <a>;
   aplicada por js/nav.js pelo pathname. Ver scripts/sync_site_header.py. */
.nav-links a.is-active { color: var(--brand); }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f17; font-weight: 700; padding: 10px 18px; border-radius: 10px; font-size: 14px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 680px; margin: 20px auto 0; }
.hero .cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.wa { background: #25d366; color: #07210f; }

/* Selos de parceiro oficial Amazon (seção Contato) */
.contato-wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.contato-info { flex: 1; min-width: 280px; }
.parceiros { display: flex; flex-direction: column; gap: 10px; }
.parceiros-tit { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.parceiros-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.parceiros-badges img { height: 92px; width: auto; background: #fff; border-radius: 12px; padding: 8px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.parceiros-badges img.badge-dark { background: transparent; box-shadow: none; padding: 0; }
@media (max-width: 640px) { .parceiros-badges img { height: 76px; } }

/* Seções */
section.block { padding: 56px 0; border-top: 1px solid var(--border); }
section.block h2 { font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -0.01em; }
section.block > .wrap > p.sub { color: var(--text-muted); margin-top: 8px; max-width: 640px; }

.grid { display: grid; gap: 18px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.card .ic { font-size: 22px; }
.card h3 { font-size: 17px; margin: 12px 0 6px; }
.card p { color: var(--text-muted); font-size: 14px; }

/* Integrações */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--text-muted); }

/* Conteúdo legal */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 15px; }
.legal ul { margin: 8px 0 8px 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--brand-2); }

/* Rodapé */
footer.bottom { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--text); text-decoration: none; }

/* Hamburger CSS-only (checkbox trick) — visível só no mobile */
.nav-toggle-check { display: none; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* A barra de links do desktop mede ~945px de conteúdo. Abaixo de ~1000px de
   viewport ela não cabe no .wrap e empurrava a PÁGINA INTEIRA na horizontal
   (medido em 13/09/2026: 641px → 304px de scroll lateral; 768px → 177px;
   900px → 45px — em todas as páginas do site, porque o header é compartilhado).
   O hambúrguer entrava só em 640px, então a faixa 641–999px (iPad retrato 768,
   iPad Air 820, Surface 912, janela de notebook não maximizada) ficava quebrada.
   Agora o hambúrguer entra em 1040px — a MESMA fronteira que o mega-menu já
   usava — e a faixa intermediária deixa de existir. Guarda: site/scripts/qa-site-elastico.mjs */
@media (max-width: 1040px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 20px; z-index: 99; }
  .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn { margin-top: 4px; width: 100%; text-align: center; }
  .nav-toggle-check:checked ~ .wrap .nav-links { display: flex; }
  /* Anima os 3 traços em X quando aberto */
  .nav-toggle-check:checked ~ .wrap .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-check:checked ~ .wrap .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle-check:checked ~ .wrap .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Padding do hero: continua mudando só no mobile de verdade (não em tablet). */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
}

/* ===== Telas (mockups com dados fictícios) ===== */
/* `minmax(0, 1fr)` + `min-width: 0` nos filhos: sem isso o track de grid herda
   `min-width: auto` e NÃO encolhe abaixo do min-content do card — a 320px o
   .mock media 325px e empurrava a página 29px na horizontal. Princípio 2 de
   docs/22-DESIGN-RESPONSIVO-PADRAO.md. */
.shots { display: grid; gap: 20px; margin-top: 32px; }
.shots > * { min-width: 0; }
.shot-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shot-row > * { min-width: 0; }
@media (max-width: 760px) { .shot-row { grid-template-columns: minmax(0, 1fr); } }
.shot .cap { color: var(--text-muted); font-size: 13px; margin-top: 10px; text-align: center; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.42); }
.mock .bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3a455c; }
.mock .bar .t { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.mock .body { padding: 14px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.m-kpis > * { min-width: 0; }
@media (max-width: 480px) { .m-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; }
.m-kpi .l { font-size: 11px; color: var(--text-muted); }
.m-kpi .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.m-kpi .d { font-size: 11px; font-weight: 700; margin-top: 1px; }
.up { color: var(--good); } .down { color: #ef4444; } .org { color: var(--brand); }
.m-chart { margin-top: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px; }
.m-chart .ttl { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.m-chart svg { display: block; width: 100%; height: auto; }
.m-alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; }
.m-alert:last-child { margin-bottom: 0; }
.m-alert.alta { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.m-alert.media { background: rgba(243,146,19,.09); border-color: rgba(243,146,19,.32); }
.m-alert .ic { font-size: 17px; line-height: 1; }
.m-alert .tt { font-weight: 700; font-size: 13px; }
.m-alert .ms { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.m-field { margin-bottom: 10px; }
.m-field .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.m-field .val { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-top: 4px; }
.m-bul { display: flex; gap: 7px; font-size: 12px; margin-top: 5px; } .m-bul .ck { color: var(--good); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.m-chip { font-size: 11px; background: rgba(243,146,19,.12); color: var(--brand-2); border: 1px solid rgba(243,146,19,.3); padding: 3px 9px; border-radius: 999px; }

/* ===== Planos ===== */
.plans { display: grid; gap: 16px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 16px 40px rgba(243,146,19,.12); }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b0f17; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan .nm { font-size: 16px; font-weight: 800; }
.plan .pdesc { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; min-height: 34px; }
.plan .pr { margin: 14px 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.plan .pr .cur { font-size: 15px; color: var(--text-muted); font-weight: 700; }
.plan .pr .num { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--text); }
.plan .pr .per { font-size: 13px; color: var(--text-muted); }
.plan ul { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14px; align-items: flex-start; }
.plan li .ck { color: var(--good); font-weight: 900; flex-shrink: 0; }
.plan li.off { color: var(--text-muted); } .plan li.off .ck { color: var(--text-muted); }
.plan .btn { width: 100%; text-align: center; }
.plans-note { color: var(--text-muted); font-size: 13px; margin-top: 22px; text-align: center; }
.plan .freetrial { font-size: 12.5px; font-weight: 800; color: var(--good); margin: 2px 0 0; }
.plan .promo { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--brand); background: rgba(243,146,19,.12); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 9px; margin: 14px 0 0; letter-spacing: .2px; text-transform: uppercase; }
.plan .promo + .pr { margin-top: 6px; }
.plan .pr .was { font-size: 15px; color: var(--text-muted); text-decoration: line-through; font-weight: 700; margin-left: 4px; }

/* Toggle Mensal/Trimestral/Semestral/Anual (multiplicadores 1 / 2,85 / 5,4 / 9,6) */
.cycle-toggle { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.cycle-toggle .cyc { font: inherit; font-size: 13.5px; font-weight: 800; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 20px; cursor: pointer; transition: border-color .15s ease, color .15s ease; display: inline-flex; align-items: center; gap: 8px; }
.cycle-toggle .cyc:hover { border-color: var(--brand); }
.cycle-toggle .cyc.on { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: rgba(243,146,19,.08); }
.cycle-toggle .cyc .save { font-size: 10.5px; font-weight: 900; color: var(--good); background: rgba(34,197,94,.14); border-radius: 999px; padding: 1px 7px; letter-spacing: .2px; }
/* Só o preço do ciclo ativo aparece. Default = mensal. */
.plans .pr-trimestral, .plans .pr-semestral, .plans .pr-anual { display: none; }
.plans.trimestral .pr-mensal, .plans.semestral .pr-mensal, .plans.anual .pr-mensal { display: none; }
.plans.trimestral .pr-trimestral { display: flex; }
.plans.semestral .pr-semestral { display: flex; }
.plans.anual .pr-anual { display: flex; }
.plan .pr .permes { display: block; width: 100%; font-size: 11.5px; color: var(--text-muted); font-weight: 700; margin-top: 3px; }
.plan .pr .permes b { color: var(--text); }

/* Mini-tabela e tags dos mockups */
.m-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.m-tbl th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.m-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.m-tbl tr:last-child td { border-bottom: none; }
.m-alert.info { background: var(--bg-2); border-color: var(--border); }
.m-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.m-tag.on { color: var(--good); background: rgba(34,197,94,.14); }
.m-tag.warn { color: var(--brand); background: rgba(243,146,19,.14); }

/* ============================================================
   Telas 2026 — novas peças de mockup, overlay "como funciona",
   grupos de recursos e badges de novidade.
   ============================================================ */

/* Dica acima da galeria */
.intro-hint { color: var(--text-muted); font-size: 12.5px; text-align: center; margin-top: 14px; }
.intro-hint b { color: var(--brand); }

/* Overlay "como funciona" ao passar o mouse sobre o mockup */
.mock { position: relative; }
.mock .howto {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
  background: linear-gradient(180deg, rgba(11,15,23,.28) 0%, rgba(11,15,23,.72) 46%, rgba(11,15,23,.95) 100%);
}
/* blur só quando o overlay aparece — evita 17 camadas de composição em repouso */
.mock:hover .howto, .mock:focus-within .howto {
  opacity: 1;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mock .howto .in { padding: 16px 16px 18px; }
.mock .howto .k { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.mock .howto p { font-size: 13px; color: var(--text); margin-top: 6px; line-height: 1.5; }

/* Grupos de recursos + badge "Novo" */
.grp-title { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); margin: 34px 0 0; }
.pill-new { font-size: 10px; font-weight: 800; color: #0b0f17; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 2px 7px; border-radius: 999px; margin-left: 7px; vertical-align: middle; }
.pill-soon { font-size: 10px; font-weight: 800; color: var(--text-muted); background: var(--bg-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 999px; margin-left: 7px; vertical-align: middle; }

/* Abas e filtros dentro dos mockups */
.m-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.m-tab { font-size: 11px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); }
.m-tab.on { color: var(--brand); border-color: rgba(243,146,19,.4); background: rgba(243,146,19,.10); font-weight: 700; }

/* Fonte do dado (Calculadora de Lançamento) */
.m-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.m-src span { font-size: 10px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }

/* Chat da Vision */
.m-chat { display: flex; flex-direction: column; gap: 8px; }
.m-bubble { max-width: 90%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.m-bubble.u { align-self: flex-end; background: rgba(243,146,19,.14); border: 1px solid rgba(243,146,19,.3); }
.m-bubble.a { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--border); }
.m-prop { align-self: stretch; border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.06); border-radius: 10px; padding: 10px 11px; font-size: 12px; }
.m-prop .act { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.m-pill { font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 8px; }
.m-pill.p { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b0f17; }
.m-pill.g { border: 1px solid var(--border); color: var(--text); }

/* Heatmap (Dayparting) */
.m-heat { display: grid; grid-template-columns: 30px repeat(8, 1fr); gap: 3px; align-items: center; }
.m-heat .hh { font-size: 9px; color: var(--text-muted); text-align: center; }
.m-heat .dd { font-size: 10px; color: var(--text-muted); }
.m-heat i { height: 13px; border-radius: 3px; background: rgba(148,163,189,.10); display: block; }
.m-heat i.l1 { background: rgba(34,197,94,.20); }
.m-heat i.l2 { background: rgba(34,197,94,.38); }
.m-heat i.l3 { background: rgba(34,197,94,.58); }
.m-heat i.l4 { background: rgba(34,197,94,.82); }
.m-heat i.pk { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.m-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-muted); margin-top: 9px; }
.m-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

/* KPIs em 4 colunas para alguns mockups */
.m-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .m-kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Drill-down de funcionalidades nos planos (<details>) */
.plan li.full { display: block; }
.plan details.feat { width: 100%; }
.plan details.feat summary {
  cursor: pointer; list-style: none; display: flex; gap: 9px; align-items: center;
  font-size: 13px; color: var(--text);
}
.plan details.feat summary::-webkit-details-marker { display: none; }
.plan details.feat summary .ck { color: var(--good); font-weight: 900; flex-shrink: 0; }
.plan details.feat summary .arr { margin-left: auto; color: var(--brand-2); font-weight: 900; transition: transform .15s ease; }
.plan details.feat[open] summary .arr { transform: rotate(90deg); }
.plan .feat-list {
  margin: 10px 0 2px; padding: 10px 0 0; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
/* o display:flex acima vence o UA display:none do <details> — re-ocultar quando fechado */
.plan details.feat:not([open]) .feat-list { display: none; }
.plan .feat-list span { font-size: 12px; color: var(--text-muted); display: flex; gap: 7px; align-items: flex-start; line-height: 1.4; }
.plan .feat-list span .ck { color: var(--good); font-weight: 900; flex-shrink: 0; }

/* Bloco de destaque dos diferenciais do plano (o "e mais" com IA) */
.plan .plan-diff {
  margin: 12px 0 2px; padding: 13px 13px 12px;
  background: rgba(243,146,19,.08);
  border: 1px solid rgba(243,146,19,.32);
  border-radius: 12px;
}
.plan .plan-diff .diff-head {
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 11px; display: flex; align-items: center; gap: 6px;
}
.plan .plan-diff ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: none; }
.plan .plan-diff li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; line-height: 1.25; }
.plan .plan-diff li .ck { color: var(--brand); font-weight: 900; flex-shrink: 0; }
.plan .plan-diff li strong { color: var(--text); font-weight: 700; }
.plan .plan-diff li .sub { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* Introdução de Recursos em 2 colunas: texto + imagem da Vision */
.intro-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.intro-row .intro-text { flex: 1 1 360px; min-width: 280px; }
.intro-row .intro-text .sub { color: var(--text-muted); margin-top: 8px; max-width: 640px; }
.vision-hero { flex-shrink: 0; width: 220px; height: 220px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 46px rgba(243,146,19,.22); }
.vision-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .intro-row { justify-content: center; } .vision-hero { width: 170px; height: 170px; margin: 4px auto 0; } }

/* Galeria de telas reais (screenshots do app em produção) */
/* `min(340px, 100%)`: sem o min(), o track de 340px fixo estoura o container
   em viewport estreito (o auto-fit não reduz o minmax, só o número de colunas). */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 18px; margin-top: 28px; }
.gallery > * { min-width: 0; }
.gshot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gshot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.gshot figcaption { padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.gshot figcaption b { color: var(--text); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Rodapé multi-coluna das páginas internas (classes vieram do servidor sem CSS) */
.foot-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.foot-col a { color: var(--text-muted); font-size: 14px; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.foot-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.foot-badges img { height: 60px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
@media (max-width: 640px) { .foot-badges img { height: 48px; } }

/* Botão dentro do nav: a cor do .btn precisa vencer a regra .nav-links a (contraste) */
.nav-links a.btn { color: #0b0f17; }
.nav-links a.btn.ghost { color: var(--text); }

/* Botão dentro de artigos (article.legal.wrap): a cor do .btn precisa vencer a regra
   .legal a (mesmo problema de especificidade do nav-links acima) — sem isso o texto do
   botão sai na mesma cor do gradiente de fundo (laranja claro sobre laranja), ilegível. */
.legal a.btn { color: #0b0f17; }
.legal a.btn.ghost { color: var(--text); }

/* Galeria: toque/clique abre a captura em tamanho real */
.gshot a { display: block; }

/* ============================================================
   Mega menu "Funcionalidades" — desktop com abertura 3D,
   acordeão no mobile. Componente compartilhado (js/nav.js).
   ============================================================ */
.nav-item.has-mega { position: relative; display: flex; align-items: center; }
.nav-trigger {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer; padding: 10px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); }
.nav-trigger .chev { transition: transform .22s cubic-bezier(.2,.8,.2,1); flex-shrink: 0; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Ancorado à ESQUERDA do gatilho, não centralizado nele. Centralizado
   (`left: 50%` + `translateX(-50%)`) o painel de 860px saía pela borda esquerda
   da tela em todo desktop de 1041px até ~1590px — medido em 13/09/2026 contra
   origin/main: left = -229px em 1041, -49px em 1440. O gatilho "Funcionalidades"
   fica no começo do header, então metade do painel caía fora. Ancorar à esquerda
   mantém o painel inteiro visível em qualquer largura (mesma solução que o
   .mega-panel--sm já usava). */
.mega-panel {
  position: absolute; top: calc(100% + 14px); left: 0;
  width: min(860px, 86vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  padding: 26px 28px 20px;
  z-index: 40;
  perspective: 1200px;
  transform: translateY(-10px) rotateX(-8deg) scale(.97);
  transform-origin: top left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
.nav-item.has-mega.open .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) rotateX(0deg) scale(1);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px; }
.mega-col-title {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.mega-col a {
  display: block; color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  padding: 6px 0; border-radius: 6px; transition: color .15s ease, transform .15s ease;
}
.mega-col a:hover { color: var(--text); text-decoration: none; transform: translateX(2px); }
.mega-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); text-align: right; }
.mega-cta { font-size: 13.5px; font-weight: 700; color: var(--brand-2); }
.mega-cta:hover { text-decoration: none; opacity: .85; }

/* Dropdown pequeno (ex.: Preços → Afiliados) — mesmo mecanismo do mega-menu
   (nav.js trata qualquer .nav-item.has-mega genericamente), só que estreito
   e sem grid, para não abrir um painel de 860px para 2 links. */
.mega-panel--sm { width: 220px; left: 0; transform-origin: top left; transform: translateY(-10px) rotateX(-8deg) scale(.97); }
.nav-item.has-mega.open .mega-panel--sm { transform: translateY(0) rotateX(0deg) scale(1); }

/* Abaixo de 1040px o mega vira acordeão embutido no menu do hambúrguer —
   mesma fronteira do hambúrguer (ver bloco do header). Antes havia aqui um
   estado intermediário (painel `position: fixed` colado no viewport) para a
   faixa 641–1040px; essa faixa não existe mais, então o estado saiu. */
@media (max-width: 1040px) {
  .nav-item.has-mega { width: 100%; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); }
  .nav-trigger { width: 100%; padding: 10px 0; justify-content: space-between; color: var(--text); font-size: 15px; }
  .mega-panel {
    position: static; width: auto; transform: none !important; perspective: none;
    opacity: 1; visibility: visible; pointer-events: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 6px;
    border-radius: 0; max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-item.has-mega.open .mega-panel { pointer-events: auto; max-height: 900px; }
  .mega-grid { grid-template-columns: 1fr; gap: 4px; }
  .mega-col-title { margin: 10px 0 4px; }
  .mega-col a { padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
  .mega-foot { text-align: left; }
}

/* Reduz movimento para quem pediu (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  .mega-panel, .nav-trigger .chev { transition: none !important; }
}

/* ============================================================
   Página Quem somos / perfil individual — cartão do fundador.
   ============================================================ */
.founder-card { display: flex; gap: 26px; align-items: flex-start; margin-top: 28px; flex-wrap: wrap; }
.founder-photo { flex-shrink: 0; width: 200px; height: 250px; border-radius: 16px; overflow: hidden; }
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder-photo.lg { width: 280px; height: 378px; }
@media (max-width: 480px) { .founder-photo.lg { width: 220px; height: 297px; } }
.founder-info { flex: 1 1 320px; min-width: 260px; }
.founder-info h3 { font-size: 22px; margin-bottom: 2px; }
.founder-role { color: var(--brand-2); font-size: 14px; font-weight: 700; }

/* Placeholder explícito para imagens reais ainda não cadastradas — nunca
   confundir com um mockup ou foto de verdade (ver guia de conteúdo). */
.placeholder-img {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 2px dashed var(--border); color: var(--text-muted); font-size: 12px; font-weight: 700;
  line-height: 1.5; padding: 12px;
}

/* ============================================================
   Hub de Artigos — busca, filtro por categoria e cards.
   ============================================================ */
.art-toolbar { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.art-search {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 14px;
}
.art-search::placeholder { color: var(--text-muted); }
.art-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.art-cat {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.art-cat:hover { color: var(--text); border-color: var(--brand); }
.art-cat.on { color: #0b0f17; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
.art-grid { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.art-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.art-card .art-cat-tag { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--brand); }
.art-card h3 { font-size: 17px; margin: 8px 0 6px; }
.art-card h3 a { color: var(--text); }
.art-card h3 a:hover { color: var(--brand-2); }
.art-card p { color: var(--text-muted); font-size: 14px; flex: 1; }
.art-card .art-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.art-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 40px 0; }
.art-card[hidden], .art-empty[hidden] { display: none; }

/* ============================================================
   Template de artigo — tipografia de leitura, sumário e autor.
   ============================================================ */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-muted); font-size: 13px; margin: 10px 0 26px; }
.article-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.article-toc .ttl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--brand); margin-bottom: 10px; }
.article-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.article-toc a { font-size: 14px; }
.article-body h2 { font-size: 22px; margin: 34px 0 12px; }
.article-body h3 { font-size: 17px; margin: 22px 0 8px; }
.article-body p, .article-body li { color: var(--text); font-size: 15px; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 10px 0 10px 22px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; }
.article-body th { background: var(--surface); }
.author-box { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 30px 0; }
.author-box img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box .nm { font-weight: 700; font-size: 14px; }
.author-box .role { font-size: 12.5px; color: var(--text-muted); }
.article-update-note { font-size: 12.5px; color: var(--text-muted); border-left: 3px solid var(--brand); padding-left: 12px; margin: 24px 0; }

/* ============================================================
   Banner de consentimento de cookies (Consent Mode v2 — js/analytics.js)
   ============================================================ */
#ecv-consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.35); max-height: 100vh; overflow-y: auto; }
.ecv-consent-inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.ecv-consent-text { flex: 1 1 420px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.ecv-consent-text a { color: var(--brand-2); }
.ecv-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  /* Em flex-direction: column o flex-basis do texto (420px, pensado para a largura na
     linha desktop) passa a valer como altura mínima — sem isso o parágrafo ficava com
     ~420px de altura vazia e o banner cobria a maior parte da tela no primeiro load. */
  .ecv-consent-inner { flex-direction: column; align-items: stretch; }
  .ecv-consent-text { flex-basis: auto; }
  .ecv-consent-actions { justify-content: flex-end; }
}

/* ============================================================
   Banner "Abra sua conta na Amazon" — CTA de topo de página,
   linkando para venda.amazon.com.br. Reaproveitado em todo início
   de página (hero / page-hero / topo da listagem de artigos).
   ============================================================ */
.promo-amazon { padding: 22px 0 0; }
a.promo-amazon-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 14px; padding: 20px 26px;
  box-shadow: 0 12px 32px rgba(243,146,19,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.promo-amazon-box, a.promo-amazon-box:hover { color: #0b0f17; text-decoration: none; }
a.promo-amazon-box:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(243,146,19,.35); }
.promo-amazon-text { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.promo-amazon-text strong { font-weight: 800; }
.promo-amazon-arrow { font-size: 22px; font-weight: 800; flex-shrink: 0; }
@media (max-width: 640px) {
  a.promo-amazon-box { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .promo-amazon-arrow { align-self: flex-end; }
}
