:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --card: #ffffff;
  --ink: #141824;
  --muted: #5c6578;
  --line: #e4e7ef;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --accent-text: #4338ca;
  --ok: #15803d;
  --shadow: 0 1px 2px rgba(20, 24, 36, .05), 0 6px 20px rgba(20, 24, 36, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1118;
    --bg-alt: #141823;
    --card: #181d29;
    --ink: #eceef4;
    --muted: #9aa3b5;
    --line: #262c3a;
    --accent: #6d66f2;
    --accent-soft: #23234a;
    --accent-text: #a5a1ff;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.secao { padding: 64px 0; }
.secao-alt { background: var(--bg-alt); }
.secao-titulo { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.secao-titulo p { color: var(--muted); }
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.muted { color: var(--muted); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn-pri:hover { filter: brightness(1.08); }
.btn-sec { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-p { padding: 9px 16px; font-size: .92rem; }
.btn-bloco { width: 100%; }

/* Topo */
.aviso-lancamento { background: var(--accent-soft); color: var(--ink); text-align: center; font-size: .88rem; padding: 8px 16px; }
.aviso-lancamento a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.topo { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.logo-marca { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; }
.menu { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.menu a:not(.btn):hover, .menu a.ativo { color: var(--accent-text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-size: 1.2rem; padding: 4px 11px; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 64px; background: radial-gradient(1000px 400px at 50% -10%, var(--accent-soft), transparent 70%); text-align: center; }
.hero p.sub { font-size: 1.18rem; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-acoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-provas { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: .95rem; }
.hero-provas span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Grade e cards */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.agente-card { display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s ease; }
.agente-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.agente-topo { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.agente-icone { font-size: 1.7rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); }
.agente-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.agente-preco { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.agente-preco b { color: var(--ink); font-size: 1.05rem; }
.selo { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.selo-pop { background: #fef3c7; color: #92400e; }
@media (prefers-color-scheme: dark) { .selo-pop { background: #3a2a0a; color: #fcd34d; } }

/* Passos */
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: passo; }
.passo { position: relative; padding-top: 58px; }
.passo::before { counter-increment: passo; content: counter(passo); position: absolute; top: 18px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.passo p { color: var(--muted); margin: 0; }

/* Faixa CTA */
.faixa { background: var(--accent); color: #fff; border-radius: 20px; padding: 44px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.faixa h2 { margin-bottom: 6px; }
.faixa p { margin: 0; opacity: .9; }
.faixa .btn { background: #fff; color: var(--accent); }

/* Catálogo */
.filtros { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.busca { flex: 1 1 260px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.busca:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.chip.ativo { background: var(--accent); border-color: var(--accent); color: #fff; }
.vazio { text-align: center; padding: 48px 0; color: var(--muted); }

/* Página do agente */
.voltar { display: inline-block; color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.voltar:hover { color: var(--accent-text); }
.detalhe { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.detalhe-cab { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.detalhe-cab .agente-icone { width: 72px; height: 72px; font-size: 2.3rem; flex: 0 0 72px; }
.detalhe-cab h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 6px 0 0; }
.lista-check { list-style: none; padding: 0; margin: 0 0 8px; }
.lista-check li { padding: 6px 0 6px 28px; position: relative; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 11px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .88rem; }
.bloco { margin-bottom: 30px; }
.lateral { position: sticky; top: 90px; }
.plano-opcao { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.plano-opcao:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plano-opcao input { margin-right: 8px; accent-color: var(--accent); }
.plano-opcao .valor { float: right; font-weight: 700; }
.plano-opcao small { display: block; color: var(--muted); margin: 4px 0 0 24px; }
.linha-info { display: flex; justify-content: space-between; font-size: .92rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.linha-info:last-of-type { border: 0; margin-bottom: 14px; }

/* Planos */
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; }
.plano { position: relative; display: flex; flex-direction: column; }
.plano.destaque { border: 2px solid var(--accent); }
.plano .selo { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; }
.plano .preco { font-size: 1.05rem; color: var(--muted); margin-bottom: 16px; }
.plano .preco b { font-size: 2.2rem; color: var(--ink); }
.plano .lista-check { flex: 1; margin-bottom: 20px; }
.tabela-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .94rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-alt); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td a:hover { color: var(--accent-text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Formulários */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 16px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.campo textarea { min-height: 110px; resize: vertical; }
.aviso { font-size: .86rem; color: var(--muted); margin: 0; }
.sucesso { text-align: center; padding: 40px 24px; }
.sucesso .grande { font-size: 3rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding: 48px 0 20px; background: var(--bg-alt); margin-top: 40px; }
.rodape-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.rodape p { color: var(--muted); max-width: 340px; margin-top: 12px; font-size: .94rem; }
.rodape h4 { margin: 0 0 12px; font-size: .95rem; }
.rodape-in > div > a:not(.logo) { display: block; color: var(--muted); padding: 4px 0; font-size: .94rem; }
.rodape-in > div > a:not(.logo):hover { color: var(--accent-text); }
.rodape-base { color: var(--muted); font-size: .85rem; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Celular */
@media (max-width: 860px) {
  .detalhe, .form-wrap { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .rodape-in { grid-template-columns: 1fr 1fr; }
  .rodape-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .menu.aberto { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
  .secao { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .duas { grid-template-columns: 1fr; }
  .faixa { padding: 32px 22px; }
  .faixa .btn { width: 100%; }
}
