:root {
  --azul: #01a6eb;
  --azul-luz: #6ac4f9;
  --azul-esc: #0166be;
  --tinta: #0c0d0f;
  --fundo: #000;
  --branco: #fff;
  --cinza: #a9b0b8;
  --fonte: 'Baloo 2', system-ui, sans-serif;
  --titulo: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--fundo); color: var(--branco); overflow: hidden; }
body { font-family: var(--fonte); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }

#app { position: fixed; inset: 0; }

/* ---------- caixa do guia ---------- */
.guia {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: min(560px, calc(100vw - 40px));
  padding: 24px 30px 26px;
  background: #050506;
  border: 3px solid var(--branco);
  border-radius: 20px;
  box-shadow: 0 0 0 7px var(--fundo), 0 0 0 9px rgba(255, 255, 255, .18), 0 18px 60px rgba(1, 166, 235, .18);
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.guia.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; cursor: pointer; }
.guia::after {            /* setinha de "continua" */
  content: ''; position: absolute; right: 18px; bottom: 12px;
  border: 7px solid transparent; border-top-color: var(--azul); border-bottom: 0;
  animation: seta 1s ease-in-out infinite;
}
.guia p { margin: 0; min-height: 1.3em; font-size: clamp(21px, 3.4vw, 30px); font-weight: 700; line-height: 1.3; }
#guia-txt { transition: opacity .25s ease; }
#guia-txt.some { opacity: 0; }
.caret { display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--azul); animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
@keyframes seta { 50% { transform: translateY(4px); } }

/* ---------- palco ---------- */
/* a cena (bombona + botão) flutua inteira: o celular só move a imagem pronta */
.cena { position: absolute; inset: 0; will-change: transform; }
.cena.entra { animation: entra .9s cubic-bezier(.2, .9, .3, 1.25) backwards; }
.cena.flutua { animation: flutua 3.4s ease-in-out infinite; }
@keyframes entra { from { transform: translateY(60px) scale(.7); opacity: 0; } }
@keyframes flutua {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.palco { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; touch-action: manipulation; transform-origin: 0 0; will-change: transform; }
.palco.on { opacity: 1; }

.chao { fill: url(#bt-chao); }

#conjunto { outline: none; }
#conjunto.montada { cursor: pointer; }


.peca, [data-ad] { transition: transform 1s cubic-bezier(.3, 1.35, .45, 1), opacity .4s ease; }
.aberta .peca { cursor: pointer; }
.palco.foco .peca:not(.sel), .palco.foco [data-ad]:not(.sel) { opacity: .28; }

/* plugues viram as bombas com a bombona aberta (.bombas no palco); na volta, viram plugue de novo */
.so-aberta, .so-montada {
  transform-box: fill-box; transform-origin: center;
  transition: transform 1s cubic-bezier(.3, 1.35, .45, 1), opacity .3s ease, scale .45s cubic-bezier(.3, 1.6, .5, 1);
}
.palco:not(.bombas) .so-aberta, .palco.bombas .so-montada { opacity: 0 !important; scale: .3; pointer-events: none; }
.palco.bombas .so-aberta { transition-delay: 0s, .75s, .75s; }
.palco.bombas .so-montada { transition-delay: 0s, .7s, .7s; }
.palco:not(.bombas) .so-montada { transition-delay: 0s, .15s, .15s; }

/* botão "clique" piscando em cima da bombona (HTML, animação só de transform/opacidade) */
.toque {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0;
  border: 0; background: none; cursor: pointer; transition: opacity .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.toque.off { opacity: 0; pointer-events: none; }
.toque .bola, .toque .onda { position: absolute; inset: 8px; border-radius: 50%; }
.toque .bola { background: var(--azul); border: 3px solid var(--branco); display: grid; place-items: center; animation: toque 1.1s ease-in-out infinite; }
.toque .bola svg { width: 30px; height: 30px; fill: var(--branco); stroke: var(--tinta); stroke-width: 2; stroke-linejoin: round; }
.toque .onda { border: 3px solid var(--azul-luz); animation: onda 1.6s ease-out infinite; }
.toque .onda.o2 { animation-delay: .8s; }
.toque .txt {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px;
  white-space: nowrap; font-weight: 800; font-size: 13px; letter-spacing: 2px; color: var(--branco); animation: piscaTxt 1.1s ease-in-out infinite;
}
/* texto do botão: "toque" no celular, "clique" no computador */
.toque .t-toque { display: none; }
@media (hover: none) and (pointer: coarse) {
  .toque .t-clique { display: none; }
  .toque .t-toque { display: inline; }
}
@keyframes toque { 50% { transform: scale(1.1); } }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes piscaTxt { 50% { opacity: .35; } }

/* luzinha vermelha da caixa Wi-Fi: pisca como LED de modem (steps = só repinta na troca) */
.led { animation: led 2.4s steps(1, end) infinite; }
@keyframes led {
  0%, 100% { opacity: 1; }
  8% { opacity: .15; }
  14% { opacity: 1; }
  22% { opacity: .15; }
  28% { opacity: 1; }
  62% { opacity: .15; }
  70% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .led { animation: none; } }

/* números dos itens e linhas guia */
.badge { opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.badge.on { opacity: 1; }
.badge circle { fill: var(--azul); stroke: var(--branco); stroke-width: 4; }
.badge text { font-family: var(--titulo); font-weight: 600; font-size: 26px; fill: var(--branco); text-anchor: middle; dominant-baseline: central; }
.badge.sel circle { fill: var(--branco); stroke: var(--azul); }
.badge.sel text { fill: var(--tinta); }
.linha { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.5; stroke-dasharray: 7 7; opacity: 0; transition: opacity .5s ease; }
.linha.on { opacity: 1; animation: corre 1.2s linear infinite; }
@keyframes corre { to { stroke-dashoffset: -14; } }

/* ---------- cards ---------- */
.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute;
  background: #08090a;
  border: .14em solid var(--branco);
  border-radius: 1em;
  box-shadow: 0 0 0 .3em var(--fundo), 0 .6em 2em rgba(0, 0, 0, .6);
  padding: .9em 1.05em 1em;
  line-height: 1.32;
  opacity: 0; transform: translateY(.6em) scale(.94);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.25), border-color .3s ease;
  pointer-events: auto;
}
.card.on { opacity: 1; transform: none; }
/* card escondido não pega o clique (tampava o botão CLIQUE) */
.cards .card:not(.on) { pointer-events: none; }
.cards .card .feito { display: none; }
.cards .card.sel .feito { display: block; }
.cards .card.sel { z-index: 2; }
.cards .card.compacta .serve { display: none; }
.cards .card.compacta .chamada { margin-bottom: 0; }
.card.sel { border-color: var(--azul); }
.card header { display: flex; align-items: center; gap: .55em; margin-bottom: .35em; }
.card .num {
  flex: none; width: 1.7em; height: 1.7em; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul); border: .12em solid var(--branco);
  font-family: var(--titulo); font-weight: 600; font-size: .95em;
}
.card h3 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 1.3em; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.card .chamada { margin: 0 0 .55em; color: var(--azul-luz); font-weight: 700; font-size: 1.02em; }
.card .rot { display: block; font-family: var(--titulo); font-size: .68em; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza); margin-top: .5em; }
.card p { margin: .1em 0 0; font-weight: 500; }
.card .kit { list-style: none; margin: .2em 0 0; padding: 0; display: grid; gap: .22em; }
.card .kit li { display: flex; gap: .45em; align-items: baseline; font-weight: 500; line-height: 1.25; }
.card .kit b { flex: none; min-width: 1.9em; color: var(--azul-luz); font-weight: 800; }
.card .kit em { font-style: normal; font-size: .72em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0d0e10; background: var(--azul-luz); border-radius: .5em; padding: .05em .45em; margin-left: .2em; white-space: nowrap; }

/* ---------- gaveta (telas pequenas) ---------- */
/* caixa flutuante: margem em volta e borda inteira (não encosta na tela) */
.gaveta {
  --margem: 10px;
  position: absolute;
  left: calc(var(--margem) + env(safe-area-inset-left));
  right: calc(var(--margem) + env(safe-area-inset-right));
  bottom: calc(var(--margem) + env(safe-area-inset-bottom));
  max-width: 600px; margin: 0 auto;
  max-height: 54%;
  display: flex; flex-direction: column;
  transform: translateY(calc(100% + 40px));
  padding: 8px 16px 12px;
  background: #050506;
  border: 2px solid var(--branco);
  border-radius: 20px;
  box-shadow: 0 0 0 5px var(--fundo), 0 -10px 40px rgba(0, 0, 0, .7);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.05);
  will-change: transform;
}
.gaveta::before { /* puxador */
  content: ''; align-self: center; flex: none; width: 40px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .28); margin-bottom: 10px;
}
.gaveta.on { transform: none; }
.card--gaveta {
  position: static; opacity: 1; transform: none; border: 0; box-shadow: none; padding: 0 2px 0 0; background: none;
  font-size: 15px; line-height: 1.38; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 3px;
  scrollbar-width: none;
}
.card--gaveta::-webkit-scrollbar { display: none; }
.card--gaveta header { margin-bottom: .25em; }
.card--gaveta h3 { font-size: 1.25em; }
.card--gaveta .chamada { margin-bottom: .35em; }
.card--gaveta .rot { margin-top: .6em; }
.card--gaveta.troca { animation: troca .3s ease; }
@keyframes troca { from { opacity: 0; transform: translateX(14px); } }
.g-nav { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.g-seta { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--branco); background: var(--azul); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; -webkit-tap-highlight-color: transparent; }
.g-seta:active { transform: scale(.92); }
.g-pontos { display: flex; gap: 4px; }
.g-pontos button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.g-pontos button::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #3a3f46; transition: transform .2s ease, background .2s ease; }
.g-pontos button.sel::after { background: var(--azul); transform: scale(1.3); }

/* ---------- botões soltos ---------- */
.acoes {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center; white-space: nowrap;
}
.gaveta.on ~ .acoes { bottom: auto; top: calc(12px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); transform: none; }
.btn-montar, .btn-orcamento {
  padding: 10px 22px; border-radius: 999px;
  background: #050506; border: 2px solid var(--branco);
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn-montar:hover { background: var(--branco); color: var(--tinta); }
.btn-orcamento { background: var(--azul); }
.btn-orcamento:hover { background: var(--azul-luz); color: var(--tinta); }
.btn-montar:active, .btn-orcamento:active { transform: scale(.96); }
.gaveta.on ~ .acoes .btn-montar { padding: 8px 18px; font-size: 15px; }

/* ---------- box 9: contato ---------- */
.card--contato {
  width: 380px; max-width: calc(100vw - 32px); font-size: 17px;
  transform: translate(0, -50%) scale(.94); border-color: var(--azul);
}
.card--contato.on { opacity: 1; transform: translate(0, -50%); }
.selos { list-style: none; margin: .55em 0 .8em; padding: 0; display: grid; gap: .45em; }
.selos li { display: flex; align-items: center; gap: .6em; font-weight: 700; line-height: 1.2; }
.selos svg, .btn-zap svg, .fone svg, .voltar-inicio svg {
  flex: none; width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}
.selos svg { color: var(--azul-luz); }
.btn-zap {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1em; border-radius: 999px; border: 2px solid var(--branco);
  background: #25d366; color: #06290f; font-weight: 800; font-size: 1.05em; text-decoration: none;
  box-shadow: 0 4px 0 #128c3e; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-zap:hover { transform: translateY(-1px); }
.btn-zap:active { transform: translateY(3px); box-shadow: 0 1px 0 #128c3e; }
.btn-zap.pendente { opacity: .45; pointer-events: none; }
.fone {
  display: flex; align-items: center; justify-content: center; gap: .45em; margin-top: .7em;
  color: var(--branco); font-weight: 700; text-decoration: none; letter-spacing: .02em;
}
.fone svg { color: var(--azul-luz); }
.voltar-inicio {
  display: flex; align-items: center; justify-content: center; gap: .35em; margin: .8em auto 0;
  padding: .3em .8em; border: 0; border-radius: 999px; background: none;
  color: var(--cinza); font-size: .82em; font-weight: 600; cursor: pointer;
}
.voltar-inicio svg { width: 1.1em; height: 1.1em; }
.voltar-inicio:hover { color: var(--branco); }
/* assinatura da agência: pequena e apagada no fim do box de contato */
.assinatura {
  display: block; width: fit-content; margin: .9em auto 0; padding-top: .7em;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--cinza); opacity: .55; font-size: .72em; font-weight: 600; letter-spacing: .14em;
  text-decoration: none; transition: opacity .2s ease;
}
.assinatura:hover, .assinatura:focus-visible { opacity: 1; }
.pular {
  position: absolute; right: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; color: rgba(255, 255, 255, .6); font-size: 14px; cursor: pointer;
  transition: opacity .3s ease;
}
.pular.off { opacity: 0; pointer-events: none; }
.sem-js { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; font-size: 20px; }

button:focus-visible { outline: 3px solid var(--azul-luz); outline-offset: 3px; }
#conjunto.montada:focus-visible .peca { filter: brightness(1.12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- WhatsApp fixo no canto ---------- */
/* WhatsApp e Instagram fixos, empilhados no canto (Instagram em cima) */
.fixos {
  position: absolute; z-index: 5;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  pointer-events: none;
}
.fixo {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--branco);
  opacity: 0; transform: scale(.6);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
  -webkit-tap-highlight-color: transparent;
}
.fixo svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.zap-fixo { background: #25d366; box-shadow: 0 0 0 4px var(--fundo), 0 6px 18px rgba(37, 211, 102, .35); }
.insta-fixo {
  width: 46px; height: 46px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 0 0 4px var(--fundo), 0 6px 18px rgba(214, 36, 159, .3);
}
.insta-fixo svg { width: 24px; height: 24px; }
.fixos.on .fixo { opacity: 1; transform: none; pointer-events: auto; }
.fixos.on .insta-fixo { transition-delay: .08s; }
.fixos.on .fixo:hover { transform: scale(1.07); }
.fixos.on .fixo:active { transform: scale(.94); }
/* com a caixa de baixo aberta (celular), os dois sobem lado a lado para o canto de cima */
.gaveta.on ~ .fixos { bottom: auto; top: calc(12px + env(safe-area-inset-top)); flex-direction: row; gap: 10px; }
.gaveta.on ~ .fixos .fixo { width: 42px; height: 42px; }
.gaveta.on ~ .fixos .fixo svg { width: 22px; height: 22px; }

/* Instagram no box 9 */
.contatos { display: flex; justify-content: center; flex-wrap: wrap; gap: .4em 1.3em; margin-top: .7em; }
.contatos .fone { margin-top: 0; }
.insta { display: flex; align-items: center; gap: .45em; color: var(--branco); font-weight: 700; text-decoration: none; }
.insta svg { flex: none; width: 1.35em; height: 1.35em; fill: none; stroke: var(--azul-luz); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
