/* ==========================================================================
   DIGITAL PURPOSE — v2
   Direção: editorial fotográfico sobre base escura, laranja como acento.
   Decidido por Henrique em 08/08/2026. Ver site/direcao-v2.md.

   Regra de cor que governa tudo: o laranja é ACENTO, nunca parede.
   Se ele ocupar mais de ~15% de uma tela, está errado.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTES
   Só as quatro faces realmente usadas. As outras três que existem em fonts/
   ficaram de fora de propósito: declarar sem usar custaria 700 KB.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Calps';
  src: url('../fonts/calps-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-display: swap;
}

/* Noto Serif entra só em frase de efeito. `optional` porque, se a rede estiver
   ruim, a página não deve esperar 535 KB por uma linha decorativa. */
@font-face {
  font-family: 'Noto Serif XC';
  src: url('../fonts/NotoSerif_ExtraCondensed-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: optional;
}

/* --------------------------------------------------------------------------
   2. FICHAS DE COR E MEDIDA
   -------------------------------------------------------------------------- */

:root {
  /* Base escura. O chumbo do guia (#2B2B2B) é a superfície elevada, não o
     fundo — o fundo desce um degrau para que o chumbo tenha para onde subir. */
  --fundo:            #1a1a1a;
  --superficie:       #2b2b2b;
  --superficie-alta:  #343434;
  --azul:             #1c2140;
  --creme:            #cecbc5;
  --laranja:          #ff4d00;

  /* Texto. O creme sobre o fundo dá 11,2:1; o laranja dá 5,0:1 — acima dos
     4,5:1 exigidos, então aqui o laranja PODE ser texto de corpo. Sobre creme
     ele não podia (2,05:1). Foi um dos ganhos de mudar para base escura. */
  --texto:        var(--creme);
  --texto-forte:  #ffffff;
  --texto-fraco:  #8f8c87;

  --linha:        rgba(206, 203, 197, 0.14);
  --linha-forte:  rgba(206, 203, 197, 0.30);

  /* Ritmo vertical. Uma escala só, usada em toda a página.
     Espaço negativo é pedido do guia, mas 11rem de cada lado somavam 22rem
     entre duas seções — quase uma tela vazia no meio da leitura. */
  --secao-y:  clamp(3.5rem, 8vw, 7rem);
  --calha:    clamp(1.25rem, 5vw, 4rem);
  --largura:  84rem;

  /* Curvas. Uma de entrada, uma de saída, nada mais. */
  --saida:    cubic-bezier(0.16, 1, 0.3, 1);
  --entrada:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--laranja); color: #ffffff; }

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
}

.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--laranja);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.pular:focus { left: 0; }

/* Só para leitor de tela */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA
   Nenhum tamanho de tipo é definido fora daqui.
   -------------------------------------------------------------------------- */

/* Letreiro — Calps. Um peso só, então a hierarquia vem de ESCALA, nunca de
   negrito sintético (que o navegador engorda e fica feio). */
.letreiro {
  font-family: 'Calps', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--texto-forte);
  font-size: clamp(2.5rem, 7.5vw, 6rem);
}
.letreiro--gigante { font-size: clamp(3rem, 13vw, 11rem); }
.letreiro--medio   { font-size: clamp(1.75rem, 4vw, 3rem); }

/* Vinil — Space Mono caixa-alta. O adesivo recortado na porta de vidro. */
.vinil {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  line-height: 1.4;
}
.vinil--laranja { color: var(--laranja); }
.vinil--fraco   { color: var(--texto-fraco); }

/* Voz solta — Noto Serif, nunca em regular. */
.solta {
  font-family: 'Noto Serif XC', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  color: var(--texto-forte);
  margin: 0;
}

.corpo-grande {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.55;
  max-width: 34ch;
}

.medida { max-width: 62ch; }

/* Palavra marcada — o recorte laranja das referências de conteúdo.
   É o gesto da marca: a tarja, não o gradiente. */
.marcado {
  background: var(--laranja);
  color: #ffffff;
  padding: 0.04em 0.24em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.laranja { color: var(--laranja); }

/* --------------------------------------------------------------------------
   5. GRADE
   -------------------------------------------------------------------------- */

.secao { padding-block: var(--secao-y); position: relative; }

/* O cabeçalho é fixo: sem esta folga, chegar por âncora esconde o letreiro
   da seção atrás dele. */
[id] { scroll-margin-top: 5.5rem; }

.env {
  width: min(var(--largura), 100% - var(--calha) * 2);
  margin-inline: auto;
}

.cabeca-secao {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 60rem) {
  .cabeca-secao {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.numero-secao {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--laranja);
}

/* --------------------------------------------------------------------------
   6. TRATAMENTO DE IMAGEM
   Toda foto do site passa por aqui. É o que impede o banco de imagens de
   parecer banco de imagens: dessatura, escurece e deixa o laranja ser a
   única cor viva da página.
   -------------------------------------------------------------------------- */

.foto {
  position: relative;
  overflow: hidden;
  background: var(--superficie);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transition: filter 0.6s var(--saida), transform 0.9s var(--saida);
}

/* Véu que amarra a foto ao fundo da página, para a imagem não flutuar como
   um retângulo colado por cima. */
.foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.25) 45%, rgba(26,26,26,0.05) 100%);
  pointer-events: none;
}
.foto--limpa::after { background: rgba(26,26,26,0.28); }

/* --------------------------------------------------------------------------
   7. CABEÇALHO E NAVEGAÇÃO
   O mobile da v1 não tinha navegação nenhuma abaixo de 960px. Aqui a gaveta
   existe desde o primeiro pixel.
   -------------------------------------------------------------------------- */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--calha);
  background: rgba(26, 26, 26, 0);
  /* Só cor: o padding fica fixo de propósito. Antes ele encolhia de 1rem para
     0.7rem ao prender — animar padding é animar layout, e o ganho não pagava:
     0.3rem é imperceptível, enquanto o fundo escuro com desfoque já marca a
     mudança de estado sozinho. */
  transition: background 0.4s var(--saida), border-color 0.4s var(--saida);
  border-bottom: 1px solid transparent;
}
.topo[data-preso='sim'] {
  background: rgba(26, 26, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--linha);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--texto-forte);
}
.marca img { height: 1.6rem; width: auto; }
.marca span {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.nav-mesa { display: none; }
@media (min-width: 62rem) {
  .nav-mesa {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
  }
}
.nav-mesa a {
  text-decoration: none;
  color: var(--texto);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s;
}
.nav-mesa a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--laranja);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--saida);
}
.nav-mesa a:hover { color: var(--texto-forte); }
.nav-mesa a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Botão da gaveta — só no mobile */
.gaveta-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  background: transparent;
  border: 1px solid var(--linha-forte);
  cursor: pointer;
}
@media (min-width: 62rem) { .gaveta-btn { display: none; } }
.gaveta-btn i {
  display: block;
  height: 2px;
  background: var(--texto);
  transition: transform 0.35s var(--saida), opacity 0.2s;
}
.gaveta-btn[aria-expanded='true'] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gaveta-btn[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.gaveta-btn[aria-expanded='true'] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gaveta {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--fundo);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 6rem var(--calha) 3rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--saida);
  overflow-y: auto;
}
.gaveta[data-aberta='sim'] { transform: translateY(0); }
.gaveta a {
  text-decoration: none;
  color: var(--texto-forte);
  font-family: 'Calps', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.15;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--linha);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.gaveta a small {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--laranja);
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   8. ABERTURA
   A moldura cresce até sangrar conforme a rolagem. Porte do ScrollExpand do
   React Bits (MIT) para JS puro — ver assets/js/main.js.
   -------------------------------------------------------------------------- */

.abertura {
  position: relative;
  height: 210vh; /* trilho: 1 tela de palco + 1,1 de curso */
}

.abertura__palco {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.abertura__moldura {
  position: absolute;
  inset: 0;
  /* Estado inicial: retângulo recuado com canto arredondado. O JS interpola
     o clip-path até inset(0) e o raio até 0. Os valores aqui precisam bater
     com os de INICIO em main.js — este é só o quadro antes do script rodar. */
  clip-path: inset(10% 6% 10% 6% round 12px);
  will-change: clip-path;
}
@media (min-width: 48rem) {
  .abertura__moldura { clip-path: inset(21% 29% 21% 29% round 20px); }
}
.abertura__moldura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  will-change: transform;
  filter: grayscale(1) contrast(1.35) brightness(1.05);
}

/* Véu na diagonal, não de baixo para cima: pesado do lado do texto, leve do
   lado da sombra da foto. É o que deixa a diagonal aparecer sem custar
   contraste no título. */
.abertura__moldura::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg,
      rgba(26,26,26,0.95) 0%,
      rgba(26,26,26,0.86) 38%,
      rgba(26,26,26,0.55) 70%,
      rgba(26,26,26,0.38) 100%),
    linear-gradient(to top, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0) 45%);
}

.abertura__frente {
  position: relative;
  z-index: 2;
  width: min(var(--largura), 100% - var(--calha) * 2);
  margin-inline: auto;
  text-align: left;
}

.abertura__selo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--linha-forte);
  background: rgba(26,26,26,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.abertura__selo b {
  width: 7px; height: 7px;
  background: var(--laranja);
  display: block;
}

.abertura__titulo {
  font-family: 'Calps', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 11.5vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--texto-forte);
}
.abertura__titulo em {
  font-style: normal;
  display: block;
  color: var(--laranja);
}

.abertura__promessa {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  max-width: 42ch;
  color: var(--texto);
}

.abertura__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.abertura__rodape {
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  z-index: 2;
  width: min(var(--largura), 100% - var(--calha) * 2);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.role i {
  display: block;
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, var(--laranja), transparent);
  animation: escorre 2.2s var(--entrada) infinite;
}
@keyframes escorre {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   9. AÇÕES — placas, não botões de framework
   -------------------------------------------------------------------------- */

.acao {
  --acao-fundo: var(--laranja);
  --acao-tinta: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--acao-fundo);
  color: var(--acao-tinta);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  transition: transform 0.3s var(--saida), box-shadow 0.3s var(--saida), background 0.3s;
  will-change: transform;
}
.acao:hover {
  box-shadow: 0 0 0 1px var(--acao-fundo), 0 14px 30px -12px rgba(255, 77, 0, 0.7);
}
.acao svg { width: 1em; height: 1em; flex: none; }

.acao--vazada {
  --acao-fundo: transparent;
  --acao-tinta: var(--texto-forte);
  border: 1px solid var(--linha-forte);
}
.acao--vazada:hover {
  border-color: var(--creme);
  box-shadow: none;
  background: rgba(206, 203, 197, 0.07);
}

/* O invólucro que o JS move — ver "magnetico" em main.js.
   Porte do Magnet do React Bits (MIT). */
.ima { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   10. A TESE
   -------------------------------------------------------------------------- */

.tese { border-block: 1px solid var(--linha); }

.tese__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 60rem) {
  .tese__grade { grid-template-columns: 1fr 1fr; align-items: center; }
}

.tese__frase {
  font-family: 'Calps', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.98;
  margin: 0;
  color: var(--texto-forte);
}

.tese__foto {
  aspect-ratio: 4 / 5;
  max-height: 34rem;
}
@media (max-width: 59.99rem) {
  .tese__foto { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   11. NICHOS — o corpo do site
   No lugar onde uma agência põe o portfólio. A Digital Purpose não tem
   portfólio; tem os ramos que atende, e isso é verdade verificável.
   -------------------------------------------------------------------------- */

.nichos__lista {
  border-top: 1px solid var(--linha);
}

.nicho {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--linha);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
}

.nicho__interno {
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--saida);
}
@media (min-width: 48rem) {
  .nicho__interno {
    grid-template-columns: 5rem 1fr auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    /* start, não center: o número acompanha a primeira linha do letreiro em
       vez de flutuar no meio de um parágrafo alto. */
    align-items: start;
  }
}

.nicho__num {
  color: var(--laranja);
  /* Empurra o número até a altura-x do letreiro ao lado */
  padding-top: 0.7em;
}
@media (min-width: 48rem) { .nicho__num { padding-top: 1.1em; } }

.nicho__nome {
  font-family: 'Calps', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 6.5vw, 4.25rem);
  line-height: 0.95;
  margin: 0 0 0.4rem;
  color: var(--texto-forte);
  transition: transform 0.5s var(--saida);
}

.nicho__linha {
  margin: 0;
  color: var(--texto-fraco);
  max-width: 46ch;
  font-size: 0.95rem;
}

.nicho__seta {
  display: none;
  width: 3rem; height: 3rem;
  border: 1px solid var(--linha-forte);
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 0.6rem;
  transition: background 0.4s var(--saida), border-color 0.4s, transform 0.4s var(--saida);
}
@media (min-width: 48rem) { .nicho__seta { display: flex; } }
.nicho__seta svg { width: 1.1rem; height: 1.1rem; }

/* A foto do nicho revela por trás, no hover. Escondida por padrão para não
   virar "dezenas de imagens pequenas competindo entre si". */
.nicho__foto {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s var(--saida);
  pointer-events: none;
}
.nicho__foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.42);
  transform: scale(1.06);
  transition: transform 0.9s var(--saida);
}
.nicho__foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.55) 55%, rgba(26,26,26,0.8) 100%);
}

@media (hover: hover) {
  .nicho:hover .nicho__foto { opacity: 1; }
  .nicho:hover .nicho__foto img { transform: scale(1); }
  .nicho:hover .nicho__nome { transform: translateX(0.75rem); }
  .nicho:hover .nicho__seta {
    background: var(--laranja);
    border-color: var(--laranja);
    transform: rotate(-45deg);
  }
}
/* No toque não há hover: a foto fica visível de leve, sempre. */
@media (hover: none) {
  .nicho__foto { opacity: 0.55; }
}

.nicho--aberto .nicho__interno { opacity: 0.75; }

/* --------------------------------------------------------------------------
   12. FICHA DE ESCOPO — memorial descritivo, não grade de cards com ícone
   -------------------------------------------------------------------------- */

.ficha { border-top: 1px solid var(--linha); }

.ficha__item {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--linha);
  /* `padding-inline` estava declarado aqui e nunca mudava em estado nenhum —
     transição morta, custo sem efeito. O hover só troca o fundo. */
  transition: background 0.35s;
}
@media (min-width: 48rem) {
  .ficha__item {
    grid-template-columns: 3.5rem 1fr 1.1fr;
    align-items: baseline;
  }
}
.ficha__item:hover { background: rgba(206,203,197,0.035); }

.ficha__num { color: var(--laranja); }
.ficha__nome { color: var(--texto-forte); font-weight: 600; margin: 0; }
.ficha__desc { margin: 0; color: var(--texto-fraco); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   13. ETAPAS — as quatro semanas
   -------------------------------------------------------------------------- */

.etapas {
  display: grid;
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
}
@media (min-width: 52rem) {
  .etapas { grid-template-columns: repeat(4, 1fr); }
}

.etapa {
  background: var(--fundo);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  position: relative;
  transition: background 0.4s;
}
.etapa:hover { background: var(--superficie); }

.etapa__semana { color: var(--laranja); display: block; margin-bottom: 1.5rem; }
.etapa__nome {
  font-family: 'Calps', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1;
  margin: 0 0 0.75rem;
  color: var(--texto-forte);
}
.etapa__desc { margin: 0; font-size: 0.92rem; color: var(--texto-fraco); }

/* Barra de progresso que preenche conforme a seção entra na tela */
.etapa__barra {
  position: absolute;
  left: 0; top: 0;
  height: 3px;
  width: 100%;
  background: var(--laranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--saida);
}
.etapas[data-visivel='sim'] .etapa:nth-child(1) .etapa__barra { transform: scaleX(1); transition-delay: 0.05s; }
.etapas[data-visivel='sim'] .etapa:nth-child(2) .etapa__barra { transform: scaleX(1); transition-delay: 0.25s; }
.etapas[data-visivel='sim'] .etapa:nth-child(3) .etapa__barra { transform: scaleX(1); transition-delay: 0.45s; }
.etapas[data-visivel='sim'] .etapa:nth-child(4) .etapa__barra { transform: scaleX(1); transition-delay: 0.65s; }

/* --------------------------------------------------------------------------
   14. PROVA — os fatos verificáveis
   Este é um dos dois únicos blocos de cor cheia do site inteiro.
   -------------------------------------------------------------------------- */

.prova {
  background: var(--azul);
  position: relative;
  overflow: hidden;
}

.prova__grade {
  display: grid;
  gap: 1px;
  background: rgba(206,203,197,0.16);
  border: 1px solid rgba(206,203,197,0.16);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 44rem) { .prova__grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .prova__grade { grid-template-columns: repeat(3, 1fr); } }

.fato {
  background: var(--azul);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.4s;
}
.fato:hover { background: #232849; }
.fato dt { color: var(--laranja); }
.fato dd {
  margin: 0;
  color: var(--creme);
  font-size: 0.95rem;
}
.fato dd b {
  display: block;
  color: #fff;
  font-family: 'Calps', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   15. MENSALIDADE — os sete entregáveis
   A regra nº 1 do negócio mora nesta seção: nunca "hospedagem".
   -------------------------------------------------------------------------- */

.mensal__topo {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 60rem) { .mensal__topo { grid-template-columns: 1fr 1fr; } }

.entregaveis {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
}
@media (min-width: 46rem) { .entregaveis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .entregaveis { grid-template-columns: repeat(4, 1fr); } }

.entregaveis li {
  background: var(--fundo);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: background 0.35s;
}
.entregaveis li:hover { background: var(--superficie); }
.entregaveis li b {
  color: var(--texto-forte);
  font-weight: 600;
  font-size: 1rem;
}
.entregaveis li span {
  color: var(--texto-fraco);
  font-size: 0.88rem;
  line-height: 1.5;
}
.entregaveis li i {
  font-style: normal;
  color: var(--laranja);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* Contador — parte da metade do alvo, nunca de zero.
   Contador travado em 0 na primeira dobra foi defeito real do site anterior. */
.contadores {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--linha);
}
@media (min-width: 44rem) { .contadores { grid-template-columns: repeat(3, 1fr); } }

.contador b {
  display: block;
  font-family: 'Calps', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.9;
  color: var(--texto-forte);
  font-variant-numeric: tabular-nums;
}
.contador b em { font-style: normal; color: var(--laranja); }

/* Filho direto, não descendente: o número também vive num <span> dentro do
   <b>, e um seletor amplo o transformava em bloco — o "2h" quebrava em duas
   linhas e o algarismo herdava a cor da legenda. */
.contador > span { display: block; margin-top: 0.6rem; color: var(--texto-fraco); }

/* --------------------------------------------------------------------------
   16. PERGUNTAS
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--linha); }

.faq__item { border-bottom: 1px solid var(--linha); }

.faq__botao {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.85rem) 0;
  background: none;
  border: none;
  color: var(--texto-forte);
  font-family: inherit;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.faq__botao:hover { color: var(--laranja); }

.faq__sinal {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  position: relative;
}
.faq__sinal::before,
.faq__sinal::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--laranja);
  transition: transform 0.4s var(--saida);
}
.faq__sinal::after { transform: rotate(90deg); }
.faq__botao[aria-expanded='true'] .faq__sinal::after { transform: rotate(0deg); }

.faq__resposta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--saida);
}
.faq__item[data-aberto='sim'] .faq__resposta { grid-template-rows: 1fr; }
.faq__resposta > div { overflow: hidden; }
.faq__resposta p {
  margin: 0 0 clamp(1.25rem, 3vw, 1.85rem);
  color: var(--texto-fraco);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   17. CONTATO
   Formulário e WhatsApp com o mesmo peso — decisão registrada no brief.
   -------------------------------------------------------------------------- */

.contato { background: var(--superficie); }

.contato__grade {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 62rem) { .contato__grade { grid-template-columns: 0.9fr 1.1fr; } }

.form { display: grid; gap: 1.1rem; }

.campo { display: grid; gap: 0.45rem; }
.campo > label { color: var(--texto); font-size: 0.9rem; }
.campo > label b { color: var(--laranja); }

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--fundo);
  border: 1px solid var(--linha-forte);
  color: var(--texto-forte);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.campo textarea { min-height: 7rem; resize: vertical; }
.campo select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--laranja) 50%), linear-gradient(135deg, var(--laranja) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--laranja);
  outline: none;
  background: #151515;
}
.campo input::placeholder, .campo textarea::placeholder { color: #6d6a66; }

.campo[data-erro='sim'] input,
.campo[data-erro='sim'] select,
.campo[data-erro='sim'] textarea { border-color: #ff6b47; }

.campo__erro {
  color: #ff8f75;
  font-size: 0.82rem;
  min-height: 1.1rem;
}

.form__aviso {
  padding: 1rem 1.15rem;
  border: 1px solid var(--linha-forte);
  font-size: 0.92rem;
}
.form__aviso[data-tipo='ok']   { border-color: var(--laranja); color: var(--texto-forte); }
.form__aviso[data-tipo='erro'] { border-color: #ff6b47; color: #ffb9a8; }
.form__aviso[hidden] { display: none; }

/* Coluna do WhatsApp / dados diretos */
.direto { display: grid; gap: 1.5rem; align-content: start; }

.direto__bloco {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--linha-forte);
  background: var(--fundo);
  display: grid;
  gap: 0.75rem;
}
.direto__bloco h3 {
  margin: 0;
  font-family: 'Calps', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1;
  color: var(--texto-forte);
}
.direto__bloco p { margin: 0; color: var(--texto-fraco); font-size: 0.95rem; }
.direto__bloco a.linha {
  color: var(--texto-forte);
  text-decoration: none;
  border-bottom: 1px solid var(--laranja);
  padding-bottom: 2px;
  justify-self: start;
  transition: color 0.3s;
}
.direto__bloco a.linha:hover { color: var(--laranja); }

/* --------------------------------------------------------------------------
   18. RODAPÉ
   -------------------------------------------------------------------------- */

.rodape {
  border-top: 1px solid var(--linha);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.rodape__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 52rem) { .rodape__grade { grid-template-columns: 1.4fr 1fr 1fr; } }

.rodape h4 { margin: 0 0 1rem; color: var(--laranja); }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rodape a { color: var(--texto); text-decoration: none; transition: color 0.25s; }
.rodape a:hover { color: var(--laranja); }

.rodape__marca img { height: 2rem; margin-bottom: 1.25rem; }

.rodape__fim {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--linha);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--texto-fraco);
  font-size: 0.82rem;
}

/* Créditos das fotos. A Unsplash License permite uso comercial sem pagar,
   mas exige atribuição quando a foto é publicada. Isso não é opcional. */
.creditos {
  margin-top: 1.25rem;
  color: #6d6a66;
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 80ch;
}
.creditos a { color: #8f8c87; text-decoration: underline; text-underline-offset: 2px; }
.creditos a:hover { color: var(--laranja); }

/* --------------------------------------------------------------------------
   19. MOVIMENTO
   -------------------------------------------------------------------------- */

/* Revelação por rolagem. O conteúdo é visível por padrão e só ganha o estado
   escondido se o JS estiver ativo — sem script, nada some. */
.js [data-revela] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--saida), transform 0.8s var(--saida);
  transition-delay: var(--atraso, 0s);
}
.js [data-revela='sim'] {
  opacity: 1;
  transform: none;
}

/* Parallax: o JS escreve --deslocamento */
.parallax { transform: translate3d(0, var(--deslocamento, 0px), 0); }

/* Grão de filme. Porte do Noise do React Bits (MIT).
   Fica atrás de tudo e some quando a aba não está visível. */
.grao {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

/* Cursor que segue o mouse. Só em ponteiro fino — no celular não existe. */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  /* Centraliza pelo próprio meio, para o JS só precisar da posição do ponteiro
     e nunca compensar o tamanho. */
  margin: -13px 0 0 -13px;
  border: 1px solid var(--laranja);
  border-radius: 50%;
  pointer-events: none;
  z-index: 150;
  transform: translate3d(-100px, -100px, 0);
  /* O crescimento sobre elementos clicáveis é feito por `scale` dentro do
     transform que o rAF já escreve — não por width/height, que animariam
     layout. Aqui ficam só as propriedades de pintura. */
  transition: background 0.3s, opacity 0.3s, border-color 0.3s;
  will-change: transform;
  opacity: 0;
}
.cursor[data-ativo='sim'] { opacity: 1; }
.cursor[data-grande='sim'] { background: rgba(255, 77, 0, 0.16); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Conteúdo acima do grão.
   O .topo fica de fora de propósito: ele é `position: fixed` e uma regra de
   `position: relative` aqui o soltaria do topo da tela. */
main, .rodape { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   20. REDUÇÃO DE MOVIMENTO
   Congela tudo. Nada de conteúdo se perde: as revelações já nascem visíveis.
   -------------------------------------------------------------------------- */

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-revela] { opacity: 1; transform: none; }
  .parallax { transform: none; }
  .grao, .cursor { display: none; }

  /* A abertura abre já sangrada, sem depender da rolagem */
  .abertura { height: auto; }
  .abertura__palco { position: static; height: 100vh; }
  .abertura__moldura { clip-path: none; }
  .abertura__moldura img { transform: none; }
  .role { display: none; }
}
