/* =====================================================================
   4pbox — Landing · SEÇÕES
   Estilos por bloco da página. Depende de tokens.css e base.css.
   ===================================================================== */

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}
.site-header.is-stuck { border-bottom-color: hsl(var(--border)); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 44px;      /* ≈93px de largura — dentro do mínimo do DS p/ lockup */
  width: auto;
  /* Proporção do viewBox do lockup SVG (820×388 = 2,113:1). Sem isto o header
     reflui entre o primeiro paint e o carregamento da marca.
     ⚠️ O seletor é genérico: se um dia entrar outra marca aqui (o símbolo é
     1,05:1), esta razão precisa virar uma classe do lockup. */
  aspect-ratio: 820 / 388;
}
@media (max-width: 559px) {
  .brand img { height: 36px; }
}

.site-header__nav {
  display: none;
  gap: var(--sp-8);
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}
/* padding-block sobe a área clicável de 22 para 44px sem mexer no visual —
   o header tem altura mínima de 72px e centraliza o conteúdo. */
.site-header__nav a { padding-block: 11px; transition: color var(--duration-fast) var(--ease-standard); }
.site-header__nav a:hover { color: hsl(var(--foreground)); }

@media (min-width: 900px) {
  .site-header__nav { display: flex; }
}

.site-header .btn { padding: 10px 18px; font-size: var(--fs-sm); }
.site-header__cta-label--short { display: inline; }
.site-header__cta-label--long { display: none; }
@media (min-width: 560px) {
  .site-header__cta-label--short { display: none; }
  .site-header__cta-label--long { display: inline; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--section-y);
  overflow: hidden;
}

/* Halo sutil de acento — único ponto de cor da dobra, quase imperceptível.
   Cumpre o princípio "um acento, racionado". */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, hsl(var(--brand) / 0.10) 0%, transparent 62%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 900px; }

.hero .overline { display: block; margin-bottom: var(--sp-6); }

.hero h1 { margin-bottom: var(--sp-6); }
.hero h1 em {
  font-style: normal;
  color: hsl(var(--muted-foreground));
}

.hero .lead { margin-bottom: var(--sp-10, 40px); max-width: 62ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-12);
}

.hero__note {
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}

/* Assinatura da marca — três palavras, ritmo de manifesto */
.hero__signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid hsl(var(--border));
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.hero__signature span { color: hsl(var(--foreground)); }
.hero__signature .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: hsl(var(--brand));
  flex: none;
}

/* Dobra por ALTURA, não largura (19/09/2026). O clamp acima usa vw e supõe
   monitor alto; um notebook é largo e baixo — StatCounter (ago/2026) põe
   1366×768, 1536×864 (o Windows escalado a 125%, hoje maioria em notebook)
   e 1280×720 entre as resoluções desktop mais usadas do mundo. Descontando
   chrome do navegador + barra de tarefas (~110–130px), a viewport ÚTIL
   nessas telas fica perto de 600–740px — e "Falar com o Thiago" caía fora
   da primeira dobra, ou sobrava sem a nota de apoio embaixo. Medido com o
   navegador redimensionado (não é estimativa): ver QA.md §"Dobra do hero
   por altura". min-width:1000px porque é aqui que o grid vira 2 colunas;
   abaixo disso o hero empilha e já é o fluxo mobile/tablet, outro problema. */
@media (min-width: 1000px) and (max-height: 900px) {
  .hero { padding-block-start: 4.5rem; }
  .hero .overline { margin-bottom: 18px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { margin-bottom: 32px; }
}
@media (min-width: 1000px) and (max-height: 700px) {
  .hero { padding-block-start: 2.5rem; }
  .hero .overline { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 20px; }
}

/* ---------------- Faixa de contexto (abaixo do hero) ---------------- */

.strip {
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--surface) / 0.88);
  padding-block: var(--sp-6);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-12);
  align-items: baseline;
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}
.strip__item strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* ---------------- Vazamentos (seção "o problema") ---------------- */

.leaks { display: grid; gap: var(--sp-12); }
@media (min-width: 900px) {
  .leaks { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
}

.leak { position: relative; padding-top: var(--sp-8); border-top: 1px solid hsl(var(--border-strong)); }

.leak__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-overline);
  color: hsl(var(--brand));
  display: block;
  margin-bottom: var(--sp-4);
}

.leak h3 { margin-bottom: var(--sp-4); }
.leak p { color: hsl(var(--muted-foreground)); margin-bottom: var(--sp-4); }

.leak__cost {
  display: block;
  padding-top: var(--sp-4);
  border-top: 1px dashed hsl(var(--border));
  font-size: var(--fs-sm);
  color: hsl(var(--foreground));
  font-weight: 500;
}
.leak__cost strong { font-weight: 700; }

/* ---------------- Perfis (seção "para quem") ---------------- */

.profiles { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .profiles { grid-template-columns: repeat(3, 1fr); } }

.profile {
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: var(--sp-8);
  transition: border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.profile:hover { border-color: hsl(var(--border-strong)); transform: translateY(-2px); }

.profile__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border-strong));
  margin-bottom: var(--sp-5, 20px);
}
/* Um perfil, uma cor. A cor é declarada UMA vez por card, numa variável local,
   e quem precisa dela se serve — hoje o traço do ícone e os checks da lista.
   O quadrado do ícone continua cinza: a cor identifica de relance, sem virar
   destaque. O fallback para --brand protege um 4º card que entre sem cor. */
.profile:nth-child(1) { --cor-perfil: var(--chart-1); }
.profile:nth-child(2) { --cor-perfil: var(--chart-2); }
.profile:nth-child(3) { --cor-perfil: var(--chart-4); }

.profile__icon svg {
  width: 21px; height: 21px;
  color: hsl(var(--cor-perfil, var(--brand)));
}

.profile__kind {
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--sp-3);
}
.profile h3 { margin-bottom: var(--sp-4); }
.profile > p { color: hsl(var(--muted-foreground)); margin-bottom: var(--sp-6); }

.profile__signals {
  list-style: none;
  padding: 0;
  margin-top: auto;
  padding-top: var(--sp-6);
  border-top: 1px solid hsl(var(--border));
  display: grid;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.profile__signals li { padding-left: var(--sp-6); position: relative; color: hsl(var(--muted-foreground)); }
.profile__signals li::before {
  content: "✓";
  position: absolute; left: 0;
  color: hsl(var(--cor-perfil, var(--brand)));
  font-weight: 700;
}

.section__foot {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid hsl(var(--border));
  font-size: var(--fs-lead);
  color: hsl(var(--muted-foreground));
  max-width: var(--measure);
}
.section__foot strong { color: hsl(var(--foreground)); font-weight: 600; }
.section__foot small {
  display: block;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ---------------- Passos (como trabalhamos) ---------------- */

.steps { display: grid; gap: var(--sp-8); counter-reset: passo; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--sp-8);
  border-top: 2px solid hsl(var(--border-strong));
}

/* A trilha diagnóstico → construção → operação ganha progressão de cor no
   fio de 2px e no número da etapa. É sequência, não importância. */
.step:nth-child(1) { border-top-color: hsl(var(--chart-1)); }
.step:nth-child(2) { border-top-color: hsl(var(--chart-4)); }
.step:nth-child(3) { border-top-color: hsl(var(--chart-2)); }
.step:nth-child(1) .step__badge b { color: hsl(var(--chart-1)); }
.step:nth-child(2) .step__badge b { color: hsl(var(--chart-4)); }
.step:nth-child(3) .step__badge b { color: hsl(var(--chart-2)); }

.step__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--sp-4);
}
.step__badge b {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.step h3 { margin-bottom: var(--sp-4); }
.step > p { color: hsl(var(--muted-foreground)); margin-bottom: var(--sp-6); }

.step__deliver {
  margin-top: auto;
  padding: var(--sp-4) var(--sp-5, 20px);
  background: hsl(var(--muted));
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.step__deliver b { display: block; color: hsl(var(--foreground)); margin-bottom: var(--sp-1); }
.step__deliver span { color: hsl(var(--muted-foreground)); }

/* ---------------- Pessoas (quem somos) ---------------- */

.about { display: grid; gap: var(--sp-12); }
@media (min-width: 1000px) {
  .about { grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); align-items: start; }
}

.about__story p { color: hsl(var(--muted-foreground)); margin-bottom: var(--sp-5, 20px); }
.about__story p:last-child { margin-bottom: 0; }
.about__story strong { color: hsl(var(--foreground)); font-weight: 600; }

.people { display: grid; gap: var(--sp-4); }

.person {
  display: flex;
  align-items: center;
  gap: var(--sp-5, 20px);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: var(--sp-5, 20px);
}

/* Avatar tipográfico — vira <img> quando as fotos reais chegarem */
.person__avatar {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border-strong));
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  object-fit: cover;
}
.person__name { font-weight: 600; margin-bottom: 2px; }
.person__role { font-size: var(--fs-sm); color: hsl(var(--muted-foreground)); }

.about__where {
  margin-top: var(--sp-6);
  padding: var(--sp-5, 20px);
  border: 1px dashed hsl(var(--border-strong));
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}
.about__where strong { color: hsl(var(--foreground)); display: block; margin-bottom: var(--sp-1); font-weight: 600; }

/* ---------------- Números (prova) ---------------- */

.stats { display: grid; gap: var(--sp-8); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

.stat { padding-top: var(--sp-6); border-top: 1px solid hsl(var(--border-strong)); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-weight: 600; margin-bottom: var(--sp-2); }
.stat__desc { font-size: var(--fs-sm); color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* ---------------- Chamada final ---------------- */

.cta-final { text-align: center; }
.cta-final__inner {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--sp-8);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-xl);
}
/* A chamada final é a única seção sem grade de cards — logo, sem o segundo
   ponto de encaixe que as outras ganharam. Ou ela cabe inteira na dobra, ou o
   encaixe relaxa justo no bloco que pede a conversa. Em 1280×600 ela media
   553px contra 527 de orçamento: estes ~38px são exatamente o que faltava
   (60px ainda deixava 2px de sobra — daí 56 e não 60). */
@media (min-width: 1000px) and (max-height: 700px) {
  .cta-final__inner { padding-block: 3.5rem; }
}

.cta-final h2 { margin-bottom: var(--sp-5, 20px); }
.cta-final .lead { margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-final .btn { padding: 16px 32px; font-size: var(--fs-lead); }
.cta-final__note { margin-top: var(--sp-6); font-size: var(--fs-sm); color: hsl(var(--muted-foreground)); }

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

.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface) / 0.88);
  padding-block: var(--sp-16) var(--sp-8);
  font-size: var(--fs-sm);
}

.site-footer__top {
  display: grid;
  gap: var(--sp-10, 40px);
  padding-bottom: var(--sp-10, 40px);
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 800px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-12); }
}

.site-footer .brand img { height: 38px; margin-bottom: var(--sp-5, 20px); }
.site-footer__tagline { color: hsl(var(--muted-foreground)); max-width: 42ch; }

.footer-col h3 {
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
/* 17 → 28px de altura clicável: passa o mínimo de 24px do WCAG 2.5.8 sem
   esticar o rodapé (o gap da lista encolheu na mesma medida). */
.footer-col a { display: inline-block; padding-block: 6px; color: hsl(var(--foreground)); transition: color var(--duration-fast) var(--ease-standard); }
.footer-col a:hover { color: hsl(var(--brand)); }
.footer-col address { font-style: normal; color: hsl(var(--muted-foreground)); line-height: 1.7; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  color: hsl(var(--muted-foreground));
}
.site-footer__legal .cnpj { font-variant-numeric: tabular-nums; }

/* ---------------- Tablet: evitar linha longa demais ----------------
   Entre 600 e 899px os grids de 3 colunas caem para 1. Sem limite de
   largura, a linha passa de 80 caracteres e a leitura piora. */
@media (min-width: 600px) and (max-width: 899px) {
  .leaks, .profiles, .steps { max-width: 620px; margin-inline: auto; }
}

/* ---------------- Revelar ao rolar (opcional, discreto) ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease-standard), transform 500ms var(--ease-standard);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
