/* Landing page · App do Hóspede · Mapple
   Mesma linguagem do novo site da Mapple (C:\Reposicionamento-mapple\site-mapple):
   magenta #ff1f5a (DNA Mapple), grafite #1e1e1e com textura diagonal, off-white #f2f2f5,
   Right Grotesk Wide nos títulos, PP Neue Montreal nos textos, rótulo com a folha. */

@font-face { font-family: "Right Grotesk Wide"; src: url("../fonts/RightGrotesk-WideBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Right Grotesk Wide"; src: url("../fonts/RightGrotesk-WideDark.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #ff1f5a;           /* magenta do DNA Mapple */
  --off-white: #f2f2f5;
  --white: #ffffff;
  --dark: #1e1e1e;
  --dark-2: #242424;
  --cinza: #8a8a93;

  --font-display: "Right Grotesk Wide", "Arial Black", sans-serif;
  /* textos em Inter (Google Fonts); a Right Grotesk fica só nos títulos grandes */
  --font-body: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;

  --margem: 6.3vw;           /* 120/1905, como no site */
  --ease: cubic-bezier(.23, 1, .32, 1);        /* ease-out forte: entradas e respostas */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1); /* movimento na tela: blocos de cor */
  --texto-escuro: rgb(255 255 255 / .74);       /* corpo de texto no fundo escuro */
  --texto-claro: #3d3d42;                      /* corpo de texto no fundo claro */
  --t-ui: .25s;
  --t-bloco: .9s;
  --t-texto: .7s;
  /* degradê do chumbo para um cinza mais claro, sem textura */
  --textura: linear-gradient(160deg, #19191b 0%, #2c2c30 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--red); }

/* ---------- Temas de fundo ---------- */
.tema-escuro   { background: var(--textura), var(--dark); color: var(--off-white); }
.tema-claro    { background: var(--off-white); color: var(--dark); }
.tema-vermelho { background: var(--red); color: var(--off-white); }
.tema-vermelho em { color: var(--dark); }

/* ---------- Tipografia ---------- */
.titulo-xl, .titulo-l, .titulo-m, .numero-xl, .numeros strong, .rodape-frase {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
}
.titulo-xl { font-size: clamp(48px, 6.2vw, 118px); line-height: 1; }
.titulo-l  { font-size: clamp(36px, 4.51vw, 86px); }
.titulo-m  { font-size: clamp(30px, 3.2vw, 60px); }
.numero-xl, .numeros strong, .dado strong { font-variant-numeric: tabular-nums; }
.numero-xl { font-size: clamp(96px, 11vw, 210px); color: var(--red); line-height: .9; margin-bottom: 8px; }

.rotulo {
  display: flex; align-items: center; gap: .55em;
  margin-bottom: 28px;
  font-size: clamp(13px, .84vw, 16px);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}
/* Ícones grandes, traço fino (linha Apple) */
.icone {
  display: block; width: clamp(56px, 4.6vw, 84px); height: clamp(56px, 4.6vw, 84px); margin-bottom: 32px;
  color: var(--red); fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
}
.tema-vermelho .icone { color: var(--off-white); }
/* Ícone que se desenha: o traço surge, segura ~2,5 s e se "desdesenha" pelo mesmo
   caminho, com a mesma curva (a entrada tocada ao contrário), e recomeça. */
.icone, .caixa-icone {
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transform-origin: 50% 60%;
}
.visivel .icone, .caixa.visivel .caixa-icone { animation: desenha 5.4s linear .15s infinite; }
.caixa:nth-child(2).visivel .caixa-icone { animation-delay: .21s; }
.caixa:nth-child(3).visivel .caixa-icone { animation-delay: .27s; }
.caixa:nth-child(4).visivel .caixa-icone { animation-delay: .33s; }
@keyframes desenha {
  0%   { stroke-dashoffset: 1; opacity: 0; transform: scale(.94);
         animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  25%  { stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
  71%  { stroke-dashoffset: 0; opacity: 1; transform: scale(1);
         animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  96%  { stroke-dashoffset: 1; opacity: 0; transform: scale(.94); }
  100% { stroke-dashoffset: 1; opacity: 0; transform: scale(.94); }
}
.rotulo svg { width: 1.9em; height: 1.04em; color: var(--red); flex: none; }
.tema-vermelho .rotulo svg { color: var(--off-white); }
/* no fundo magenta, rótulo e fonte das pesquisas em preto */
.tema-vermelho .rotulo { color: var(--dark); opacity: 1; }
.tema-vermelho .fonte, .tema-vermelho .numeros .fonte { color: var(--dark); opacity: .85; }

.lead  { font-size: clamp(17px, 1.2vw, 21px); font-weight: 300; line-height: 1.5; letter-spacing: -.012em; max-width: 36ch; margin-top: 28px; }
.corpo { font-size: clamp(16px, 1.05vw, 18px); font-weight: 300; line-height: 1.65; letter-spacing: -.008em; max-width: 38ch; margin-top: 24px; }
.tema-escuro .corpo, .tema-escuro .dado, .tema-escuro .caixa p { color: var(--texto-escuro); }
.tema-claro .corpo, .tema-claro .dado { color: var(--texto-claro); font-weight: 400; }
.dado  { max-width: 30ch; margin-top: 40px; font-size: clamp(16px, 1.05vw, 18px); font-weight: 300; line-height: 1.55; }
/* mesmo peso dos outros números grandes: todos vendem */
.dado strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 11vw, 210px); line-height: .9; letter-spacing: -.03em; color: var(--red); margin-bottom: 12px; }
.fonte { font-size: 12px; font-weight: 400; opacity: .5; margin-top: 8px; letter-spacing: 0; }

/* ---------- Botões (iguais ao CTA do site) ---------- */
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--red); color: var(--off-white);
  font: 500 15px/1 var(--font-body);
  letter-spacing: -.01em;
  text-decoration: none; border-radius: 3px; border: 1px solid transparent;
}
/* brilho suave para fora, como os cartões da Apple */
.btn {
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 28px -8px rgb(255 31 90 / .55), 0 0 0 .5px rgb(255 255 255 / .12) inset;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--dark); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 14px 34px -8px rgb(255 31 90 / .6); }
}
.btn-escuro { background: var(--dark); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 12px 30px -10px rgb(0 0 0 / .45), 0 0 0 .5px rgb(255 255 255 / .1) inset; }
.btn-escuro:hover { background: var(--off-white); color: var(--dark); }
.btn-linha { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .55); color: inherit; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 28px -12px rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-linha:hover { background: var(--off-white); color: var(--dark); border-color: var(--off-white); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; border-radius: 999px; }
.btn:focus-visible, .topo a:focus-visible { outline: 2px solid var(--off-white); outline-offset: 3px; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  height: 88px; padding: 0 var(--margem);
  color: var(--off-white);
  transition: background-color var(--t-ui) var(--ease), height var(--t-ui) var(--ease);
}
.topo.solido { background: var(--dark); height: 68px; }
.topo-logo, .rodape-logo { display: inline-flex; align-items: flex-end; gap: 7px; text-decoration: none; }
.topo-logo svg { display: block; width: 116px; height: 34px; }
/* As letras "app" de "mapple" ganham outra cor: unidade de aplicativos da Mapple.
   Preto sobre o magenta (topo do hero); magenta quando o menu e o rodapé ficam escuros. */
.topo-logo { --cor-app: var(--dark); }
.topo.solido .topo-logo, .rodape-logo { --cor-app: var(--red); }
.topo-nav { display: flex; gap: 32px; margin-left: auto; }
.topo-nav a { text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: -.005em; opacity: .82; transition: opacity var(--t-ui) var(--ease); }
@media (hover: hover) and (pointer: fine) { .topo-nav a:hover { opacity: 1; } }
.topo:not(.solido) .btn { background: var(--dark); }

/* Seletor de idioma: três siglas, a ativa em destaque */
.idiomas { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(0 0 0 / .14); }
.topo.solido .idiomas { background: rgb(255 255 255 / .07); }
.idiomas button {
  min-width: 38px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; font: 500 12px/1 var(--font-body); letter-spacing: .06em; opacity: .72;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), opacity var(--t-ui) var(--ease);
}
.cta-curto { display: none; }
.idiomas button[aria-pressed="true"] { opacity: 1; background: var(--off-white); color: var(--dark); }
.idiomas button:focus-visible { outline: 2px solid var(--off-white); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .idiomas button:hover { opacity: 1; } }

/* ---------- Tour com o celular ---------- */
.tour { position: relative; }
.palco {
  position: sticky; top: 0; z-index: 10;
  height: 100vh; height: 100svh;
  overflow: hidden; pointer-events: none;
  perspective: 1800px;
}
.capitulos { margin-top: -100vh; margin-top: -100svh; position: relative; }

.cap {
  position: relative; overflow: hidden;
  min-height: 105vh; min-height: 105svh;
  display: flex; align-items: center;
  padding: 120px var(--margem);
}
.cap-texto { position: relative; z-index: 2; width: 50%; padding-right: 4vw; }
.cap[data-lado="esquerda"] .cap-texto { margin-left: 50%; padding: 0 0 0 4vw; }

/* Blocos de cor que entram deslizando e cortam a tela */
.bloco {
  position: absolute; top: 0; bottom: 0; width: 50%;
  clip-path: inset(0 0 0 100%);
  transition: clip-path var(--t-bloco) var(--ease-in-out);
}
.cap[data-lado="direita"] .bloco { right: 0; }
.cap[data-lado="esquerda"] .bloco { left: 0; clip-path: inset(0 100% 0 0); }
.bloco.visivel { clip-path: inset(0 0 0 0) !important; }
.bloco-vermelho { background: var(--red); }
.bloco-escuro { background: var(--textura), var(--dark); }

.cap-hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: 12vh; }
.cap-hero .cap-texto { width: 46%; margin-left: 50%; padding: 0 0 0 4vw; }
.tema-vermelho .numero-xl { color: var(--off-white); }
.numero-hero { margin-bottom: 4px; }
.cap-final .cap-texto { width: 48%; }
.cap-final .titulo-xl { max-width: 9ch; }
.cap-hero .titulo-xl { max-width: none; }
.subtitulo-hero { margin-top: 10px; max-width: 14ch; }
.titulo-final { max-width: 13ch; }
.estrelas { color: var(--red); letter-spacing: .08em; font-size: 24px; line-height: 1; display: inline-block; transform: translateY(1px); }
.modelos-legenda { margin-top: 24px; font-size: 13px; font-weight: 300; color: var(--texto-claro); }

/* Celular 3D (WebGL). O de CSS abaixo fica de reserva para navegador sem WebGL. */
.celular-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* Mão da última cena. O arquivo é recortado (PNG transparente) e o JS só move.
   Encaixe: --mao-ph = altura do celular / altura da imagem; --mao-ax/--mao-ay = centro
   do celular dentro da imagem (0 a 1). Ajuste estes três números ao trocar a foto. */
.mao { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; --mao-ph: .36; --mao-ax: .331; --mao-ay: .262; }
.mao.sem-imagem { display: none; }
.mao img {
  position: absolute; left: 0; top: 0; max-width: none; width: auto;
  height: calc(var(--hpx, 600px) / var(--mao-ph));
  translate: calc(var(--mao-ax) * -100%) calc(var(--mao-ay) * -100%);
  will-change: transform;
  /* gira em torno do centro do celular da foto, o mesmo ponto do iPhone 3D */
  transform-origin: calc(var(--mao-ax) * 100%) calc(var(--mao-ay) * 100%);
}
.mao-tras { z-index: 1; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .28)) drop-shadow(0 8px 12px rgb(0 0 0 / .18)); }
/* Sombra que o celular projeta na mão: recortada pelo contorno da própria foto (máscara),
   então só escurece pele e pulseira. Luz de cima e da esquerda -> sombra para baixo e direita. */
.mao-sombra {
  position: absolute; left: 0; top: 0; z-index: 1;
  height: calc(var(--hpx, 600px) / var(--mao-ph)); aspect-ratio: 2948 / 1852;
  translate: calc(var(--mao-ax) * -100%) calc(var(--mao-ay) * -100%);
  transform-origin: calc(var(--mao-ax) * 100%) calc(var(--mao-ay) * 100%);
  -webkit-mask: url("../img/mao/mao.webp") center / 100% 100% no-repeat;
  mask: url("../img/mao/mao.webp") center / 100% 100% no-repeat;
  mix-blend-mode: multiply; opacity: 0; pointer-events: none; will-change: transform, opacity;
}
/* tom da sombra mais escura da pulseira na pele (multiply ~ R 44%, G 27%, B 24%) */
.mao-sombra i {
  position: absolute; left: calc(var(--mao-ax) * 100%); top: calc(var(--mao-ay) * 100%);
  width: calc(var(--hpx, 600px) * .47); height: var(--hpx, 600px);
  border-radius: calc(var(--hpx, 600px) * .075);
}
/* penumbra curta: o mesmo tom, mais fraco, logo depois do núcleo */
.mao-sombra .s-difusa {
  background: rgb(120 78 70 / .6); filter: blur(calc(var(--hpx, 600px) * .014));
  transform: translate(-50%, -50%) translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg)) translate(calc(var(--hpx, 600px) * .045), calc(var(--hpx, 600px) * .026)) rotate(calc(var(--incl, 0) * -1deg));
}
/* núcleo: escuro e definido, como a sombra da pulseira no pulso; cai do lado da palma */
.mao-sombra .s-contato {
  background: rgb(112 70 62); filter: blur(calc(var(--hpx, 600px) * .0045));
  transform: translate(-50%, -50%) translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg)) translate(calc(var(--hpx, 600px) * .03), calc(var(--hpx, 600px) * .016)) rotate(calc(var(--incl, 0) * -1deg));
}

/* Conectores do painel: saem de trás do celular (abaixo do canvas) e, assentados,
   passam para a frente dele. A posição final vem do JS em --fx / --fy. */
.conectores-3d { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; }
.conectores-3d.na-frente { z-index: 3; }
.tag {
  position: absolute; left: 0; top: 0;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 24px 12px 12px; border-radius: 999px; white-space: nowrap;
  background: rgb(28 28 31 / .62); color: var(--off-white);
  border: 1px solid rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 12px 32px -10px rgb(0 0 0 / .55), 0 0 24px -6px rgb(255 31 90 / .35);
  opacity: 0; transform: translate(-50%, -50%) scale(.86);
  transition: transform 1.1s var(--ease), opacity .5s var(--ease);
}
.tag i {
  grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px rgb(255 31 90 / .7);
  position: relative;
}
.tag i::before, .tag i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; background: #fff; transform: translate(-50%, -50%); border-radius: 1px; }
.tag i::after { transform: translate(-50%, -50%) rotate(90deg); }
.tag b { font-weight: 500; font-size: 19px; letter-spacing: -.01em; line-height: 1.15; }
.tag small { font-weight: 300; font-size: 12px; color: var(--texto-escuro); line-height: 1.2; }
.conectores-3d.ativo .tag { opacity: 1; transform: translate(-50%, -50%) translate(var(--fx, 0), var(--fy, 0)) scale(1); }
.conectores-3d.ativo .tag:nth-child(2) { transition-delay: 70ms; }
.conectores-3d.ativo .tag:nth-child(3) { transition-delay: 140ms; }
.conectores-3d.ativo .tag:nth-child(4) { transition-delay: 210ms; }
.conectores-3d.ativo .tag:nth-child(5) { transition-delay: 280ms; }
/* ao sair, todos voltam juntos e mais rápido */
.conectores-3d:not(.ativo) .tag { transition-duration: .45s, .3s; transition-delay: 0s; }

/* Painel dentro do tour: caixas em 2 x 2 na metade do texto */
.cap-painel { padding-top: 96px; padding-bottom: 72px; }
.cap-painel .titulo-l { font-size: clamp(30px, 3vw, 58px); max-width: 16ch; }
.cap-painel .cap-texto { width: 50%; }
.cap-painel .caixas { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; max-width: 640px; }
.cap-painel .caixa {
  min-height: 0; padding: 26px 24px 28px; border-radius: 16px;
  background: rgb(255 255 255 / .035); border: 1px solid rgb(255 255 255 / .08);
}
.cap-painel .caixa-icone + h3 { margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.palco.em-3d .celular { display: none; }

.celular {
  --w: min(31vh, 340px);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: calc(var(--w) * 2.07);
  margin: calc(var(--w) * -1.035) 0 0 calc(var(--w) * -.5);
  transform-style: preserve-3d;
  will-change: transform;
}
.celular-frente, .celular-verso {
  position: absolute; inset: 0;
  border-radius: calc(var(--w) * .16);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #0d0d0f;
  box-shadow: 0 0 0 2px #34343b, 0 40px 80px rgb(0 0 0 / .35);
}
.celular-frente { padding: calc(var(--w) * .035); }
.tela {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--w) * .125); overflow: hidden; background: #f7f3ec;
}
.tela img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.tela img.ativa { opacity: 1; }
.celular-verso {
  transform: rotateY(180deg);
  background: var(--textura), #161618;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.camera {
  position: absolute; top: 5%; left: 7%;
  width: 40%; aspect-ratio: 1; border-radius: 22%;
  background: #202024; box-shadow: inset 0 0 0 1px #34343b;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 10%;
}
.camera i { width: 72%; aspect-ratio: 1; border-radius: 50%; background: #050507; box-shadow: 0 0 0 3px #2a2a30; }
.verso-folha { width: 46%; height: calc(var(--w) * .25); color: var(--red); }
.verso-nome { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cinza); }

/* ---------- Seções seguintes ---------- */
.secao { position: relative; padding: 9vw var(--margem); }
.secao-topo { max-width: 1000px; margin-bottom: 64px; }

/* Caixas numeradas, como as do Método no site */
.caixas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.caixa { background: var(--textura), var(--dark-2); color: var(--off-white); padding: 32px 28px 40px; border-radius: 3px; min-height: 280px; display: flex; flex-direction: column; }
.caixa-icone { width: 44px; height: 44px; color: var(--red); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; padding-bottom: 0; }
.caixa-icone + h3 { margin-top: 48px; }
.caixa h3 { font-family: var(--font-body); font-weight: 500; letter-spacing: -.02em; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.caixa p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--texto-escuro); }
.conectores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.conectores span {
  border: 1px solid currentColor; border-radius: 3px; padding: 12px 18px;
  font-size: 13px; font-weight: 400; letter-spacing: 0;
}
.conectores .conectores-rotulo { border: 0; padding-left: 0; color: var(--red); }

/* Duas metades com divisor, como a seção do Método */
.secao-dupla { display: grid; grid-template-columns: 1fr 1fr; padding-top: 0; padding-bottom: 0; }
.secao-dupla .metade { padding: 9vw 4vw 9vw 0; }
.secao-dupla .metade + .metade { padding: 9vw 0 9vw 4vw; border-left: 1px solid rgb(255 255 255 / .16); }

.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 17px; }
.tabela th, .tabela td { text-align: left; padding: 22px 24px; border-bottom: 1px solid rgb(30 30 30 / .14); vertical-align: top; }
.tabela thead th { font-weight: 500; font-size: 13px; letter-spacing: 0; padding-top: 28px; }
.tabela tbody th { font-weight: 400; padding-left: 0; width: 28%; }
.tabela td { font-weight: 300; color: var(--texto-claro); }
.tabela .destaque { background: var(--red); color: var(--off-white); opacity: 1; font-weight: 500; border-bottom-color: rgb(255 255 255 / .25); }

/* Modelos: três cartões comparativos. No hover, o cartão salta da tela e os outros recuam. */
.modelos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; perspective: 1400px; }
.modelo {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 24px 18px; border-radius: 24px; outline: none;
  background: var(--white); border: 1px solid rgb(30 30 30 / .07);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 50px -32px rgb(0 0 0 / .28);
}
.modelos .modelo.visivel {
  transition: opacity var(--t-texto) var(--ease), transform .55s var(--ease), box-shadow .55s var(--ease), filter .55s var(--ease);
}
.modelo-nome {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--dark); color: var(--off-white); font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 10px 24px -12px rgb(0 0 0 / .45);
}
.modelo-frase { margin: 14px 0 18px; font-size: 16px; font-weight: 300; color: var(--texto-claro); }
.modelo-linhas { list-style: none; margin: 0; padding: 0; width: 100%; text-align: left; }
.modelo-linhas li {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: center;
  padding: 18px 6px; border-top: 1px solid rgb(30 30 30 / .07);
  transition: transform .45s var(--ease);
}
.modelo-linhas { border-top: 1px solid rgb(30 30 30 / .07); }
.modelo-linha-icone { width: 24px; height: 24px; fill: none; stroke: #8a8a93; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.modelo-linhas b { display: block; font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: var(--dark); }
.modelo-linhas small { display: block; font-weight: 300; font-size: 14px; color: #6e6e76; margin-top: 3px; }

/* o White label Mapple é o destaque permanente */
.modelo-mapple { border-color: rgb(255 31 90 / .45); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 30px 70px -34px rgb(255 31 90 / .6); }
.modelo-mapple .modelo-nome { background: var(--red); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 26px -8px rgb(255 31 90 / .6); }
.modelo-mapple .modelo-mapple .modelo-linha-icone { color: var(--red); stroke: var(--red); }
.modelo-mapple .modelo-linhas b { color: var(--dark); }

@media (hover: hover) and (pointer: fine) {
  .modelos:hover .modelo.visivel:not(:hover) { opacity: .55; transform: scale(.97); filter: saturate(.5); }
  .modelos .modelo.visivel:hover, .modelos .modelo.visivel:focus-visible {
    transform: translateY(-22px) scale(1.035);
    box-shadow: 0 2px 4px rgb(0 0 0 / .05), 0 50px 90px -40px rgb(0 0 0 / .45);
  }
  .modelos .modelo-mapple.visivel:hover { box-shadow: 0 2px 4px rgb(0 0 0 / .05), 0 50px 100px -36px rgb(255 31 90 / .75); }
  .modelo:hover .modelo-linhas li { transform: translateY(-3px); }
  .modelo:hover .modelo-linhas li:nth-child(2) { transition-delay: 30ms; }
  .modelo:hover .modelo-linhas li:nth-child(3) { transition-delay: 60ms; }
  .modelo:hover .modelo-linhas li:nth-child(4) { transition-delay: 90ms; }
  .modelo:hover .modelo-linhas li:nth-child(5) { transition-delay: 120ms; }
}
.modelos > .modelo:nth-child(2) { transition-delay: 70ms; }
.modelos > .modelo:nth-child(3) { transition-delay: 140ms; }
.modelos:hover > .modelo { transition-delay: 0s; }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.numeros strong { display: block; font-size: clamp(80px, 8.5vw, 160px); line-height: .9; margin-bottom: 20px; }
.numeros p { max-width: 26ch; }
.numeros .fonte { display: block; opacity: .7; }

.secao-contato { min-height: 90vh; display: flex; align-items: center; }

/* Contato: texto à esquerda, formulário em cartão de vidro à direita */
.contato-grade { width: 100%; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 6vw; align-items: center; }
.contato-texto .corpo { max-width: 34ch; }
.contato-whats {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 14px 26px;
  border-radius: 999px; text-decoration: none; color: var(--off-white);
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 12px 30px -14px rgb(0 0 0 / .6);
  transition: background-color var(--t-ui) var(--ease), transform 160ms var(--ease), border-color var(--t-ui) var(--ease);
}
.contato-whats svg { width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 22px -4px rgb(255 31 90 / .8); }
.contato-whats b { display: block; font-weight: 500; font-size: 18px; color: var(--red); }
.contato-whats small { display: block; font-weight: 300; font-size: 16px; color: var(--texto-escuro); }
.contato-whats:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .contato-whats:hover { background: rgb(255 255 255 / .09); border-color: rgb(255 31 90 / .5); } }

.contato-form {
  border-radius: 22px; overflow: hidden;
  background: rgb(255 255 255 / .03); border: 1px solid rgb(255 255 255 / .09);
  box-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 40px 80px -40px rgb(0 0 0 / .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.form-titulo { padding: 26px 26px 6px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.campo { position: relative; display: block; padding: 16px 26px 14px; border-bottom: 1px solid rgb(255 255 255 / .08); transition: background-color var(--t-ui) var(--ease); }
.campo span { display: block; font-size: 13px; font-weight: 400; color: var(--texto-escuro); margin-bottom: 6px; }
.campo input, .campo textarea {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--off-white);
  font: 300 17px/1.5 var(--font-body); letter-spacing: -.01em; padding: 2px 0; resize: none;
}
.campo textarea { min-height: 120px; }
/* preenchimento automático do navegador: mantém o campo escuro e o texto claro (sem o fundo azul-claro) */
.campo input:-webkit-autofill, .campo input:-webkit-autofill:hover, .campo input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--off-white); caret-color: var(--off-white);
  -webkit-box-shadow: 0 0 0 1000px #2a2a2e inset; box-shadow: 0 0 0 1000px #2a2a2e inset;
  transition: background-color 9999s ease-out 0s;
}
.campo input:autofill { background: transparent; color: var(--off-white); }
.campo:focus-within { background: rgb(255 255 255 / .035); }
.campo:focus-within::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red); box-shadow: 0 0 12px rgb(255 31 90 / .8); }
.campo.erro span { color: #ff6f93; }
.campo.erro::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #ff6f93; }
.contador { position: absolute; right: 26px; bottom: 12px; font-size: 12px; font-weight: 300; color: var(--texto-escuro); }
.contador.perto { color: #ff6f93; }
.form-isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-rodape { display: flex; align-items: center; gap: 18px; padding: 22px 26px 26px; flex-wrap: wrap; }
.form-rodape .btn { min-width: 150px; }
.form-rodape .btn[disabled] { opacity: .6; cursor: progress; }
.form-aviso { font-size: 14px; font-weight: 300; color: var(--texto-escuro); }
.form-aviso.ok { color: var(--off-white); }

/* Calculadora: controles no fundo claro, resultado em cartão escuro (o formulário do e-mail mora nele) */
.calc .secao-topo .corpo { max-width: 52ch; }
.calc-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 6vw; align-items: start; }
.calc-campo { display: block; padding: 22px 0 20px; border-bottom: 1px solid rgb(30 30 30 / .12); }
.calc-campo:first-child { padding-top: 0; }
.calc-rotulo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 400; color: var(--texto-claro); margin-bottom: 14px; }
.calc-rotulo output { font: 800 clamp(22px, 1.7vw, 30px)/1 var(--font-display); letter-spacing: -.02em; color: var(--dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-premissa small { display: block; margin-top: 10px; font-size: 13px; color: var(--cinza); line-height: 1.5; }
.calc-premissa .calc-rotulo output { color: var(--red); }
/* trilho fino com a parte preenchida em magenta (--p vem do JS) */
.calc-campo input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
.calc-campo input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red) var(--p), rgb(30 30 30 / .14) var(--p)); }
.calc-campo input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(30 30 30 / .14); }
.calc-campo input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--red); }
.calc-campo input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--white); border: 0; box-shadow: 0 0 0 1px rgb(30 30 30 / .14), 0 2px 8px rgb(0 0 0 / .18);
  transition: transform 160ms var(--ease);
}
.calc-campo input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 0 0 1px rgb(30 30 30 / .14), 0 2px 8px rgb(0 0 0 / .18); }
.calc-campo input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-campo input[type="range"]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

.calc-resultado {
  position: sticky; top: 96px;
  border-radius: 22px; overflow: hidden; padding: 30px 0 0;
  background: var(--textura), var(--dark); color: var(--off-white);
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 40px 80px -40px rgb(0 0 0 / .55);
}
.calc-res-rotulo, .calc-res-valor, .calc-res-ano, .calc-tabela, .calc-nota { margin-left: 30px; margin-right: 30px; }
.calc-res-rotulo { font-size: 14px; color: var(--texto-escuro); }
.calc-res-valor { font: 800 clamp(44px, 4.6vw, 84px)/1 var(--font-display); letter-spacing: -.03em; color: var(--red); margin-top: 10px; font-variant-numeric: tabular-nums; }
.calc-res-ano { margin-top: 10px; font-size: 16px; color: var(--texto-escuro); }
.calc-res-ano span:first-child { color: var(--off-white); font-weight: 500; }
.calc-tabela { width: calc(100% - 60px); border-collapse: collapse; margin-top: 28px; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-tabela th, .calc-tabela td { padding: 10px 0 10px 12px; text-align: right; border-top: 1px solid rgb(255 255 255 / .1); font-weight: 400; }
.calc-tabela tbody th { text-align: left; padding-left: 0; color: var(--texto-escuro); font-weight: 300; }
.calc-tabela thead th { border-top: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-escuro); }
.calc-tabela td:nth-child(3), .calc-tabela thead th:nth-child(3) { color: var(--off-white); font-weight: 600; }
.calc-nota { margin-top: 18px; font-size: 12px; line-height: 1.55; color: var(--texto-escuro); opacity: .8; }
.calc-abrir { margin: 24px 30px 30px; }
.calc-form { border-top: 1px solid rgb(255 255 255 / .09); }
.calc-fora { margin-top: 40px; }
.calc-fora-titulo { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.calc-fora ul { list-style: none; }
.calc-fora li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgb(30 30 30 / .12); font-size: 15px; line-height: 1.55; color: var(--texto-claro); }
.calc-fora li b { color: var(--dark); font-weight: 600; }
.calc-fora svg { flex: none; width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* "Calcular" em destaque; magenta só quando o topo fica escuro (sobre o hero vermelho ele sumiria) */
.topo-nav .nav-calc { opacity: 1; font-weight: 600; }
.topo.solido .topo-nav .nav-calc { color: var(--red); }
@media (max-width: 1100px) {
  .calc-grade { grid-template-columns: 1fr; gap: 48px; }
  .calc-resultado { position: static; }
}
@media (max-width: 820px) {
  .calc-res-rotulo, .calc-res-valor, .calc-res-ano, .calc-tabela, .calc-nota { margin-left: 20px; margin-right: 20px; }
  .calc-tabela { width: calc(100% - 40px); font-size: 12px; }
  .calc-tabela th, .calc-tabela td { padding-left: 6px; }
  .calc-tabela thead th { font-size: 9.5px; letter-spacing: .02em; }
  .calc-abrir { margin: 24px 20px 26px; width: calc(100% - 40px); }
}

/* Janela de dados antes do WhatsApp (mesmo visual do formulário de contato) */
.lead-wa {
  width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; overflow: auto;
  background: var(--textura), var(--dark-2); color: var(--off-white);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 40px 90px -30px rgb(0 0 0 / .8);
}
.lead-wa::backdrop { background: rgb(10 10 12 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead-wa-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 22px 0 26px; }
.lead-wa-titulo { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.lead-wa-fechar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .06); color: var(--off-white); font-size: 22px; line-height: 1; cursor: pointer;
}
.lead-wa-texto { padding: 10px 26px 14px; font-size: 15px; font-weight: 300; color: var(--texto-escuro); }
.lead-wa .campo { border-top: 1px solid rgb(255 255 255 / .08); }
.lead-wa .form-rodape .btn { width: 100%; }
@media (max-width: 820px) {
  .lead-wa { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .lead-wa .campo, .lead-wa-texto { padding-left: 20px; padding-right: 20px; }
  .lead-wa-topo { padding: 20px 16px 0 20px; }
}

/* WhatsApp sempre à mão */
.whats-flutuante {
  position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red);
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 14px 34px -8px rgb(0 0 0 / .45);
  transition: transform 220ms var(--ease), box-shadow var(--t-ui) var(--ease);
}
.whats-flutuante svg { width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .15)); }
.whats-flutuante:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .whats-flutuante:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 18px 40px -8px rgb(0 0 0 / .5); } }

/* Rodapé com a frase gigante do site */
.rodape { padding: 64px var(--margem) 0; overflow: hidden; }
.rodape-linha {
  display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: end;
  padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .16);
  font-size: 14px; font-weight: 300; color: var(--texto-escuro);
}
.rodape-linha p { max-width: 44ch; }
.rodape-logo svg { display: block; width: 140px; height: 42px; }
.rodape-dados { text-align: right; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--red); }
.rodape-frase { font-size: 12.4vw; line-height: .95; white-space: nowrap; margin: 32px 0 -2.4vw; }

/* Entrada de texto */
.revela { opacity: 0; transform: translateY(12px); transition: opacity var(--t-texto) var(--ease), transform var(--t-texto) var(--ease); }
/* no capítulo, cada linha entra um instante depois da anterior (60 ms) */
.cap-texto > :not(.icone) { opacity: 0; transform: translateY(12px); transition: opacity var(--t-texto) var(--ease), transform var(--t-texto) var(--ease); }
.cap-texto.visivel > :not(.icone) { opacity: 1; transform: none; }
.cap-texto > :nth-child(2) { transition-delay: 60ms; }
.cap-texto > :nth-child(3) { transition-delay: 120ms; }
.cap-texto > :nth-child(4) { transition-delay: 180ms; }
.cap-texto > :nth-child(5) { transition-delay: 240ms; }
.cap-texto > :nth-child(6) { transition-delay: 300ms; }
.cap-texto > :nth-child(n+7) { transition-delay: 360ms; }
.caixa.revela:nth-child(2) { transition-delay: 60ms; }
.caixa.revela:nth-child(3) { transition-delay: 120ms; }
.caixa.revela:nth-child(4) { transition-delay: 180ms; }
.numeros > .revela:nth-child(2) { transition-delay: 80ms; }
.numeros > .revela:nth-child(3) { transition-delay: 160ms; }
.revela.visivel { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .modelos { gap: 12px; }
  .modelo { padding: 22px 16px 12px; }
  .cap-painel .caixa p { font-size: 13px; }
  .cap-painel .caixa h3 { font-size: 17px; }
  .caixas { grid-template-columns: 1fr 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  :root { --margem: 24px; }
  body { font-size: 17px; }
  .topo { height: 64px; gap: 16px; }
  .topo.solido { height: 58px; }
  .topo-logo svg { width: 92px; height: 28px; }
  .topo-nav { display: none; }
  .idiomas { margin-left: auto; }
  .idiomas button { min-width: 32px; height: 28px; padding: 0 7px; font-size: 11px; }
  .topo .btn { margin-left: 0; padding: 0 14px; white-space: nowrap; }
  .topo .cta-longo { display: none; }
  .topo .cta-curto { display: inline; }

  .celular { --w: min(22svh, 50vw); }
  .cap { align-items: flex-end; padding: 0 var(--margem) 40px; min-height: 115svh; }
  .cap-texto, .cap[data-lado="esquerda"] .cap-texto { width: 100%; margin: 0; padding: 24px 0 0; }
  .bloco, .cap[data-lado="esquerda"] .bloco {
    left: 0; right: 0; width: auto; top: 0; bottom: auto; height: 62svh;
    clip-path: inset(0 0 100% 0);
  }
  .cap-hero { align-items: flex-start; padding-top: 96px; min-height: 100svh; }
  .cap-hero .cap-texto { width: 100%; padding: 0; margin-left: 0; }
  .cap-final .cap-texto { width: 100%; }
  .cap-hero .lead { max-width: 30ch; margin-top: 16px; }
  .cap-hero .acoes { margin-top: 22px; }
  .titulo-xl { font-size: clamp(36px, 10.4vw, 52px); }
  .titulo-l { font-size: clamp(30px, 8.4vw, 42px); }
  .numero-xl, .dado strong { font-size: 96px; }
  .icone { width: 52px; height: 52px; margin-bottom: 20px; }
  .acoes { gap: 10px; }
  .btn { min-height: 48px; padding: 0 20px; }

  .secao { padding: 88px var(--margem); }
  .secao-topo { margin-bottom: 40px; }
  .caixas { grid-template-columns: 1fr; }
  .cap-painel .cap-texto { width: 100%; }
  .cap-painel .caixas { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
  .cap-painel .caixa { padding: 18px 14px; }
  .cap-painel .caixa p { display: none; }
  .cap-painel .caixa h3 { font-size: 15px; }
  .cap-painel .caixa-icone { width: 32px; height: 32px; }
  .cap-painel .caixa-icone + h3 { margin-top: 16px; }
  .tag small { display: none; }
  .caixa { min-height: 0; }
  .caixa-num { padding-bottom: 24px; }
  .secao-dupla { grid-template-columns: 1fr; }
  .secao-dupla .metade, .secao-dupla .metade + .metade { padding: 80px 0; border-left: 0; }
  .secao-dupla .metade + .metade { border-top: 1px solid rgb(255 255 255 / .16); }
  .numeros { grid-template-columns: 1fr; gap: 48px; }
  .modelos { grid-template-columns: 1fr; gap: 16px; }
  /* Tabela vira uma ficha por linha, com as três colunas lado a lado */
  .tabela { min-width: 0; font-size: 14px; }
  .tabela thead { display: none; }
  .tabela tr { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border-bottom: 1px solid rgb(30 30 30 / .14); }
  .tabela tbody th { grid-column: 1 / -1; width: auto; padding: 20px 0 10px; border: 0; font-size: 16px; }
  .tabela td { padding: 10px 10px 14px; border: 0; }
  .tabela td::before { content: attr(data-l); display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
  .secao-contato { min-height: auto; }
  .contato-grade { grid-template-columns: 1fr; gap: 48px; }
  .campo, .form-titulo, .form-rodape { padding-left: 20px; padding-right: 20px; }
  .contador { right: 20px; }
  .whats-flutuante { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; }
  .whats-flutuante svg { width: 32px; height: 32px; }
  .rodape-linha { grid-template-columns: 1fr; gap: 20px; }
  .rodape-dados { text-align: left; }
}

/* ---------- Telas do App (só no celular): botão com celular girando + galeria ---------- */
.telas-botao, .galeria { display: none; }
@media (max-width: 820px) {
  .telas-botao {
    position: fixed; z-index: 60;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + 60px + 14px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 10px; flex-direction: row-reverse;
    padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-body);
  }
  .telas-mini {
    width: 60px; height: 60px; border-radius: 50%; flex: none;
    display: grid; place-items: center; perspective: 140px;
    background: #121214; border: 1px solid rgb(255 31 90 / .35);
    box-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 14px 30px -10px rgb(0 0 0 / .6);
  }
  /* celular HUD (opção D): contorno com espessura, girando no eixo vertical em loop contínuo.
     Frente e verso aparecem sempre (contorno inteiro); as laterais, sombreadas, ligam os dois. */
  .hud {
    position: relative; width: 20px; height: 36px; transform-style: preserve-3d;
    animation: girar-hud 8s linear infinite;
  }
  .hud i { position: absolute; }
  .hud-frente, .hud-verso { inset: 0; border: 2.5px solid var(--red); border-radius: 6px; }
  .hud-frente { transform: translateZ(2.5px); }
  .hud-verso { transform: rotateY(180deg) translateZ(2.5px); }
  /* detalhes só do lado que está virado para a pessoa (não aparecem através do aparelho) */
  .hud-det { inset: 2.5px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .hud-det-frente { transform: translateZ(2.6px); }
  .hud-det-verso { transform: rotateY(180deg) translateZ(2.6px); }
  .hud-det-frente::before { content: ""; position: absolute; left: 50%; top: 2px; width: 7px; height: 2.5px; border-radius: 2px; background: var(--red); transform: translateX(-50%); }
  .hud-det-frente::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 8px; height: 1.5px; border-radius: 2px; background: var(--red); transform: translateX(-50%); }
  .hud-det-verso::before { content: ""; position: absolute; left: 2px; top: 2px; width: 7px; height: 7px; border-radius: 2px; border: 1.5px solid var(--red); }
  /* lateral: mesma altura reta do contorno, fundo rosa escuro (sombra) entre a frente e o verso */
  /* bordas rosa nas duas arestas: de lado, o contorno continua fechado */
  .hud-lado { top: 5px; bottom: 5px; left: 7.5px; width: 5px; background: #7d1534; border-left: 1.5px solid var(--red); border-right: 1.5px solid var(--red); box-sizing: border-box; }
  .hud-esq { transform: rotateY(-90deg) translateZ(8.75px); }
  .hud-dir { transform: rotateY(90deg) translateZ(8.75px); }
  .hud-dir::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 6px; background: var(--red); border-radius: 1px; }
  @keyframes girar-hud { from { transform: rotateX(8deg) rotateY(0); } to { transform: rotateX(8deg) rotateY(360deg); } }
  .telas-dica {
    padding: 9px 14px; border-radius: 999px; white-space: nowrap;
    background: var(--off-white); color: var(--dark); font-size: 13px; font-weight: 500; letter-spacing: -.01em;
    box-shadow: 0 8px 22px -8px rgb(0 0 0 / .45);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .telas-botao.recolhido .telas-dica { opacity: 0; transform: translateX(8px); pointer-events: none; }
  .telas-botao:active .telas-mini { transform: scale(.95); }
  .telas-botao:focus-visible .telas-mini { outline: 2px solid var(--off-white); outline-offset: 3px; }

  /* galeria em tela cheia: cada tela do App ocupa a tela inteira do celular */
  .galeria[open] {
    display: block; position: fixed; inset: 0; width: 100%; height: 100%;
    max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: #0d0d0f; color: var(--off-white); overflow: hidden;
  }
  .galeria::backdrop { background: #0d0d0f; }
  /* faixa de baixo: marcadores no centro e o × à direita, fora da imagem para não cobrir a tela do App */
  .galeria-topo { position: absolute; z-index: 3; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .galeria-titulo, .galeria-item figcaption, .galeria-deslize {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .galeria-fechar {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); cursor: pointer;
    background: rgb(255 255 255 / .08); color: #fff; font-size: 24px; line-height: 1;
  }
  .galeria-trilho {
    position: absolute; inset: 0 0 calc(52px + env(safe-area-inset-bottom, 0px)); display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .galeria-trilho::-webkit-scrollbar { display: none; }
  .galeria-item { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .galeria-celular { width: 100%; height: 100%; }
  .galeria-celular img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
  .galeria-bolinhas {
    position: absolute; z-index: 2; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    display: flex; gap: 2px;
  }
  .galeria-bolinha { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .galeria-bolinha::after {
    content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgb(255 255 255 / .55);
    transition: width .3s var(--ease), background-color .3s var(--ease);
  }
  .galeria-bolinha[aria-current="true"]::after { width: 20px; background: var(--red); }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .hud { animation: none; transform: rotateX(8deg) rotateY(-30deg); } }

/* ---------- Celular: o iPhone aparece só na cena final (com a mão) ----------
   Nos outros capítulos o texto ocupa a tela inteira, sem nada por cima. */
@media (max-width: 820px) {
  .palco { transition: opacity .5s var(--ease); }
  .cap:not(.cap-final) { min-height: 0; align-items: flex-start; padding-block: 96px 72px; }
  .cap-hero { min-height: 100svh; align-items: center; padding-block: 104px 72px; }
  .cap:not(.cap-final) .bloco { display: none; }
  .conectores-3d { display: none; }
  /* no celular as etiquetas viram pílulas grandes logo abaixo das caixas */
  .cap-painel .conectores-lista { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
  .conectores-lista li {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 11px; border-radius: 999px;
    font-size: 17px; font-weight: 500; color: var(--off-white);
    background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .14);
  }
  .conectores-lista i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgb(255 31 90 / .6); flex: none; }
  .conectores-lista i::before, .conectores-lista i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: #fff; transform: translate(-50%, -50%); border-radius: 1px; }
  .conectores-lista i::after { transform: translate(-50%, -50%) rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela, .cap-texto > *, .bloco { transition: none; transform: none !important; }
  .icone, .caixa-icone { stroke-dasharray: none; opacity: 1; animation: none !important; }
}
