/* ==========================================================================
   Cadê Meu Lucro
   Verde-floresta e ouro, claro e limpo.
   ========================================================================== */

:root {
  --abismo: #082a19;
  --floresta: #0e3b22;
  --mata: #124c2a;
  --folha: #1d6a3d;
  --ouro: #c3993a;
  --ouro-claro: #e8d08f;
  --ouro-fundo: #f3e7c3;
  --papel: #f2f3ef;
  --branco: #ffffff;
  --tinta: #0e3b22;
  --tinta-suave: #4b6556;

  --fonte: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --raio-g: 2rem;
  --raio-m: 1.35rem;
  --raio-p: 0.9rem;

  --medida: 72rem;
  --lado: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--abismo);
  color: var(--papel);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ouro);
  color: var(--abismo);
}

:focus-visible {
  outline: 2px solid var(--ouro-claro);
  outline-offset: 3px;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: var(--lado);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ouro);
  color: var(--abismo);
  text-decoration: none;
}

.pular:focus {
  top: 0.75rem;
}

.miolo {
  width: 100%;
  max-width: var(--medida);
  margin: 0 auto;
}

/* Logotipo em tile arredondado ---------------------------------------- */

.icone {
  flex: none;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--branco);
}

.icone-pp {
  width: 1.65rem;
  border-radius: 0.45rem;
}

.icone-p {
  width: 2.25rem;
  border-radius: 0.62rem;
}

.icone-g {
  width: 5.25rem;
  border-radius: 1.4rem;
}

/* Botões --------------------------------------------------------------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.4s var(--ease), border-color 0.3s;
}

.botao:active {
  transform: scale(0.97);
}

.botao-pequeno {
  min-height: 38px;
  padding: 0.4rem 1.05rem;
  font-size: 0.94rem;
}

.botao-grande {
  min-height: 52px;
  padding: 0.8rem 1.9rem;
  font-size: 1.0625rem;
}

.botao-ouro {
  background: linear-gradient(180deg, #d6b055, var(--ouro));
  color: var(--abismo);
  box-shadow: 0 0 0 0 rgba(195, 153, 58, 0.45);
}

.botao-ouro:hover {
  background: linear-gradient(180deg, #e3c06a, #cfa443);
  box-shadow: 0 10px 34px -8px rgba(195, 153, 58, 0.6);
  transform: translateY(-1px);
}

.botao-vidro {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--papel);
  backdrop-filter: blur(12px);
}

.botao-vidro:hover {
  background: rgba(255, 255, 255, 0.15);
}

.botao-escuro {
  background: var(--floresta);
  color: var(--papel);
}

.botao-escuro:hover {
  background: var(--mata);
  box-shadow: 0 12px 30px -10px rgba(14, 59, 34, 0.55);
  transform: translateY(-1px);
}

/* Topo ------------------------------------------------------------------ */

.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 0.85rem var(--lado) 0;
  pointer-events: none;
}

.topo-barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 42, 25, 0.55);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  pointer-events: auto;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.topo.rolou .topo-barra {
  background: rgba(8, 42, 25, 0.82);
  border-color: rgba(195, 153, 58, 0.28);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--papel);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topo-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.topo-nav a:not(.botao) {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: rgba(242, 243, 239, 0.74);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}

.topo-nav a:not(.botao):hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--papel);
}

.topo-nav-cta {
  display: none;
}

.menu-botao {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-traco,
.menu-traco::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--papel);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-traco {
  top: 19px;
}

.menu-traco::before {
  left: 0;
  right: 0;
  top: 7px;
}

.menu-botao[aria-expanded="true"] .menu-traco {
  top: 22px;
  transform: rotate(45deg);
}

.menu-botao[aria-expanded="true"] .menu-traco::before {
  top: 0;
  transform: rotate(-90deg);
}

/* Seções ----------------------------------------------------------------- */

.sec {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--lado);
  background: var(--bg);
  color: var(--fg);
}

.sec-claro {
  --bg: var(--papel);
  --fg: var(--tinta);
  --fg-suave: var(--tinta-suave);
  --linha: rgba(14, 59, 34, 0.13);
}

.sec-escuro {
  --bg: var(--floresta);
  --fg: #f2f3ef;
  --fg-suave: rgba(242, 243, 239, 0.7);
  --linha: rgba(255, 255, 255, 0.14);
}

.sec-abismo {
  --bg: var(--abismo);
  --fg: #f2f3ef;
  --fg-suave: rgba(242, 243, 239, 0.7);
  --linha: rgba(255, 255, 255, 0.14);
}

.sec-cab {
  max-width: 44rem;
  margin: 0 auto clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.sec-cab p {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  color: var(--fg-suave);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

h3 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lead {
  color: var(--fg-suave);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

/* Abertura ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 7.5rem var(--lado) 4rem;
  background:
    radial-gradient(70% 55% at 85% 35%, rgba(195, 153, 58, 0.16), transparent 70%),
    linear-gradient(180deg, #0a3220 0%, var(--abismo) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.brilho {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.brilho-1 {
  width: 34rem;
  height: 34rem;
  left: -10rem;
  top: -8rem;
  background: rgba(29, 106, 61, 0.65);
  animation: deriva-a 22s ease-in-out infinite alternate;
}

.brilho-2 {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: 18%;
  background: rgba(195, 153, 58, 0.26);
  animation: deriva-b 26s ease-in-out infinite alternate;
}

.brilho-3 {
  width: 24rem;
  height: 24rem;
  left: 30%;
  bottom: -12rem;
  background: rgba(18, 76, 42, 0.8);
  animation: deriva-a 30s ease-in-out infinite alternate-reverse;
}

.hero-barras {
  position: absolute;
  right: clamp(-3rem, 2vw, 4rem);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  width: min(46rem, 62vw);
  height: 78%;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

.hero-barras span {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(195, 153, 58, 0.2), rgba(195, 153, 58, 0.02));
  border: 1px solid rgba(232, 208, 143, 0.1);
  border-bottom: 0;
  transform-origin: bottom;
  animation: cresce-y 1.8s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.12s);
}

.hero-miolo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-texto {
  --fg-suave: rgba(242, 243, 239, 0.74);
}

.hero-icone {
  margin-bottom: 2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 18px 50px -12px rgba(195, 153, 58, 0.55);
  animation: icone-entra 1.2s var(--ease) both, flutua 7s ease-in-out 1.4s infinite;
}

.hero-titulo {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  animation: titulo-entra 1.3s var(--ease) 0.15s both;
}

.hero .lead {
  max-width: 32rem;
  margin-top: 1.6rem;
  animation: titulo-entra 1.3s var(--ease) 0.3s both;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
  animation: titulo-entra 1.3s var(--ease) 0.45s both;
}

.acoes-nota {
  margin-top: 1rem;
  color: var(--ouro-claro);
  font-size: 0.98rem;
  animation: titulo-entra 1.3s var(--ease) 0.6s both;
}

/* Celular -------------------------------------------------------------- */

.palco {
  position: relative;
  display: flex;
  justify-content: center;
  animation: palco-entra 1.5s var(--ease) 0.35s both;
}

.palco-inclina {
  transform: perspective(1400px) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform 0.6s var(--ease);
}

.celular {
  position: relative;
  width: clamp(17.5rem, 26vw, 20.5rem);
  padding: 0.6rem;
  border: 1px solid rgba(232, 208, 143, 0.38);
  border-radius: 3rem;
  background: linear-gradient(160deg, #0b2a19, #041409);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 60px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -20px rgba(195, 153, 58, 0.35);
  animation: flutua 9s ease-in-out 1.6s infinite;
}

.celular-ilha {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  z-index: 2;
  width: 5.2rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #02100a;
  transform: translateX(-50%);
}

.celular-tela {
  display: flex;
  flex-direction: column;
  height: clamp(31rem, 42vw, 36rem);
  border-radius: 2.45rem;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(195, 153, 58, 0.1), transparent 60%),
    linear-gradient(180deg, #0d3a22, #09291a);
  overflow: hidden;
}

.chat-topo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 2.9rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 42, 25, 0.7);
}

.chat-topo strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.chat-topo span {
  display: block;
  color: var(--ouro-claro);
  font-size: 0.75rem;
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 0.85rem;
  overflow: hidden;
}

.msg {
  max-width: 88%;
  padding: 0.55rem 0.8rem;
  border-radius: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.38;
}

.msg-app {
  align-self: flex-start;
  border-bottom-left-radius: 0.3rem;
  background: #174f2f;
  color: #eef3ee;
}

.msg-voce {
  align-self: flex-end;
  border-bottom-right-radius: 0.3rem;
  background: linear-gradient(180deg, #d9b45c, var(--ouro));
  color: var(--abismo);
}

.lancs {
  display: grid;
  gap: 0.35rem;
  margin: 0.6rem 0;
}

.lancs li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
}

.lancs span {
  color: rgba(238, 243, 238, 0.66);
}

.valor-entrada {
  color: var(--ouro-claro);
  font-weight: 600;
}

.valor-saida {
  color: #f0a79b;
  font-weight: 600;
}

.resposta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.78rem;
}

.resposta span {
  padding: 0.4rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.resposta .resposta-sim {
  background: rgba(232, 208, 143, 0.9);
  color: var(--abismo);
  font-weight: 500;
}

.msg-ok p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.check {
  flex: none;
  fill: none;
  stroke: var(--ouro-claro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-campo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0.85rem 0.9rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.chat-campo i {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ouro);
}

/* A conversa só esconde as mensagens quando o JS vai animá-la */
.palco.animado .msg,
.palco.animado .ficha {
  display: none;
}

.palco.animado .msg.is-in {
  display: block;
  animation: msg-entra 0.5s var(--ease) both;
}

.palco.animado .msg.msg-pontos {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
}

.msg-pontos i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(238, 243, 238, 0.7);
  animation: ponto 1.1s ease-in-out infinite;
}

.msg-pontos i:nth-child(2) {
  animation-delay: 0.15s;
}

.msg-pontos i:nth-child(3) {
  animation-delay: 0.3s;
}

.palco.animado .digitando::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  background: var(--abismo);
  vertical-align: text-bottom;
  animation: pisca 0.9s steps(1) infinite;
}

/* Fichas flutuantes */

.ficha {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0.05rem;
  min-width: 8.2rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--raio-m);
  background: rgba(14, 59, 34, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
}

.ficha small {
  color: rgba(242, 243, 239, 0.66);
  font-size: 0.78rem;
}

.ficha strong {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ficha-entrada {
  left: -1.5rem;
  top: 16%;
}

.ficha-entrada strong {
  color: var(--ouro-claro);
}

.ficha-saida {
  right: -1.5rem;
  top: 46%;
}

.ficha-saida strong {
  color: #f0a79b;
}

.ficha-saldo {
  left: -0.5rem;
  bottom: 10%;
  border-color: rgba(232, 208, 143, 0.5);
  background: linear-gradient(180deg, rgba(214, 176, 85, 0.95), rgba(195, 153, 58, 0.95));
  color: var(--abismo);
}

.ficha-saldo small {
  color: rgba(8, 42, 25, 0.7);
}

.palco.animado .ficha.is-in {
  display: grid;
  animation: ficha-entra 0.9s var(--ease) both, flutua 6s ease-in-out 1s infinite;
}

.palco.animado .ficha-saida.is-in {
  animation-delay: 0.18s, 1.2s;
}

.palco.animado .ficha-saldo.is-in {
  animation-delay: 0.36s, 1.4s;
}

/* Como funciona ------------------------------------------------------------ */

.passos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.passo {
  display: flex;
  flex-direction: column;
  border-radius: var(--raio-g);
  overflow: hidden;
}

.passo-escuro {
  background: var(--floresta);
  color: var(--papel);
  --p-suave: rgba(242, 243, 239, 0.72);
}

.passo-branco {
  background: var(--branco);
  color: var(--tinta);
  --p-suave: var(--tinta-suave);
}

.passo-ouro {
  background: var(--ouro-fundo);
  color: var(--abismo);
  --p-suave: rgba(8, 42, 25, 0.72);
}

.passo-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 15rem;
  overflow: hidden;
}

.passo-escuro .passo-visual {
  background: radial-gradient(80% 90% at 50% 100%, rgba(195, 153, 58, 0.25), transparent 70%), var(--mata);
}

.passo-branco .passo-visual {
  background: linear-gradient(180deg, #e9ece6, #f6f7f4);
}

.passo-ouro .passo-visual {
  background: radial-gradient(70% 80% at 50% 50%, rgba(255, 255, 255, 0.7), transparent 70%), #ecd999;
}

.passo-texto {
  flex: 1;
  padding: 1.75rem 1.9rem 2.1rem;
}

.passo-n {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--ouro);
  color: var(--abismo);
  font-size: 0.9rem;
  font-weight: 600;
}

.passo-texto p {
  margin-top: 0.6rem;
  color: var(--p-suave);
}

/* 1. Manda */

.arq {
  position: absolute;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 500;
  animation: flutua 5.5s ease-in-out infinite;
}

.arq-1 {
  left: 12%;
  top: 14%;
}

.arq-2 {
  right: 12%;
  top: 22%;
  animation-delay: -1.5s;
}

.arq-3 {
  left: 18%;
  bottom: 18%;
  animation-delay: -3s;
}

.arq-4 {
  right: 20%;
  bottom: 14%;
  animation-delay: -4.2s;
}

.audio {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9b45c, var(--ouro));
  color: var(--abismo);
}

.audio svg {
  margin-right: 0.35rem;
  fill: currentColor;
}

.audio i {
  width: 3px;
  height: 1.35rem;
  border-radius: 3px;
  background: currentColor;
  transform-origin: center;
  animation: onda 1.1s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * 0.09s);
}

.audio i:nth-of-type(2n) {
  --k: 2;
}

.audio i:nth-of-type(3n) {
  --k: 5;
}

.audio i:nth-of-type(4n) {
  --k: 8;
}

.audio i:nth-of-type(5n) {
  --k: 3;
}

/* 2. Revisa */

.leitura {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: min(17rem, 82%);
  padding: 0.75rem;
  border-radius: var(--raio-m);
  background: var(--branco);
  box-shadow: 0 24px 40px -24px rgba(14, 59, 34, 0.45);
  overflow: hidden;
}

.leitura div {
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  background: #f1f3ee;
}

.leitura small {
  display: block;
  color: var(--tinta-suave);
  font-size: 0.7rem;
}

.leitura b {
  display: block;
  color: var(--tinta);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.varre {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2.6rem;
  background: linear-gradient(180deg, transparent, rgba(195, 153, 58, 0.32), transparent);
  border-bottom: 1.5px solid var(--ouro);
  animation: varre 3.6s ease-in-out infinite;
}

/* 3. Confirma */

.visual-confirma {
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
}

.confirma-botao {
  position: relative;
  display: grid;
  place-items: center;
  width: 9rem;
  height: 3.1rem;
  border-radius: 999px;
  background: var(--floresta);
  color: var(--papel);
  font-weight: 500;
  animation: confirma-botao 6s ease-in-out infinite;
}

.confirma-rotulo {
  animation: confirma-rotulo 6s ease-in-out infinite;
}

.confirma-check {
  position: absolute;
  fill: none;
  stroke: var(--abismo);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirma-check circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  animation: tracar 6s ease-in-out infinite;
}

.confirma-check path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: tracar-check 6s ease-in-out infinite;
}

.confirma-gravado {
  color: rgba(8, 42, 25, 0.75);
  font-size: 0.95rem;
  animation: gravado 6s ease-in-out infinite;
}

/* O que faz (bento) ------------------------------------------------------ */

.bento {
  display: grid;
  gap: 1rem;
}

.cel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 21rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--raio-g);
  overflow: hidden;
}

.cel-texto p {
  max-width: 26rem;
  margin-top: 0.7rem;
  color: var(--c-suave);
}

.cel-mata {
  background: var(--mata);
  color: var(--papel);
  --c-suave: rgba(242, 243, 239, 0.72);
}

.cel-ouro {
  background: linear-gradient(160deg, #d9b45c, var(--ouro) 70%);
  color: var(--abismo);
  --c-suave: rgba(8, 42, 25, 0.78);
}

.cel-claro {
  background: var(--papel);
  color: var(--tinta);
  --c-suave: var(--tinta-suave);
}

.cel-papel {
  background: var(--branco);
  color: var(--tinta);
  --c-suave: var(--tinta-suave);
}

/* Fluxo de caixa: barras */

.grafico {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  height: 9rem;
}

.par {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 0.3rem;
  height: 100%;
}

.par i {
  flex: 1;
  height: var(--h);
  border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
  transform-origin: bottom;
}

.b-in {
  background: linear-gradient(180deg, #e3c06a, var(--ouro));
}

.b-out {
  background: rgba(242, 243, 239, 0.26);
}

.cel.visivel .par i {
  animation: cresce-y 1.1s var(--ease) both;
  animation-delay: calc(0.2s + var(--i) * 0.07s);
}

/* Fichas em geral */

.fichas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fichas li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(8, 42, 25, 0.14);
  font-size: 0.95rem;
  font-weight: 500;
}

.fichas-escuras li {
  background: var(--floresta);
  color: var(--papel);
}

.cel.visivel .fichas li {
  animation: pop 0.7s var(--ease) both;
  animation-delay: calc(0.25s + var(--i) * 0.07s);
}

/* Período: controle segmentado */

.periodo {
  margin-bottom: -0.6rem;
}

.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(14, 59, 34, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}

.seg span {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.95rem;
}

.seg i {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: calc((100% - 0.5rem) / 3);
  border-radius: 999px;
  background: var(--branco);
  box-shadow: 0 2px 8px rgba(14, 59, 34, 0.18);
  animation: segmenta 7.5s var(--ease) infinite;
}

/* Assistente */

.duo {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.bolha {
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bolha-p {
  justify-self: end;
  border-bottom-right-radius: 0.35rem;
  background: linear-gradient(180deg, #d9b45c, var(--ouro));
  color: var(--abismo);
}

.bolha-r,
.bolha-pontos {
  border-bottom-left-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
}

.bolha-pontos {
  display: flex;
  gap: 0.28rem;
  padding: 0.85rem 1rem;
}

.bolha-pontos i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(242, 243, 239, 0.75);
  animation: ponto 1.1s ease-in-out infinite;
}

.bolha-pontos i:nth-child(2) {
  animation-delay: 0.15s;
}

.bolha-pontos i:nth-child(3) {
  animation-delay: 0.3s;
}

.cel.visivel .bolha-p {
  animation: ciclo-p 9s var(--ease) infinite;
}

.cel.visivel .bolha-pontos {
  animation: ciclo-pontos 9s var(--ease) infinite;
}

.cel.visivel .bolha-r {
  animation: ciclo-r 9s var(--ease) infinite;
}

.duo {
  position: relative;
  min-height: 9.2rem;
  align-content: end;
}

.bolha-pontos {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
}

/* Descritivos */

.doc {
  position: relative;
  display: grid;
  gap: 0.55rem;
  width: min(15rem, 80%);
  padding: 1.1rem 1.1rem 1.4rem;
  border-radius: 1rem 1rem 0 0;
  background: #f1f3ee;
  align-self: center;
  margin-bottom: -2.2rem;
  height: 8.5rem;
}

.doc-linha {
  display: block;
  width: var(--w);
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(14, 59, 34, 0.18);
  transform-origin: left;
}

.doc-linha:first-child {
  height: 0.7rem;
  background: var(--ouro);
}

.cel.visivel .doc-linha {
  animation: escreve 1s var(--ease) both;
  animation-delay: calc(0.2s + var(--i) * 0.14s);
}

.doc-selo {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--floresta);
  color: var(--papel);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Apagar período */

.apagar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--raio-m);
  background: rgba(0, 0, 0, 0.2);
}

.apagar p {
  color: rgba(242, 243, 239, 0.78);
}

.apagar b {
  color: var(--ouro-claro);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}

.apagar div {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.apagar span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.apagar .apagar-sim {
  background: rgba(240, 167, 155, 0.9);
  color: #3a0f08;
  font-weight: 500;
}

/* Relatórios ------------------------------------------------------------- */

.rel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.rel-lista {
  display: grid;
  gap: 0.25rem;
}

.rel-item {
  position: relative;
  display: block;
  padding: 1.1rem 1.4rem 1.55rem;
  border: 0;
  border-radius: var(--raio-m);
  background: transparent;
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.4s;
}

.rel-item:hover {
  background: rgba(14, 59, 34, 0.05);
}

.rel-item[aria-selected="true"] {
  background: var(--branco);
}

.rel-titulo {
  display: block;
  color: rgba(14, 59, 34, 0.62);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.4s;
}

.rel-item[aria-selected="true"] .rel-titulo,
.rel-item:hover .rel-titulo {
  color: var(--tinta);
}

.rel-desc {
  display: block;
  max-width: 28rem;
  color: var(--tinta-suave);
  font-size: 1rem;
  line-height: 1.5;
}

.js .rel-desc {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), margin-top 0.6s var(--ease), opacity 0.5s;
}

.js .rel-item[aria-selected="true"] .rel-desc {
  max-height: 9rem;
  margin-top: 0.5rem;
  opacity: 1;
}

.rel-progresso {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0.5rem;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
}

.rel-progresso::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left;
}

.rel-item[aria-selected="true"] .rel-progresso {
  background: rgba(14, 59, 34, 0.1);
}

.rel.visivel .rel-lista.auto .rel-item[aria-selected="true"] .rel-progresso::after {
  animation: preencher 6.5s linear forwards;
}

.rel-lista:not(.auto) .rel-item[aria-selected="true"] .rel-progresso::after {
  transform: scaleX(1);
}

.rel-palco {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 31rem;
  padding: 2rem;
  border-radius: var(--raio-g);
  background:
    radial-gradient(70% 70% at 80% 10%, rgba(195, 153, 58, 0.3), transparent 70%),
    var(--floresta);
  overflow: hidden;
}

.rel-aviso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  color: rgba(242, 243, 239, 0.55);
  font-size: 0.85rem;
  text-align: center;
}

.folha {
  width: min(25rem, 100%);
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 0.9rem;
  background: var(--branco);
  color: var(--tinta);
  font-size: 0.88rem;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.65);
  animation: folha-entra 0.8s var(--ease) both;
}

.folha[hidden] {
  display: none;
}

.folha-cab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ouro);
}

.folha-cab strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.folha-cab span {
  margin-left: auto;
  color: var(--tinta-suave);
  font-size: 0.8rem;
}

.folha-tabela {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.folha-tabela th {
  padding: 0 0 0.5rem;
  color: var(--tinta-suave);
  font-size: 0.74rem;
  font-weight: 500;
  text-align: left;
}

.folha-tabela td {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(14, 59, 34, 0.1);
}

.folha .num {
  text-align: right;
}

.folha .pos {
  color: #8a6a1a;
  font-weight: 600;
}

.folha .neg {
  color: #a64636;
  font-weight: 600;
}

.folha-total {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.folha-total div {
  flex: 1;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  background: #eff1ec;
  font-variant-numeric: tabular-nums;
}

.folha-total small {
  display: block;
  color: var(--tinta-suave);
  font-size: 0.7rem;
}

.folha-total b {
  font-size: 0.95rem;
  font-weight: 600;
}

.folha-total div:last-child {
  background: var(--floresta);
  color: var(--papel);
}

.folha-total div:last-child small {
  color: rgba(242, 243, 239, 0.7);
}

.folha-nota {
  margin-top: 1rem;
  color: var(--tinta-suave);
  font-size: 0.8rem;
}

.comp {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 11rem;
}

.comp-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
  text-align: center;
}

.comp-col small {
  color: var(--tinta-suave);
  font-size: 0.75rem;
  order: 3;
}

.comp-col b {
  order: 1;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.comp-barra {
  display: flex;
  align-items: flex-end;
  flex: 1;
  order: 2;
  min-height: 0;
}

.comp-barra i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 0.6rem 0.6rem 0.25rem 0.25rem;
  background: linear-gradient(180deg, #d9b45c, var(--ouro));
  transform-origin: bottom;
  animation: cresce-y 1s var(--ease) 0.15s both;
}

.comp-barra i.claro {
  background: var(--floresta);
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.kpis div {
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: #eff1ec;
}

.kpis small {
  display: block;
  color: var(--tinta-suave);
  font-size: 0.72rem;
}

.kpis b {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.peso {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.peso li {
  display: grid;
  grid-template-columns: 6rem 1fr 2.6rem;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
}

.peso i {
  display: block;
  width: var(--w);
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ouro);
  transform-origin: left;
  animation: escreve 1s var(--ease) 0.2s both;
}

.peso b {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.peso-ind {
  margin-top: 0.2rem;
}

.peso-ind li {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.peso-ind i {
  order: 2;
  background: var(--floresta);
}

.peso-ind li:first-child i {
  background: var(--ouro);
}

.peso-ind span {
  order: 1;
}

.peso-ind b {
  order: 0;
  text-align: left;
}

.peso-ind li {
  display: flex;
  flex-direction: column;
}

.peso-ind b em {
  margin-left: 0.4rem;
  color: var(--tinta-suave);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
}

.equilibrio {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.equilibrio .eixo {
  stroke: rgba(14, 59, 34, 0.25);
  stroke-width: 1;
}

.equilibrio .meta {
  stroke: var(--floresta);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.equilibrio .rec {
  fill: none;
  stroke: var(--ouro);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: desenha 1.4s var(--ease) 0.2s forwards;
}

.equilibrio .ponto {
  fill: var(--floresta);
}

.equilibrio .onda-p {
  fill: none;
  stroke: var(--ouro);
  stroke-width: 1.5;
  transform-origin: 200px 50px;
  animation: ondula 2.2s ease-out 1.2s infinite;
}

.equilibrio .rot {
  fill: var(--tinta-suave);
  font-size: 9px;
  font-family: var(--fonte);
}

/* Planos ------------------------------------------------------------------- */

.planos {
  display: grid;
  gap: 1rem;
}

.plano {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2rem;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--raio-g);
  background: linear-gradient(180deg, rgba(18, 76, 42, 0.55), rgba(14, 59, 34, 0.4));
  overflow: hidden;
}

.plano-texto p {
  max-width: 34rem;
  margin-top: 0.8rem;
  color: var(--fg-suave);
}

.plano-ouro {
  border-color: transparent;
  background: linear-gradient(160deg, #e0bb62, var(--ouro) 70%);
  color: var(--abismo);
}

.plano-ouro .plano-texto p {
  color: rgba(8, 42, 25, 0.78);
}

/* Medidor do limite anual */

.medidor {
  display: grid;
  gap: 0.9rem;
}

.medidor-trilho {
  position: relative;
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.medidor-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ouro), var(--ouro-claro));
  transform-origin: left;
  transform: scaleX(0.3);
}

.medidor-teto {
  position: absolute;
  top: -0.45rem;
  bottom: -0.45rem;
  left: 78%;
  width: 2px;
  background: var(--ouro-claro);
}

.medidor-msg {
  position: relative;
  height: 2.2rem;
}

.medidor-msg span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0;
}

.medidor-msg .msg-sobe {
  background: var(--ouro-claro);
  color: var(--abismo);
  font-weight: 500;
}

.plano.visivel .medidor-fill {
  animation: medidor 8s var(--ease) infinite;
}

.plano.visivel .msg-espera {
  animation: mostra-a 8s var(--ease) infinite;
}

.plano.visivel .msg-sobe {
  animation: mostra-b 8s var(--ease) infinite;
}

/* Empresas */

.empresas {
  display: grid;
  gap: 0.5rem;
}

.emp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--raio-m);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.emp::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.plano.visivel .emp {
  animation: escolhe 7.5s var(--ease) infinite;
}

.plano.visivel .emp-2 {
  animation-delay: 2.5s;
}

.plano.visivel .emp-3 {
  animation-delay: 5s;
}

.plano.visivel .emp::after {
  animation: escolhe-marca 7.5s var(--ease) infinite;
  animation-delay: inherit;
}

/* Preço do auxiliar */

.preco {
  display: grid;
}

.preco strong {
  font-size: clamp(3.4rem, 7vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preco span {
  margin-top: 0.4rem;
  font-weight: 500;
}

.preco small {
  color: rgba(8, 42, 25, 0.72);
  font-size: 1rem;
}

/* Contratação ---------------------------------------------------------------- */

.contrata {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contrata-texto {
  position: sticky;
  top: 7rem;
}

.contrata-texto .lead {
  max-width: 28rem;
  margin: 1.4rem 0 2rem;
}

.contrata-numero {
  max-width: 28rem;
  margin-top: 1.4rem;
  color: var(--tinta-suave);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contrata-numero a {
  color: var(--tinta);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--ouro);
  text-underline-offset: 0.2em;
}

.linha-tempo {
  position: relative;
  isolation: isolate;
  padding-left: 3.1rem;
}

.etapa {
  position: relative;
  padding: 0 0 2.6rem;
}

.etapa:last-child {
  padding-bottom: 0;
}

/* Traço que liga esta etapa à próxima e se enche de ouro ao rolar */
.etapa::after {
  content: "";
  position: absolute;
  left: calc(-2.15rem - 1px);
  top: 1.25rem;
  width: 2px;
  height: calc(100% - 1.1rem);
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--ouro), var(--ouro-claro)) no-repeat top / 100% 0%,
    var(--linha);
  transition: background-size 0.9s var(--ease);
}

.etapa:last-child::after {
  display: none;
}

.etapa.passou::after {
  background-size: 100% 100%, 100% 100%;
}

.etapa::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -2.7rem;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--linha);
  border-radius: 50%;
  background: var(--papel);
  transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--ease), box-shadow 0.6s;
}

.etapa.ativa::before {
  border-color: var(--ouro);
  background: var(--ouro);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(195, 153, 58, 0.2);
}

.etapa h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  transition: opacity 0.5s;
}

.js .etapa h3 {
  opacity: 0.5;
}

.js .etapa.ativa h3 {
  opacity: 1;
}

.etapa p {
  margin-top: 0.35rem;
  color: var(--tinta-suave);
}

/* Rodapé --------------------------------------------------------------------- */

.rodape {
  padding: clamp(3rem, 6vw, 5rem) var(--lado) 2.5rem;
  background: var(--floresta);
}

.rodape-banner {
  max-width: 46rem;
  margin: 0 auto 3rem;
  border-radius: var(--raio-g);
  background: var(--branco);
  overflow: hidden;
}

.rodape-banner img {
  width: 100%;
  aspect-ratio: 2.35;
  object-fit: cover;
}

.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rodape-linha .marca {
  margin-right: 0;
}

.rodape-linha p {
  color: rgba(242, 243, 239, 0.66);
  font-size: 0.95rem;
}

.rodape-contato {
  margin-top: 1.25rem;
  color: rgba(242, 243, 239, 0.56);
  font-size: 0.88rem;
}

.rodape-contato a {
  color: rgba(242, 243, 239, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(232, 208, 143, 0.5);
  text-underline-offset: 0.2em;
}

.rodape-contato a:hover {
  color: var(--ouro-claro);
}

/* Revelação ao rolar ---------------------------------------------------------- */

.js [data-revela] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--atraso, 0s);
}

.js [data-revela].visivel {
  opacity: 1;
  transform: none;
}

/* Animações em ciclo só rodam quando o bloco está na tela */
.js [data-revela]:not(.visivel) * {
  animation-play-state: paused;
}

/* Telas menores ---------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
    padding-top: 7rem;
  }

  .hero-miolo {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-titulo {
    max-width: 14ch;
  }

  .acoes {
    justify-content: center;
  }

  .hero-barras {
    width: 90vw;
    height: 55%;
    right: 5vw;
    opacity: 0.4;
  }

  .palco-inclina {
    --ry: 0deg;
    --rx: 0deg;
  }

  .celular {
    width: 19rem;
  }

  .celular-tela {
    height: 34rem;
  }

  .ficha-entrada {
    left: calc(50% - 15.5rem);
  }

  .ficha-saida {
    right: calc(50% - 15.5rem);
  }

  .ficha-saldo {
    left: calc(50% - 13.5rem);
  }

  .rel {
    grid-template-columns: 1fr;
  }

  .rel-palco {
    order: -1;
  }

  .contrata {
    grid-template-columns: 1fr;
  }

  .contrata-texto {
    position: static;
  }
}

@media (min-width: 760px) {
  .bento,
  .planos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c4,
  .plano-grande {
    grid-column: 1 / -1;
  }

  .plano-grande {
    flex-direction: row;
    align-items: flex-end;
  }

  .plano-grande .plano-texto,
  .plano-grande .medidor {
    flex: 1;
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .c4 {
    grid-column: span 4;
  }

  .c2 {
    grid-column: span 2;
  }

  .c3 {
    grid-column: span 3;
  }

  .planos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topo-cta {
    display: none;
  }

  .menu-botao {
    display: block;
  }

  .topo-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.6rem;
    background: rgba(8, 42, 25, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .topo-nav.is-open {
    display: flex;
    animation: msg-entra 0.4s var(--ease) both;
  }

  .topo-nav a:not(.botao) {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 1rem;
    font-size: 1.05rem;
  }

  .topo-nav-cta {
    display: inline-flex;
    margin-top: 0.4rem;
  }

  .passos {
    grid-template-columns: 1fr;
  }

  .passo-visual {
    height: 13rem;
  }
}

@media (max-width: 600px) {
  .ficha-entrada,
  .ficha-saida {
    display: none !important;
  }

  .palco {
    padding-bottom: 2.4rem;
  }

  .ficha-saldo {
    left: 50%;
    bottom: 0;
    margin-left: -4.1rem;
  }

  .marca-nome {
    font-size: 1rem;
  }

  .botao-grande {
    flex: 1 1 100%;
  }

  .rel-palco {
    min-height: 28rem;
    padding: 1.2rem 1rem 2.6rem;
  }

  .peso li {
    grid-template-columns: 5rem 1fr 2.4rem;
  }

  .apagar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Movimento ---------------------------------------------------------------------- */

@keyframes deriva-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6rem, 4rem, 0) scale(1.15); }
}

@keyframes deriva-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-5rem, 6rem, 0) scale(0.9); }
}

@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.7rem); }
}

@keyframes titulo-entra {
  from { opacity: 0; transform: translateY(1.4rem); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes icone-entra {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

@keyframes palco-entra {
  from { opacity: 0; transform: translateY(3rem) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes cresce-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes msg-entra {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes ficha-entra {
  from { opacity: 0; transform: translateY(1.2rem) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@keyframes ponto {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-0.28rem); opacity: 1; }
}

@keyframes pisca {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes onda {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes varre {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(calc(7.5rem)); }
}

@keyframes confirma-botao {
  0%, 22% { transform: scale(1); background: var(--floresta); width: 9rem; }
  30% { transform: scale(0.93); }
  40%, 82% { transform: scale(1); background: var(--ouro); width: 3.1rem; }
  92%, 100% { transform: scale(1); background: var(--floresta); width: 9rem; }
}

@keyframes confirma-rotulo {
  0%, 26% { opacity: 1; }
  34%, 86% { opacity: 0; }
  94%, 100% { opacity: 1; }
}

@keyframes tracar {
  0%, 36% { stroke-dashoffset: 63; }
  52%, 82% { stroke-dashoffset: 0; }
  90%, 100% { stroke-dashoffset: 63; }
}

@keyframes tracar-check {
  0%, 48% { stroke-dashoffset: 16; }
  60%, 82% { stroke-dashoffset: 0; }
  90%, 100% { stroke-dashoffset: 16; }
}

@keyframes gravado {
  0%, 44% { opacity: 0; transform: translateY(0.4rem); }
  58%, 82% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(0.4rem); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes segmenta {
  0%, 26% { transform: translateX(0); }
  33%, 59% { transform: translateX(100%); }
  66%, 92% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}

@keyframes escreve {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ciclo-p {
  0%, 100% { opacity: 0; transform: translateY(0.6rem); }
  6%, 88% { opacity: 1; transform: none; }
  94% { opacity: 0; }
}

@keyframes ciclo-pontos {
  0%, 14% { opacity: 0; }
  18%, 30% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

@keyframes ciclo-r {
  0%, 32% { opacity: 0; transform: translateY(0.6rem); }
  40%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}

@keyframes preencher {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes folha-entra {
  from { opacity: 0; transform: translateY(1.2rem) rotate(-1.5deg) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes desenha {
  to { stroke-dashoffset: 0; }
}

@keyframes ondula {
  from { transform: scale(0.5); opacity: 0.9; }
  to { transform: scale(2.2); opacity: 0; }
}

@keyframes medidor {
  0% { transform: scaleX(0.28); }
  50% { transform: scaleX(0.78); }
  62%, 90% { transform: scaleX(1); background: linear-gradient(90deg, var(--ouro), #f0a79b); }
  100% { transform: scaleX(0.28); }
}

@keyframes mostra-a {
  0%, 50% { opacity: 0; transform: translateY(0.4rem); }
  56%, 70% { opacity: 1; transform: none; }
  74%, 100% { opacity: 0; }
}

@keyframes mostra-b {
  0%, 72% { opacity: 0; transform: translateY(0.4rem); }
  78%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes escolhe {
  0%, 36%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: var(--papel); }
  4%, 30% { background: var(--ouro); border-color: var(--ouro); color: var(--abismo); }
}

@keyframes escolhe-marca {
  0%, 36%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
  4%, 30% { background: var(--abismo); border-color: var(--abismo); box-shadow: inset 0 0 0 3px var(--ouro); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-revela] {
    opacity: 1;
    transform: none;
  }

  .hero-barras span {
    transform: none;
  }

  .confirma-check circle,
  .confirma-check path {
    stroke-dashoffset: 0;
  }

  .confirma-gravado {
    opacity: 1;
  }

  .confirma-botao {
    background: var(--floresta);
  }

  .confirma-check {
    display: none;
  }

  .equilibrio .rec {
    stroke-dashoffset: 0;
  }

  .bolha-pontos,
  .medidor-msg span {
    display: none;
  }

  .medidor-fill {
    transform: scaleX(0.6);
  }
}
