/* =========================================================================
   PLATAFORMA POR RAMO — página de apresentação DENTRO do site da PIE
   PREVIA_AGENDAMENTO_2511 (Richard, 25/11/2026) · proporção refeita em 26/11/2026

   Por que existe: o cartão "Ver o modelo" levava a uma loja crua e igual para
   todos os ramos. Aqui a pessoa vê a plataforma funcionando num CELULAR e numa
   JANELA DE NAVEGADOR desenhados na própria página, passo a passo.

   PROPORÇÃO (26/11): a versão anterior mostrava o painel (captura de 1440 px) com 32% do tamanho real
   (letra de 14 px virava 5 px) e deixava o título do tour empurrar o palco para fora da primeira tela.
   Agora:
     · container largo (até 1680 px) e a composição do hero ocupa 56% da largura da tela;
     · UMA tela por vez, grande: a janela do painel usa toda a altura/largura do palco (>= 860 px em 1366,
       >= 1100 px em 1920) e a câmera aproxima da área do destaque;
     · o tour inteiro cabe na altura da tela (100svh - cabeçalho): título compacto na coluna dos passos;
     · celular com a tela >= 330 px no tour e >= 360 px no "teste você mesmo".
   Só usa as variáveis do site (css/styles.css). Os aparelhos são desenhados em CSS puro; as telas são
   capturas reais do modelo de demonstração (painel 1280x800 e celular 390x844, em 2x).
   ========================================================================= */

/* ---------- container largo só nestas páginas ---------- */
.pg-plat .wrap, .pg-plat .nav .wrap { max-width: 1680px; padding-left: clamp(18px, 2.4vw, 40px); padding-right: clamp(18px, 2.4vw, 40px); }

/* ---------- apoio ---------- */
.ag-voltar {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--esp-4);
  font-size: var(--fs-3); font-weight: 600; color: var(--text-mute); transition: color .2s;
}
.ag-voltar:hover { color: var(--gold-bright); }
.ag-voltar:focus-visible, .ag-passo:focus-visible, .tour-pausa:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 8px;
}
.ag-hero .hero-badge { margin-bottom: var(--esp-5); }
.ag-hero h1 { font-size: clamp(var(--fs-9), 3.1vw, 58px); max-width: 21ch; }
.ag-hero p.sub { max-width: 46ch; }
.ag-ramos {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: var(--esp-6) 0 0;
  color: var(--text-mute); font-size: var(--fs-3); font-weight: 600; letter-spacing: .03em;
}
.ag-ramos li + li::before {
  content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%;
  background: var(--gold-deep); vertical-align: middle;
}

/* =========================================================================
   APARELHOS
   ========================================================================= */

/* ----- janela de navegador (o painel) ----- */
.nb {
  position: relative; width: 100%; container-type: inline-size; border-radius: 12px; background: #17171c;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.09), 0 1px 0 rgba(255,255,255,.14) inset,
    0 46px 90px -34px rgba(0,0,0,.9), 0 16px 34px -18px rgba(0,0,0,.65);
}
.nb-barra {
  display: flex; align-items: center; gap: 14px; height: clamp(28px, 3.4cqw, 42px); padding: 0 clamp(10px, 1.6cqw, 18px);
  border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #2d2d34, #212127); border-bottom: 1px solid rgba(0,0,0,.55);
}
.nb-pts { display: flex; gap: clamp(5px, .75cqw, 8px); flex: none; }
.nb-pts b { width: clamp(8px, 1.05cqw, 12px); height: clamp(8px, 1.05cqw, 12px); border-radius: 50%; background: #5b5b64; }
.nb-pts b:nth-child(1) { background: #d96b63; }
.nb-pts b:nth-child(2) { background: #dcae43; }
.nb-pts b:nth-child(3) { background: #62b574; }
.nb-url {
  flex: 1; min-width: 0; max-width: 62%; margin: 0 auto; height: 68%; display: flex; align-items: center; gap: 7px;
  padding: 0 clamp(10px, 1.4cqw, 16px); border-radius: 999px; background: rgba(0,0,0,.36); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  color: #8f8f9a; font-size: var(--fs-2); white-space: nowrap; overflow: hidden;
}
.nb-cad { flex: none; width: 11px; height: 11px; fill: none; stroke: #7d7d88; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.nb-dom { color: #b9b9c3; }
.nb-rota { overflow: hidden; text-overflow: ellipsis; }
.nb-tela {
  position: relative; overflow: hidden; aspect-ratio: 1280 / 800; border-radius: 0 0 11px 11px;
  background: #0c0c10; isolation: isolate;
}
.nb-tela > img, .cel-tela > img, .nb-tela > video, .cel-tela > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }

/* ----- celular ----- */
.cel { position: relative; width: 100%; container-type: inline-size; }
.cel-corpo {
  position: relative; padding: 8cqw 4.3cqw 5cqw; border-radius: 15cqw;
  background: linear-gradient(160deg, #373740, #17171c 55%, #26262d);
  box-shadow:
    inset 0 0 0 .5cqw rgba(255,255,255,.10), inset 0 0 0 1.3cqw #08080b,
    0 0 0 .3cqw #000, 0 40px 72px -26px rgba(0,0,0,.9);
}
/* o entalhe fica na moldura de cima: a faixa DEMONSTRAÇÃO da tela nunca é coberta */
.cel-alto {
  position: absolute; top: 3.6cqw; left: 50%; width: 21cqw; height: 1.7cqw; transform: translateX(-50%);
  border-radius: 99px; background: #040406; box-shadow: inset 0 0 0 .25cqw #2a2a31;
}
.cel-cam {
  position: absolute; top: 3.35cqw; left: calc(50% + 14cqw); width: 2.2cqw; height: 2.2cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4b5b78, #08090d 70%); box-shadow: 0 0 0 .3cqw #1a1a20;
}
/* a altura natural da tela do celular é 2,164x a largura; --tela-h encurta quando a altura disponível é menor */
.cel-tela {
  position: relative; overflow: hidden; height: var(--tela-h, 197.8cqw); border-radius: 10.5cqw;
  background: #fff; isolation: isolate;
}
.cel::before, .cel::after {            /* botões laterais */
  content: ""; position: absolute; width: .9cqw; border-radius: .4cqw; background: #2b2b32;
}
.cel::before { left: -.7cqw; top: 25%; height: 8cqw; box-shadow: 0 11cqw 0 #2b2b32; }
.cel::after  { right: -.7cqw; top: 30%; height: 14cqw; }

/* ----- camada de tela (imagens + câmera em px, calculada pelo js) ----- */
.cam {
  position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1));
  transition: transform .45s var(--ease); will-change: transform;
}
.nb-tela .cam { aspect-ratio: 1280 / 800; }
.cel-tela .cam { aspect-ratio: 390 / 844; }
.cam img, .cam video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0;
  transition: opacity .22s ease; user-select: none; -webkit-user-drag: none;
}
.cam img.on, .cam img:only-child { opacity: 1; }
/* CLIPES (26/11/2026): o vídeo do passo ocupa o quadro da tela; sem controles, sem som, nunca recebe clique */
.cam video { object-fit: cover; object-position: top; background: #0c0c10; pointer-events: none; }
.cam video.on { opacity: 1; }
/* celular de quem visita: o clipe do painel já vem RECORTADO (com a "câmera" gravada) e preenche a janela inteira */
.nb-tela .cam.recorte { aspect-ratio: auto; height: 100%; }

/* herói: o clipe fica por cima da imagem e só aparece quando está tocando (sem JS ou com menos movimento, fica a imagem) */
.clip-hero {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .4s ease; pointer-events: none; background: #0c0c10;
}
.clip-hero.on { opacity: 1; }

/* ----- anel de destaque e balão ----- */
.anel {
  position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; box-sizing: border-box;
  border: 2px solid var(--gold-bright); border-radius: 10px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 4px rgba(240,215,126,.16), 0 0 26px rgba(212,175,55,.5), 0 0 0 200vmax rgba(8,8,10,.05);
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .25s;
}
.anel.on { opacity: 1; }
.anel::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--gold-bright);
  animation: anel-pulso 1.9s ease-out infinite;
}
@keyframes anel-pulso { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }

.balao {
  position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: 72%; pointer-events: none;
  padding: .55em .9em; border-radius: 10px; font-weight: 700; line-height: 1.3; font-size: var(--fs-5);
  color: #1d1704; background: linear-gradient(135deg, #f6e4a1, #d4af37 75%);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(5px) scale(.97);
  transition: opacity .22s, transform .26s var(--ease), left .45s var(--ease), top .45s var(--ease);
}
.balao.on { opacity: 1; transform: none; }
.balao::after {
  content: ""; position: absolute; left: var(--seta, 50%); width: 10px; height: 10px; border-radius: 2px;
  background: #dcb93f; transform: translateX(-50%) rotate(45deg);
}
.balao.cima::after { bottom: -5px; }
.balao.baixo::after { top: -5px; }
.cel .balao { font-size: var(--fs-4); max-width: 88%; padding: .5em .75em; border-radius: 9px; }
/* celular no desktop: balão ao lado do aparelho, com linha-guia até o anel */
.balao.fora { width: max-content; font-size: var(--fs-6); padding: .6em .95em; border-radius: 12px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.65); }
.balao.fora::after { display: none; }
.balao.fora::before {
  content: ""; position: absolute; top: 50%; width: var(--lider, 40px); height: 2px; margin-top: -1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(240,215,126,.2), var(--gold-bright));
}
.balao.fora.dir::before { right: 100%; }
.balao.fora.esq::before { left: 100%; transform: scaleX(-1); }

/* =========================================================================
   HERO — composição de aparelhos (ocupa a primeira tela)
   ========================================================================= */
.ag-hero { padding-top: calc(72px + var(--esp-6)); padding-bottom: var(--esp-7); }
.ag-vitrine { position: relative; width: 100%; justify-self: center; --celw: clamp(270px, 16vw, 330px); }
.ag-cena { position: relative; padding-bottom: clamp(36px, 4.4vw, 72px); }
.ag-cena .nb { width: 92%; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(212,175,55,.10)); }
.ag-cena .cel {
  position: absolute; left: -2.5%; bottom: 0; width: var(--celw);
  animation: ag-flutua 7s ease-in-out infinite;
}
@keyframes ag-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ag-vitrine::before {                    /* brilho dourado atrás dos aparelhos */
  content: ""; position: absolute; inset: 4% -6% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,175,55,.22), rgba(212,175,55,.05) 60%, transparent 78%);
  filter: blur(14px);
}
@media (min-width: 901px) {
  .ag-hero { min-height: 100svh; display: flex; align-items: center; }
  .ag-hero > .wrap { width: 100%; }
  .ag-hero .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 3vw, 56px); }
  /* 56% da largura da tela; passa um pouco da borda do container nas telas largas para o texto não espremer */
  .ag-vitrine { width: 57vw; margin-right: calc(-1 * clamp(0px, (100vw - 1600px) / 2, 120px)); }
}

/* =========================================================================
   TOUR GUIADO — uma tela por vez, cabe na tela do visitante
   ========================================================================= */
.ag-tour {
  --tp: clamp(18px, 3svh, 40px);
  --tour-h: clamp(540px, calc(100svh - 72px - 2 * var(--tp)), 880px);
  background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: var(--tp) 0; scroll-margin-top: 72px;
}
.tour { display: grid; align-items: stretch; }

/* cabeçalho compacto do tour (fica na coluna dos passos) */
.tour-cab { margin: 0 0 var(--esp-3); }
.tour-cab .overline { margin-bottom: var(--esp-3); padding: 5px 12px; font-size: var(--fs-2); }
.tour-cab h2 { font-size: clamp(var(--fs-7), 1.7vw, var(--fs-9)); line-height: 1.12; text-wrap: balance; }
.tour-cab p { display: none; color: var(--text-soft); font-size: var(--fs-4); margin: var(--esp-3) 0 0; }
/* a frase de apoio só aparece quando sobra altura (tela alta); em 1366x768 o tour inteiro tem de caber sem rolar */
@media (min-width: 901px) and (min-height: 960px) { .tour-cab p { display: block; } }

/* lista de passos */
.ag-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; align-content: start; }
.ag-passo {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--esp-3); width: 100%;
  text-align: left; padding: 7px 14px 8px 10px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text-soft);
  background: transparent; border: 1px solid transparent; overflow: hidden;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.ag-passo:hover { background: rgba(212,175,55,.04); color: var(--text); }
.ag-passo .n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: var(--fs-3); font-weight: 800; color: var(--text-mute); border: 1px solid var(--line-strong);
  transition: background .25s, color .25s, border-color .25s;
}
.ag-passo .ti { display: block; font-size: var(--fs-5); font-weight: 700; line-height: 1.3; color: inherit; padding-top: 4px; }
.ag-passo .curto { display: none; }
.ag-passo .d {
  display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: var(--fs-4); line-height: 1.5;
  color: var(--text-soft); transition: max-height .3s var(--ease), opacity .25s, margin-top .25s;
}
.ag-passo.on { background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(212,175,55,.03)); border-color: var(--line-strong); color: var(--text); }
.ag-passo.on .n { background: var(--gold-grad); border-color: transparent; color: #211a05; }
.ag-passo.on .d { max-height: 110px; opacity: 1; margin-top: 6px; }
.ag-passo .prog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(212,175,55,.12); opacity: 0; transition: opacity .25s;
}
.ag-passo .prog::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-grad); transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}
.ag-passo.on .prog { opacity: 1; }

.tour-pausa-linha { display: flex; justify-content: flex-start; }
.tour-pausa {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: var(--fs-3); font-weight: 600; color: var(--text-mute); background: transparent;
  border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s;
}
.tour-pausa:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.tour-pausa svg { width: 13px; height: 13px; fill: currentColor; }
.tour-pausa .ic-play { display: none; }
.tour-pausa[aria-pressed="true"] .ic-play { display: block; }
.tour-pausa[aria-pressed="true"] .ic-pause { display: none; }

/* palco: um cartão escuro; o aparelho da vez ocupa quase tudo */
.palco-wrap { min-width: 0; }
.palco {
  --pad: clamp(12px, 1.3vw, 22px);
  position: relative; display: grid; place-items: center; padding: var(--pad); overflow: hidden;
  container-type: size; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 62% at 50% 46%, rgba(212,175,55,.13), rgba(212,175,55,.03) 62%, transparent 82%),
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
}
.palco::before {                         /* grade de pontos bem discreta */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(212,175,55,.16) 1px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 50%, #000 20%, transparent 100%);
}
.palco .nb, .palco .cel {
  grid-area: 1 / 1; position: relative; z-index: 1;
  transition: opacity .26s ease, transform .26s var(--ease), visibility 0s linear .26s;
}
/* só o aparelho da vez aparece; o outro some por inteiro (nada escurecido atrás) */
.palco[data-ativo="pc"] .cel, .palco[data-ativo="cel"] .nb { opacity: 0; visibility: hidden; transform: scale(.97); pointer-events: none; }
.palco[data-ativo="pc"] .nb, .palco[data-ativo="cel"] .cel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 2; }
.palco .nb { width: min(100cqw, (100cqh - 42px) * 1.6); }
.palco .cel { width: min(100cqw, clamp(372px, 52cqh, 450px)); }
.palco .cel-tela { --tela-h: min(197.8cqw, calc(100cqh - 13cqw)); }

.legenda { display: none; }

/* ---------- desktop: passos à esquerda, palco ocupando o resto ---------- */
@media (min-width: 901px) {
  .tour {
    grid-template-columns: clamp(300px, 23vw, 360px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto; column-gap: clamp(24px, 2.6vw, 44px); row-gap: var(--esp-3);
    height: var(--tour-h);
  }
  .tour-lista { grid-column: 1; grid-row: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .palco-wrap { grid-column: 2; grid-row: 1 / span 2; height: 100%; }
  .palco { height: 100%; }
  .tour-pausa-linha { grid-column: 1; grid-row: 2; }
}

/* =========================================================================
   TESTE VOCÊ MESMO
   ========================================================================= */
.teste { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: center; }
.teste h2 { font-size: clamp(var(--fs-8), 3.4vw, 52px); }
.teste-txt > p { color: var(--text-soft); font-size: clamp(var(--fs-5), 1.5vw, var(--fs-6)); margin: var(--esp-4) 0 0; max-width: 46ch; }
.ag-tente { list-style: none; margin: var(--esp-6) 0 0; padding: 0; display: grid; gap: var(--esp-3); counter-reset: tente; }
.ag-tente li {
  counter-increment: tente; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--esp-3);
  align-items: center; color: var(--text); font-weight: 600; font-size: var(--fs-5);
}
.ag-tente li::before {
  content: counter(tente); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: var(--fs-3); font-weight: 800; color: var(--gold-bright); border: 1px solid var(--line-strong); background: rgba(212,175,55,.06);
}
.teste-nota {
  margin: var(--esp-6) 0 0; padding-left: var(--esp-4); border-left: 2px solid var(--gold); max-width: 46ch;
  color: var(--text-soft); font-size: var(--fs-4); line-height: 1.55;
}
.teste-acoes { display: flex; flex-wrap: wrap; gap: var(--esp-3); margin-top: var(--esp-6); }
/* celular vivo: tela >= 360 px e a altura nunca passa de min(80% da tela, 780 px) */
.teste-cel { position: relative; width: clamp(400px, 23vw, 446px); margin: 0 auto; }
.teste-cel::before {
  content: ""; position: absolute; inset: 4% -14% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,175,55,.2), rgba(212,175,55,.05) 62%, transparent 80%); filter: blur(16px);
}
.teste-cel .cel-tela { --tela-h: calc(min(80svh, 780px) - 13cqw); background: #f6f1ed; }
.teste-cel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.teste-aovivo {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: var(--esp-4);
  font-size: var(--fs-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright);
}
.teste-aovivo i { width: 7px; height: 7px; border-radius: 50%; background: var(--wpp); box-shadow: 0 0 10px var(--wpp); }

/* =========================================================================
   O QUE VEM JUNTO
   ========================================================================= */
.ag-recursos { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rec-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.rec {
  position: relative; padding: var(--esp-6) var(--esp-5) var(--esp-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.rec:hover { background: rgba(212,175,55,.045); }
.rec svg {
  width: 34px; height: 34px; margin-bottom: var(--esp-4); fill: none; stroke: var(--gold-bright); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.rec h3 { font-size: var(--fs-6); margin-bottom: var(--esp-2); line-height: 1.2; }
.rec p { margin: 0; color: var(--text-soft); font-size: var(--fs-4); line-height: 1.55; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1080px) {
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* hero numa coluna só (o css do site só empilha em 720px; a prévia empilha já nos 900px) */
  .ag-hero { padding-top: calc(62px + var(--esp-6)); }
  .ag-hero .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: var(--esp-6); }
  .ag-hero .hero-cta { justify-content: center; }
  .ag-hero h1, .ag-hero p.sub { margin-left: auto; margin-right: auto; max-width: 100%; }
  .ag-vitrine { max-width: 560px; margin: var(--esp-4) auto 0; --celw: 36%; }
  .ag-cena .cel { width: 36%; }
  .ag-hero .hero-badge, .ag-hero .ag-voltar { margin-left: auto; margin-right: auto; }
  .ag-voltar { display: flex; justify-content: center; }
  .ag-ramos { justify-content: center; }

  /* tour: título, depois passos viram chips roláveis acima do aparelho */
  .ag-tour { --tp: var(--esp-6); }
  .tour { grid-template-columns: minmax(0, 1fr); gap: var(--esp-4); }
  .tour-cab { text-align: center; margin-bottom: var(--esp-3); }
  .tour-cab h2 { font-size: clamp(var(--fs-8), 6.6vw, var(--fs-9)); }
  .tour-cab p { display: block; font-size: var(--fs-5); }
  .ag-passos {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * clamp(18px, 2.4vw, 40px)); padding: 2px clamp(18px, 2.4vw, 40px) 8px; scrollbar-width: none;
  }
  .ag-passos::-webkit-scrollbar { display: none; }
  .ag-passos li { flex: none; scroll-snap-align: center; }
  .ag-passo {
    display: flex; align-items: center; gap: 7px; width: auto; height: 42px; padding: 0 14px 0 7px; border-radius: 999px;
    background: rgba(255,255,255,.02); border-color: var(--line); white-space: nowrap;
  }
  .ag-passo .n { width: 26px; height: 26px; margin: 0; font-size: var(--fs-2); }
  .ag-passo .ti, .ag-passo .d { display: none; }
  .ag-passo .curto { display: block; font-size: var(--fs-4); font-weight: 700; line-height: 1; }
  .ag-passo .prog { left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; }

  /* palco: só o aparelho da vez, com o painel em recorte ampliado */
  .palco { --pad: 8px; height: min(150vw, 700px); border-radius: 18px; transition: height .3s var(--ease); }
  .palco[data-ativo="pc"] { height: min(82vw, 400px); }
  .palco .cel { width: min(100cqw, 330px); }
  .palco .cel-tela { --tela-h: min(197.8cqw, calc(100cqh - 13cqw), 640px); }
  .palco .nb-tela { aspect-ratio: 1.34; }
  .palco .nb { width: 100cqw; }

  .legenda {
    display: block; margin: var(--esp-3) 0 0; padding: var(--esp-4) var(--esp-5); border-radius: 16px; min-height: 120px;
    background: linear-gradient(135deg, rgba(212,175,55,.09), rgba(212,175,55,.02)); border: 1px solid var(--line-strong);
  }
  .legenda strong { display: block; font-size: var(--fs-5); line-height: 1.3; color: var(--text); margin-bottom: 6px; }
  .legenda span { display: block; font-size: var(--fs-4); line-height: 1.55; color: var(--text-soft); }
  .tour-pausa-linha { justify-content: center; }

  .teste { grid-template-columns: minmax(0, 1fr); gap: var(--esp-7); }
  .teste-txt { text-align: center; }
  .teste-txt > p, .teste-nota { margin-left: auto; margin-right: auto; }
  .ag-tente { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; justify-items: start; text-align: left; }
  .teste-nota { text-align: left; }
  .teste-acoes { justify-content: center; }
  .teste-cel { width: min(100%, 360px); }
}

@media (max-width: 720px) {
  .rec-grid { grid-template-columns: minmax(0, 1fr); }
  .rec { padding: var(--esp-5) var(--esp-4); display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--esp-4); }
  .rec svg { grid-row: span 2; width: 30px; height: 30px; margin: 2px 0 0; }
  .teste-acoes .btn { width: 100%; }
  .ag-cena { padding-bottom: 16%; }
  .ag-cena .cel { left: 1%; width: 36%; }
  .palco .balao { font-size: var(--fs-3); }
}

/* quem pediu menos movimento: nada flutua, nada pulsa, tudo troca sem deslizar */
@media (prefers-reduced-motion: reduce) {
  .ag-cena .cel { animation: none; }
  .anel::after { animation: none; display: none; }
  .cam, .palco .nb, .palco .cel, .anel, .balao, .cam img, .palco { transition-duration: .01s; transition-delay: 0s; }
  .ag-passo, .ag-passo .d { transition-duration: .01s; }
}

/* o brilho dourado do celular ao vivo passa da borda da coluna: sem recorte, no celular da pessoa a
   página inteira ficava 32px mais larga que a tela (medido: captura de 422px num viewport de 390px) */
#ag-teste, .ag-teste { overflow: hidden; }

/* títulos sem palavra órfã na última linha ("... num lugar / só") */
.ag-tour h2, .ag-recursos h2, .teste h2, .ag-hero h1, #ag-cta h2, .ag-cta h2 { text-wrap: balance; }


/* =========================================================================
   v4 (26/11/2026) — legenda externa, rótulos dos aparelhos, "Plataforma no ar", Pix, CTA depois do tour/demo, FAQ,
   hero "produto primeiro" no celular e botão compacto de WhatsApp nestas páginas (body.pg-plat)
   ========================================================================= */

/* ----- rótulos por aparelho e legenda externa do hero (fora das imagens) ----- */
.ag-rotulos { list-style: none; display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 0; padding: 0; }
.ag-rotulos .rot { display: flex; justify-content: center; min-width: 0; }
.ag-rotulos .rot-cel { flex: none; width: var(--celw); margin-left: -2.5%; }
.ag-rotulos .rot-pc { flex: 1; }
.pil {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font-size: var(--fs-2); font-weight: 700; letter-spacing: .04em; color: var(--text-soft);
  background: rgba(212,175,55,.07); border: 1px solid var(--line-strong);
}
.pil::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); flex: none; }
.ag-fonte { margin: 8px 0 0; text-align: center; font-size: var(--fs-2); letter-spacing: .02em; color: var(--text-mute); }
.ag-ramos-m { display: none; }

/* ----- PLATAFORMA NO AR (site real do cliente, só a vitrine visual) ----- */
.ag-noar { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.noar { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.noar-txt h2 { font-size: clamp(var(--fs-8), 2.9vw, 46px); }
.noar-ramo { margin: var(--esp-4) 0 0; max-width: 46ch; color: var(--text-soft); font-size: clamp(var(--fs-5), 1.4vw, var(--fs-6)); }
.noar-nums { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--esp-5); margin: var(--esp-6) 0 0; padding: 0; }
.noar-nums li { border-left: 2px solid var(--gold); padding-left: var(--esp-4); }
.noar-nums b { display: block; font-size: clamp(var(--fs-9), 3.3vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--gold-bright); }
.noar-nums span { display: block; margin-top: 8px; font-size: var(--fs-3); line-height: 1.4; color: var(--text-soft); }
.noar-per { margin: var(--esp-5) 0 0; font-size: var(--fs-3); color: var(--text-mute); }
.noar-fig { margin: 0; }
.noar-cena { position: relative; padding-bottom: 7%; }
.noar-cena .nb { width: 86%; margin-left: auto; }
.noar-cena .nb-tela { aspect-ratio: 1920 / 1200; }
.noar-cena .cel { position: absolute; left: 0; bottom: 0; width: 27%; }
.noar-fig figcaption { margin-top: var(--esp-4); text-align: center; font-size: var(--fs-3); font-weight: 600; letter-spacing: .02em; color: var(--text-mute); }

/* ----- destaque do Pix (agendamento) ----- */
.ag-pix { border-bottom: 1px solid var(--line); overflow: hidden; }   /* o brilho dourado do celular passa da borda da coluna (mesma armadilha do 'teste você mesmo') */
.ag-noar { overflow: hidden; }
.pix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.pix-cel { position: relative; width: clamp(290px, 21vw, 360px); margin: 0 auto; }
.pix-cel::before { content: ""; position: absolute; inset: 4% -14% 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(212,175,55,.2), rgba(212,175,55,.05) 62%, transparent 80%); filter: blur(16px); }
.pix-cel .cel-tela { --tela-h: min(197.8cqw, calc(78svh - 13cqw)); }
.pix-txt h2 { font-size: clamp(var(--fs-8), 3.2vw, 50px); }
.pix-txt > p { margin: var(--esp-4) 0 0; max-width: 52ch; color: var(--text-soft); font-size: clamp(var(--fs-5), 1.4vw, var(--fs-6)); }
.pix-txt .ag-tente { margin-top: var(--esp-5); }
.pix-nums { max-width: 520px; }

/* ----- CTA depois do tour e depois do teste ----- */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--esp-6);
  max-width: 1080px; margin: var(--esp-7) auto 0; padding: var(--esp-6) var(--esp-7); border-radius: 22px;
  border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(212,175,55,.11), rgba(212,175,55,.03));
}
.cta-card h3 { margin: 0 0 6px; font-size: clamp(var(--fs-7), 2vw, var(--fs-8)); line-height: 1.15; }
.cta-card p { margin: 0; color: var(--text-soft); font-size: var(--fs-4); }
.cta-card-acoes { display: flex; flex-wrap: wrap; gap: var(--esp-3); flex: none; }
.ag-teste .cta-card { margin-top: var(--esp-8); }

/* ----- FAQ em acordeão ----- */
.ag-faq .faq-lista { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.pfaq { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); transition: border-color .25s, background .25s; }
.pfaq[open] { border-color: var(--line-strong); background: rgba(212,175,55,.04); }
.pfaq summary { position: relative; list-style: none; cursor: pointer; padding: 16px 54px 16px 20px; font-weight: 700; font-size: var(--fs-5); line-height: 1.35; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; color: var(--gold-bright); }
.pfaq[open] summary::after { content: "\2212"; }
.pfaq summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 12px; }
.pfaq p { margin: 0; padding: 0 20px 18px; max-width: 70ch; color: var(--text-soft); line-height: 1.6; }

@media (max-width: 900px) {
  .noar, .pix { grid-template-columns: minmax(0, 1fr); gap: var(--esp-7); }
  .noar-txt, .pix-txt { text-align: center; }
  .noar-ramo, .pix-txt > p { margin-left: auto; margin-right: auto; }
  .noar-nums { text-align: left; }
  .noar-cena { max-width: 560px; margin: 0 auto; }
  .noar-cena .cel { width: 32%; }
  .pix-txt .ag-tente { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; justify-items: start; }
  .pix-nums { margin-left: auto; margin-right: auto; text-align: left; }
  .pix-cel { width: min(100%, 340px); }
  .cta-card { flex-direction: column; align-items: stretch; text-align: center; padding: var(--esp-6) var(--esp-5); gap: var(--esp-5); }
  .cta-card-acoes { justify-content: center; }
  .cta-card-acoes .btn { flex: 1 1 100%; justify-content: center; }
}

/* ----- celular: hero "produto primeiro" (o aparelho já no primeiro quadro, um CTA grande e o resto como link) ----- */
@media (max-width: 900px) {
  .ag-hero { padding-top: calc(62px + 12px); padding-bottom: var(--esp-6); }
  .ag-hero .hero-grid { gap: var(--esp-3); }
  .ag-hero .ag-voltar { display: none; }
  .ag-hero .hero-badge { margin-bottom: 10px; }
  .ag-hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .ag-hero p.sub { margin-top: var(--esp-3); font-size: var(--fs-5); }
  .ag-hero .hero-cta { margin-top: var(--esp-4); flex-direction: column; align-items: stretch; gap: 4px; }
  .ag-hero .hero-cta .btn-gold { padding: 15px 22px; font-size: var(--fs-6); }
  .ag-hero .hero-cta .btn-ghost {
    width: auto; align-self: center; min-height: 0; padding: 8px 6px; border: 0; background: none; box-shadow: none;
    font-size: var(--fs-4); font-weight: 600; color: var(--text-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
  }
  .ag-hero .ag-vitrine { margin-top: var(--esp-2); }
  .ag-ramos-d { display: none; }
  .ag-ramos-m { display: flex; margin-top: var(--esp-3); }
  .pil { padding: 4px 9px; font-size: var(--fs-1); letter-spacing: .02em; }
  .ag-rotulos { gap: 6px; }
  .ag-rotulos .rot-cel { margin-left: 1%; }
  .ag-fonte { font-size: var(--fs-1); }
}

/* ----- WhatsApp: nestas páginas a barra verde de largura total sai e entra um botão redondo no canto, que
   some enquanto um aparelho (hero, tour, demo, plataforma no ar) está na tela, para nunca cobrir o palco ----- */
@media (max-width: 900px) {
  body.pg-plat { padding-bottom: 0; }
  .pg-plat .sticky-cta { display: none !important; }
  .pg-plat .wpp-float { display: grid; right: 14px; bottom: 16px; width: 48px; height: 48px; transition: opacity .2s ease, transform .2s ease; }
  .pg-plat .wpp-float svg { width: 26px; height: 26px; }
  .pg-plat .wpp-float.some { opacity: 0; transform: scale(.8); pointer-events: none; }
}
