:root {
  --marca: #1E5FA8;
  --acento: #F2C230;
  --fundo: #0B1220;
  --vidro: rgba(10, 16, 28, 0.84);
  --vidro-borda: rgba(255, 255, 255, 0.1);
  --texto: #F4F6FA;
  --texto-2: rgba(244, 246, 250, 0.72);
  --texto-3: rgba(244, 246, 250, 0.52);
  --ok: #4CC38A;
  --pend: #F2C230;
  --raio: 18px;
  --painel-w: 440px;
  --sombra: 0 18px 50px rgba(0, 0, 0, 0.35);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-titulo: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.55 var(--fonte);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--fonte-titulo); letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.pular { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--acento); color: #111; padding: 8px 14px; border-radius: 8px; }
.pular:focus { top: 16px; }

/* ---------- palco 3D / planta / comparador ---------- */
.palco, .planta, .comparador { position: fixed; inset: 0; }
.palco canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.planta { background: #EEF1EF; display: flex; flex-direction: column; padding: 84px 24px 96px calc(var(--painel-w) + 48px); }
.planta-quadro { flex: 1; min-height: 0; display: flex; }
.planta-quadro svg { width: 100%; height: 100%; }
.planta-rodape { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: #1b1f1d; padding-top: 8px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 12px; }
.legenda li { display: flex; align-items: center; gap: 6px; }
.legenda span { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); }

.carregando { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--fundo); z-index: 50; color: var(--texto-2); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--acento); animation: gira 0.9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.dica { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; background: rgba(10,16,28,.92); border: 1px solid var(--vidro-borda); border-radius: 10px; padding: 6px 10px; display: grid; font-size: 13px; }
.dica span { color: var(--texto-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- topo ---------- */
.topo {
  position: fixed; top: 16px; left: 24px; right: 24px; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  background: var(--vidro); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--vidro-borda); border-radius: 999px; padding: 8px 8px 8px 12px;
  box-shadow: var(--sombra);
}
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca-logo { display: flex; align-items: center; gap: 8px; font: 800 17px var(--fonte-titulo); letter-spacing: .02em; white-space: nowrap; }
.marca-logo img { width: 30px; height: 30px; border-radius: 50%; }
.marca-sep { width: 1px; height: 20px; background: var(--vidro-borda); }
.marca-condo { color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selos { display: flex; gap: 6px; margin-left: auto; }
.selo { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--texto-2); white-space: nowrap; }
.selo.pend { background: rgba(242,194,48,.14); color: var(--pend); }
.ferramentas { display: flex; gap: 4px; }
.bt-icone { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; color: var(--texto-2); font-size: 13px; }
.bt-icone svg { width: 18px; height: 18px; }
.bt-icone:hover { background: rgba(255,255,255,.08); color: var(--texto); }
.bt-icone[aria-pressed="true"] { background: rgba(255,255,255,.14); color: var(--texto); }
.bt-icone:disabled { opacity: .4; cursor: not-allowed; }

.faixa-alerta { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 19; background: #B3261E; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; }

/* ---------- painel ---------- */
.painel {
  position: fixed; z-index: 10; left: 24px; top: 84px; bottom: 96px; width: var(--painel-w);
  background: var(--vidro); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--vidro-borda); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 26px 26px 22px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.painel:focus { outline: none; }
.kicker { margin: 0 0 6px; color: var(--acento); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.painel h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.12; font-weight: 800; }
.narrativa { margin: 0 0 18px; color: var(--texto-2); font-size: 16px; }
.conteudo > * + * { margin-top: 14px; }
.texto { margin: 0; color: var(--texto-2); }
.nota { margin: 0; color: var(--texto-3); font-size: 12.5px; }
.sub { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-3); font-family: var(--fonte); font-weight: 700; }
.lista { margin: 0; padding-left: 18px; color: var(--texto-2); }
.lista li + li { margin-top: 4px; }
.lista.discreta { font-size: 13px; color: var(--texto-3); }
mark.pendente { background: rgba(242,194,48,.18); color: var(--pend); border-radius: 4px; padding: 0 4px; }

.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ficha div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; }
.ficha dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); }
.ficha dd { margin: 2px 0 0; font-weight: 600; }

.medidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medida { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px; }
.medida span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); }
.medida strong { font: 700 20px var(--fonte-titulo); }
.status { margin: 0; font-size: 13px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.pend { color: var(--pend); }

.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.galeria .foto:first-child:nth-last-child(odd) { grid-column: span 2; }
.foto { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); }
.foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto figcaption { font-size: 12px; color: var(--texto-3); padding: 6px 10px 8px; }
.foto-ph { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--texto-3); font-size: 12.5px; text-align: center; padding: 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; }
.foto-ph svg { width: 28px; height: 28px; }
.selo-img { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(10,16,28,.82); color: #fff; }
.selo-montagem_conceitual { background: rgba(242,194,48,.92); color: #1b1f1d; }
.selo-modelo_validado { background: rgba(76,195,138,.92); color: #0b1a12; }
.planta-rodape .selo-img { position: static; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--vidro-borda); background: rgba(255,255,255,.05); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13.5px; }
.chip:hover { background: rgba(255,255,255,.1); }
.chip[aria-pressed="true"] { background: var(--marca); border-color: transparent; }
.dica-uso { margin: 0; font-size: 12.5px; color: var(--texto-3); }

.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: left; font-weight: 600; color: var(--texto-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 6px; }
.tabela td { padding: 7px 0; border-top: 1px solid var(--vidro-borda); color: var(--texto-2); vertical-align: top; }
.tabela td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.tabela .cat { display: block; font-size: 11px; color: var(--texto-3); }
.tabela tfoot td { color: var(--texto); font-weight: 700; }

.etapa-atual { background: rgba(255,255,255,.05); border-radius: 14px; padding: 14px 16px; border-left: 3px solid var(--acento); }
.etapa-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acento); }
.etapa-atual h2 { margin: 2px 0 4px; font-size: 20px; }
.etapa-atual p { margin: 0; color: var(--texto-2); font-size: 14px; }
.controles-etapa { display: flex; gap: 6px; }
.bt-sec { flex: 1; border: 1px solid var(--vidro-borda); background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.bt-sec:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.bt-sec:disabled { opacity: .35; cursor: default; }
.bt-sec.forte { background: var(--marca); border-color: transparent; }
.gantt { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gantt button { width: 100%; display: grid; grid-template-columns: 18px 1fr 90px 34px; gap: 8px; align-items: center; background: transparent; border: 0; border-radius: 8px; padding: 6px 6px; cursor: pointer; text-align: left; font-size: 13px; color: var(--texto-3); }
.gantt button:hover { background: rgba(255,255,255,.06); }
.gantt button.feita { color: var(--texto-2); }
.gantt button[aria-current="step"] { background: rgba(255,255,255,.1); color: var(--texto); }
.g-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.g-trilho { position: relative; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; }
.g-barra { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255,255,255,.3); }
.feita .g-barra { background: var(--marca); }
[aria-current="step"] .g-barra { background: var(--acento); }
.g-d { text-align: right; font-variant-numeric: tabular-nums; }

.grupo-beneficio + .grupo-beneficio { margin-top: 18px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card { background: rgba(255,255,255,.05); border-radius: 14px; padding: 12px 14px; }
.card h2 { margin: 6px 0 2px; font-size: 16px; }
.card p { margin: 0; color: var(--texto-2); font-size: 13.5px; }
.card .fonte { color: var(--texto-3); font-size: 12px; margin-top: 4px; }
.selo-base { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--texto-2); }
.base-proposta { background: rgba(30,95,168,.35); color: #CFE2FF; }
.base-estimativa { background: rgba(242,194,48,.16); color: var(--pend); }
.base-comprovado { background: rgba(76,195,138,.18); color: var(--ok); }

.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.numeros div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; }
.numeros strong { display: block; font: 800 26px/1.1 var(--fonte-titulo); color: var(--acento); }
.numeros span { font-size: 12.5px; color: var(--texto-2); }
.mvv { margin: 0; display: grid; gap: 8px; }
.mvv div { border-left: 2px solid var(--marca); padding-left: 10px; }
.mvv dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-3); }
.mvv dd { margin: 2px 0 0; font-size: 13.5px; color: var(--texto-2); }
.unidades { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.unidades li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--texto-2); }
.faixa-fotos { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.faixa-fotos .foto { scroll-snap-align: start; }

.termos { margin: 0; display: grid; gap: 0; }
.termos div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--vidro-borda); }
.termos div:first-child { border-top: 0; }
.termos dt { color: var(--texto-3); font-size: 13px; }
.termos dd { margin: 0; font-size: 14px; }
.resp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.resp .lista { font-size: 13px; }
.validade { margin: 0; font-weight: 600; color: var(--texto-2); }
.cta { display: block; width: 100%; text-align: center; border: 0; background: var(--acento); color: #14181F; font-weight: 800; font-size: 15px; padding: 14px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.cta:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- comparador ---------- */
.comparador { z-index: 5; background: #E7ECEA; }
.comp-quadro { position: absolute; inset: 0; overflow: hidden; }
.comp-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.comparador.contido { background: #EEF1EF; }
.comparador.contido .comp-quadro { left: calc(var(--painel-w) + 48px); top: 84px; bottom: 96px; right: 24px; }
.comparador.contido img { object-fit: contain; }
.comp-depois { position: absolute; inset: 0; }
.comp-linha { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.comp-linha span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.comp-linha span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-content: center; color: #14181F; font-weight: 800; letter-spacing: 2px; }
.comp-selo { position: absolute; bottom: 110px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(10,16,28,.85); padding: 6px 12px; border-radius: 999px; }
.comp-selo.esq { left: calc(var(--painel-w) + 48px); }
.comp-selo.dir { right: 24px; background: rgba(242,194,48,.95); color: #14181F; }
.comparador.contido .comp-selo { bottom: 12px; }
.comparador.contido .comp-selo.esq { left: 12px; }
.comparador.contido .comp-selo.dir { right: 12px; }
#comp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
#comp-range:focus-visible + * , .comparador:focus-within .comp-linha span { outline: 3px solid var(--acento); }

/* ---------- navegação ---------- */
.navegacao {
  position: fixed; z-index: 20; bottom: 20px; left: calc(var(--painel-w) + 48px); right: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bt-nav { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--vidro-borda); background: var(--vidro); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; padding: 12px 16px; cursor: pointer; box-shadow: var(--sombra); font-weight: 600; }
.bt-nav svg { width: 18px; height: 18px; }
.bt-nav.primario { background: var(--marca); border-color: transparent; padding-left: 20px; max-width: 46%; }
.bt-nav.primario span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-nav:disabled { opacity: .35; cursor: default; }
.pontos { list-style: none; display: flex; gap: 4px; margin: 0; padding: 8px 10px; background: var(--vidro); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; border: 1px solid var(--vidro-borda); }
.pontos button { width: 26px; height: 26px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; border-radius: 50%; }
.pontos button span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.pontos button.visto span { background: rgba(255,255,255,.6); }
.pontos button[aria-current="step"] { width: 40px; border-radius: 13px; }
.pontos button[aria-current="step"] span { width: 24px; background: var(--acento); }

.checklist { position: fixed; z-index: 40; right: 24px; top: 84px; width: 340px; max-height: calc(100% - 200px); overflow: auto; background: #fff; color: #1b1f1d; border-radius: 14px; padding: 16px 18px; box-shadow: var(--sombra); font-size: 13px; }
.checklist h2 { margin: 0 0 8px; font-size: 16px; }
.checklist ul { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 4px 0; border-top: 1px solid #eee; }
.checklist li.ok { color: #1d7a4c; }
.checklist li.pend { color: #8a5a00; }
.checklist .bt-sec { color: #1b1f1d; border-color: #ddd; }
.fps { position: fixed; right: 24px; bottom: 84px; z-index: 30; font: 600 12px var(--fonte); background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 6px; }
.noscript { padding: 40px; }

/* Movimento reduzido: sem transições. */
body.reduzido *, body.reduzido *::before { transition: none !important; animation-duration: 0.01ms !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) and (min-width: 900px) {
  :root { --painel-w: 380px; }
  .painel h1 { font-size: 26px; }
  .rotulo-bt { display: none; }
}
@media (max-width: 899px) {
  :root { --palco-h: 46svh; }
  body { font-size: 14.5px; }
  .palco, .planta, .comparador { bottom: auto; height: var(--palco-h); }
  .planta { padding: 64px 12px 8px; }
  .planta-rodape .legenda { display: none; }
  .topo { top: 10px; left: 10px; right: 10px; padding: 6px 6px 6px 10px; gap: 8px; }
  .marca-sep, .selos, .rotulo-bt { display: none; }
  .marca-condo { font-size: 13px; }
  .bt-icone { padding: 7px 9px; }
  .faixa-alerta { top: 60px; font-size: 10.5px; }
  .painel { left: 0; right: 0; width: auto; top: calc(var(--palco-h) - 18px); bottom: 0; border-radius: 20px 20px 0 0; padding: 20px 16px 96px; }
  .painel h1 { font-size: 23px; }
  .narrativa { font-size: 15px; }
  .navegacao { left: 12px; right: 12px; bottom: 12px; }
  .bt-nav.primario { max-width: 44%; }
  .pontos { padding: 6px; }
  .pontos button { width: 20px; }
  .comparador.contido .comp-quadro { left: 8px; right: 8px; top: 60px; bottom: 24px; }
  .comp-selo { bottom: 30px; }
  .comp-selo.esq { left: 10px; }
  .comp-selo.dir { right: 10px; }
  .ficha, .resp { grid-template-columns: 1fr; }
  .faixa-fotos { grid-auto-columns: 70%; }
  .checklist { left: 10px; right: 10px; width: auto; top: 60px; }
}
