@font-face { font-family: Inter; src: url(../fontes/Inter-Regular.ttf) format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: Inter; src: url(../fontes/Inter-Medium.ttf) format('truetype'); font-weight: 500; font-display: block; }
@font-face { font-family: Jost; src: url(../fontes/Jost-Light.ttf) format('truetype'); font-weight: 300; font-display: block; }
@font-face { font-family: Jost; src: url(../fontes/Jost-Medium.ttf) format('truetype'); font-weight: 500; font-display: block; }

/* Página escura, como a noite do eclipse; âmbar só como luz. */
:root { --tinta: #0A0E17; --noite: #070A11; --sombra: #1B2333; --grafite: #2A2F3A; --nevoa: #9AA0AA; --prata: #E5E7EB; --marfim: #F5F6FA;
  --apoio: rgb(229 231 235 / .72); --fio: rgb(255 255 255 / .08); --margem: 8vw; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--tinta); }
body { margin: 0; background: var(--tinta); color: var(--marfim); font: 400 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

/* Menu: transparente sobre o eclipse; rolado, vira barra de vidro escuro */
.menu { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px; padding: 0 var(--margem); display: flex; align-items: center; gap: 40px; color: var(--marfim); transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.menu .marca { display: block; line-height: 0; margin-right: auto; }
.menu svg { display: block; height: 54px; width: calc(54px * 4619.66 / 1749.89); overflow: visible; }
.menu nav { display: flex; gap: 32px; font: 400 14px/1 Inter; }
.menu nav a { color: var(--apoio); transition: color .2s ease; }
.menu nav a:hover { color: var(--marfim); }
.menu-fale { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 Inter; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); transition: background-color .2s ease; }
.menu-fale:hover { background: rgb(255 255 255 / .12); }
.menu.solido { background: rgb(10 14 23 / .72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--fio); }

/* Hero: uma tela, rolagem normal */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--tinta); }
.hero-palco { position: relative; height: 100%; overflow: hidden; touch-action: pan-y pinch-zoom; }
#eclipse { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-palco.sobre-lua { cursor: grab; }
.hero-palco.arrastando, .hero-palco.arrastando * { cursor: grabbing; }
.poster { position: absolute; inset: 0; display: none; background: var(--tinta) url(../img/eclipse-poster.webp) right center / cover no-repeat; }
html.retrato .poster { background-image: url(../img/eclipse-poster-retrato.webp); background-position: center top; }
html.sem-webgl #eclipse, html.sem-webgl .dica { display: none; }
html.sem-webgl .poster { display: block; }
@media (max-aspect-ratio: 3/2) { html.sem-webgl:not(.retrato) .poster { background-image: url(../img/eclipse-poster-4x3.webp); } }
/* emenda com a parte 2: o céu do eclipse escurece até a tinta da página */
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 18vh; background: linear-gradient(to bottom, rgb(10 14 23 / 0), var(--tinta)); pointer-events: none; }

.hero-texto { position: absolute; left: var(--margem); top: var(--texto-topo, 50%); width: min(540px, 40vw); transform: translateY(-50%); z-index: 2; pointer-events: none; }
.hero-texto a { pointer-events: auto; }
.rotulo { margin: 0 0 22px; font: 500 12px/1 Jost; letter-spacing: .3em; text-transform: uppercase; color: rgb(229 231 235 / .66); }
h1 { margin: 0 0 24px; font: 300 clamp(30px, min(4.45vw, 7.2vh), 64px)/1.05 Jost, sans-serif; letter-spacing: -.01em; color: var(--marfim); }
.linha { margin: 0 0 32px; max-width: 30em; font: 400 17px/1.6 Inter; color: var(--apoio); }
.acoes { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fale { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--marfim); color: var(--tinta); font: 500 15px/1 Inter; transition: background-color .2s ease, transform .2s ease; }
.fale:hover { background: #fff; }
.fale:active { transform: scale(.98); }
.como { display: inline-flex; align-items: center; gap: 8px; color: var(--marfim); font: 500 15px/1 Inter; }
.como svg { width: 14px; height: 14px; transition: transform .2s ease; }
.como:hover svg { transform: translateY(2px); }

.dica { position: absolute; left: var(--dica-x); top: var(--dica-y); transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 10px; font: 500 11px/1 Jost; letter-spacing: .3em; text-transform: uppercase; color: rgb(229 231 235 / .62); z-index: 2; pointer-events: none; transition: opacity .5s ease; white-space: nowrap; }
.dica svg { width: 24px; height: 24px; }
.dica.sumiu { opacity: 0; }

html.retrato .hero-texto { left: 20px; right: 20px; width: auto; transform: none; }
html.retrato h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.1; margin-bottom: 16px; }
html.retrato .rotulo { margin-bottom: 14px; }
html.retrato .linha { font-size: 16px; margin-bottom: 24px; }
html.retrato .menu nav { display: none; }
html.retrato .menu svg { height: 48px; width: calc(48px * 4619.66 / 1749.89); }
@media (max-height: 500px) { .rotulo { margin-bottom: 12px; } h1 { margin-bottom: 12px; } .linha { font-size: 14px; margin-bottom: 16px; } .fale { height: 40px; padding: 0 18px; font-size: 14px; } .menu { height: 52px; } }

/* ══════ Parte 2: janela do Painel + celular ══════ */
.vitrine { position: relative; padding: 96px var(--margem) 160px; background: var(--tinta); scroll-margin-top: 24px; }
.vit-cab { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.vit-cab .rotulo { margin-bottom: 20px; }
.vit-cab h2 { margin: 0 0 20px; font: 300 clamp(32px, 3.6vw, 52px)/1.08 Jost, sans-serif; letter-spacing: -.01em; text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, rgb(229 231 235 / .66)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vit-cab h2 span { display: block; }
.vit-linha { margin: 0 auto; max-width: 34em; font: 400 18px/1.6 Inter; color: var(--apoio); }

.vit-palco { position: relative; max-width: 1240px; margin: 0 auto; }
/* a luz do eclipse por trás do aparelho e da janela (âmbar só como luz) */
.vit-palco::before { content: ''; position: absolute; z-index: 0; left: 50%; top: -12%; width: 90%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(255 184 107 / .13), rgb(255 184 107 / .04) 60%, transparent); filter: blur(30px); pointer-events: none; }
.vit-palco figure { margin: 0; position: relative; z-index: 1; }

.vit-janela { border-radius: 16px; background: #08090D; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .14), 0 50px 120px -40px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .6); }
.vit-janela-barra { position: relative; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--fio); background: rgb(255 255 255 / .02); }
.vit-janela-barra i { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.vit-janela-barra span { position: absolute; left: 50%; transform: translateX(-50%); font: 500 12px/1 Inter; color: var(--nevoa); letter-spacing: .02em; }
.vit-janela-tela { position: relative; overflow: hidden; height: 560px;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.vit-janela-tela iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 1400px; border: 0; transform-origin: 0 0; background: #08090D; }

.vit-cel { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vit-aparelho { width: 318px; height: 638px; padding: 9px; border-radius: 48px;
  background: linear-gradient(160deg, #2a303d, #11151f 38%, #0b0e15);
  box-shadow: inset 0 0 0 1.5px #4a5263, inset 0 1px 0 rgb(255 255 255 / .22), 0 40px 90px -24px rgb(0 0 0 / .95), 0 0 0 1px rgb(0 0 0 / .7); }
.vit-cel-tela { position: relative; width: 300px; height: 620px; border-radius: 40px; overflow: hidden; background: #fff; }
.vit-cel-tela .ax-cel { position: absolute; inset: 0; }
.vit-cel-pe { display: flex; align-items: center; gap: 14px; min-height: 36px; font: 500 13px/1 Inter; color: var(--apoio); }
.vit-dica { display: inline-flex; align-items: center; gap: 10px; transition: opacity .3s ease; }
.vit-dica i { width: 8px; height: 8px; border-radius: 50%; background: #FFB86B; box-shadow: 0 0 10px 2px rgb(255 184 107 / .55); }
.vit-cel-pe.respondeu .vit-dica { display: none; }
.vit-recomecar { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; font: 500 13px/1 Inter; color: var(--marfim); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); cursor: pointer; transition: background-color .2s ease; }
.vit-recomecar:hover { background: rgb(255 255 255 / .12); }
/* convite: o botão Confirmar pulsa até o 1º toque */
@keyframes vit-convida { 0%, 100% { box-shadow: 0 0 0 0 rgb(0 123 252 / 0); } 50% { box-shadow: 0 0 0 4px rgb(0 123 252 / .28); } }
.vit-palco.convida .ax-cel-botao[data-resposta="confirmar"]:not(:disabled) { animation: vit-convida 1.6s ease-in-out infinite; }

/* A · lado a lado: janela e celular com o mesmo peso */
.vit-palco[data-v="a"] { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 48px; align-items: center; }

/* B · celular na frente: janela larga e o celular no centro, sobre a metade de baixo */
.vit-palco[data-v="b"] { padding-bottom: 300px; }
.vit-palco[data-v="b"] .vit-cel { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); }
.vit-palco[data-v="b"] .vit-aparelho { box-shadow: inset 0 0 0 1.5px #4a5263, inset 0 1px 0 rgb(255 255 255 / .22), 0 60px 120px -20px rgb(0 0 0 / 1), 0 0 0 1px rgb(0 0 0 / .7), 0 0 0 14px rgb(10 14 23 / .55); }

/* C · inclinado: a janela vira para o celular, que fica de frente */
.vit-palco[data-v="c"] { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 0; align-items: center; perspective: 2200px; }
.vit-palco[data-v="c"] .vit-janela { transform: rotateY(24deg) rotateX(6deg) scale(.94); transform-origin: right center; margin-right: 40px; }
.vit-palco[data-v="c"] .vit-cel { z-index: 2; }

/* Celular em pé: a janela em cima e o aparelho logo abaixo (o toque acontece embaixo e a mudança fica à vista
   em cima); as três versões viram uma */
@media (max-width: 900px) {
  .vit-palco[data-v] { display: flex; flex-direction: column; gap: 28px; padding-bottom: 0; perspective: none; }
  .vit-palco[data-v] .vit-cel { position: relative; left: auto; bottom: auto; transform: none; }
  .vit-aparelho { width: 288px; height: 578px; border-radius: 44px; }
  .vit-cel-tela { width: 270px; height: 560px; border-radius: 36px; }
  .vit-palco[data-v] .vit-janela { transform: none; margin: 0; width: 100%; }
  .vitrine { padding: 88px 20px 72px; }
  .vit-cab { margin-bottom: 48px; }
  .vit-linha { font-size: 16px; }
}

/* Contato, notas e rodapé */
.contato { padding: 14vh var(--margem); text-align: center; border-top: 1px solid var(--fio); }
.contato h2 { margin: 0 0 12px; font: 300 clamp(30px, 3.2vw, 46px)/1.1 Jost; }
.contato p { margin: 0 0 32px; font: 400 18px/1.55 Inter; color: var(--apoio); }
.notas { margin: 0 var(--margem) 32px; font: 400 13px/1.6 Inter; color: var(--nevoa); }
.notas summary { cursor: pointer; }
.notas code { font-size: 12px; color: var(--prata); }
.rodape { padding: 28px var(--margem) 96px; font: 400 13px/1 Inter; color: var(--nevoa); border-top: 1px solid var(--fio); }
@media (max-width: 700px) { :root { --margem: 20px; } .menu { gap: 16px; } .menu-fale { display: none; } }

/* Troca de versão da parte 2 (só da prévia) */
.troca { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgb(16 20 30 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 12px 32px -8px rgb(0 0 0 / .8); font: 500 13px/1 Inter; white-space: nowrap; }
.troca-rot { padding: 0 10px 0 12px; color: var(--nevoa); }
.troca button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; color: var(--apoio); background: transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.troca button:hover { color: var(--marfim); }
.troca button[aria-pressed="true"] { color: var(--tinta); background: var(--marfim); }
@media (max-width: 700px) { .troca-rot { display: none; } .troca button { padding: 0 10px; font-size: 12px; } }

/* Navegação entre as versões da parte 2 (só da prévia; js/versoes.js) */
.versoes { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgb(16 20 30 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 12px 32px -8px rgb(0 0 0 / .8); font: 500 13px/1 Inter; white-space: nowrap; max-width: calc(100vw - 24px); overflow-x: auto; }
.versoes-rot { padding: 0 10px 0 12px; color: var(--nevoa); }
.versoes a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--apoio); transition: background-color .2s ease, color .2s ease; }
.versoes a:hover { color: var(--marfim); }
.versoes a[aria-current="page"] { color: var(--tinta); background: var(--marfim); }
@media (max-width: 700px) { .versoes-rot { display: none; } .versoes a { padding: 0 10px; font-size: 12px; } }
