/*
  Merchant AdOps — folha de estilo compartilhada do site institucional.
  Reaproveita os tokens de cor/tipografia/espaçamento do UI-SPEC da Fase 1
  (paleta slate + acento indigo, 60/30/10, dois pesos de fonte).

  Fonte Inter auto-hospedada em fonts/ (400 regular + 600 semibold, subset
  latin — cobre acentuação de pt-BR). Zero dependência externa de rede:
  nenhum CDN, nenhum Google Fonts remoto.

  Sem framework, sem build, sem JavaScript.
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
}

:root {
  --bg: #FFFFFF;
  --bg-muted: #F8FAFC;
  --card: #F1F5F9;
  --border: #E2E8F0;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --text: #0F172A;
  --text-muted: #64748B;
  --focus-ring: #4F46E5;

  /* Preenchimento sólido com texto branco (CTA, pílula de idioma ativo).
     Em modo claro é igual a --accent/--accent-hover. Em modo escuro reusa
     os MESMOS hex do UI-SPEC (indigo-600/700, a dupla "clara" da tabela),
     porque o indigo-500/400 do modo escuro (--accent/--accent-hover) fica
     abaixo de 4.5:1 com texto branco em cima — ver cálculo no SUMMARY. */
  --accent-solid: #4F46E5;
  --accent-solid-hover: #4338CA;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --bg-muted: #0F172A;
    --card: #1E293B;
    --border: #334155;
    --accent: #6366F1;
    --accent-hover: #818CF8;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --focus-ring: #6366F1;

    /* Mesmo par indigo-600/700 do modo claro, não o indigo-500/400 do modo
       escuro — garante >= 4.5:1 com texto branco no CTA e na pílula ativa. */
    --accent-solid: #4F46E5;
    --accent-solid-hover: #4338CA;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--space-md) 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 var(--space-md) 0;
}

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

label, .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Layout */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
}

.main-nav a:hover {
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.lang-switch a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
}

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

.lang-switch a[aria-current="true"] {
  background: var(--accent-solid);
  color: #FFFFFF;
  border-color: var(--accent-solid);
}

main {
  max-width: 72ch;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Home gets a wider canvas so the hero grid and facts band have room to
   breathe; legal/contact pages keep the narrower 72ch reading width. */
body.home main {
  max-width: 960px;
}

section {
  margin-bottom: var(--space-2xl);
}

section:last-child {
  margin-bottom: var(--space-lg);
}

/* Sections that should sit closer together than the default rhythm,
   used on the home page to vary vertical weight instead of stacking
   every section at the same size. */
.section-compact {
  margin-bottom: var(--space-xl);
}

.hero {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 34px;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

/* Home hero: asymmetric two-column grid (main pitch + a compact
   "who it's for" side panel), collapsing to one column on narrow screens. */
.hero-home {
  margin-bottom: var(--space-3xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.hero-main h1 {
  font-size: 40px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-side {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
}

.hero-side h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.hero-side p {
  margin: 0;
  font-size: 15px;
}

/* Highlighted differentiator section */

.differentiator {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.step h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: 14px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* "What the platform does" section: a lead paragraph plus one distinct
   highlighted panel for Google Ads, instead of a row of same-size cards. */

.spotlight {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: 8px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.spotlight h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.spotlight p {
  margin-bottom: 0;
}

.callout-line {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
}

/* A frase de fechamento do bloco .differentiator usa .muted, mas ali o
   fundo do bloco é --card: texto muted em cima de card cai para ~4.34:1
   (abaixo de 4.5:1). Nesse contexto específico o texto volta a usar
   --text (contraste calculado >16:1 nos dois modos). */
.differentiator .muted {
  color: var(--text);
}

/* Compact two-column text band ("who builds it" / BYOK) — plain text,
   no card background, so it reads as a lighter beat than the sections
   around it instead of another stack of identical boxes. */

.facts-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .facts-band {
    grid-template-columns: 1fr 1fr;
  }
}

.facts-band h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.facts-band p {
  margin: 0;
}

/* Contact email highlight */

.contact-email {
  display: inline-block;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin: var(--space-md) 0 var(--space-lg) 0;
}

.contact-email:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* CTA button */

.cta {
  display: inline-block;
  background: var(--accent-solid);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  min-height: 40px;
  line-height: 24px;
}

.cta:hover {
  background: var(--accent-solid-hover);
  color: #FFFFFF;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

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

@media (max-width: 640px) {
  main {
    padding: var(--space-xl) var(--space-md);
  }

  .header-inner {
    padding: var(--space-md);
  }

  .differentiator {
    padding: var(--space-lg);
  }

  .hero-main h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .contact-email {
    font-size: 18px;
    padding: var(--space-md);
  }
}
