/* Capitara DFE — site público (www.capitara.com.br).
   Paleta da marca, a mesma do app: marinho #12263A · teal #18A999 · lima #D8F171 · branco. Fonte Sora.
   Tema claro por padrão; escuro pelo sistema (prefers-color-scheme). Sem framework: só este arquivo. */

:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --bg-alt: #edf2f6;
  --surface: #ffffff;
  --surface-2: #f1f5f8;
  --border: #dbe4ec;
  --border-strong: #c3d1dd;
  --text: #12263a;
  --text-dim: #5a6e82;
  --text-faint: #8a9bab;
  --marinho: #12263a; --marinho-2: #1a3350; --marinho-3: #224064; --marinho-fundo: #0b1626;
  --teal: #18a999; --teal-2: #128f81; --teal-t: #117a6e; --teal-c: #5fd6c6; --teal-dim: #e1f4f1;
  --lima: #d8f171; --lima-2: #c3dd4f; --lima-t: #5c6f00;
  --amber: #d98a00; --amber-dim: #fdf1dc; --amber-t: #9c6200;
  --red: #e5484d;  --red-dim: #fdeaea;  --red-t: #b9353a;
  --green: #17a673; --green-dim: #e2f6ee; --green-t: #0e7d56;
  --blue-dim: #e7f0ff; --blue-t: #2a63d6;
  --radius: 14px; --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 58, 0.06);
  --shadow: 0 4px 16px rgba(18, 38, 58, 0.08), 0 1px 2px rgba(18, 38, 58, 0.05);
  --shadow-lg: 0 20px 50px rgba(18, 38, 58, 0.18);
  --topo-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b1626;
    --bg-alt: #0f1d31;
    --surface: #12263a;
    --surface-2: #1a3350;
    --border: #1f3a57;
    --border-strong: #2d4f73;
    --text: #e8eef4;
    --text-dim: #a3b5c6;
    --text-faint: #6f8498;
    --teal-dim: #15384a; --teal-t: #5fd6c6;
    --lima-t: #d8f171;
    --amber-dim: #3a2d12; --amber-t: #ffb020;
    --red-dim: #3a1b22;   --red-t: #ff6369;
    --green-dim: #123a33; --green-t: #35d29a;
    --blue-dim: #16284a; --blue-t: #5b8dff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b1626; --bg-alt: #0f1d31; --surface: #12263a; --surface-2: #1a3350;
  --border: #1f3a57; --border-strong: #2d4f73;
  --text: #e8eef4; --text-dim: #a3b5c6; --text-faint: #6f8498;
  --teal-dim: #15384a; --teal-t: #5fd6c6; --lima-t: #d8f171;
  --amber-dim: #3a2d12; --amber-t: #ffb020; --red-dim: #3a1b22; --red-t: #ff6369; --green-dim: #123a33; --green-t: #35d29a; --blue-dim: #16284a; --blue-t: #5b8dff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow: 0 4px 18px rgba(0, 0, 0, 0.35); --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--teal-t); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 22ch; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.muted { color: var(--text-dim); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container-estreito { max-width: 820px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.pular { position: absolute; left: -999px; top: 8px; background: var(--marinho); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.pular:focus { left: 8px; }

.eyebrow { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-t); }
.sub { margin: 12px 0 0; color: var(--text-dim); font-size: 17px; max-width: 60ch; }

/* ------------------------------------------------------------------ botões */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1.2; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.bt:active { transform: translateY(1px); }
.bt-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.bt-bloco { width: 100%; }
.bt-pri { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 4px 14px rgba(24, 169, 153, 0.28); }
.bt-pri:hover { background: var(--teal-2); border-color: var(--teal-2); }
.bt-sec { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.bt-sec:hover { border-color: var(--teal); color: var(--teal-t); }
.bt-lima { background: var(--lima); color: var(--marinho); border-color: var(--lima); box-shadow: 0 6px 20px rgba(216, 241, 113, 0.25); }
.bt-lima:hover { background: var(--lima-2); border-color: var(--lima-2); }
.bt-ghost-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bt-ghost-claro:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

/* ------------------------------------------------------------------ topo */
.topo {
  position: sticky; top: 0; z-index: 50; height: var(--topo-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topo-linha { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.marca:hover { text-decoration: none; }
.marca img { width: 36px; height: 36px; object-fit: contain; }
.marca-dfe { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--text-dim); font-weight: 500; font-size: 14.5px; }
.nav > a:hover { color: var(--text); text-decoration: none; }
.nav-acoes { display: flex; gap: 10px; margin-left: 10px; }
.menu-bt { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-bt span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-bt[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-bt[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-bt[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-bt { display: flex; }
  .nav {
    position: absolute; top: var(--topo-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.aberto { display: flex; }
  .nav > a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-acoes { margin: 14px 0 0; flex-direction: column; }
  .nav-acoes .bt { width: 100%; padding: 12px; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 40px; overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 20% 30%, rgba(24, 169, 153, 0.16), transparent 70%),
              radial-gradient(40% 50% at 85% 20%, rgba(216, 241, 113, 0.22), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; } .hero { padding: 72px 0 64px; } }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--teal-t); }
.lead { margin-top: 18px; font-size: 17.5px; color: var(--text-dim); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.micro { margin-top: 14px; font-size: 13px; color: var(--text-faint); }
.cupom-chamada {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 8px;
  border: 1px dashed var(--teal); border-radius: 999px; color: var(--text); font-size: 13.5px; background: var(--surface);
}
.cupom-chamada:hover { text-decoration: none; background: var(--teal-dim); }
.cupom-chamada-tag { background: var(--lima); color: var(--marinho); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.cupom-chamada .seta { color: var(--teal-t); font-weight: 700; }

/* o mock do app */
.hero-mock { position: relative; min-width: 0; }
.mock {
  display: grid; grid-template-columns: 148px 1fr; min-height: 300px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg);
}
.mock-menu { background: var(--marinho); color: #e8eef4; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.mock-marca { display: flex; align-items: center; gap: 7px; padding: 4px 8px 12px; font-size: 13px; }
.mock-marca img { width: 22px; height: 22px; object-fit: contain; }
.mock-item { padding: 7px 10px; border-radius: 7px; color: #9fb1c2; }
.mock-item.ativo { background: #1b3d4f; color: #5fd6c6; font-weight: 600; }
.mock-corpo { padding: 14px; min-width: 0; }
.mock-cab { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.mock-busca { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--text-faint); background: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-chip { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--teal-dim); color: var(--teal-t); }
/* table-layout fixo: a largura é a do contêiner, e o emitente é que encurta (…), não a situação */
.mock-tabela { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.mock-tabela th { text-align: left; font-weight: 600; color: var(--text-faint); font-size: 11px; padding: 6px 6px; border-bottom: 1px solid var(--border); }
.mock-tabela th:nth-child(1) { width: 52px; }
.mock-tabela th:nth-child(3) { width: 84px; }
.mock-tabela th:nth-child(4) { width: 124px; }
.mock-tabela td { padding: 9px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1120px) and (min-width: 980px) { .mock-tabela th:nth-child(3), .mock-tabela td:nth-child(3) { display: none; } }
.mock-tabela tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.tag.nfe { background: var(--teal-dim); color: var(--teal-t); }
.tag.cte { background: var(--amber-dim); color: var(--amber-t); }
.tag.nfse { background: var(--blue-dim); color: var(--blue-t); }
.st { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.st.verde { background: var(--green-dim); color: var(--green-t); }
.st.amarelo { background: var(--amber-dim); color: var(--amber-t); }
.st.vermelho { background: var(--red-dim); color: var(--red-t); }
.st.cinza { background: var(--surface-2); color: var(--text-dim); }
.mock-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 12px; min-width: 180px;
}
.mock-card-a { right: -8px; bottom: -22px; }
.mock-card-b { left: -10px; top: 56%; }
.mock-card-t { font-weight: 600; color: var(--text-dim); font-size: 11.5px; }
.mock-card-s { color: var(--text-faint); margin-top: 6px; font-size: 11px; }
.mock-prog { height: 6px; background: var(--surface-2); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.mock-prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--lima)); border-radius: 999px; }
.mock-card-n { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.mock-card-n small { display: block; font-size: 11px; font-weight: 500; color: var(--amber-t); }
@media (max-width: 979px) {
  .hero-mock { margin: 0 6px 28px; }
  .mock { grid-template-columns: 1fr; }
  .mock-menu { display: none; }
  .mock-card-b { display: none; }
  .mock-card-a { right: 0; bottom: -20px; }
}

/* ------------------------------------------------------------------ faixa */
.faixa { background: var(--marinho); color: #e8eef4; padding: 28px 0; }
.faixa-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .faixa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.faixa-item { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid var(--teal); }
.faixa-item b { font-size: 18px; letter-spacing: -0.01em; color: var(--lima); }
.faixa-item span { font-size: 13px; color: #b7c6d4; line-height: 1.5; }

/* ------------------------------------------------------------------ telas (carrossel) */
.telas { padding-bottom: 56px; overflow: hidden; }
.carrossel { position: relative; max-width: 1240px; margin: 32px auto 0; padding: 0 16px; }
@media (min-width: 720px) { .carrossel { padding: 0 64px; } }
.carrossel-trilho {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding: 6px 0 12px; outline: none;
}
.carrossel-trilho::-webkit-scrollbar { display: none; }
.carrossel-trilho:focus-visible { box-shadow: 0 0 0 3px var(--teal-dim); border-radius: var(--radius); }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; min-width: 0; }
/* a cena: desenhada em 960×600 e escalada à largura do slide (site.js põe --k = largura/960) */
.cena {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.cena::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 12% 20%, rgba(24, 169, 153, 0.16), transparent 70%),
              radial-gradient(40% 50% at 90% 85%, rgba(216, 241, 113, 0.2), transparent 70%);
}
.cena-escala { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; transform: scale(var(--k, 1)); font-size: 12px; line-height: 1.4; }
.cn-janela { position: absolute; display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cn-menu { background: var(--marinho); color: #e8eef4; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.cn-marca { display: flex; align-items: center; gap: 7px; padding: 4px 8px 12px; font-size: 13px; }
.cn-marca img { width: 22px; height: 22px; object-fit: contain; }
.cn-item { padding: 7px 10px; border-radius: 7px; color: #9fb1c2; display: flex; align-items: center; gap: 6px; }
.cn-item.ativo { background: #1b3d4f; color: #5fd6c6; font-weight: 600; }
.cn-selo { font-style: normal; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 6px; }
.cn-corpo { padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cn-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cn-titulo { font-size: 15px; font-weight: 700; margin-right: 6px; letter-spacing: -0.01em; }
.cn-chip { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); }
.cn-chip.ativo { background: var(--teal-dim); color: var(--teal-t); }
.cn-bt { margin-left: auto; font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: var(--teal); color: #fff; white-space: nowrap; }
.cn-bt.sec { margin-left: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.cn-bt.sec + .cn-bt { margin-left: 0; }
.cn-cab .cn-bt.sec:first-of-type { margin-left: auto; }
.cn-aviso { font-size: 11px; padding: 8px 10px; border-radius: 8px; border: 1px solid; line-height: 1.45; }
.cn-aviso.amarelo { background: var(--amber-dim); border-color: var(--amber); color: var(--text); }
.cn-aviso.azul { background: var(--blue-dim); border-color: var(--blue-t); color: var(--text); }
.cn-tabela { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11.5px; }
.cn-tabela th { text-align: left; font-weight: 600; color: var(--text-faint); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 6px; border-bottom: 1px solid var(--border); }
.cn-tabela td { padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.cn-tabela tr:last-child td { border-bottom: 0; }
.cn-tabela td small { color: var(--text-faint); font-size: 10.5px; }
.cn-tabela th:first-child { width: 26%; }
.cn-tabela th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-tabela.docs th:nth-child(1) { width: 54px; } .cn-tabela.docs th:nth-child(3) { width: 92px; } .cn-tabela.docs th:nth-child(4) { width: 92px; } .cn-tabela.docs th:nth-child(5) { width: 150px; }
.cn-tabela.painel th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.cn-tabela.painel th:nth-child(1) { width: 28%; } .cn-tabela.painel th:nth-child(2) { width: 16%; } .cn-tabela.painel th:nth-child(3) { width: 19%; } .cn-tabela.painel th:nth-child(4) { width: 12%; } .cn-tabela.painel th:nth-child(5) { width: 13%; } .cn-tabela.painel th:nth-child(6) { width: 12%; }
.cn-tabela.ibs th:nth-child(1) { width: 24%; } .cn-tabela.ibs th:nth-child(2) { width: 30%; } .cn-tabela.ibs th:nth-child(3) { width: 9%; }
.cn-tabela.emitidas th:nth-child(1) { width: 13%; } .cn-tabela.emitidas th:nth-child(3) { width: 17%; } .cn-tabela.emitidas th:nth-child(4) { width: 17%; } .cn-tabela.emitidas th:nth-child(5) { width: 28%; }
.cn-tabela.compacta th:first-child { width: 6%; }
.cn-tabela.compacta th:nth-child(2) { width: 44%; }
.cn-tabela tr.marca-erro td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.cn-acoes span { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 6px; margin-right: 4px; }
.cn-acoes span.teal { color: var(--teal-t); border-color: var(--teal); }
.cn-grade3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cn-grade3 > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cn-grade3 small { display: block; color: var(--text-faint); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.cn-grade3 b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-grade3 b.verde { color: var(--green-t); }
.cn-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; }
.cn-erro { border: 1px solid var(--red); border-left-width: 4px; background: var(--red-dim); border-radius: 10px; padding: 10px 12px; }
.cn-erro-cab { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cn-erro p { margin: 6px 0 0; font-size: 11.5px; color: var(--text-dim); }
.cn-erro-pe { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--text-dim); }
.cn-link { color: var(--teal-t); font-weight: 600; }
.cn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cn-kpis.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.cn-kpi b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.cn-kpi span, .cn-kpi small { font-size: 10.5px; color: var(--text-dim); }
.cn-kpi small { text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
.cn-kpi.vermelho { background: var(--red-dim); border-color: var(--red); }
.cn-kpi.amarelo { background: var(--amber-dim); border-color: var(--amber); }
.cn-kpi.verde { background: var(--green-dim); border-color: var(--green); }
.cn-prog { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin: 4px 0 2px; }
.cn-prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--lima)); border-radius: 999px; }
.cn-meses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cn-meses > div { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; justify-items: start; background: var(--bg); }
.cn-meses > div.atual { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-dim); }
.cn-meses b { font-size: 12px; }
.cn-check { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.cn-check.pend { background: var(--amber-dim); border-color: transparent; }
.cn-check b { display: block; font-size: 12px; }
.cn-check small { display: block; font-size: 10.5px; color: var(--text-dim); }
.cn-barras { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; padding: 0 4px; border-bottom: 1px solid var(--border); }
.cn-barras i { display: block; height: var(--h); background: var(--teal); border-radius: 5px 5px 0 0; }
.cn-barras i:last-child { background: var(--teal-c); }
.cn-barras-rot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 0 4px; font-size: 10px; color: var(--text-faint); text-align: center; }
.cn-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 12px; }
.cn-rodape .cn-bt { margin-left: 0; font-size: 12px; padding: 7px 12px; }
.cn-envio { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.cn-envio b { display: block; font-size: 12px; }
.cn-envio small { display: block; font-size: 10.5px; color: var(--text-dim); }
.cn-mail { margin-top: 2px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg); display: grid; gap: 6px; }
.cn-mail-cab { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.cn-mail-cab b { color: var(--text); }
.cn-mail-ass { font-size: 12.5px; font-weight: 600; }
.cn-mail-anexos { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-mail-anexos span { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.cn-chat { gap: 12px; }
.cn-balao { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 12px; }
.cn-balao.eu { align-self: flex-end; background: var(--marinho); color: #fff; border-bottom-right-radius: 4px; }
.cn-balao.ia { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; max-width: 86%; }
.cn-balao.ia small { display: block; color: var(--teal-t); font-weight: 600; font-size: 10.5px; margin-bottom: 6px; }
.cn-balao.ia ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cn-balao.ia li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding: 2px 0; }
.cn-balao.ia p { margin: 8px 0 0; }
.cn-balao.ia em { display: block; margin-top: 6px; font-style: normal; font-size: 10.5px; color: var(--text-faint); }
.cn-entrada { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-faint); font-size: 12px; }
.cn-entrada .cn-bt { margin-left: 0; }
.cn-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 12px; }
.cn-card-t { font-weight: 600; color: var(--text-dim); font-size: 11.5px; }
.cn-card-s { color: var(--text-faint); margin-top: 5px; font-size: 11px; line-height: 1.45; }
.cn-card-n { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; line-height: 1.1; }
.cn-card-n small { display: block; font-size: 11px; font-weight: 500; color: var(--amber-t); margin-top: 2px; }
.slide figcaption { display: grid; gap: 4px; margin-top: 16px; padding: 0 4px; }
.slide figcaption b { font-size: 17px; }
.slide figcaption span { font-size: 14.5px; color: var(--text-dim); max-width: 70ch; }
.carrossel-seta {
  position: absolute; top: calc(50% - 60px); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 28px; line-height: 1;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 2; padding: 0 0 3px;
}
.carrossel-seta:hover { border-color: var(--teal); color: var(--teal-t); }
.carrossel-seta:disabled { opacity: .35; cursor: default; }
.carrossel-seta.anterior { left: 8px; } .carrossel-seta.proxima { right: 8px; }
@media (min-width: 720px) { .carrossel-seta { display: inline-flex; } }
.carrossel-pe { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.carrossel-pontos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.carrossel-pontos button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--border-strong); transition: transform .15s, background .15s; }
.carrossel-pontos button[aria-selected='true'] { background: var(--teal); transform: scale(1.3); }
.carrossel-contador { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ seções */
.secao { padding: 72px 0; }
.secao-alt { background: var(--bg-alt); }
@media (max-width: 719px) { .secao { padding: 52px 0; } }

/* passos */
.passos { display: grid; gap: 18px; margin-top: 36px; counter-reset: passo; }
@media (min-width: 720px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.passos li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow-sm); }
.passo-n { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--marinho); color: var(--lima); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.passos h3 { font-size: 17px; margin-bottom: 8px; }
.passos p { font-size: 14px; color: var(--text-dim); }

/* funcionalidades */
.grupo { margin-top: 44px; }
.grupo-t { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 16px; }
.grupo-ico { width: 12px; height: 12px; border-radius: 4px; background: var(--teal); flex: none; }
.grupo-ico.g2 { background: var(--amber); } .grupo-ico.g3 { background: var(--lima-2); } .grupo-ico.g4 { background: var(--blue-t); }
.selo { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--lima); color: var(--marinho); }
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h4 { margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* para quem */
.publicos { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .publicos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.publico { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.publico-contador { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-dim), var(--surface) 38%); }
.publico-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marinho); background: var(--lima); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.publico-contador .publico-tag { background: var(--teal); color: #fff; }
.publico h3 { font-size: 19px; line-height: 1.3; }
.dores { display: grid; gap: 14px; margin-top: 22px; }
.dores li { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid var(--border-strong); }
.dores b { font-size: 15px; }
.dores span { font-size: 14px; color: var(--text-dim); }

/* ------------------------------------------------------------------ planos */
.planos { display: grid; gap: 20px; margin-top: 36px; align-items: stretch; }
@media (min-width: 860px) { .planos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plano { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.plano-destaque { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.18), var(--shadow-lg); }
.plano-selo { position: absolute; top: -13px; right: 22px; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plano h3 { font-size: 26px; }
.plano-para { margin-top: 6px; color: var(--text-dim); font-size: 14.5px; }
.preco { margin: 22px 0; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border: 1px dashed var(--border-strong); }
.preco-cupom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.preco-valor { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.preco-chip { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--lima); color: var(--marinho); padding: 4px 9px; border-radius: 999px; }
.preco-tabela { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.preco-num { font-weight: 700; color: var(--text); }
.inclui { display: grid; gap: 9px; font-size: 14.5px; margin-bottom: 26px; }
.inclui li { position: relative; padding-left: 26px; }
.inclui li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-dim); }
.inclui li::after { content: ''; position: absolute; left: 5px; top: 8px; width: 4px; height: 7px; border: solid var(--teal-t); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plano .bt { margin-top: auto; }

.adicionais { margin-top: 28px; }
.adicionais h3 { font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.adicionais small { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.adicionais-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .adicionais-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adicional { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.adicional b { font-size: 15.5px; }
.adicional span { font-size: 14px; color: var(--text-dim); }
.adicional-preco { font-style: normal; font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

/* cupom */
.cupom-wrap { margin-top: 48px; }
.cupom {
  position: relative; display: grid; overflow: hidden;
  background: var(--marinho); color: #e8eef4; border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .cupom { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); } }
.cupom::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 0% 100%, rgba(24, 169, 153, 0.35), transparent 70%),
              radial-gradient(40% 60% at 100% 0%, rgba(216, 241, 113, 0.18), transparent 70%);
}
.cupom-esq { position: relative; padding: 34px 32px; }
.cupom-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lima); margin-bottom: 10px; }
.cupom-esq h3 { font-size: clamp(24px, 3vw, 32px); color: #fff; max-width: 18ch; }
.cupom-esq > p { margin-top: 14px; color: #c2d0dd; font-size: 15.5px; max-width: 52ch; }
.cupom-esq p b { color: #fff; }
.cupom-regras { display: grid; gap: 6px; margin-top: 18px; font-size: 13.5px; color: #9fb1c2; }
.cupom-regras li { padding-left: 16px; position: relative; }
.cupom-regras li::before { content: '—'; position: absolute; left: 0; color: var(--teal-c); }
.cupom-dir {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 32px 28px;
  background: rgba(255, 255, 255, 0.05); border-left: 2px dashed rgba(255, 255, 255, 0.25);
}
@media (max-width: 859px) { .cupom-dir { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.25); } }
/* os "furos" do picote, nas pontas da linha tracejada */
.cupom-dir::before, .cupom-dir::after {
  content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-alt);
}
@media (min-width: 860px) {
  .cupom-dir::before { left: -14px; top: -13px; }
  .cupom-dir::after { left: -14px; bottom: -13px; }
}
@media (max-width: 859px) {
  .cupom-dir::before { top: -14px; left: -13px; }
  .cupom-dir::after { top: -14px; right: -13px; }
}
.cupom-rotulo { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb1c2; text-align: center; }
.cupom-codigo {
  display: block; text-align: center; font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: .14em;
  color: var(--lima); padding: 12px 10px; border: 2px dashed rgba(216, 241, 113, 0.55); border-radius: 12px; background: rgba(0, 0, 0, 0.18);
}
.cupom-validade { text-align: center; font-size: 12.5px; color: #9fb1c2; margin-bottom: 6px; }
.cupom-dir .bt-sec { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cupom-dir .bt-sec:hover { border-color: #fff; color: #fff; }
.cupom-dir .bt-sec.copiado { border-color: var(--lima); color: var(--lima); }

/* ------------------------------------------------------------------ segurança */
.seg-grid { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seg { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.seg b { font-size: 15.5px; }
.seg span { font-size: 14px; color: var(--text-dim); }
.seg-links { margin-top: 22px; font-size: 14px; color: var(--text-dim); }

/* ------------------------------------------------------------------ faq */
.faq { margin-top: 30px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 15.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--teal-t); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 14.5px; color: var(--text-dim); }

/* ------------------------------------------------------------------ cta final */
.cta-final { background: linear-gradient(135deg, var(--marinho-2), var(--marinho-fundo)); color: #fff; padding: 64px 0; }
.cta-final-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-final-grid { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta-final h2 { color: #fff; }
.cta-final p { margin-top: 10px; color: #b7c6d4; font-size: 16px; }
.cta-final-acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ rodapé */
.rodape { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: 14px; }
.rodape-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .rodape-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.rodape-marca p { margin-top: 12px; color: var(--text-dim); max-width: 40ch; }
.rodape-legal { font-size: 12.5px; color: var(--text-faint); }
.rodape-col { display: grid; gap: 8px; align-content: start; }
.rodape-col b { margin-bottom: 4px; }
.rodape-col a { color: var(--text-dim); }
.rodape-col a:hover { color: var(--teal-t); }
.rodape-col .muted { font-size: 12.5px; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .bt { transition: none; }
}
