/* Fontes hospedadas no próprio site (licença SIL OFL 1.1; ver fonts/LICENCAS.txt). Subconjunto latino, que cobre o português. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

/* Pellizon: site institucional, versão 2.
   Tokens primeiro, depois base, seções e responsivo. Seletores de uma classe para a especificidade não se anular.
   Cores com significado: teal = agente, ouro = decisão humana. */

:root {
  --ink: #0e1b2c;
  --ink-2: #16273c;
  --paper: #f4f6f8;
  --panel: #e8ecf1;
  --steel: #566677;
  --steel-on-ink: #a7b6c6;
  --agent: #00a39a;
  --agent-ink: #00756f;
  --human: #f2b01e;
  --line: rgba(14, 27, 44, 0.14);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.92rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.7rem, 1.1rem + 2vw, 2.7rem);
  --step-3: clamp(2.8rem, 0.9rem + 6vw, 6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--agent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 0.75rem; }

/* ---------- Topo ---------- */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--gutter); }
.marca { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.marca-simbolo { width: 2rem; height: 2rem; }
.marca-nome { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }

.menu { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); font-size: var(--step--1); font-weight: 500; }
.menu a { text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--agent); }
.menu .menu-contato { background: var(--ink); color: var(--paper); padding: 0.55rem 1.05rem; border-radius: 999px; border-bottom: 0; }
.menu .menu-contato:hover { background: var(--ink-2); }

/* ---------- Botões ---------- */
.botao { display: inline-block; font-weight: 600; text-decoration: none; padding: 0.9rem 1.45rem; border-radius: var(--radius); transition: background-color 0.2s ease, color 0.2s ease; }
.botao-principal { background: var(--human); color: var(--ink); }
.botao-principal:hover { background: #ffc43d; }
.botao-texto { padding: 0.2rem 0; border-radius: 0; border-bottom: 2px solid var(--ink); }
.botao-texto:hover { border-bottom-color: var(--agent); }
.botao-escuro { background: var(--ink); color: var(--paper); }
.botao-escuro:hover { background: var(--ink-2); }
.botao-escuro:focus-visible { outline-color: var(--paper); }

/* ---------- Herói ---------- */
.heroi {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

h1 { font-size: clamp(2.2rem, 1rem + 3vw, 3.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; max-width: 21ch; }
.heroi-sub { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 40ch; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }

/* ---------- Raias ---------- */
.raias { margin: 0; }
.raias svg { display: block; width: 100%; height: auto; max-width: 21.5rem; margin-left: auto; }
.raias figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--steel); max-width: 21.5rem; margin-left: auto; }

.raia-fundo rect { fill: var(--panel); }
.raia-nome text { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--ink); }

.trajeto {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: desenha 3.2s cubic-bezier(0.45, 0, 0.2, 1) 0.15s forwards;
}

.passo { opacity: 0; animation: surge 0.4s ease forwards; animation-delay: var(--d); }
.passo text { font-family: var(--body); font-size: 13px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }

.no-dado { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.no-agente { fill: var(--agent); stroke: var(--agent); }
.no-pessoa { fill: var(--human); stroke: var(--human); }
.visto { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes surge { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */
.secao { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.secao::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }

h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }

/* ---------- Onde ajuda ---------- */
.onde-cabeca { max-width: 46rem; }
.onde-cabeca p { margin-top: 1rem; color: var(--steel); }

.tabela { width: 100%; margin-top: clamp(2rem, 5vw, 3.5rem); border-collapse: separate; border-spacing: 0 0.6rem; }
.tabela th, .tabela td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem; }
.tabela thead th { font-size: var(--step--1); font-weight: 600; color: var(--steel); padding-top: 0; padding-bottom: 0.25rem; }
.tabela tbody th { font-family: var(--display); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; width: 28%; background: var(--panel); border-radius: var(--radius) 0 0 var(--radius); }
.tabela tbody td { background: var(--panel); width: 36%; }
.tabela tbody td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

/* marca de significado: ponto teal (agente) e ouro (pessoa) */
.tabela tbody td::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.6rem; background: var(--agent); vertical-align: baseline; }
.tabela tbody td:last-child::before { background: var(--human); }

/* ---------- Tese ---------- */
.tese { background: var(--ink); color: var(--paper); }
.tese-miolo { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.tese h2 { font-size: clamp(2.6rem, 0.8rem + 7vw, 7rem); font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; max-width: 12ch; }
.tese-lide { margin-top: 1.5rem; font-size: var(--step-1); color: var(--steel-on-ink); max-width: 36ch; }

.pilares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 7vw, 5.5rem); }
.pilar h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 750; letter-spacing: -0.03em; }
.pilar p { margin-top: 0.75rem; color: var(--steel-on-ink); }

/* ---------- Como começa ---------- */
.como { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.como-cabeca h2 { max-width: 16ch; }

.etapas { list-style: none; margin: 0; padding: 0; counter-reset: etapa; display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.etapa { counter-increment: etapa; position: relative; padding-left: 3.4rem; }
.etapa::before { content: counter(etapa); position: absolute; left: 0; top: -0.05rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--paper); background: var(--ink); border-radius: 50%; }
.etapa h3 { font-size: var(--step-1); font-weight: 750; margin-bottom: 0.4rem; }
.etapa p { color: var(--steel); }
.etapa .entrega { margin-top: 0.5rem; color: var(--agent-ink); font-weight: 600; }

/* ---------- Produtos ---------- */
.produtos { background: var(--panel); }
.produtos-miolo {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.produtos-cabeca { grid-column: 1 / -1; margin-bottom: clamp(1rem, 3vw, 2rem); max-width: 44rem; }
.produtos-cabeca p { margin-top: 1rem; color: var(--steel); }

.produto { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius); }
.produto h3 { font-size: var(--step-1); font-weight: 750; }
.produto p { margin-top: 0.85rem; }

.produto-jogo { background: var(--ink); color: var(--paper); }
.produto-jogo .produto-nome { font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin-top: 0.4rem; }
.produto-jogo p { color: var(--steel-on-ink); }
.produto-jogo .produto-nome { color: var(--paper); }
.produto-status { color: var(--human) !important; font-weight: 600; }

.produto-digital { background: var(--paper); }
.produto-digital p { color: var(--steel); }
.link { display: inline-block; margin-top: 1.1rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--human); padding-bottom: 0.1rem; }
.link:hover { border-bottom-color: var(--ink); }

/* ---------- Quem conduz ---------- */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.sobre-texto { display: grid; gap: 1rem; }
.sobre-texto p { font-size: var(--step-1); line-height: 1.55; color: var(--steel); }

/* ---------- Contato ---------- */
.contato { background: var(--agent); color: var(--ink); }
.contato-miolo { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.contato h2 { font-size: clamp(2.2rem, 1rem + 4.4vw, 4.8rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1; max-width: 17ch; }
.contato p { margin-top: 1.25rem; font-size: var(--step-1); max-width: 40ch; }
.contato .botao { margin-top: 2rem; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--ink); color: var(--steel-on-ink); font-size: var(--step--1); }
.rodape-miolo { max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--gutter); display: grid; gap: 0.35rem; }
.rodape-marca { font-family: var(--display); color: var(--paper); font-weight: 800; font-size: var(--step-1); margin-bottom: 0.5rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 62rem) {
  .heroi { grid-template-columns: 1fr; }
  .raias svg, .raias figcaption { margin-left: 0; }
  .como, .sobre { grid-template-columns: 1fr; }
  .produtos-miolo { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .menu a:not(.menu-contato) { display: none; }

  /* tabela vira lista empilhada */
  .tabela, .tabela thead, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: 100%; }
  .tabela thead { position: absolute; left: -9999px; }
  .tabela tr { margin-bottom: 0.8rem; background: var(--panel); border-radius: var(--radius); padding: 0.4rem 0; }
  .tabela tbody th, .tabela tbody td { background: transparent; border-radius: 0; width: 100%; padding: 0.55rem 1.1rem; }
  .tabela tbody td::before { content: none; }
  .tabela tbody td::after { content: none; }
  .tabela tbody td[data-rotulo]::before { content: attr(data-rotulo) ": "; display: inline; width: auto; height: auto; margin: 0; background: none; font-weight: 600; color: var(--ink); }
  .tabela tbody td:last-child[data-rotulo]::before { background: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trajeto { animation: none; stroke-dashoffset: 0; }
  .passo { animation: none; opacity: 1; }
}

/* ---------- Página de política (texto longo) ---------- */
.politica { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 8vw, 6rem); }
.politica h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); max-width: 18ch; }
.politica-data { margin-top: 0.75rem; color: var(--steel); font-size: var(--step--1); }
.politica-lide { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.politica h2 { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.02em; margin-top: 2.5rem; }
.politica p, .politica li, .politica dd { max-width: 68ch; }
.politica p { margin-top: 0.85rem; }
.politica ul { margin: 0.85rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.politica a { text-decoration: underline; text-decoration-color: var(--human); text-underline-offset: 3px; }
.politica a:hover { text-decoration-color: var(--ink); }
.politica-dados { margin: 1rem 0 0; display: grid; gap: 1rem; }
.politica-dados dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.politica-dados dd { margin: 0.35rem 0 0; padding: 1rem 1.25rem; background: var(--panel); border-radius: var(--radius); }

.rodape-link { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.rodape-link:hover { color: var(--human); }
