/* Landing em três telas (entrada · edificações · negócio) + tela de passagem para o configurador.
   Palco fixo atrás das telas 1 e 2: a foto do parque vira diagrama colorido com os rótulos. Mobile first. */
html:has(body.lp) { scroll-snap-type: y mandatory; }
body.lp { background: #121a15; color: #f1efe8; overflow-x: hidden; }
body.lp.carregando { overflow: hidden; }

/* ---- abertura ---- */
#abertura { position: fixed; inset: 0; z-index: 100; background: #121a15; color: #e9e3d3; display: grid; place-items: center; transition: opacity .7s ease, visibility .7s; }
#abertura.fora { opacity: 0; visibility: hidden; }
.ab-centro { text-align: center; padding: 24px; }
.ab-icones { width: min(240px, 64vw); margin: 0 auto 18px; color: #d8b768; }
.ab-icones .tr { stroke-dasharray: 260; stroke-dashoffset: 260; animation: traco 1.5s ease forwards; }
.ab-icones .tr:nth-child(2) { animation-delay: .25s; }
.ab-icones .tr:nth-child(3) { animation-delay: .5s; }
/* depois das três formas, o arco do domo passa por cima e fecha a marca */
.ab-icones .arco { stroke-dasharray: 100; stroke-dashoffset: 100; stroke-width: 2.8; animation: traco 1.1s 1.25s cubic-bezier(.6, 0, .3, 1) forwards; }
.ab-icones .arco.base { stroke-width: 1.6; opacity: .6; animation-delay: 1.15s; animation-duration: .7s; }
.ab-icones .faceta { stroke-dasharray: 100; stroke-dashoffset: 100; stroke-width: 1; opacity: .35; animation: traco 1s 1.9s ease forwards; }
@keyframes traco { to { stroke-dashoffset: 0; } }
.ab-marca { font: 600 clamp(2rem, 9vw, 3.4rem)/1 var(--serif); margin: 0; opacity: 0; animation: sobe .8s 1.7s ease forwards; }
.ab-sub { font: 650 .82rem var(--sans); letter-spacing: .6em; text-transform: uppercase; margin: 10px 0 0; padding-left: .6em; color: #d8b768; opacity: 0; animation: sobe .8s 2s ease forwards; }
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ab-barra { width: 160px; height: 2px; background: #ffffff1f; margin: 26px auto 0; overflow: hidden; border-radius: 2px; }
.ab-barra i { display: block; height: 100%; width: 0; background: #d8b768; transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .ab-icones .tr, .ab-icones .arco, .ab-icones .faceta, .ab-marca, .ab-sub { animation-duration: .01s; animation-delay: 0s; } }

/* ---- topo ---- */
.lp-topo { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); padding-top: calc(12px + env(safe-area-inset-top)); }
.lp-topo .marca { color: #fff; text-shadow: 0 1px 12px #0008; }
.lp-topo .marca small { letter-spacing: .4em; color: #d8b768; }
.lp-topo .btn { display: none; min-height: 44px; padding: 0 1.1em; font-size: .92rem; margin-left: 14px; }
@media (min-width: 700px) { .lp-topo .btn { display: inline-flex; } }
.pontos { margin-left: auto; display: flex; gap: 8px; }
.pontos a { width: 10px; height: 10px; border-radius: 50%; background: #ffffff59; transition: background .3s, transform .3s; }
.pontos a.on { background: #d8b768; transform: scale(1.3); }
body.lp.claro .lp-topo .marca { color: #1d2721; text-shadow: none; }
body.lp.claro .pontos a { background: #0000002e; }
body.lp.claro .pontos a.on { background: var(--ouro); }

/* ---- palco fixo ---- */
.lp-palco { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #1a241e; }
.lp-palco .ly { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: opacity, transform; }
.lp-palco .foto { transform: scale(1.06); transition: transform 8s ease-out; }
body.pronto .lp-palco .foto { transform: scale(1); }
.lp-palco .diag { opacity: 0; background: #f5f2ec; }
.lp-palco .vel { position: absolute; inset: 0; background: linear-gradient(180deg, #0c130f99 0%, #0c130f00 30%, #0c130f33 55%, #0c130fdd 100%); pointer-events: none; }
.pinos { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pino { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pino b { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; color: #fff; font: 700 .8rem var(--sans); box-shadow: 0 2px 8px #0004; border: 2px solid #fff; }
.pino span { margin-top: 3px; font: 650 .74rem var(--sans); color: #1d2721; background: #ffffffe6; padding: 2px 7px; border-radius: 6px; white-space: nowrap; display: none; box-shadow: 0 1px 6px #0002; }
.pino::after { content: ''; width: 2px; height: 10px; background: currentColor; order: -0; }
@media (min-width: 1000px) { .pino span { display: block; } }
/* no celular a tela 2 mostra o diagrama inteiro no topo (sem corte) e a legenda embaixo */
body.lp.m2 .lp-palco .diag { inset: auto; }
body.lp.claro .lp-palco { background: #f5f2ec; }

/* ---- telas ---- */
main { position: relative; z-index: 2; }
.tela { min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; position: relative; }
.t1 { align-items: flex-end; }
.t1-corpo { padding: 0 var(--gutter) calc(30px + env(safe-area-inset-bottom)); max-width: 760px; }
.t1 .selo { background: #ffffff2e; color: #fff; backdrop-filter: blur(4px); }
.t1 h1 { margin-top: 14px; text-shadow: 0 2px 28px #000a; }
.t1 .lead { font-size: 1.1rem; color: #ffffffe6; max-width: 34em; }
.t1 .acoes { margin-top: 18px; display: grid; }
@media (min-width: 600px) { .t1 .acoes { display: flex; } .t1-corpo { padding-left: max(var(--gutter), 5vw); padding-bottom: 60px; } }
.rola { margin-top: 18px; color: #ffffffd9; font: 600 .98rem var(--sans); background: #ffffff1f; border: 1px solid #ffffff40; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.rola:hover { background: #ffffff33; }
.rola.escuro { color: var(--ink); background: transparent; border-color: #00000026; margin-top: 0; }
.rola.escuro:hover { background: #0000000d; }
.rola span { display: inline-block; animation: pula 1.6s infinite; }
@keyframes pula { 50% { transform: translateY(5px); } }

.t2 { align-items: flex-end; color: var(--ink); }
.t2-corpo { width: 100%; padding: 0 var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.t2-corpo h2 { font-size: 1.45rem; margin-bottom: 10px; }
.legenda { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .86rem; }
.legenda li { display: flex; align-items: center; gap: 7px; line-height: 1.2; }
.legenda li b { flex: none; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: #fff; font: 700 .72rem var(--sans); }
.grupos { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--mut); }
.grupos i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
@media (max-width: 999px) {
  .t2 { align-items: flex-start; }
  .t2-corpo { margin-top: var(--diag-fim, 300px); background: linear-gradient(180deg, #f5f2ec00 0%, #f5f2ec 30px); padding-top: 14px; }
}
@media (min-width: 1000px) {
  .t2 { align-items: center; }
  .t2-corpo { width: 360px; margin-left: 4vw; background: #fffffff2; border-radius: 18px; padding: 22px; box-shadow: 0 10px 40px #0002; }
  .legenda { grid-template-columns: 1fr; gap: 6px; font-size: .9rem; }
}

.t3 { background: var(--bg); color: var(--ink); align-items: center; }
.t3-corpo { width: min(1080px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 84px 0 30px; }
.t3 h2 { max-width: 20em; }
.modelo { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; counter-reset: m; }
.modelo li { counter-increment: m; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 58px; position: relative; font-size: .96rem; color: var(--mut); line-height: 1.45; }
.modelo li::before { content: counter(m); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--sans); }
.modelo li b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
@media (min-width: 900px) { .modelo { grid-template-columns: repeat(2, 1fr); } .modelo li:last-child { grid-column: 1 / -1; } }
.t3-acoes { margin-top: 22px; display: grid; gap: 8px; }
@media (min-width: 600px) { .t3-acoes { display: flex; align-items: center; gap: 16px; } .t3-acoes p { margin: 0; } }
.rodape { margin-top: 26px; font-size: .8rem; color: var(--mut); }
.t4 { background: var(--bg); color: var(--ink); align-items: center; justify-content: center; min-height: 60svh; }
.t4-corpo { text-align: center; color: var(--mut); }
.giro { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--verde); animation: gira 0.9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t2-corpo { color: #1d2721; } }

/* paginação por JS: um gesto = uma tela; o snap do CSS fica só como reserva sem JS */
html.paginado:has(body.lp) { scroll-snap-type: none; }
