/* Sites públicos do portal. Cores e fontes vêm do tema da operação (variáveis em :root, geradas por lib/site.mjs). */
:root { --bg:#0f1412; --surface:#17201c; --text:#f1efe8; --muted:#a7b0aa; --primary:#d8b25a; --primary-text:#16120a; --accent:#3d7853; --border:#2a3631; --radius:14px; --font:system-ui,sans-serif; --font-head:var(--font); }
*, *::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: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.b { padding: clamp(48px, 8vw, 96px) 0; }
.b + .b { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .8em; }
.sub, .lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.b-head { margin-bottom: clamp(24px, 4vw, 44px); }
.note { color: var(--muted); font-size: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .7em 1.3em; border-radius: calc(var(--radius) * .7);
  background: var(--primary); color: var(--primary-text); font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn-lg { min-height: 52px; padding: .8em 1.6em; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 .8em; }

/* menu */
.b-navbar { padding: 14px 0; 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(--border); }
.b-navbar + .b { border-top: 0; }
.b-navbar .wrap { display: flex; align-items: center; gap: 24px; }
.b-navbar .brand { display: flex; align-items: center; gap: 10px; font: 800 1.1rem var(--font-head); text-decoration: none; }
.b-navbar .brand-logo { height: 34px; width: auto; }
.b-navbar ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.b-navbar ul a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.b-navbar ul a:hover { color: var(--text); }
.b-navbar.v-centralizado .wrap { flex-direction: column; gap: 10px; }
.b-navbar.v-centralizado ul { margin: 0; }
.b-navbar.v-flutuante { position: sticky; top: 12px; background: transparent; border: 0; backdrop-filter: none; }
.b-navbar.v-flutuante .wrap { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px 8px 20px; backdrop-filter: blur(10px); }
@media (max-width: 820px) { .b-navbar ul { display: none; } .b-navbar .btn { margin-left: auto; } }

/* destaque */
.b-hero { padding-top: clamp(48px, 9vw, 120px); }
.b-hero .wrap { display: grid; gap: 40px; align-items: center; }
.b-hero.v-dividido .wrap { grid-template-columns: 1.1fr .9fr; }
.b-hero.v-centralizado .wrap, .b-hero.v-cartaz .wrap { text-align: center; justify-items: center; }
.b-hero.v-centralizado .lead, .b-hero.v-cartaz .lead { margin-inline: auto; }
.b-hero.v-centralizado .actions, .b-hero.v-cartaz .actions { justify-content: center; }
.b-hero.v-cartaz { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 55%, var(--bg)) 0%, var(--bg) 70%); }
.b-hero.v-cartaz h1 { font-size: clamp(2.5rem, 7.5vw, 5.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
.b-hero.v-painel .wrap { grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.6); padding: clamp(28px, 5vw, 64px); }
.b-hero .hero-img { border-radius: calc(var(--radius) * 1.3); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .55); }
@media (max-width: 860px) { .b-hero.v-dividido .wrap { grid-template-columns: 1fr; } }

/* vantagens */
.b-features .items { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.b-features .items li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.b-features .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); font-weight: 800; margin-bottom: 14px; }
.b-features .items p { color: var(--muted); margin: 0; }
.b-features.v-lista .items { grid-template-columns: 1fr; max-width: 820px; }
.b-features.v-lista .items li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 18px 0; }
.b-features.v-lista .ico { grid-row: span 2; margin: 0; }
.b-features.v-destaque-lateral .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.b-features.v-destaque-lateral .b-head { position: sticky; top: 100px; }
@media (max-width: 860px) { .b-features.v-destaque-lateral .wrap { grid-template-columns: 1fr; } .b-features.v-destaque-lateral .b-head { position: static; } }

/* passos */
.b-steps .items { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.b-steps .items li { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.b-steps .num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-text); font: 800 1rem var(--font-head); }
.b-steps .items p { color: var(--muted); margin: 0; }
.b-steps.v-linha-do-tempo .items { grid-template-columns: 1fr; max-width: 760px; gap: 0; }
.b-steps.v-linha-do-tempo .items li { border: 0; border-left: 2px solid var(--border); border-radius: 0; background: transparent; padding: 0 0 30px 24px; margin-left: 20px; position: relative; }
.b-steps.v-linha-do-tempo .num { position: absolute; left: -21px; top: 0; }
.b-steps.v-linha-do-tempo .items li > div { padding-left: 20px; }

/* chamada */
.cta-box { text-align: center; padding: clamp(32px, 6vw, 72px); border-radius: calc(var(--radius) * 1.6); background: var(--surface); border: 1px solid var(--border); }
.cta-box p { color: var(--muted); max-width: 58ch; margin-inline: auto; }
.b-cta.v-destaque .cta-box { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, var(--surface)), var(--surface)); }
.b-cta.v-escuro .cta-box { background: #0a0c0b; color: #f4f2ec; border-color: #222; }
.b-cta.v-faixa { padding: 0; }
.b-cta.v-faixa .wrap { width: 100%; }
.b-cta.v-faixa .cta-box { border-radius: 0; border: 0; background: var(--primary); color: var(--primary-text); }
.b-cta.v-faixa .cta-box p { color: inherit; opacity: .85; }
.b-cta.v-faixa .btn { background: var(--primary-text); color: var(--primary); }

/* faq */
.b-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.b-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.b-faq summary::after { content: '+'; color: var(--primary); font-weight: 800; }
.b-faq details[open] summary::after { content: '–'; }
.b-faq details p { color: var(--muted); margin: 12px 0 0; }

/* formulário */
.form-box { display: grid; gap: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); padding: clamp(24px, 5vw, 56px); }
.b-lead_form.v-lateral .form-box { grid-template-columns: 1fr 1fr; align-items: center; }
.b-lead_form.v-faixa .form-box { background: transparent; border: 0; padding: 0; grid-template-columns: 1fr 1.2fr; align-items: end; }
.form-copy p { color: var(--muted); }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.lead-form input:not([type=checkbox]) { min-height: 48px; padding: 0 14px; border-radius: calc(var(--radius) * .6); border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .86rem; }
.lead-form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; margin: 0; font-weight: 600; }
.lead-form.ok .form-msg { color: var(--primary); }
@media (max-width: 860px) { .b-lead_form.v-lateral .form-box, .b-lead_form.v-faixa .form-box { grid-template-columns: 1fr; } }

/* números */
.b-stats .items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.b-stats .items li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.b-stats strong { display: block; font: 800 clamp(2rem, 4.5vw, 3rem)/1 var(--font-head); color: var(--primary); margin-bottom: 8px; }
.b-stats span { color: var(--muted); }
.demo-tag { margin-top: 16px; font-size: .85rem; color: var(--muted); border-left: 3px solid var(--primary); padding-left: 10px; }

/* tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ofertas */
.b-offers .items { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.b-offers .items li { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.b-offers .offer-body { flex: 1; }
.b-offers .offer-body p { color: var(--muted); margin: 0; }
.b-offers .offer-img { border-radius: calc(var(--radius) * .7); aspect-ratio: 16/9; object-fit: cover; }
.badge, .tag { display: inline-block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); margin-bottom: 10px; }
.b-offers.v-ranking .items { counter-reset: r; grid-template-columns: 1fr; }
.b-offers.v-ranking .items li { flex-direction: row; align-items: center; counter-increment: r; }
.b-offers.v-ranking .items li::before { content: counter(r); font: 800 2rem var(--font-head); color: var(--primary); width: 44px; flex: none; }
.b-offers.v-ranking .offer-img { width: 120px; aspect-ratio: 4/3; }
.b-offers.v-lista .items { grid-template-columns: 1fr; gap: 0; }
.b-offers.v-lista .items li { flex-direction: row; align-items: center; border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 18px 0; }
@media (max-width: 640px) { .b-offers.v-ranking .items li, .b-offers.v-lista .items li { flex-direction: column; align-items: flex-start; } }
.disclosure { margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* cartões */
.b-cards .items { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.b-cards .items a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.b-cards .items a:hover { border-color: var(--primary); }
.b-cards .card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.b-cards .card-body { padding: 20px; }
.b-cards .card-body p { color: var(--muted); margin: 0; }
.b-cards.v-mosaico .items { grid-template-columns: repeat(6, 1fr); }
.b-cards.v-mosaico .items li { grid-column: span 2; }
.b-cards.v-mosaico .items li:nth-child(1), .b-cards.v-mosaico .items li:nth-child(2) { grid-column: span 3; }
.b-cards.v-carrossel .items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.b-cards.v-carrossel .items li { flex: 0 0 min(300px, 80%); scroll-snap-align: start; }
@media (max-width: 760px) { .b-cards.v-mosaico .items { grid-template-columns: 1fr; } .b-cards.v-mosaico .items li { grid-column: auto !important; } }

/* imagem e texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.b-image_text.v-imagem-esquerda .media { order: -1; }
.b-image_text p { color: var(--muted); }
.b-image_text .media img, .placeholder { border-radius: calc(var(--radius) * 1.3); }
.placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .b-image_text.v-imagem-esquerda .media { order: 0; } }

/* logos, faixa, contato, aviso, rodapé */
.b-logos { padding: 36px 0; }
.logos-title { text-align: center; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.b-logos ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px; }
.b-logos a { text-decoration: none; font-weight: 700; color: var(--muted); }
.b-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .8; }
.b-ticker { padding: 14px 0; background: var(--primary); color: var(--primary-text); overflow: hidden; border: 0 !important; }
.b-ticker .track { display: flex; gap: 48px; width: max-content; animation: tick 32s linear infinite; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
@keyframes tick { to { transform: translateX(-50%); } }
.b-contact .channels { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.b-notice { padding: 20px 0; font-size: .9rem; color: var(--muted); }
.b-notice.v-alerta { background: color-mix(in srgb, var(--primary) 12%, var(--bg)); color: var(--text); }
.b-notice p { margin: 0; }
.b-footer { padding: 48px 0; background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.b-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.b-footer p { color: var(--muted); font-size: .92rem; }
.b-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.b-footer ul a { color: var(--muted); text-decoration: none; }
.b-footer .disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; margin: 0; font-size: .82rem; }
@media (max-width: 760px) { .b-footer .wrap { grid-template-columns: 1fr; } .b-footer ul { justify-content: flex-start; } }

/* jornada guiada (teste A/B) */
.b-journey .jx-box { text-align: center; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) * 1.4); background: var(--surface); border: 1px solid var(--border); }
.b-journey .jx-box p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.b-journey.v-faixa .jx-box { background: var(--primary); color: var(--primary-text); border: 0; }
.b-journey.v-faixa .jx-box p { color: inherit; opacity: .85; }
.b-journey.v-faixa .btn { background: var(--primary-text); color: var(--primary); }
.b-journey.v-botao .jx-box { background: transparent; border: 0; padding: 0; }
html.jx-open { overflow: hidden; }
.jx-overlay { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .72); backdrop-filter: blur(3px); display: grid; place-items: end center; padding: 0; }
@media (min-width: 720px) { .jx-overlay { place-items: center; padding: 16px; } }
.jx-sheet { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0; padding: 26px 22px 28px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
@media (min-width: 720px) { .jx-sheet { border-radius: calc(var(--radius) * 1.4); padding: 32px; } }
.jx-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; border-radius: 50%; }
.jx-progress { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 0 40px 18px 0; }
.jx-progress i { display: block; height: 100%; background: var(--primary); transition: width .25s ease; }
.jx-count { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.jx-body h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.jx-body p { color: var(--muted); }
.jx-body .btn { width: 100%; margin-top: 10px; }
.jx-body .btn-sm { width: auto; }
.jx-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.jx-copy { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) * .7); background: var(--surface); margin-top: 10px; }
.jx-list .jx-copy { margin: 0; }
.jx-copy span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.jx-copy code { font: 600 .95rem/1.3 ui-monospace, monospace; overflow-wrap: anywhere; }
.jx-copy .btn { margin: 0; width: auto; }
.jx-final { text-align: center; padding: 10px 0; }
.jx-back { display: block; margin: 14px auto 0 !important; }

/* barras do sistema */
.preview-bar, .demo-bar { position: sticky; top: 0; z-index: 30; text-align: center; font: 700 .8rem/1 system-ui, sans-serif; padding: 9px 12px; background: #f5c542; color: #1d1600; letter-spacing: .04em; }
.demo-bar { background: #3b4bd8; color: #fff; position: static; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 60px -20px rgb(0 0 0 / .6); font-size: .9rem; }
.consent p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.consent div { display: flex; gap: 8px; }
body.mode-claro .b-cta.v-escuro .cta-box { color: #f4f2ec; }
