/* OrbiRV — landing page. Tokens da identidade visual (core/docs/identidade-visual.html). */
:root {
  --grafite: #1e1d2e;
  --roxo: #7b5cf0;
  --roxo-lt: #9b7ff5;
  --roxo-tint: #c4b4fa;
  --slate: #5a5470;
  --muted: #8a849e;
  --text: #12101e;
  --text-2: #4a4460;
  --bg: #f5f4fc;
  --surface: #ffffff;
  --roxo-ink: color-mix(in srgb, var(--roxo) 85%, var(--grafite));
  --roxo-soft: rgba(123, 92, 240, 0.1);
  --hover: rgba(30, 29, 46, 0.04);
  --line: rgba(30, 29, 46, 0.1);
  --line-strong: rgba(30, 29, 46, 0.24);
  --danger: #b4405a;
  --radius-item: 8px;
  --radius-panel: 12px;
  --radius-pill: 980px;
  --shadow-overlay: 0 24px 64px rgba(30, 29, 46, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; color: var(--text); text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: rgba(123, 92, 240, 0.2); }
:focus-visible { outline: 2px solid var(--roxo); outline-offset: 2px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--grafite); color: #fff; padding: 10px 14px; border-radius: var(--radius-item); }
.skip-link:focus { top: 12px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-word { font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.02em; color: var(--grafite); }
.brand-word b { font-weight: 600; color: var(--roxo); }
.mark { width: 28px; height: 28px; display: block; overflow: visible; }
.m-ring { stroke: var(--grafite); }
.m-path { stroke: var(--roxo); }
.m-moon { fill: var(--roxo); }
.m-orbit { transform-origin: 28px 28px; }
.brand:hover .m-orbit { animation: orbit 2.4s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- Botões ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 500 14px/1 var(--font-sans); letter-spacing: -0.006em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.button-primary { background: var(--roxo); color: #fff; }
.button-primary:hover { background: var(--roxo-ink); box-shadow: 0 8px 20px rgba(123, 92, 240, 0.32); transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--grafite); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--hover); border-color: var(--grafite); }
.button[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.button.is-loading:before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabeçalho ---------- */
.site-header, body > header { position: sticky; top: 0; z-index: 30; background: rgba(245, 244, 252, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body > header > .wrap, .site-header > .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body > header .brand { order: 1; }
body > header nav { order: 2; margin-left: auto; display: flex; gap: 4px; }
body > header .header-actions { order: 3; display: flex; align-items: center; gap: 10px; }
body > header nav a { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
body > header nav a:hover { background: var(--roxo-soft); color: var(--roxo-ink); }
.header-cta { min-height: 40px; }
.lbl-short { display: none; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-item); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--grafite); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
body > header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body > header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
body > header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Seções ---------- */
section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.section-head > p { font-size: 17px; color: var(--slate); max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; background: radial-gradient(900px 480px at 85% -10%, rgba(123, 92, 240, 0.16), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; max-width: 15ch; }
.hero .lede { margin-top: 24px; max-width: 34ch; color: var(--text); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.42; font-family: var(--font-display); }
.hero .lede-sub { margin-top: 14px; max-width: 52ch; color: var(--slate); font-size: 17px; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { min-height: 50px; padding: 0 26px; }
.hero-points { margin: 0; padding: 8px 24px; list-style: none; background: var(--grafite); border-radius: var(--radius-panel); box-shadow: var(--shadow-overlay); position: relative; overflow: hidden; }
.hero-points::before { content: ""; position: absolute; width: 360px; height: 140px; right: -120px; top: -50px; border: 3px solid rgba(155, 127, 245, .35); border-radius: 50%; transform: rotate(-20deg); pointer-events: none; }
.hero-points li { display: grid; gap: 3px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; }
.hero-points li:last-child { border-bottom: 0; }
.hero-points strong { color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hero-points span { color: var(--roxo-tint); font-size: 14px; }

/* ---------- Fluxo em quatro etapas ---------- */
.fx { background: var(--surface); border-bottom: 1px solid var(--line); }
.fx-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx-rail { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: var(--line); }
.fx-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--roxo); transition: width .6s var(--ease); }
.fx-pulse { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--roxo); box-shadow: 0 0 0 6px rgba(123, 92, 240, .18); transition: left .6s var(--ease); }
.fx-stop { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; color: var(--slate); cursor: pointer; text-align: center; }
.fx-stop b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--slate); margin-bottom: 10px; transition: all .3s var(--ease); }
.fx-stop strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); }
.fx-stop span { font-size: 14px; color: var(--muted); }
.fx-stop.is-done b { border-color: var(--roxo); color: var(--roxo-ink); }
.fx-stop.is-on b { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.fx-return { display: flex; align-items: center; gap: 12px; margin: 26px 12.5% 0; color: var(--slate); font-size: 14px; }
.fx-return svg { flex: 0 0 auto; width: 40%; max-width: 360px; height: 24px; fill: none; stroke: var(--roxo-tint); stroke-width: 2; }
.fx-return svg .arr { stroke: var(--roxo); }
.fx.is-loop .fx-return { color: var(--roxo-ink); }
.fx-panels { margin-top: 30px; }
.fx-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-panel); animation: rise .4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fp-main h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.fp-io { margin: 22px 0 0; display: grid; gap: 14px; }
.fp-io div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.fp-io dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--roxo-ink); }
.fp-io dd { margin: 0; color: var(--text-2); }
.fp-mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.fp-mods button, .fp-static { width: 100%; display: grid; gap: 2px; text-align: left; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font: inherit; color: inherit; }
.fp-mods button { cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fp-mods button:hover { border-color: var(--roxo); box-shadow: 0 6px 18px rgba(123, 92, 240, .14); }
.fp-mods strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.fp-mods span { font-size: 14px; color: var(--slate); }

/* ---------- Hub de integrações ---------- */
.hub { background: var(--bg); border-bottom: 1px solid var(--line); }
.hub-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(0, 1fr); gap: 0 clamp(48px, 8vw, 120px); align-items: center; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub-lines path { fill: none; stroke: var(--roxo-tint); stroke-width: 1.5; transition: stroke .2s var(--ease); }
.hub-lines path.is-hot { stroke: var(--roxo); stroke-width: 2; }
.hub-lines circle { fill: var(--roxo); }
.hub-col { position: relative; z-index: 1; }
.hub-title { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-node { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font: inherit; font-size: 15px; text-align: left; color: var(--text); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.hub-node strong { font-weight: 600; }
.hub-in span { font-size: 13px; color: var(--slate); }
.hub-in { flex-wrap: wrap; }
.hub-out { cursor: pointer; }
.hub-out b { font-size: 12px; font-weight: 600; color: var(--roxo-ink); font-variant-numeric: tabular-nums; }
.hub-node.is-hot { border-color: var(--roxo); background: var(--roxo-soft); }
.hub-core-wrap { position: relative; z-index: 1; display: grid; place-items: center; }
.hub-core { position: relative; width: 100%; padding: 32px 22px; background: var(--grafite); color: #fff; text-align: center; border-radius: 20px; box-shadow: var(--shadow-overlay); }
.hub-ring { position: absolute; inset: -10px; border-radius: 28px; border: 1px solid rgba(123, 92, 240, .45); animation: ring 3.4s ease-in-out infinite; }
@keyframes ring { 50% { opacity: .25; transform: scale(1.03); } }
.core-mark { display: block; width: 64px; margin: 0 auto 14px; }
.core-mark .mark { width: 64px; height: 64px; }
.hub-core .m-ring { stroke: #fff; }
.hub-core .m-path { stroke: var(--roxo-lt); }
.hub-core .m-moon { fill: var(--roxo-lt); }
.hub-core .m-orbit { animation: orbit 6s linear infinite; }
.hub-core strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.hub-core ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hub-core li { font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(155, 127, 245, .2); color: var(--roxo-tint); }

/* ---------- Módulos (deck) ---------- */
#modulos { background: var(--surface); border-bottom: 1px solid var(--line); }
.deck { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 1fr auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.deck-tabs { grid-row: 1 / 3; display: flex; flex-direction: column; padding: 10px; gap: 2px; background: var(--surface); border-right: 1px solid var(--line); }
.deck-tabs button { text-align: left; padding: 11px 14px; border: 0; border-radius: var(--radius-item); background: none; font: 500 14px/1.3 var(--font-sans); color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.deck-tabs button:hover { background: var(--hover); }
.deck-tabs button[aria-selected="true"] { background: var(--roxo-soft); color: var(--roxo-ink); font-weight: 600; }
.deck-stage { padding: 36px; min-width: 0; }
.slide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.slide.is-active { animation: rise .4s var(--ease) both; }
.slide-copy h3 { font-size: 28px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.slide-copy > p { margin-top: 12px; color: var(--slate); font-size: 17px; }
.gain { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.gain li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2); }
.gain li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--roxo); border-bottom: 2px solid var(--roxo); transform: rotate(-45deg); }
.slide-shots { display: grid; gap: 16px; min-width: 0; }
.deck-bar { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 36px; border-top: 1px solid var(--line); background: var(--surface); }
.deck-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--grafite); font-size: 16px; cursor: pointer; transition: all .2s var(--ease); }
.deck-btn:hover { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.deck-count { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }

/* ---------- Demonstrações animadas ---------- */
.screen { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; box-shadow: 0 10px 30px rgba(30, 29, 46, 0.08); font-size: 14px; }
.demo-head, .rota-head, .td-head, .ad-head, .chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-head strong, .rota-head strong, .td-head strong, .ad-head strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.demo-head span, .rota-head span, .td-head span, .ad-head span { font-size: 12px; color: var(--slate); }
.demo-body { padding: 18px; display: grid; gap: 12px; background: var(--bg); }
.demo-appear, .rota-stop, .td-row, .ad-row, .bp-card:not(.bp-ghost), .demo-card { animation: appear .5s var(--ease) var(--s, 0s) both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); padding: 12px 14px; }
.demo-card small { display: block; font-size: 12px; color: var(--slate); }
.demo-tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--roxo-soft); color: var(--roxo-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-track { display: block; height: 8px; border-radius: 8px; background: var(--roxo-soft); overflow: hidden; flex: 1; }
.demo-fill { display: block; height: 100%; width: var(--w, 100%); border-radius: 8px; background: var(--roxo); transform-origin: left; animation: grow .9s var(--ease) var(--s, 0s) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* Roteirizador */
.rota-lanes { padding: 16px 18px; display: grid; gap: 14px; background: var(--bg); }
.rota-lane { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; }
.rota-veh b { display: block; font-size: 13px; }
.rota-veh small { font-size: 11px; color: var(--slate); }
.rota-cap { display: block; height: 5px; margin-top: 5px; background: var(--roxo-soft); border-radius: 5px; overflow: hidden; }
.rota-cap em { display: block; height: 100%; width: var(--w); background: var(--roxo); animation: grow .8s var(--ease) var(--s) both; transform-origin: left; }
.rota-lane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rota-stop { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 12px; }
.rota-stop span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--roxo); color: #fff; font-size: 11px; font-weight: 600; }
.rota-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; background: var(--bg); align-items: stretch; }
.rota-kpi { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); animation: appear .5s var(--ease) var(--s) both; }
.rota-kpi b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.rota-kpi span { font-size: 12px; color: var(--slate); }
.rota-alert, .ad-alert { padding: 10px 14px; border-radius: var(--radius-item); background: rgba(180, 64, 90, .08); border: 1px solid rgba(180, 64, 90, .3); color: var(--danger); font-size: 13px; font-weight: 500; animation: appear .5s var(--ease) var(--s) both; }
.rota-alert { flex: 1 1 220px; display: flex; align-items: center; }

/* Torre de Controle */
.td-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 18px; background: var(--bg); }
.td-kpi { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); }
.td-kpi b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.td-kpi span { font-size: 12px; color: var(--slate); }
.td-crit b { color: var(--danger); }
.td-list { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; gap: 8px; background: var(--bg); }
.td-row { display: grid; grid-template-columns: 74px auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font-size: 13px; }
.td-row > span:nth-of-type(2) { color: var(--slate); }
.td-row small { font-size: 12px; color: var(--slate); text-align: right; }
.td-sev { padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; text-align: center; }
.td-sev-crit { background: rgba(180, 64, 90, .12); color: var(--danger); }
.td-sev-alta { background: var(--roxo-soft); color: var(--roxo-ink); }
.td-sev-media { background: var(--hover); color: var(--slate); }

/* Auditoria */
.ad-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.ad-table th, .ad-table td { padding: 10px 14px; text-align: right; font-size: 13px; border-bottom: 1px solid var(--line); }
.ad-table th:first-child, .ad-table td:first-child { text-align: left; }
.ad-table th { font-size: 12px; font-weight: 600; color: var(--slate); }
.ad-over { color: var(--danger); font-weight: 600; }
.ad-total td { font-weight: 600; background: var(--hover); }
.ad-alert { margin: 14px 18px 18px; }

/* Cotação de frete / lote / benchmark */
.cf-top { display: flex; align-items: center; gap: 10px; }
.cf-top b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.cf-price { margin-left: auto; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.cf-meta { font-size: 12px; color: var(--slate); }
.cf-comp { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--slate); }
.lb-body { gap: 8px; }
.lb-row { display: grid; grid-template-columns: 96px 70px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font-size: 13px; }
.lb-row span { color: var(--slate); }
.lb-done b { display: block; font-family: var(--font-display); }
.lb-done span { font-size: 13px; color: var(--slate); }
.bm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bm-tiles b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.bm-econ { color: var(--roxo-ink); }
.bm-row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; }
.bm-row b { text-align: right; font-size: 12px; }

/* WhatsApp / Atena */
.chat-demo { background: #ebe7fb; }
.chat-head { justify-content: flex-start; align-items: center; background: var(--grafite); border-bottom: 0; }
.chat-head strong { color: #fff; display: block; font-size: 15px; }
.chat-head span:not(.chat-avatar) { color: var(--roxo-tint); font-size: 12px; }
.chat-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--roxo); color: #fff; font-family: var(--font-display); font-weight: 600; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 340px; }
.cb { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; animation: appear .4s var(--ease) var(--d, 0s) both; }
.cb time { margin-left: 10px; font-size: 10px; color: var(--muted); }
.cb-user { align-self: flex-end; background: var(--roxo); color: #fff; border-bottom-right-radius: 3px; }
.cb-user time { color: var(--roxo-tint); }
.cb-bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 3px; }
.cb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px; background: var(--surface); animation: typing 1.2s var(--d, 0s) both; }
@keyframes typing { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; display: none; } }
.cb-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }

/* Data Lake */
.dl-grid { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.dl-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-sources li { padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font-size: 13px; }
.dl-base { padding: 20px 18px; border-radius: var(--radius-item); background: var(--grafite); color: #fff; text-align: center; }
.dl-base b { display: block; font-family: var(--font-display); font-size: 16px; }
.dl-base span { font-size: 12px; color: var(--roxo-tint); }
.dl-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; height: 150px; }
.dl-months small { grid-column: 1 / -1; align-self: start; font-size: 12px; color: var(--slate); }
.dl-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; font-size: 12px; color: var(--slate); }
.dl-bar { display: block; width: 100%; height: var(--h); background: var(--roxo); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: growy .8s var(--ease) var(--s) both; margin-bottom: 4px; }
@keyframes growy { from { transform: scaleY(0); } }

/* BPO */
.bp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bp-col h5 { margin: 0 0 8px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.bp-card { padding: 10px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-item); font-size: 12px; line-height: 1.35; }
.bp-ghost { visibility: hidden; }
.bp-move { animation: bpmove 6s var(--ease) infinite; border-color: var(--roxo); }
@keyframes bpmove { 0%, 30% { transform: translateX(0); } 55%, 100% { transform: translateX(calc(100% + 12px)); opacity: .55; } }

/* ---------- Motor de cálculo ---------- */
.dark-section { background: var(--grafite); color: #fff; }
.dark-section h2, .dark-section .eng-title { color: #fff; }
.dark-section .section-head > p { color: var(--roxo-tint); }
.engine { display: grid; grid-template-columns: 1.1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: start; }
.eng-col { min-width: 0; }
.eng-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.eng-title b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--roxo); color: #fff; font-size: 12px; }
.eng-arrow { align-self: center; color: var(--roxo-lt); font-size: 20px; }
.eng-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eng-chips li { padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid rgba(196, 180, 250, .3); color: var(--roxo-tint); font-size: 13px; transition: all .3s var(--ease); }
.eng-chips li.is-on { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.eng-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(196, 180, 250, .2); border-radius: var(--radius-panel); overflow: hidden; }
.eng-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #fff; }
.eng-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--roxo-tint); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.eng-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.eng-table td:last-child, .eng-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.eng-table tbody tr { opacity: .2; transition: opacity .35s var(--ease), background-color .35s var(--ease); }
.eng-table tbody tr.is-on { opacity: 1; background: rgba(123, 92, 240, .18); }
.eng-table tbody tr.is-on.has-diff td:last-child { color: #ffb4c4; }
.eng-table tfoot td { padding: 10px 12px; font-weight: 600; }
.eng-aud .eng-table tfoot td:last-child, #engDiff { color: #ffb4c4; }
.eng-result { margin: 12px; padding: 12px 14px; display: grid; gap: 4px; border: 1px solid rgba(180, 64, 90, .6); border-radius: var(--radius-item); background: rgba(180, 64, 90, .15); opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.eng-result.is-on { opacity: 1; transform: none; }
.eng-badge { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffb4c4; }
.eng-result span:last-child { font-size: 14px; line-height: 1.5; color: #ffe0e8; }

/* ---------- Contato ---------- */
.cta { background: linear-gradient(135deg, var(--roxo) 0%, #5b3fd0 100%); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.03em; max-width: 14ch; font-weight: 600; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta-copy { margin-top: 20px; font-size: 18px; max-width: 40ch; color: #efeaff; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 15px; }
#leadForm { padding: 28px; background: var(--surface); color: var(--text); border-radius: var(--radius-panel); box-shadow: var(--shadow-overlay); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
input, textarea { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-item); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px rgba(123, 92, 240, .2); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 64, 90, .14); }
.more { margin-bottom: 16px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--roxo-ink); margin-bottom: 14px; }
#leadForm .button { width: 100%; min-height: 48px; }
#formMsg { margin-top: 14px; font-size: 14px; }
#formMsg.ok, #formMsg.err { padding: 12px 14px; border-radius: var(--radius-item); border: 1px solid; }
#formMsg.ok { color: var(--roxo-ink); background: var(--roxo-soft); border-color: var(--roxo-tint); }
#formMsg.err { color: var(--danger); background: rgba(180, 64, 90, .08); border-color: rgba(180, 64, 90, .3); }
.privacy { margin-top: 14px; font-size: 13px; color: var(--slate); }
.privacy a { color: var(--roxo-ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé e cookies ---------- */
footer { padding: 30px 0; background: var(--grafite); color: var(--roxo-tint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: #fff; text-decoration: none; padding: 4px 0; }
footer a:hover { color: var(--roxo-tint); text-decoration: underline; }
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 22px; background: var(--grafite); color: #fff; border-radius: var(--radius-panel); box-shadow: var(--shadow-overlay); font-size: 14px; }
.cookie-banner p { flex: 1 1 320px; color: #e6e1fa; }
.cookie-banner a { color: var(--roxo-tint); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-banner .button { min-height: 40px; }
.cookie-banner .button-secondary { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cookie-banner .button-secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Páginas legais ---------- */
body.legal main { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 72px; }
body.legal .back { font-size: 14px; color: var(--text-2); text-decoration: none; }
body.legal .back:hover { color: var(--roxo-ink); }
body.legal h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 8px; }
body.legal h2 { margin: 36px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
body.legal p, body.legal li { font-size: 16px; color: var(--text-2); }
body.legal ul, body.legal ol { padding-left: 22px; }
body.legal li { margin: 6px 0; }
body.legal a { color: var(--roxo-ink); text-underline-offset: 3px; }
body.legal .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
body.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: var(--surface); border-radius: var(--radius-item); overflow: hidden; }
body.legal th, body.legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
body.legal th { background: var(--roxo-soft); color: var(--text); }
body.legal code { padding: 1px 6px; background: var(--roxo-soft); border-radius: 4px; font-size: 13px; }
body.legal .note, body.legal .summary, body.legal .toc { padding: 16px 20px; margin: 20px 0; background: var(--roxo-soft); border: 1px solid var(--roxo-tint); border-radius: var(--radius-panel); }
body.legal .summary h2 { margin-top: 0; }
body.legal .toc ol { columns: 2; margin: 8px 0 0; }
body.legal footer { margin-top: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .engine { grid-template-columns: 1fr 1fr; }
  .eng-arrow { display: none; }
  .deck { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .deck-tabs { grid-row: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .deck-tabs button { white-space: nowrap; }
  .deck-bar { grid-column: 1; }
}
@media (max-width: 950px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-layout, .cta-grid, .section-head, .fx-panel, .slide { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .section-head { margin-bottom: 32px; gap: 14px; }
  .hub-grid { grid-template-columns: 1fr; gap: 28px; }
  .hub-lines { display: none; }
  .deck-stage { padding: 22px 16px; }
  .deck-bar { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  body > header .wrap { flex-wrap: wrap; }
  body > header nav { order: 4; display: none; width: 100%; flex-direction: column; padding: 8px 0 14px; }
  body > header.is-open nav { display: flex; }
  body > header nav a { padding: 12px 8px; }
  body > header .header-actions { margin-left: auto; }
  body > header nav { margin-left: 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .fx-track { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .fx-rail, .fx-return svg { display: none; }
  .fx-return { margin: 18px 0 0; }
  .fx-panel { padding: 22px 16px; }
  .engine, .form-grid { grid-template-columns: 1fr; }
  .rota-lane { grid-template-columns: 1fr; }
  .td-row { grid-template-columns: 70px 1fr; }
  .td-row small { grid-column: 2; text-align: left; }
  .lb-row { grid-template-columns: 1fr auto; }
  .lb-row .demo-track { grid-column: 1 / -1; }
  .dl-grid, .bm-tiles { grid-template-columns: 1fr; }
  .bp-cols { grid-template-columns: 1fr; }
  #leadForm { padding: 20px 16px; }
  body.legal .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
