/* ==========================================================================
   Grupo Iconne — sistema visual
   Tokens, tipografia, componentes e movimento
   --------------------------------------------------------------------------
   Autor: Daniel Santos (Grupo Iconne) · Colaboração: Claude (assistente de IA)
   Versão: 1.1.0 · 2026-09-13 · histórico em CHANGELOG.md
   ========================================================================== */

:root {
  /* Marca */
  --brand: #d71920;
  --brand-600: #bd151c;
  --brand-700: #9c1017;
  --brand-tint: rgba(215, 25, 32, 0.08);
  --brand-tint-strong: rgba(215, 25, 32, 0.14);

  /* Apoio */
  --teal: #0f9e9e;
  --teal-tint: rgba(15, 158, 158, 0.1);
  --amber: #e9a227;
  --ok: #1a9459;
  --warn: #d1822a;

  /* Neutros quentes */
  --ink: #15100f;
  --ink-700: #3d3639;
  --ink-500: #6d6568;
  --ink-300: #a8a1a4;
  --paper: #ffffff;
  --surface: #f8f7f6;
  --surface-2: #efedec;
  --night: #110e0f;
  --night-2: #1b1719;

  /* Linhas */
  --line: rgba(21, 16, 15, 0.09);
  --line-strong: rgba(21, 16, 15, 0.16);
  --line-light: rgba(255, 255, 255, 0.1);

  /* Elevação — camadas suaves, nunca um borrão único */
  --shadow-xs: 0 1px 2px rgba(21, 16, 15, 0.04);
  --shadow-sm: 0 1px 2px rgba(21, 16, 15, 0.04), 0 4px 12px rgba(21, 16, 15, 0.05);
  --shadow-md: 0 1px 2px rgba(21, 16, 15, 0.04), 0 10px 26px rgba(21, 16, 15, 0.06);
  --shadow-lg: 0 2px 6px rgba(21, 16, 15, 0.04), 0 22px 48px rgba(21, 16, 15, 0.09);
  --shadow-brand: 0 6px 20px rgba(215, 25, 32, 0.24);

  /* Raios */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Métrica */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(68px, 8vw, 116px);

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /*
   * Tipografia — Bricolage Grotesque nos títulos: variável, com eixo óptico,
   * fecha o espacejamento conforme o corpo cresce. Figtree no texto, geométrica
   * e de contador aberto, que segura leitura longa sem endurecer.
   */
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Estados de navegação (sobrescritos por contexto) */
  --nav-hover: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

::selection {
  background: var(--brand-tint-strong);
  color: var(--ink);
}

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

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Tipografia
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "wdth" 96;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

/* O eixo óptico acompanha o corpo: títulos grandes fecham, pequenos abrem. */
h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 1.4rem + 4.1vw, 4.3rem);
  font-weight: 700;
  font-variation-settings: "wdth" 92, "opsz" 72;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.78rem, 1.14rem + 2.2vw, 2.7rem);
  font-variation-settings: "wdth" 94, "opsz" 40;
  line-height: 1.06;
  letter-spacing: -0.038em;
}

h3 {
  font-size: 1.16rem;
  font-weight: 600;
  font-variation-settings: "wdth" 100, "opsz" 16;
  line-height: 1.32;
  letter-spacing: -0.018em;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.5;
}

.hero .eyebrow,
.analytics .eyebrow,
.page-hero .eyebrow {
  color: #ff8086;
}

.cta-band .eyebrow {
  color: #ff8086;
}

/* ==========================================================================
   Ícones por máscara (herdam currentColor)
   ========================================================================== */

/*
 * Dois tipos de ícone dividem a mesma caixa: os desenhados por máscara CSS
 * (.ico-arrow, .ico-check) e os que recebem um SVG pelo JS via data-icon.
 * Só os primeiros pintam o fundo — sem essa distinção o segundo tipo vira
 * um quadrado sólido.
 */
.ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
}

.ico[data-icon] > svg {
  width: 100%;
  height: 100%;
}

.ico-arrow,
.ico-check {
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ico-arrow {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.ico-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: 0.945rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    background-color 200ms var(--ease-soft), border-color 200ms var(--ease-soft), color 200ms var(--ease-soft);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.btn .ico {
  width: 17px;
  height: 17px;
  transition: transform 260ms var(--ease);
}

.btn:hover .ico-arrow {
  transform: translateX(3px);
}

.btn.primary {
  color: var(--paper);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
}

.btn.primary:hover {
  background: var(--brand-600);
  box-shadow: 0 10px 28px rgba(215, 25, 32, 0.3);
}

.btn.ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

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

.btn.subtle {
  color: #79e7dd;
  border-color: rgba(15, 158, 158, 0.4);
  background: rgba(15, 158, 158, 0.14);
}

.btn.subtle:hover {
  border-color: rgba(15, 158, 158, 0.68);
  background: rgba(15, 158, 158, 0.22);
}

.btn.outline {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn.outline:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
}

.btn.light {
  color: var(--brand-700);
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.btn.light:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn.ghost.light {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn.ghost.light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.full {
  width: 100%;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

/*
 * Sobre o hero o cabeçalho não tem painel: ele some sobre a animação e só
 * materializa a pílula de vidro depois que a página rola.
 */
.site-header {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  width: min(var(--container), calc(100% - 24px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  color: var(--paper);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  transform: translateX(-50%);
  transition: background-color 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft),
    border-color 320ms var(--ease-soft), color 320ms var(--ease-soft), top 320ms var(--ease),
    backdrop-filter 320ms var(--ease-soft);
}

.site-header.compact,
.site-header.is-scrolled {
  top: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(21, 16, 15, 0.04), 0 10px 30px rgba(21, 16, 15, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  --nav-hover: rgba(21, 16, 15, 0.06);
}

/* Sem painel, os links precisam de um respaldo próprio sobre a malha. */
.site-header:not(.compact):not(.is-scrolled) .site-nav a,
.site-header:not(.compact):not(.is-scrolled) .brand {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.site-header:not(.compact):not(.is-scrolled) .site-nav .nav-pill {
  text-shadow: none;
}

/*
 * A marca tem duas versões (fundo claro e fundo escuro) empilhadas no mesmo
 * ponto; a troca acompanha o estado do cabeçalho em vez de dar um salto.
 */
.brand {
  display: grid;
  place-items: center start;
  flex: none;
  transition: opacity 200ms var(--ease-soft);
}

.brand:hover {
  opacity: 0.82;
}

/*
 * Assinatura reduzida (sem a frase e sem o ®): nesta largura a frase teria
 * 4px de altura e viraria borrão. Sem ela, a marca pode ocupar mais espaço.
 */
.brand img {
  grid-area: 1 / 1;
  width: 172px;
  height: auto;
  transition: opacity 300ms var(--ease-soft);
}

.brand .on-light {
  opacity: 0;
}

.site-header.compact .brand .on-dark,
.site-header.is-scrolled .brand .on-dark {
  opacity: 0;
}

.site-header.compact .brand .on-light,
.site-header.is-scrolled .brand .on-light {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: var(--r-full);
  color: currentColor;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  opacity: 0.86;
  transition: opacity 180ms var(--ease-soft), background-color 180ms var(--ease-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  background: var(--nav-hover);
  outline: none;
}

.site-nav .nav-pill {
  margin-left: 6px;
  padding: 0 20px;
  color: var(--paper);
  background: var(--brand);
  font-weight: 600;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(215, 25, 32, 0.26);
}

.site-nav .nav-pill:hover,
.site-nav .nav-pill:focus-visible {
  background: var(--brand-600);
  box-shadow: 0 6px 18px rgba(215, 25, 32, 0.34);
}

.site-nav .nav-pill .ico {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: var(--r-full);
  background: transparent;
  color: currentColor;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 180ms var(--ease-soft);
}

.nav-toggle:hover {
  opacity: 1;
}

.nav-toggle span {
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 160ms var(--ease-soft);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

/* ==========================================================================
   Doca da área do cliente
   Saiu do menu: é um acesso permanente, não um item de navegação. Fica ancorada
   na borda direita, com presença discreta, e só se abre no hover.
   ========================================================================== */

.client-dock {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 20px 13px 22px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: -2px 0 10px rgba(21, 16, 15, 0.05), -10px 0 34px rgba(21, 16, 15, 0.09);
  transition: transform 380ms var(--ease), color 240ms var(--ease-soft),
    background-color 240ms var(--ease-soft), box-shadow 380ms var(--ease);
}

.client-dock:hover,
.client-dock:focus-visible {
  transform: translateY(-50%) translateX(-5px);
  color: var(--brand);
  background: var(--paper);
  box-shadow: -2px 0 10px rgba(21, 16, 15, 0.06), -14px 0 40px rgba(215, 25, 32, 0.18);
  outline: none;
}

.client-dock .ico {
  width: 19px;
  height: 19px;
  color: var(--brand);
  transition: transform 380ms var(--ease);
}

.client-dock:hover .ico {
  transform: translateY(-2px);
}

.client-dock .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Fio da marca na quina, para a doca não ler como um retângulo solto. */
.client-dock::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  opacity: 0.5;
  transition: opacity 240ms var(--ease-soft);
}

.client-dock:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(126px, 14vh, 156px) 0 clamp(64px, 8vh, 88px);
  color: var(--paper);
  background: var(--night);
}

/*
 * A malha é o elemento de destaque do hero, não um papel de parede: ela roda
 * em opacidade cheia e uma máscara a enfraquece apenas na faixa da esquerda,
 * onde o texto precisa de contraste. À direita ela aparece inteira.
 */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.68) 34%, #000 56%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.68) 34%, #000 56%, #000 100%);
}

/*
 * Camadas das animações do hero.
 *
 * POR QUÊ camadas e não um canvas só: a troca entre as três opções é por
 * opacidade cruzada. Trocar o conteúdo de um canvas produziria corte seco;
 * duas camadas sobrepostas produzem passagem. A camada que sai é destruída
 * assim que a transição termina.
 *
 * A máscara de .hero-canvas continua valendo, porque ela agora está no
 * container: todas as camadas herdam o mesmo enfraquecimento na faixa do texto.
 */
.hero-anim-camada {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-soft, ease);
  will-change: opacity;
}

.hero-anim-camada.visivel {
  opacity: 1;
}

.hero-anim-camada canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Quem pede menos movimento recebe uma composição estática, sem passagem. */
@media (prefers-reduced-motion: reduce) {
  .hero-anim-camada {
    transition: none;
  }
}

.hero-sheen {
  position: absolute;
  inset: -25% -12%;
  background:
    radial-gradient(46% 52% at 16% 30%, rgba(215, 25, 32, 0.24), transparent 68%),
    radial-gradient(40% 46% at 78% 18%, rgba(15, 158, 158, 0.14), transparent 70%),
    radial-gradient(58% 60% at 62% 92%, rgba(215, 25, 32, 0.09), transparent 72%);
  animation: sheenDrift 18s var(--ease-soft) infinite alternate;
  pointer-events: none;
}

/* Respaldo para o cabeçalho transparente, curto e fraco para não comer a malha. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 108px;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0.42), rgba(10, 8, 9, 0));
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(17, 14, 15, 0), var(--night) 94%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.hero-content {
  min-width: 0;
}

/*
 * Coluna vazia de propósito: é o recorte por onde a malha aparece limpa,
 * sem texto nem cartão em cima.
 */
.hero-stage {
  position: relative;
  align-self: stretch;
  min-height: 340px;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.hero-stage::before {
  inset: 6% 12% 6% 2%;
  animation: orbitDrift 24s var(--ease-soft) infinite alternate;
}

.hero-stage::after {
  inset: 24% 30% 24% 20%;
  border-color: rgba(215, 25, 32, 0.3);
  animation: orbitDrift 18s var(--ease-soft) infinite alternate-reverse;
}

.hero-logo {
  width: clamp(174px, 18vw, 224px);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  max-width: 13ch;
}

.hero-copy {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 0.96rem + 0.4vw, 1.2rem);
  line-height: 1.62;
}

.hero-actions,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/*
 * Métricas sem caixa: três colunas separadas por filete. Ocupam menos peso
 * visual e liberam a metade direita do hero para a animação.
 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 520px;
  margin-top: clamp(34px, 5vw, 46px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metrics div {
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-metrics strong {
  display: flex;
  align-items: baseline;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.5rem + 1.1vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.hero-metrics strong .unit {
  margin-left: 1px;
  color: var(--brand);
  font-size: 0.58em;
  font-style: normal;
  transform: translateY(-0.12em);
}

.hero-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.845rem;
  line-height: 1.4;
  text-wrap: balance;
}

/* ==========================================================================
   Seções e cabeçalhos de seção
   ========================================================================== */

.section {
  padding: var(--section-y) 0;
}

.section-heading p:not(.eyebrow),
.intro-copy p,
.quote-aside p {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--ink-500);
  font-size: 1.045rem;
  line-height: 1.62;
}

.section-heading.centered {
  max-width: 44rem;
  margin: 0 auto clamp(36px, 4vw, 52px);
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered p:not(.eyebrow) {
  margin-inline: auto;
}

.intro-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.intro-grid,
.analytics-layout,
.contact-layout,
.quote-layout,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.intro-copy p:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Abas
   ========================================================================== */

.tabs,
.client-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto clamp(26px, 3vw, 36px);
}

.client-tabs {
  justify-content: flex-start;
  margin-inline: 0;
}

.tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink-500);
  background: var(--paper);
  font-size: 0.915rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: color 180ms var(--ease-soft), background-color 180ms var(--ease-soft),
    border-color 180ms var(--ease-soft), box-shadow 220ms var(--ease);
}

.tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.tab.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Cartões de serviço
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 340ms var(--ease), border-color 260ms var(--ease-soft), box-shadow 340ms var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(215, 25, 32, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.3);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-tint);
  transition: color 260ms var(--ease-soft), background-color 260ms var(--ease-soft);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card:hover .service-icon {
  color: var(--paper);
  background: var(--brand);
}

.service-card p {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 0.955rem;
  line-height: 1.6;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal-tint);
}

.service-card li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.16em + 4px);
  width: 9px;
  height: 9px;
  background: var(--teal);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ==========================================================================
   Painel analítico
   ========================================================================== */

.analytics {
  position: relative;
  color: var(--paper);
  background: var(--night-2);
  overflow: hidden;
}

.analytics::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -30%;
  height: 120%;
  background: radial-gradient(42% 48% at 22% 34%, rgba(215, 25, 32, 0.15), transparent 70%);
  pointer-events: none;
}

.analytics .container {
  position: relative;
  z-index: 1;
}

.analytics .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.check-list span {
  position: relative;
  padding-left: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.975rem;
}

.check-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(15, 158, 158, 0.2);
}

.check-list span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.1em + 5px);
  width: 11px;
  height: 11px;
  background: #4fd6cb;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.analytics-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head span {
  color: var(--ink-500);
  font-size: 0.88rem;
  font-weight: 500;
}

.panel-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  color: var(--ok);
  background: rgba(26, 148, 89, 0.1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-head strong::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17 9.5 10.5l4 4L21 7'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17 9.5 10.5l4 4L21 7'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.chart-canvas {
  width: 100%;
  height: 250px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fcfbfb, #f8f7f6);
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

/* Rótulo e percentual quebram linha quando a coluna estreita; as barras se
   alinham pela base para continuarem na mesma altura. */
.mini-bars div {
  display: grid;
  align-content: end;
  gap: 9px;
  min-width: 0;
}

.mini-bars span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 6px;
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 500;
}

.mini-bars span em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-bars i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--surface-2);
}

.mini-bars i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #f0585d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}

.is-visible .mini-bars i::before,
.mini-bars.is-visible i::before {
  transform: scaleX(1);
}

/* ==========================================================================
   Processo
   ========================================================================== */

.process {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: transform 340ms var(--ease), box-shadow 340ms var(--ease);
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.process-step > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-tint);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.process-step p {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 0.945rem;
  line-height: 1.6;
}

/* ==========================================================================
   Área do cliente — prévia
   ========================================================================== */

.client-topbar span:nth-child(1) {
  background: var(--brand);
}

/* ==========================================================================
   Faixa de chamada
   ========================================================================== */

/*
 * Antes era uma chapa de vermelho saturado ocupando a largura inteira, o que
 * batia forte logo antes do rodapé. Agora o vermelho entra como brasa —
 * gradientes radiais sobre um fundo profundo — e a faixa costura com o rodapé.
 */
.cta-band {
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(88% 128% at 82% 6%, rgba(215, 25, 32, 0.4), transparent 60%),
    radial-gradient(72% 104% at 10% 96%, rgba(156, 16, 23, 0.32), transparent 64%),
    linear-gradient(162deg, #271114 0%, #1a0d0f 52%, #140b0c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(46% 50% at 50% 100%, rgba(215, 25, 32, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.cta-content h2 {
  color: var(--paper);
}

/* ==========================================================================
   Hero interno das páginas
   ========================================================================== */

.page-hero {
  position: relative;
  padding: clamp(140px, 18vh, 168px) 0 clamp(66px, 8vw, 92px);
  color: var(--paper);
  background: var(--night-2);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto -20%;
  height: 160%;
  background:
    radial-gradient(38% 44% at 20% 40%, rgba(215, 25, 32, 0.22), transparent 70%),
    radial-gradient(34% 40% at 84% 24%, rgba(15, 158, 158, 0.12), transparent 72%);
  pointer-events: none;
}

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

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
}

.page-hero .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero-grid {
  align-items: center;
}

/* ==========================================================================
   Formulários
   ========================================================================== */

/*
 * Estes cartões aparecem dentro dos heros escuros, que herdam texto branco.
 * Sobre fundo claro isso apagaria o conteúdo, então a cor da tinta é redefinida
 * aqui e não só no .login-card.
 */
.login-card,
.form-card,
.quote-summary,
.quote-aside,
.contact-options,
.sec-summary {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.login-card {
  display: grid;
  gap: 16px;
}

.login-card h2,
.form-card h2 {
  font-size: 1.45rem;
}

.login-card p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.945rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.008em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--surface);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft),
    background-color 180ms var(--ease-soft);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-300);
}

textarea {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(215, 25, 32, 0.45);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--brand);
  font-size: 0.895rem;
  font-weight: 500;
  text-align: center;
  transition: color 180ms var(--ease-soft);
}

.form-link:hover {
  color: var(--brand-700);
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-card .full-field,
.form-card .btn,
.form-card fieldset,
.form-card > .form-grid,
.form-card > label,
.form-card > button,
.form-card > .form-feedback {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--ok);
  font-size: 0.895rem;
  font-weight: 500;
  text-align: center;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

legend {
  padding: 0 9px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-700);
  font-size: 0.91rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms var(--ease-soft), background-color 180ms var(--ease-soft),
    color 180ms var(--ease-soft);
}

.choice-grid label:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.choice-grid input {
  min-height: auto;
  width: 18px;
  height: 18px;
  flex: none;
  padding: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.choice-grid label:has(input:checked) {
  color: var(--ink);
  border-color: rgba(215, 25, 32, 0.35);
  background: var(--brand-tint);
}

/* ==========================================================================
   Painel do cliente
   ========================================================================== */

.dashboard-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.dashboard-kpis article {
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.dashboard-kpis span {
  display: block;
  color: var(--ink-500);
  font-size: 0.845rem;
  font-weight: 500;
}

.dashboard-kpis strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpis article:first-child strong,
.dashboard-kpis article:nth-child(2) strong {
  color: var(--brand);
}

.dashboard-panel {
  display: grid;
  gap: 12px;
}

.contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 200ms var(--ease-soft), box-shadow 240ms var(--ease);
}

.contract-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.contract-row p,
.track-item p,
.service-status-grid p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.55;
}

.contract-row > strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 14px;
  border-radius: var(--r-full);
  color: var(--ok);
  background: rgba(26, 148, 89, 0.1);
  font-size: 0.83rem;
  font-weight: 600;
}

.contract-row > strong::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.contract-row > strong.pending {
  color: var(--warn);
  background: rgba(209, 130, 42, 0.12);
}

.implementation-track {
  display: grid;
  padding: clamp(24px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.track-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding-bottom: 28px;
}

.track-item:last-child {
  padding-bottom: 0;
}

.track-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.track-item.done::before {
  background: rgba(215, 25, 32, 0.28);
}

.track-item:last-child::before {
  display: none;
}

.track-item > span {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.track-item.done > span,
.track-item.active > span {
  border-color: var(--brand);
  background: var(--brand);
}

.track-item.done > span::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  background: var(--paper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.track-item.active > span {
  box-shadow: 0 0 0 5px rgba(215, 25, 32, 0.14);
}

.track-item.active > span::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
}

.service-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-status-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.status-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink-300);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.16;
}

.status-dot.ok {
  background: var(--ok);
  color: var(--ok);
}

.status-dot.warn {
  background: var(--warn);
  color: var(--warn);
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-list a {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.945rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms var(--ease-soft), transform 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.document-list a::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  background: var(--brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.document-list a::after {
  content: "";
  width: 17px;
  height: 17px;
  margin-left: auto;
  flex: none;
  background: var(--ink-300);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 180ms var(--ease-soft), transform 240ms var(--ease);
}

.document-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 32, 0.24);
  box-shadow: var(--shadow-sm);
}

.document-list a:hover::after {
  background: var(--brand);
  transform: translateY(2px);
}

/* ==========================================================================
   Contato
   ========================================================================== */

.contact-options {
  display: grid;
  gap: 12px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 200ms var(--ease-soft), background-color 200ms var(--ease-soft),
    transform 260ms var(--ease);
}

.contact-option:hover,
.contact-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 32, 0.26);
  background: var(--paper);
  outline: none;
}

.contact-option .opt-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-tint);
}

.contact-option .opt-icon svg {
  width: 20px;
  height: 20px;
}

.contact-option.whatsapp .opt-icon {
  color: var(--ok);
  background: rgba(26, 148, 89, 0.11);
}

.contact-option div {
  min-width: 0;
}

.contact-option span {
  display: block;
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-option strong {
  display: block;
  margin-top: 3px;
  font-size: 1.045rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-layout,
.quote-layout {
  align-items: start;
}

.contact-note {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.contact-note strong {
  font-size: 0.95rem;
}

.contact-note span {
  color: var(--ink-500);
  font-size: 0.91rem;
}

/* ==========================================================================
   Orçamento
   ========================================================================== */

.quote-summary {
  display: grid;
  gap: 4px;
  padding: clamp(24px, 3vw, 32px);
}

.quote-summary span {
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quote-summary strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 8px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.quote-summary strong .unit {
  color: var(--ink-300);
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-summary p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.945rem;
  line-height: 1.55;
}

.quote-aside {
  position: sticky;
  top: 100px;
}

.quote-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.quote-tags span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink-700);
  background: var(--surface);
  font-size: 0.845rem;
  font-weight: 500;
}

.quote-form {
  grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

/*
 * O rodapé repete a malha do hero e emoldura a página. A animação fica na
 * faixa superior, acima do conteúdo, em vez de atrás dele.
 */
.site-footer {
  position: relative;
  padding: clamp(52px, 6vw, 76px) 0 clamp(28px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.6);
  background: var(--night);
  overflow: hidden;
}

.footer-canvas {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 190px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(26px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/*
 * O logo colorido vai numa placa clara: direto sobre o fundo escuro e a malha
 * animada, o vermelho e a tampa perdem contraste, e a versão branca vira bloco.
 */
.site-footer .brand-mark {
  box-sizing: content-box;
  width: 156px;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.site-footer p {
  max-width: 42ch;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Colunas do tamanho do conteúdo: com 1fr os links ficavam boiando longe. */
.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 2px;
}

.site-footer nav a {
  padding: 9px 14px;
  margin-left: -14px;
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.915rem;
  font-weight: 500;
  transition: color 180ms var(--ease-soft), background-color 180ms var(--ease-soft);
}

.site-footer nav a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.83rem;
}

/* ==========================================================================
   Carrossel das áreas e produtos
   Rolagem nativa com scroll-snap: dedo, roda e teclado funcionam sem física
   de arrasto reimplementada em JS, e o navegador cuida da suavidade.
   ========================================================================== */

.areas-zone {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.carousel {
  position: relative;
  outline: none;
}

.carousel:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 8px;
  border-radius: var(--r-lg);
}

.carousel-viewport {
  display: flex;
  overflow-x: auto;
  /* Contêiner de consulta: dá ao slide uma largura explícita (100cqi = caixa
     de conteúdo do viewport), em vez de um 100% que depende da trilha. */
  container-type: inline-size;
  /* Folga vertical para a sombra do slide, que o overflow recortaria. */
  padding-block: 6px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Sangra até a borda no celular sem estourar o container. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 16px;
}

.area-slide {
  flex: 0 0 100%;
  flex-basis: 100cqi;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.slide-copy h3 {
  font-size: clamp(1.28rem, 1.05rem + 0.9vw, 1.62rem);
  line-height: 1.2;
}

.slide-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--brand);
  font-size: 0.845rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.slide-tag .ico {
  width: 17px;
  height: 17px;
}

.slide-kind {
  padding: 3px 9px;
  border-radius: var(--r-full);
  color: var(--ink-500);
  background: var(--surface-2);
  font-size: 0.71rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slide-text {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--ink-500);
  font-size: 0.975rem;
  line-height: 1.6;
}

.slide-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.slide-bullets li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink-700);
  background: var(--surface);
  font-size: 0.83rem;
  font-weight: 500;
}

/* ---------- Controles ---------- */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: color 180ms var(--ease-soft), border-color 180ms var(--ease-soft),
    background-color 180ms var(--ease-soft), opacity 180ms var(--ease-soft);
}

.carousel-arrow:hover:not(:disabled) {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.carousel-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.carousel-arrow .ico {
  width: 17px;
  height: 17px;
}

.carousel-arrow[data-carousel-prev] .ico {
  transform: rotate(180deg);
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--line-strong);
  cursor: pointer;
  transition: width 300ms var(--ease), background-color 220ms var(--ease-soft);
}

.carousel-dots .dot:hover {
  background: var(--ink-300);
}

.carousel-dots .dot.is-active {
  width: 24px;
  background: var(--brand);
}

.carousel-note {
  margin: 16px 0 0;
  color: var(--ink-300);
  font-size: 0.83rem;
  text-align: center;
}

/* ==========================================================================
   Amostras de interface — CSS e SVG, sem canvas
   ========================================================================== */

.slide-mock {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
  color: var(--paper);
  background: linear-gradient(165deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-md);
  min-height: 292px;
}

.mock-bar {
  display: flex;
  gap: 6px;
}

.mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock-bar span:nth-child(1) {
  background: var(--brand);
}

.mock-bar span:nth-child(2) {
  background: var(--amber);
}

.mock-bar span:nth-child(3) {
  background: var(--teal);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.mock-row em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.83rem;
  font-style: normal;
  text-align: right;
}

.mock-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mock-track span {
  height: 5px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
}

.mock-track .done {
  background: var(--brand);
}

.mock-track .active {
  background: linear-gradient(90deg, var(--brand), rgba(215, 25, 32, 0.2));
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.mock-cards div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
}

.mock-cards span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mock-cards strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mock-funnel {
  display: grid;
  gap: 10px;
}

.mock-funnel div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.mock-funnel span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.mock-funnel i {
  display: block;
  height: 9px;
  width: var(--w);
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand), rgba(240, 76, 82, 0.35));
}

.mock-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.845rem;
}

.mock-list em {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-style: normal;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-300);
}

.dot.ok {
  background: #3fbf83;
}

.dot.info {
  background: #3fc4c4;
}

.dot.bad {
  background: #f04c52;
}

.dot.mute {
  background: rgba(255, 255, 255, 0.28);
}

.mock-spark {
  width: 100%;
  height: 56px;
}

.mock-heat {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.mock-heat i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-heat i.ok {
  background: rgba(63, 191, 131, 0.55);
  box-shadow: inset 0 0 0 1px rgba(63, 191, 131, 0.5);
}

.mock-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.mock-legend .dot {
  margin-left: 6px;
}

.mock-legend .dot:first-child {
  margin-left: 0;
}

.mock-ring-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-ring {
  width: 96px;
  height: 96px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.mock-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--night-2);
}

.mock-ring strong {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mock-ring-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mock-layers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-layers li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: calc(var(--i) * 12px);
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.mock-layers li span {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  opacity: calc(1 - var(--i) * 0.18);
}

.mock-chat {
  display: grid;
  gap: 7px;
}

.mock-chat p {
  max-width: 82%;
  margin: 0;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.45;
}

.mock-chat .them {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-chat .us {
  justify-self: end;
  border-bottom-right-radius: 5px;
  color: var(--paper);
  background: rgba(215, 25, 32, 0.42);
}

.mock-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-checks li {
  position: relative;
  padding: 10px 13px 10px 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.83rem;
}

.mock-checks li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
}

.mock-checks li.on {
  color: var(--paper);
}

.mock-checks li.on::before {
  border-color: #3fbf83;
  background: #3fbf83;
}

.mock-checks li.on::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: var(--night);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ==========================================================================
   Faixa de confiança
   ========================================================================== */

.trust-band {
  color: var(--paper);
  background: var(--night-2);
}

.trust-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.66);
}

/* Seis compromissos: colunas que dividem seis sem sobrar célula vazia. */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  padding: 24px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: transform 320ms var(--ease), border-color 240ms var(--ease-soft);
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.4);
}

.trust-card .ico {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  padding: 9px;
  border-radius: 12px;
  color: #ff6169;
  background: rgba(215, 25, 32, 0.16);
}

.trust-card h3 {
  font-size: 1.06rem;
}

.trust-card p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.915rem;
  line-height: 1.55;
}

.trust-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
}

.trust-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.trust-cta span {
  display: block;
  margin-top: 5px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.55;
}

.trust-cta .btn.outline {
  flex: none;
  color: var(--ink);
}

/* ==========================================================================
   Segurança e conformidade
   Tabelas, pílulas e painéis vêm de portal.css; aqui só o que é da página.
   ========================================================================== */

.page-hero .section-heading p.demo-note {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.sec-summary .kpi-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sec-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.tab em {
  margin-left: 4px;
  font-style: normal;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* Textos longos quebram linha; abaixo da largura mínima a tabela rola. */
.data-table.wrap {
  white-space: normal;
}

.data-table.wrap td {
  min-width: 14ch;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sector-grid + .sec-table {
  margin-top: 16px;
}

.sector-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.sector-card .ico {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  padding: 9px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-tint);
}

.sector-card > p {
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 0.945rem;
  line-height: 1.6;
}

.sector-facts {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sector-facts dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.sector-facts dd {
  margin: 4px 0 0;
  color: var(--ink-700);
  font-size: 0.915rem;
  line-height: 1.55;
}

.sec-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 60px);
  align-items: start;
}

.sec-split > div {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.sec-split .section-heading {
  margin-bottom: 10px;
}

.sec-split .track-item h3 {
  font-size: 1rem;
}

.sec-cta {
  margin-top: 20px;
}

.rule-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Três cartões em duas colunas deixariam um órfão: empilham direto. */
  .sector-grid,
  .sec-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .area-slide {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .slide-mock {
    min-height: 0;
    order: 2;
  }
}

@media (max-width: 620px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .mock-funnel div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .carousel-controls {
    gap: 12px;
  }

  .trust-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-cta .btn {
    width: 100%;
  }

  .sec-summary .kpi-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Movimento
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes sheenDrift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes orbitDrift {
  from {
    transform: rotate(0deg) scale(0.97);
    opacity: 0.5;
  }
  to {
    transform: rotate(12deg) scale(1.03);
    opacity: 1;
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1040px) {
  .service-grid,
  .process-grid,
  .dashboard-kpis,
  .service-status-grid,
  .mini-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * A aba vertical da doca precisa de uma margem lateral maior que ela (46px).
 * Abaixo de ~1320px a coluna de conteúdo encosta na borda e a aba passaria a
 * cobrir cards e textos; ali ela vira um botão redondo no canto.
 */
@media (max-width: 1320px) {
  .client-dock {
    top: auto;
    bottom: 18px;
    right: 14px;
    gap: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: none;
  }

  .client-dock:hover,
  .client-dock:focus-visible {
    transform: translateY(-3px);
  }

  .client-dock .label,
  .client-dock::before {
    display: none;
  }

  .client-dock .ico {
    width: 22px;
    height: 22px;
  }

  /* Com o teclado aberto a doca cobriria a ponta dos botões de envio, que
     ocupam a largura toda: ela sai de cena enquanto há um campo em foco. */
  body:has(input:focus, textarea:focus, select:focus) .client-dock {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
  }

  /* No fim da página a doca ficaria sobre a última linha do rodapé, que não
     tem mais para onde rolar: o rodapé reserva a altura dela (18 + 52px). */
  .site-footer {
    padding-bottom: 88px;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 62px;
    top: 10px;
    padding-left: 16px;
  }

  .brand img {
    width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 240ms var(--ease), transform 280ms var(--ease), visibility 240ms;
    --nav-hover: rgba(21, 16, 15, 0.06);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 16px;
    font-size: 0.975rem;
  }

  .site-nav .nav-pill {
    margin: 4px 0 0;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  /* Empilhado, a malha ganha uma faixa própria logo abaixo do texto. */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Numa faixa larga e baixa as órbitas viram elipse; só a malha fica. */
  .hero-stage {
    min-height: 190px;
  }

  .hero-stage::before,
  .hero-stage::after {
    display: none;
  }

  .hero-canvas {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.28) 46%, #000 72%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.28) 46%, #000 72%);
  }

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

  /* minmax(0, 1fr), não 1fr: uma coluna 1fr não encolhe abaixo do conteúdo
     mínimo dela, e um campo ou botão largo empurrava a página para fora da tela. */
  .hero-metrics,
  .intro-grid,
  .analytics-layout,
  .contact-layout,
  .quote-layout,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-metrics {
    max-width: none;
  }

  .quote-aside {
    position: static;
  }

  .client-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .client-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: none;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .split-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .split-actions .btn {
    width: 100%;
  }

  /* Botão de largura total com rótulo longo quebra a linha em vez de empurrar
     a seta para fora da pílula. */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-block: 10px;
  }

  .hero-metrics,
  .service-grid,
  .process-grid,
  .mini-bars,
  .dashboard-kpis,
  .service-status-grid,
  .form-card,
  .form-grid,
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mini-bars {
    gap: 12px;
  }

  .contract-row,
  .dashboard-head,
  .client-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  /* Empilhadas, as métricas trocam o filete lateral por um superior. */
  .hero-metrics {
    gap: 16px;
  }

  .hero-metrics div {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-metrics div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .site-footer nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-canvas {
    height: 210px;
  }

  .service-card,
  .process-step {
    padding: 22px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
