/* =====================================================================
   GRV Gestão - folha de estilo do site
   Tema claro por padrão; tema escuro em html[data-theme="dark"].
   Regra visual: cores sólidas, sem degradê. Profundidade vem de sombra,
   camadas e das cenas 3D (assets/js/cena3d.js).
   ===================================================================== */

:root {
  color-scheme: light;
  --fundo: #FFFFFF;
  --fundo-alt: #F3F7FB;
  --fundo-elev: #FFFFFF;
  --fundo-topo: rgba(255, 255, 255, .92);
  --linha: #DCE5EF;
  --linha-forte: #C3D2E3;
  --tinta: #0D2340;
  --tinta2: #4A5D78;
  --tinta3: #586983;
  --azul: #016BB5;
  --azul-forte: #01528C;
  --azul-btn: #016BB5;
  --azul-btn-hover: #01528C;
  --azul-suave: #E6F1FA;
  --azul-suave2: #D3E6F6;
  --ciano: #129FD1;
  --ambar: #F5B800;
  --ambar-tinta: #0D2340;
  --verde: #187A4D;
  --verde-suave: #E5F5EC;
  --vermelho: #D64545;
  --faixa-cta: #016BB5;
  --faixa-cta-tinta: #FFFFFF;
  --logo-fundo: #FFFFFF;
  --sombra: 0 1px 2px rgba(13, 35, 64, .06), 0 8px 24px rgba(13, 35, 64, .07);
  --sombra-alta: 0 2px 4px rgba(13, 35, 64, .06), 0 30px 60px -20px rgba(13, 35, 64, .30);
  --sombra-flutua: 0 2px 6px rgba(13, 35, 64, .10), 0 24px 50px -16px rgba(13, 35, 64, .36);
  /* cores lidas pela cena 3D */
  --3d-peca: #016BB5;
  --3d-peca2: #129FD1;
  --3d-claro: #FFFFFF;
  --3d-linha: #7FB3DD;
  --3d-ponto: #016BB5;
  --3d-vidro: #FFFFFF;

  --f-disp: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-corpo: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --raio: 14px;
  --raio-g: 22px;
  --topo-h: 72px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --fundo: #0A1220;
  --fundo-alt: #0E192C;
  --fundo-elev: #12203A;
  --fundo-topo: rgba(10, 18, 32, .90);
  --linha: #1E3150;
  --linha-forte: #2C4469;
  --tinta: #E8EFF8;
  --tinta2: #A8B7CC;
  --tinta3: #8193AE;
  --azul: #4AA3EC;
  --azul-forte: #7CBDF2;
  --azul-btn: #1673C2;
  --azul-btn-hover: #1E85DB;
  --azul-suave: #12304F;
  --azul-suave2: #183C62;
  --ciano: #38BDEB;
  --ambar: #F5B800;
  --ambar-tinta: #0D2340;
  --verde: #3CC48A;
  --verde-suave: #10362A;
  --vermelho: #F07070;
  --faixa-cta: #12304F;
  --faixa-cta-tinta: #FFFFFF;
  --logo-fundo: #F4F7FB;
  --sombra: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .30);
  --sombra-alta: 0 2px 4px rgba(0, 0, 0, .40), 0 30px 60px -20px rgba(0, 0, 0, .65);
  --sombra-flutua: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 50px -16px rgba(0, 0, 0, .70);
  --3d-peca: #1E86D8;
  --3d-peca2: #38BDEB;
  --3d-claro: #12203A;
  --3d-linha: #2F6FA8;
  --3d-ponto: #4AA3EC;
  --3d-vidro: #16284A;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font-family: var(--f-corpo); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; transition: background-color .25s, color .25s; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--azul-btn); color: #fff; }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-disp); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; color: var(--tinta); }
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
.wrap-estreito { max-width: 900px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--azul-btn); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.pular:focus { top: 12px; }
kbd, .kbd { font-family: var(--f-mono); font-size: .82em; font-weight: 600; color: var(--tinta); background: var(--fundo-alt); border: 1px solid var(--linha-forte); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* ---------- tipografia de seção ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-disp); font-weight: 600; font-size: 14px; color: var(--azul); letter-spacing: .03em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 700; letter-spacing: -0.028em; }
.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.lead { color: var(--tinta2); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 64ch; }
.destaque { color: var(--azul); }
.texto2 { color: var(--tinta2); }
.texto3 { color: var(--tinta3); }
.pequeno { font-size: 14px; }
.mono { font-family: var(--f-mono); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; font-family: var(--f-disp); font-weight: 600; font-size: 16px; line-height: 1.2; border-radius: 11px; padding: 14px 22px; border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pri { background: var(--azul-btn); color: #fff; box-shadow: 0 8px 20px -8px rgba(1, 107, 181, .6); }
.btn-pri:hover { background: var(--azul-btn-hover); transform: translateY(-1px); }
.btn-sec { border-color: var(--linha-forte); color: var(--tinta); background: var(--fundo-elev); }
.btn-sec:hover { border-color: var(--azul); color: var(--azul); }
.btn-claro { background: #fff; color: #01528C; }
.btn-claro:hover { background: #E6F1FA; transform: translateY(-1px); }
.btn-contorno-claro { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-contorno-claro:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.link-seta { display: inline-flex; align-items: center; gap: 6px; color: var(--azul); font-weight: 600; text-decoration: none; font-family: var(--f-disp); font-size: 15.5px; }
.link-seta::after { content: "→"; transition: transform .2s; }
.link-seta:hover::after { transform: translateX(4px); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 60; background: var(--fundo-topo); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background-color .25s; }
.topo.rolou { border-bottom-color: var(--linha); box-shadow: 0 6px 20px -14px rgba(13, 35, 64, .35); }
.topo .wrap { display: flex; align-items: center; gap: 18px; height: var(--topo-h); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-disp); font-weight: 600; font-size: 19px; color: var(--azul-forte); flex: none; }
html[data-theme="dark"] .marca { color: var(--tinta); }
.marca img { width: 34px; height: 34px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--tinta2); font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 9px; transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--azul); background: var(--azul-suave); }
.menu a[aria-current="page"] { color: var(--azul); background: var(--azul-suave); }
.topo-acoes { display: flex; align-items: center; gap: 8px; flex: none; }
.ico-bt { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--linha); background: var(--fundo-elev); color: var(--tinta2); cursor: pointer; text-decoration: none; transition: color .15s, border-color .15s; }
.ico-bt:hover { color: var(--azul); border-color: var(--azul); }
.ico-bt svg { width: 20px; height: 20px; }
.tema-bt .lua { display: none; }
html[data-theme="dark"] .tema-bt .sol { display: none; }
html[data-theme="dark"] .tema-bt .lua { display: block; }
.menu-bt { display: none; }

/* ---------- seções ---------- */
.sec { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.sec.alt { background: var(--fundo-alt); }
.sec.sem-topo { padding-top: 0; }
.sec-cab { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.sec-cab.centro { margin-inline: auto; text-align: center; justify-items: center; }
.sec-cab.centro .lead { margin-inline: auto; }
.sec-cab .eyebrow + * { margin-top: 2px; }
.divisor { height: 1px; background: var(--linha); border: 0; margin: 0; }

/* ---------- grades ---------- */
.g2, .g3, .g4 { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dividido { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dividido.inverte > :first-child { order: 2; }
.dividido.largo-esq { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dividido.largo-dir { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }

/* ---------- cartões ---------- */
.card { position: relative; background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .2s, box-shadow .2s, transform .25s; min-width: 0; }
a.card { text-decoration: none; color: inherit; }
.card:hover, a.card:focus-visible { border-color: var(--azul); box-shadow: var(--sombra); transform: translateY(-3px); }
.card.parado:hover { transform: none; box-shadow: none; border-color: var(--linha); }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { color: var(--tinta2); font-size: 15.5px; }
.card .rodape-card { margin-top: 6px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--azul-suave); color: var(--azul); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; }
.ico.solido { background: var(--azul-btn); color: #fff; }
.ico.g { width: 56px; height: 56px; border-radius: 15px; }
.ico.g svg { width: 28px; height: 28px; }
.novo { display: inline-block; font-family: var(--f-disp); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--ambar-tinta); background: var(--ambar); border-radius: 6px; padding: 2px 8px; line-height: 1.5; }
.card > .novo { position: absolute; top: 18px; right: 18px; }
.etiqueta { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--azul); background: var(--azul-suave); border-radius: 999px; padding: 3px 10px; }
.etiqueta.verde { color: var(--verde); background: var(--verde-suave); }

/* cartão 3D: inclina seguindo o mouse (data-tilt) */
.tilt-palco { perspective: 1400px; }
[data-tilt] { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .35s ease-out, box-shadow .2s, border-color .2s; will-change: transform; }
[data-tilt] .tz { transform: translateZ(36px); }

/* ---------- janela do sistema (moldura para prints) ---------- */
.janela { border-radius: 12px; overflow: hidden; background: var(--fundo-elev); box-shadow: var(--sombra-alta); border: 1px solid var(--linha); min-width: 0; }
.janela-barra { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: #016BB5; color: #fff; font-size: 12px; font-family: var(--f-corpo); white-space: nowrap; overflow: hidden; }
.janela-barra b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.janela-barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); flex: none; }
.janela-barra i:first-of-type { margin-left: auto; }
.janela img { width: 100%; height: auto; }
.legenda { margin-top: 14px; font-size: 13.5px; color: var(--tinta3); }

/* ---------- cena 3D ---------- */
.cena3d { position: relative; min-width: 0; }
.cena3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.cena3d .reserva { display: none; }
.cena3d.sem-3d canvas { display: none; }
.cena3d.sem-3d .reserva { display: block; }
.cena3d-fundo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cena3d-fundo canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.rotulo3d { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--fundo-elev); color: var(--tinta); border: 1px solid var(--linha-forte); border-radius: 999px; padding: 7px 14px 7px 8px; font-family: var(--f-disp); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--sombra); cursor: default; transition: border-color .2s, opacity .2s; }
.rotulo3d .pt { width: 22px; height: 22px; border-radius: 50%; background: var(--azul-btn); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.rotulo3d:hover, .rotulo3d.ativo { border-color: var(--azul); color: var(--azul); }
.rotulo3d.atras { opacity: .55; }

/* ---------- hero da home ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: center; min-width: 0; }
.selo-versao { max-width: 100%; min-width: 0; display: inline-flex; align-items: center; gap: 10px; justify-self: start; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--tinta2); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--sombra); transition: border-color .2s; }
.selo-versao:hover { border-color: var(--azul); }
.selo-versao b { font-family: var(--f-disp); font-size: 13px; color: var(--ambar-tinta); background: var(--ambar); border-radius: 999px; padding: 3px 10px; }
.selo-versao span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cena { height: clamp(380px, 46vw, 600px); }
.hero-cena .reserva img { width: 100%; height: 100%; object-fit: contain; }
.hero-metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 540px; margin-top: 6px; }
.hero-metricas div { border-left: 3px solid var(--azul); padding-left: 12px; }
.hero-metricas b { display: block; font-family: var(--f-disp); font-size: 27px; font-weight: 700; color: var(--tinta); line-height: 1.1; }
.hero-metricas span { font-size: 13.5px; color: var(--tinta2); line-height: 1.35; display: block; margin-top: 3px; }
.grade-fundo { position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.3' fill='%23C3D2E3'/%3E%3C/svg%3E"); background-size: 26px 26px; opacity: .8; }
html[data-theme="dark"] .grade-fundo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.3' fill='%232C4469'/%3E%3C/svg%3E"); }

/* ---------- cabeçalho das páginas internas ---------- */
.pag-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--linha); background: var(--fundo-alt); }
.pag-hero .wrap { position: relative; z-index: 1; display: grid; gap: 18px; }
.pag-hero .h1 { max-width: 18ch; }
.pag-hero .lead { max-width: 60ch; }
.trilha { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--tinta3); }
.trilha a { color: var(--tinta2); text-decoration: none; }
.trilha a:hover { color: var(--azul); }
.trilha span::before { content: "/"; margin-right: 6px; color: var(--linha-forte); }

/* ---------- faixa de logos dos clientes ---------- */
.clientes { padding-block: clamp(40px, 6vw, 64px); border-block: 1px solid var(--linha); background: var(--fundo-alt); overflow: hidden; }
.clientes-cab { text-align: center; margin-bottom: 26px; display: grid; gap: 6px; }
.clientes-cab p { font-family: var(--f-disp); font-weight: 600; font-size: 15px; color: var(--tinta2); letter-spacing: .02em; }
.faixa-logos { display: grid; gap: 16px; }
.clientes[hidden], .faixa-logos[hidden] { display: none !important; }
.trilho-logos { display: flex; width: max-content; gap: 16px; animation: correr var(--dur, 60s) linear infinite; }
.trilho-logos.volta { animation-direction: reverse; }
.faixa-logos:hover .trilho-logos { animation-play-state: paused; }
.logo-cli { flex: none; width: 196px; height: 84px; display: grid; place-items: center; background: var(--logo-fundo); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 18px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.logo-cli img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s, opacity .25s; }
.logo-cli:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--azul); }
.logo-cli:hover img { filter: none; opacity: 1; }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mascara-x { overflow: hidden; }

/* ---------- números ---------- */
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.numero { background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; }
.numero b { display: block; font-family: var(--f-disp); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--azul); letter-spacing: -0.02em; }
.numero span { display: block; margin-top: 10px; color: var(--tinta2); font-size: 15px; }

/* ---------- selos e listas ---------- */
.selos { display: flex; flex-wrap: wrap; gap: 8px; }
.selos span, .selos a { font-size: 14px; font-weight: 500; color: var(--azul-forte); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 9px; padding: 6px 13px; text-decoration: none; }
html[data-theme="dark"] .selos span, html[data-theme="dark"] .selos a { color: var(--tinta); }
.selos a:hover { border-color: var(--azul); color: var(--azul); }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check li { position: relative; padding-left: 33px; color: var(--tinta); }
.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--azul-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check.pequena li { font-size: 15px; color: var(--tinta2); }
.lista-pontos { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.lista-pontos li { position: relative; padding-left: 19px; font-size: 15px; color: var(--tinta2); }
.lista-pontos li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--azul); }

/* ---------- abas ---------- */
.abas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.aba { font-family: var(--f-disp); font-weight: 500; font-size: 15px; color: var(--tinta2); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.aba:hover { color: var(--azul); border-color: var(--azul); }
.aba[aria-selected="true"] { background: var(--azul-btn); color: #fff; border-color: var(--azul-btn); }
[role="tabpanel"][hidden] { display: none !important; }
.painel-entra { animation: entra .45s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- chips de filtro ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { flex: none; font-family: var(--f-corpo); font-size: 14px; font-weight: 500; color: var(--tinta2); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { color: var(--azul); border-color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul-btn); color: #fff; border-color: var(--azul-btn); }
.busca { display: flex; align-items: center; gap: 10px; border: 1px solid var(--linha-forte); border-radius: 12px; padding: 0 14px; background: var(--fundo-elev); }
.busca:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.busca svg { width: 18px; height: 18px; color: var(--tinta3); flex: none; }
.busca input { flex: 1; min-width: 0; background: none; border: 0; color: var(--tinta); font: inherit; font-size: 16px; padding: 12px 0; outline: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 12px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--azul); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--f-disp); font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--azul); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { color: var(--tinta2); padding-bottom: 18px; }

/* ---------- versões (cartões da home) ---------- */
.versoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.versao { background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; transition: border-color .2s, transform .25s, box-shadow .2s; }
.versao:hover { border-color: var(--azul); transform: translateY(-3px); box-shadow: var(--sombra); }
.versao.atual { border: 2px solid var(--azul); }
.versao-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--tinta3); }
.versao-cab b { font-family: var(--f-disp); font-size: 15px; color: #fff; background: var(--azul-btn); border-radius: 8px; padding: 3px 10px; }
.versao.atual .versao-cab b { background: var(--ambar); color: var(--ambar-tinta); }
.versao h3 { font-size: 19px; font-weight: 600; }
.versao p { color: var(--tinta2); font-size: 15px; }
.versao ul { padding-left: 18px; color: var(--tinta2); font-size: 15px; display: grid; gap: 6px; }
.versao ul li::marker { color: var(--azul); }

/* ---------- linha do tempo / passos ---------- */
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: passo; }
.passo { position: relative; background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; display: grid; gap: 10px; align-content: start; }
.passo::before { counter-increment: passo; content: counter(passo, decimal-leading-zero); font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--azul); }
.passo h3 { font-size: 18px; font-weight: 600; }
.passo p { color: var(--tinta2); font-size: 15px; }

/* ---------- terminal / log ---------- */
.log { background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra-alta); overflow: hidden; min-width: 0; }
.log-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linha); font-family: var(--f-disp); font-weight: 600; font-size: 15px; }
.log-cab span { font-family: var(--f-corpo); font-weight: 600; font-size: 12.5px; color: var(--verde); background: var(--verde-suave); border-radius: 999px; padding: 2px 10px; }
.log ol { list-style: none; margin: 0; padding: 10px 0; }
.log li { display: grid; grid-template-columns: 74px 18px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 18px; font-size: 15px; transition: background-color .3s; }
.log li.luz { background: var(--azul-suave); }
.log time { font-family: var(--f-mono); font-size: 13px; color: var(--tinta3); padding-top: 2px; }
.log i { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--azul); }
.log i.al { background: var(--ambar); }
.log i.ok { background: var(--verde); }
.log-rod { padding: 12px 18px; font-size: 13px; color: var(--tinta3); border-top: 1px solid var(--linha); background: var(--fundo-alt); }

/* ---------- tabela ---------- */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--fundo-elev); }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { font-family: var(--f-disp); font-weight: 600; font-size: 14px; color: var(--tinta); background: var(--fundo-alt); }
.tabela td { color: var(--tinta2); }
.tabela tr:last-child td { border-bottom: 0; }

/* ---------- chamada (CTA) ---------- */
.cta { background: var(--faixa-cta); color: var(--faixa-cta-tinta); border-radius: var(--raio-g); padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
.cta p { color: rgba(255, 255, 255, .85); margin-top: 10px; max-width: 56ch; }
.cta .acoes { justify-content: flex-end; }
.cta-anel { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }

/* ---------- contato ---------- */
.canais { display: grid; gap: 12px; }
.canal { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--linha); border-radius: 14px; padding: 14px 16px; background: var(--fundo-elev); }
.canal small { display: block; font-size: 12.5px; color: var(--tinta3); font-weight: 500; }
.canal span { font-family: var(--f-disp); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.copiar { font-family: var(--f-disp); font-size: 13px; font-weight: 600; color: var(--azul); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copiar:hover { border-color: var(--azul); }
.form { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 600; font-size: 14.5px; }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 16px; color: var(--tinta); background: var(--fundo-elev); border: 1px solid var(--linha-forte); border-radius: 11px; padding: 12px 14px; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.form-linha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); background: var(--fundo-alt); padding-block: 56px 36px; }
.rodape-grade { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.rodape p, .rodape a { color: var(--tinta2); font-size: 15px; text-decoration: none; }
.rodape a:hover { color: var(--azul); }
.rodape h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.rodape ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.rodape .arth { margin-top: 20px; display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; border: 1px solid var(--linha); }
.rodape .arth img { height: 36px; width: auto; }
.rodape-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--tinta3); }
.rodape-base a { font-size: 13.5px; }

/* ---------- WhatsApp flutuante ---------- */
.zap { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.zap:hover { transform: scale(1.06); }
.zap svg { width: 28px; height: 28px; }

/* ---------- revelar ao rolar ---------- */
.js .revela { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .revela.visivel { opacity: 1; transform: none; }
.js .revela.d1 { transition-delay: .08s; } .js .revela.d2 { transition-delay: .16s; } .js .revela.d3 { transition-delay: .24s; } .js .revela.d4 { transition-delay: .32s; }

/* ---------- página de novidades ---------- */
.nv-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; color: var(--tinta2); font-size: 14.5px; }
.nv-stats b { color: var(--azul); font-family: var(--f-disp); font-size: 24px; margin-right: 6px; }
.nv-filtros { position: sticky; top: var(--topo-h); z-index: 30; background: var(--fundo-topo); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.nv-filtros .wrap { display: grid; gap: 12px; padding-block: 14px; }
.nv-corpo { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; padding-block: 36px 80px; }
.nv-trilho { position: sticky; top: calc(var(--topo-h) + 150px); align-self: start; display: grid; gap: 2px; max-height: calc(100vh - var(--topo-h) - 170px); overflow-y: auto; }
.nv-trilho a { font-family: var(--f-mono); font-size: 13px; color: var(--tinta3); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--linha); }
.nv-trilho a:hover, .nv-trilho a.ativo { color: var(--azul); border-color: var(--azul); }
.nv-trilho a.vazio { opacity: .35; }
.nv-lista { display: grid; gap: 20px; min-width: 0; }
.nv-versao { background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: var(--raio); padding: clamp(20px, 3vw, 32px); scroll-margin-top: calc(var(--topo-h) + 160px); display: grid; gap: 14px; }
.nv-versao.atual { border: 2px solid var(--azul); }
.nv-v-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nv-v-cab .num { font-family: var(--f-disp); font-weight: 700; font-size: 16px; color: #fff; background: var(--azul-btn); border-radius: 8px; padding: 3px 11px; }
.nv-versao.atual .num { background: var(--ambar); color: var(--ambar-tinta); }
.nv-v-cab time { font-size: 14px; color: var(--tinta3); }
.nv-v-cab .atual-tag { font-size: 12px; font-weight: 600; color: var(--azul); background: var(--azul-suave); border-radius: 6px; padding: 2px 8px; }
.nv-versao h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.nv-versao .cham { color: var(--tinta2); }
.nv-bloco { display: grid; gap: 8px; }
.nv-rot { font-family: var(--f-disp); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--azul); margin-top: 6px; }
.nv-rot.mel { color: var(--verde); }
.nv-grp { font-weight: 600; color: var(--tinta); font-size: 15.5px; margin-top: 6px; }
.nv-itens { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nv-itens li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; font-size: 15.5px; color: var(--tinta); }
.nv-itens li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 10px; background: var(--azul); }
.nv-itens.mel li::before { background: var(--verde); }
.nv-itens mark { background: #FFE9A8; color: #0D2340; border-radius: 3px; padding: 0 2px; }
.nv-vazio { border: 1px dashed var(--linha-forte); border-radius: var(--raio); padding: 32px; text-align: center; color: var(--tinta2); background: var(--fundo-elev); }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .dividido, .dividido.largo-esq, .dividido.largo-dir { grid-template-columns: minmax(0, 1fr); }
  .dividido.inverte > :first-child { order: 0; }
  .hero-cena { height: clamp(320px, 70vw, 520px); }
  .g4, .numeros, .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .versoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rodape-grade > :first-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .acoes { justify-content: flex-start; }
  .nv-corpo { grid-template-columns: minmax(0, 1fr); }
  .nv-trilho { display: none; }
}
@media (max-width: 1140px) {
  .menu { display: none; position: absolute; top: var(--topo-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--fundo-elev); border-bottom: 1px solid var(--linha); padding: 8px 20px 18px; box-shadow: var(--sombra); max-height: calc(100vh - var(--topo-h)); overflow-y: auto; }
  .menu.aberto { display: flex; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid var(--linha); border-radius: 0; font-size: 16px; }
  .menu a:hover, .menu a[aria-current="page"] { background: none; }
  .menu-bt { display: inline-grid; }
  .topo-acoes { margin-left: auto; }
}
@media (max-width: 640px) {
  .topo-acoes .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .g2, .g3, .g4, .versoes, .passos, .form-linha { grid-template-columns: minmax(0, 1fr); }
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .numero { padding: 18px; }
  .hero-metricas b { font-size: 22px; }
  .rodape-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .logo-cli { width: 160px; height: 72px; }
  .canal { grid-template-columns: minmax(0, 1fr) auto; }
  .canal .ico { display: none; }
  .btn { white-space: normal; }
  .acoes .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revela { opacity: 1; transform: none; }
  .trilho-logos { flex-wrap: wrap; width: auto; justify-content: center; }
  .trilho-logos [aria-hidden="true"] { display: none; }
}
@media print {
  .topo, .zap, .cena3d canvas, .cena3d-fundo { display: none !important; }
  .js .revela { opacity: 1; transform: none; }
}

/* ---------- efeitos e transições ---------- */
/* transição suave entre páginas (navegadores com View Transitions) */
@view-transition { navigation: auto; }
.topo { view-transition-name: topo; }
::view-transition-old(root) { animation: pag-sai .22s ease both; }
::view-transition-new(root) { animation: pag-entra .38s ease both; }
@keyframes pag-sai { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pag-entra { from { opacity: 0; transform: translateY(12px); } }
/* barra de progresso de leitura */
.progresso { position: fixed; left: 0; top: 0; z-index: 80; width: 100%; height: 3px; background: var(--azul); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* palavras do título sobem uma a uma */
.palavras-ok .palavra { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-40deg); transform-origin: 50% 100%; animation: palavra-sobe .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes palavra-sobe { to { opacity: 1; transform: none; } }
/* entrada do conteúdo do hero */
.entra { animation: entra-suave .8s cubic-bezier(.2, .7, .2, 1) both; }
.entra.d1 { animation-delay: .25s; } .entra.d2 { animation-delay: .4s; } .entra.d3 { animation-delay: .55s; } .entra.d4 { animation-delay: .7s; }
@keyframes entra-suave { from { opacity: 0; transform: translateY(18px); } }
/* revelar com zoom ou vindo do lado */
.js .revela.zoom { transform: scale(.94); }
.js .revela.esq { transform: translateX(-28px); }
.js .revela.dir { transform: translateX(28px); }
.js .revela.zoom.visivel, .js .revela.esq.visivel, .js .revela.dir.visivel { transform: none; }
/* brilho que passa no botão principal ao passar o mouse (faixa sólida) */
.btn-pri { position: relative; overflow: hidden; isolation: isolate; }
.btn-pri::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%; background: rgba(255, 255, 255, .22); transform: skewX(-20deg); transition: left .55s ease; z-index: -1; }
.btn-pri:hover::after { left: 120%; }
/* ícone dos cartões gira de leve */
.card .ico, .dif .ico { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .2s, color .2s; }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--azul-btn); color: #fff; }
/* sublinhado animado no menu */
.menu a { position: relative; }
/* pulso do selo "ao vivo" */
.pulso { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.pulso::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--verde); animation: pulso 1.8s ease-out infinite; }
@keyframes pulso { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
/* dica "arraste para girar" sobre a cena 3D */
.dica-3d { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta3); background: var(--fundo-elev); border: 1px solid var(--linha); border-radius: 999px; padding: 5px 12px; pointer-events: none; white-space: nowrap; }
.cena3d.sem-3d .dica-3d { display: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .palavras-ok .palavra { opacity: 1; transform: none; }
  .btn-pri::after { display: none; }
}

/* no celular/tablet, o que entraria pelo lado sobe, para não empurrar a página */
@media (max-width: 1000px) {
  .js .revela.esq, .js .revela.dir { transform: translateY(22px); }
  .js .revela.esq.visivel, .js .revela.dir.visivel { transform: none; }
}

/* ---------- logo girando (assets/js/logo-gira.js) ---------- */
.logo-gira { position: relative; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; min-width: 0; }
.logo-gira.lg-arrastando { cursor: grabbing; }
.logo-gira .lg-palco { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; will-change: transform; opacity: 0; transition: opacity .3s; }
.logo-gira .lg-peca { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; -webkit-user-drag: none; will-change: transform, opacity; opacity: 0; }
.logo-gira .lg-reserva { position: absolute; left: 50%; top: 50%; width: 94%; height: 94%; max-width: none; object-fit: contain; transform: translate(-50%, -50%); z-index: 1; transition: opacity .3s; }
.logo-gira.lg-pronta .lg-palco { opacity: 1; }
.logo-gira.lg-pronta .lg-reserva { opacity: 0; }
.logo-gira.lg-erro .lg-palco { display: none; }
.logo-gira.lg-erro .lg-reserva { opacity: 1; }
.logo-gira .cena3d-fundo { z-index: 0; }
.logo-gira .dica-3d { z-index: 2; }
/* núcleo da órbita (O sistema, Fiscal, apresentação): a logo em camadas, posicionada e dimensionada pelo cena3d.js */
.logo-gira.eco-nucleo { position: absolute; left: 0; top: 0; width: 200px; height: 200px; z-index: 1; pointer-events: none; cursor: default; visibility: hidden; transform: translate(-50%, -50%); }
.eco-cena.sem-3d .eco-nucleo, html:not(.js) .eco-nucleo { display: none; }
