/* ================================================================
   ADIFY REALTOR — main.css
   Camadas: tokens → base → componentes → seções → utilitários
   Tokens idênticos ao site institucional (adify.com.br) — mesmo
   design system, aplicado à vertical imobiliária.
   ================================================================ */

/* ================================================================
   01. TOKENS
   ================================================================ */
:root {
  /* Fundos */
  --ink:        #071420;
  --surface:    #0D2233;
  --surface-2:  #112840;

  /* Destaque — usar com extrema parcimônia */
  --signal:        #2BD9C7;
  --signal-dim:    rgba(43, 217, 199, 0.10);
  --signal-border: rgba(43, 217, 199, 0.28);
  --warm:          #F0B429;   /* âmbar: máx. 2 usos por página */

  /* Texto sobre fundo escuro */
  --text-primary: #E9F1EF;
  --text-muted:   #8FA6A3;
  --text-faint:   #3A5A5A;

  /* Seções claras */
  --paper:       #F5F8F7;
  --paper-text:  #0D2233;
  --paper-muted: #5A7A7A;

  /* Bordas */
  --border:       rgba(255, 255, 255, 0.06);
  --border-light: rgba(13, 34, 51, 0.10);

  /* Fontes */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Escala tipográfica fluida */
  --text-xs:   clamp(0.625rem, 1.5vw,  0.75rem);
  --text-sm:   clamp(0.75rem,  2vw,    0.875rem);
  --text-base: clamp(0.875rem, 2.5vw,  1rem);
  --text-lg:   clamp(1rem,     2.5vw,  1.125rem);
  --text-xl:   clamp(1.125rem, 3vw,    1.375rem);
  --text-2xl:  clamp(1.375rem, 3.5vw,  1.75rem);
  --text-3xl:  clamp(1.75rem,  4.5vw,  2.5rem);
  --text-4xl:  clamp(2.25rem,  5.5vw,  3.25rem);
  --text-5xl:  clamp(3rem,     7vw,    4.75rem);
  --text-6xl:  clamp(3.75rem,  9vw,    6.25rem);

  /* Espaçamento (base 8px) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Easing global */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Transições */
  --t:      240ms var(--ease-out);
  --t-fast: 160ms var(--ease-out);

  /* Radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Header */
  --header-h: 72px;
}

/* ================================================================
   02. BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

cite {
  font-style: normal;
}

blockquote {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ================================================================
   03. TIPOGRAFIA
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  line-height: 1.7;
}

strong {
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-4);
  display: block;
}

/* ================================================================
   04. LAYOUT
   ================================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-10); }
}

@media (min-width: 1280px) {
  .container { padding: 0 var(--sp-12); }
}

/* ================================================================
   05. COMPONENTES
   ================================================================ */

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn-signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn-signal:hover {
  background: #4AEDE2;
  border-color: #4AEDE2;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(43, 217, 199, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.btn-xl {
  font-size: var(--text-lg);
  padding: var(--sp-5) var(--sp-10);
  border-radius: var(--r-lg);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}

.site-header .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header.scrolled {
  background: rgba(7, 20, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 22px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-suffix {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: var(--sp-1);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--border);
}

.back-to-main {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.back-to-main:hover {
  color: var(--text-muted);
}

.main-nav a.back-to-main {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

@media (max-width: 767px) {
  .main-nav a.back-to-main {
    font-size: var(--text-base);
    color: var(--text-muted);
  }
}

/* Nav principal */
.main-nav {
  margin-left: auto;
  margin-right: var(--sp-6);
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.main-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  display: block;
}

.main-nav a:hover {
  color: var(--text-primary);
}

/* Seletor de idiomas */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  margin-right: var(--sp-4);
  flex-shrink: 0;
}

.lang-switch a {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  color: var(--text-faint);
  transition: color var(--t-fast), background var(--t-fast);
}

.lang-switch a:hover {
  color: var(--text-muted);
  background: var(--surface);
}

.lang-switch a[aria-current="true"] {
  color: var(--signal);
  background: var(--signal-dim);
}

.lang-switch-sep {
  color: var(--text-faint);
  opacity: 0.5;
}

/* Toggle mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t);
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  .header-cta  { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    padding: var(--sp-6);
    overflow-y: auto;
    margin: 0;
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open { display: flex; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    font-size: var(--text-xl);
    padding: var(--sp-4) 0;
    color: var(--text-primary);
  }

  .lang-switch {
    margin: 0 0 var(--sp-6);
    font-size: var(--text-sm);
    gap: var(--sp-1);
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-8);
  }
}

.footer-brand .logo {
  margin-bottom: var(--sp-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-lang {
  display: flex;
  gap: var(--sp-3);
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--text-faint);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-chapeco {
  color: var(--text-muted);
}

/* ================================================================
   06. BANNER DE IDIOMA (detecção via navigator.language)
   ================================================================ */
.lang-banner {
  display: none;
  position: relative;
  z-index: 101;
  background: var(--surface-2);
  border-bottom: 1px solid var(--signal-border);
}

.lang-banner.is-visible {
  display: block;
}

.lang-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  flex-wrap: wrap;
  text-align: center;
}

.lang-banner-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.lang-banner-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--signal);
  border-bottom: 1px solid var(--signal-border);
}

.lang-banner-dismiss {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  padding: var(--sp-1) var(--sp-2);
}

.lang-banner-dismiss:hover {
  color: var(--text-muted);
}

/* ================================================================
   07. HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-16));
  padding-bottom: var(--sp-24);
  overflow: hidden;
  background: var(--ink);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__fallback { display: block; }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7, 20, 32, 0.92) 0%,
    rgba(7, 20, 32, 0.7)  50%,
    rgba(7, 20, 32, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--signal);
  flex-shrink: 0;
}

.hero__headline {
  font-size: var(--text-5xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  max-width: 820px;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* ================================================================
   08. FAIXA DO PARADOXO (count-up)
   ================================================================ */
.paradox-strip {
  background: var(--surface);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-12);
}

@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  padding: var(--sp-8);
}

@media (min-width: 640px) {
  .stat-card { border-right: 1px solid var(--border); }
  .stat-card:last-child { border-right: none; }
}

@media (max-width: 639px) {
  .stat-card { padding: var(--sp-6) 0; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.stat-prefix { font-size: var(--text-3xl); font-weight: 700; color: var(--text-muted); }
.stat-unit   { font-size: var(--text-3xl); font-weight: 700; color: var(--signal); }

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

.stat-source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  display: block;
}

.paradox-close {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* ================================================================
   09. OS 5 VAZAMENTOS DO FUNIL
   ================================================================ */
.leaks-section {
  background: var(--paper);
  padding: var(--sp-24) 0;
}

.leaks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 1024px) {
  .leaks-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--sp-20);
  }
}

.leaks-header h2 { color: var(--paper-text); margin-bottom: var(--sp-5); }

.leaks-intro {
  color: var(--paper-muted);
  font-size: var(--text-lg);
}

.leaks-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.leak-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  gap: var(--sp-5);
}

.leak-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.leak-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--signal);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 0.2em;
}

.leak-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--paper-text);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.leak-fact {
  font-size: var(--text-sm);
  color: var(--paper-muted);
  line-height: 1.7;
}

.leak-stat {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper-text);
}

.leaks-close {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--paper-text);
  text-align: center;
  margin-top: var(--sp-14);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border-light);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ================================================================
   10. MÉTODO ADIFY — pipeline
   ================================================================ */
.method-section {
  background: var(--ink);
  padding: var(--sp-24) 0;
}

.method-section > .container > h2 {
  color: var(--text-primary);
  max-width: 640px;
  margin-bottom: var(--sp-4);
}

.method-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-16);
  max-width: 560px;
}

.method-pipeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 1024px) {
  .method-pipeline { flex-direction: row; gap: 0; align-items: stretch; }
}

.method-step {
  position: relative;
  flex: 1;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), background var(--t);
}

@media (min-width: 1024px) {
  .method-step { border-radius: 0; border-right: none; }
  .method-step:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .method-step:last-child  { border-radius: 0 var(--r-lg) var(--r-lg) 0; border-right: 1px solid var(--border); }
  .method-step:hover:last-child { border-right-color: var(--signal-border); }
}

.method-step:hover {
  border-color: var(--signal-border);
  background: var(--surface-2);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
  display: block;
}

.method-step h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.method-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.step-arrow { display: none; }

@media (min-width: 1024px) {
  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .step-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--signal-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'%3E%3Cpath d='M2 6h8M7 3l3 3-3 3' stroke='%232BD9C7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
  }
}

/* ================================================================
   11. PROVA — CASE IMOBILIÁRIO
   ================================================================ */
.case-featured-wrap {
  background: var(--surface);
  padding: var(--sp-24) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-featured-wrap > .container > h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-12);
  max-width: 600px;
}

.case-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t);
}

.case-featured-card:hover { border-color: var(--signal-border); }

@media (min-width: 1024px) {
  .case-featured-card {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-14);
    padding: var(--sp-12);
    align-items: start;
  }
}

.case-featured-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-5);
  display: block;
}

.case-featured-sector {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.case-featured-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.case-featured-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.case-featured-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.feat-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.feat-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.case-right-col h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.015em;
}

.case-right-col p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.case-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-faint);
}

/* ================================================================
   12. BENCHMARKS DO SETOR — tabela
   ================================================================ */
.benchmark-section {
  background: var(--ink);
  padding: var(--sp-24) 0;
}

.benchmark-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  max-width: 600px;
}

.benchmark-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-12);
  max-width: 560px;
}

.benchmark-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.benchmark-table {
  min-width: 640px;
}

.benchmark-table th,
.benchmark-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.benchmark-table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface);
}

.benchmark-table tbody tr:last-child td { border-bottom: none; }

.benchmark-table tbody tr:hover { background: var(--surface); }

.benchmark-table td {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.benchmark-table td strong {
  color: var(--text-primary);
  font-family: var(--font-display);
}

.benchmark-table td.channel-cell strong {
  font-size: var(--text-base);
}

.benchmark-close {
  margin-top: var(--sp-10);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.benchmark-close .accent { color: var(--signal); }

/* ================================================================
   13. PARA QUEM É
   ================================================================ */
.audience-section {
  background: var(--surface);
  padding: var(--sp-24) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-14);
  max-width: 560px;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

.audience-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  border-color: var(--signal-border);
  transform: translateY(-2px);
}

.audience-icon {
  width: 38px;
  height: 38px;
  color: var(--signal);
  margin-bottom: var(--sp-5);
}

.audience-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.audience-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  flex: 1;
}

.audience-card .btn { align-self: flex-start; }

/* ================================================================
   14. FAQ
   ================================================================ */
.faq-section {
  background: var(--paper);
  padding: var(--sp-24) 0;
}

.faq-section h2 {
  color: var(--paper-text);
  margin-bottom: var(--sp-10);
  max-width: 520px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 820px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item.is-open { border-color: var(--signal-border); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--paper-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  background: none;
}

.faq-question:hover { background: rgba(13, 34, 51, 0.03); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t), border-color var(--t);
  color: var(--signal);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--signal-border);
}

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--paper-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
  display: none;
}

.faq-item.is-open .faq-answer { display: block; }

/* ================================================================
   15. CTA FINAL — DIAGNÓSTICO
   ================================================================ */
.final-cta-section {
  background: var(--ink);
  padding: var(--sp-24) 0;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-14);
}

@media (min-width: 1024px) {
  .final-cta-grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-20); align-items: start; }
}

.final-cta-text h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  max-width: 480px;
}

.final-cta-text p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: var(--sp-8);
}

.final-cta-stages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.final-cta-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}

.final-cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-field input,
.form-field select {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--t-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder { color: var(--text-faint); }

.form-field input:focus,
.form-field select:focus { border-color: var(--signal-border); }

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238FA6A3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-field select option { background: var(--surface); color: var(--text-primary); }

.form-privacy {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.65;
  margin-top: var(--sp-1);
}

.form-success {
  display: none;
  padding: var(--sp-8);
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  border-radius: var(--r-lg);
  text-align: center;
}

.form-success.is-visible { display: block; }

.form-success p {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ================================================================
   16. 404
   ================================================================ */
.error-page {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--sp-32) 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--signal);
  opacity: 0.12;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-2);
  user-select: none;
}

.error-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.error-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  max-width: 480px;
  line-height: 1.7;
}

.error-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

@media (min-width: 480px) {
  .error-nav { flex-direction: row; flex-wrap: wrap; }
}

.error-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.error-link:hover {
  color: var(--signal);
  border-color: var(--signal-border);
}

/* ================================================================
   17. ANIMAÇÕES
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 540ms var(--ease-out), transform 540ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }

  .btn,
  .leak-card,
  .method-step,
  .audience-card,
  .case-featured-card {
    transition: none;
  }

  html { scroll-behavior: auto; }
}

/* ================================================================
   18. UTILITÁRIOS
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-signal { color: var(--signal); }
.text-center { text-align: center; }
