/* Invista-se · BPO Financeiro — landing page (mobile first; desktop a partir de 900px) */

:root {
  /* Paleta da marca */
  --blue: #0f4b70;          /* títulos e subtítulos */
  --blue-deep: #0b3a57;     /* hover e rodapé (tom mais escuro do mesmo azul) */
  --white: #ffffff;         /* frames claros e texto sobre azul */
  --gray: #b7b7b7;          /* "cinza escuro 1" da paleta do Google: bordas */
  --gray-light: #d9d9d9;    /* "cinza claro 1" da paleta do Google: frames alternados */
  --beige: #ede8d0;         /* fundo dos balões de texto */
  --ink: #1f2d38;           /* texto corrido */
  --ink-soft: #4b5862;      /* texto secundário em fundo branco ou bege */

  /* Negativo / positivo */
  --red: #b42318;           /* palavras negativas em fundo branco/bege; cabeçalho da tabela "Sem" */
  --red-on-blue: #ffb4ab;   /* palavras negativas sobre o azul */
  --red-soft: #fbe4e1;
  --red-ink: #8f1d14;
  --green: #067647;
  --green-soft: #def3e6;
  --green-ink: #05603a;

  --font: "Google Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Movimento: entradas desaceleram (ease-out), saídas são mais rápidas,
     a cápsula fixa usa uma mola com leve overshoot */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --radius: 6px;
  --radius-balloon: 12px;
  --gutter: 20px;
  --section-y: 36px;
  --seam: 44px;             /* altura da costura de cor entre faixas */
  --fade: 112px;            /* degradê longo nas bordas com o azul */
  --sticky-h: 84px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.375rem);
  margin-bottom: 16px;
}

p { margin: 0 0 14px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }
.container--wide { max-width: 1280px; }

/* ---------- Faixas de cor ----------
   Cada faixa tem a sua cor fixa em --bg. Nas bordas com o azul, a seção clara termina
   num degradê longo e suave (devagar no começo e no fim); entre branco e cinza a emenda
   continua curta e leve. */
.topbar, .hero, .section, .stat-band, .final-cta, .footer {
  --bg: var(--white);
  background-color: var(--bg);
}
.topbar, .hero, .stat-band, .final-cta { --bg: var(--blue); }
.section--gray { --bg: var(--gray-light); }
.footer { --bg: var(--blue-deep); }

@supports (background-color: color-mix(in oklab, red 50%, blue)) {
  /* A cor da seção clara vira um degradê vertical: borda de cima, miolo, borda de baixo.
     Nas bordas com o azul o degradê é longo e segue uma curva suave (devagar no começo
     e no fim); na emenda branco ⇄ cinza ele continua curto e leve. */
  .section {
    --a: 1;
    --c: color-mix(in srgb, var(--bg) calc(var(--a) * 100%), transparent);
    --top-from: var(--c);
    --top-len: 0px;
    --bot-to: var(--c);
    --bot-len: 0px;
    background-color: transparent;
    background-image: linear-gradient(to bottom,
      var(--top-from) 0,
      color-mix(in oklab, var(--c) 6%, var(--top-from)) calc(var(--top-len) * .15),
      color-mix(in oklab, var(--c) 28%, var(--top-from)) calc(var(--top-len) * .35),
      color-mix(in oklab, var(--c) 50%, var(--top-from)) calc(var(--top-len) * .5),
      color-mix(in oklab, var(--c) 72%, var(--top-from)) calc(var(--top-len) * .65),
      color-mix(in oklab, var(--c) 94%, var(--top-from)) calc(var(--top-len) * .85),
      var(--c) var(--top-len),
      var(--c) calc(100% - var(--bot-len)),
      color-mix(in oklab, var(--c) 94%, var(--bot-to)) calc(100% - var(--bot-len) * .85),
      color-mix(in oklab, var(--c) 72%, var(--bot-to)) calc(100% - var(--bot-len) * .65),
      color-mix(in oklab, var(--c) 50%, var(--bot-to)) calc(100% - var(--bot-len) * .5),
      color-mix(in oklab, var(--c) 28%, var(--bot-to)) calc(100% - var(--bot-len) * .35),
      color-mix(in oklab, var(--c) 6%, var(--bot-to)) calc(100% - var(--bot-len) * .15),
      var(--bot-to) 100%);
  }
  /* bordas com o azul */
  .hero + .section,
  .stat-band + .section { --top-from: var(--blue); --top-len: var(--fade); }
  .section:has(+ .stat-band),
  .section:has(+ .final-cta) { --bot-to: var(--blue); --bot-len: var(--fade); }
  /* emenda leve branco ⇄ cinza */
  .section--gray + .section:not(.section--gray) {
    --top-from: color-mix(in srgb, var(--gray-light) calc(var(--a) * 100%), transparent);
    --top-len: var(--seam);
  }
  .section:not(.section--gray) + .section--gray {
    --top-from: color-mix(in srgb, var(--white) calc(var(--a) * 100%), transparent);
    --top-len: var(--seam);
  }
  /* Chamada final → rodapé: a passagem acontece na parte de baixo da chamada final,
     num degradê longo do azul até o azul escuro; o rodapé já começa no azul escuro. */
  .final-cta {
    --len: calc(var(--fade) * 1.5);
    background-image: linear-gradient(to top,
      var(--blue-deep) 0,
      color-mix(in oklab, var(--blue) 6%, var(--blue-deep)) calc(var(--len) * .15),
      color-mix(in oklab, var(--blue) 28%, var(--blue-deep)) calc(var(--len) * .35),
      color-mix(in oklab, var(--blue) 50%, var(--blue-deep)) calc(var(--len) * .5),
      color-mix(in oklab, var(--blue) 72%, var(--blue-deep)) calc(var(--len) * .65),
      color-mix(in oklab, var(--blue) 94%, var(--blue-deep)) calc(var(--len) * .85),
      transparent var(--len));
  }
}

/* O respiro de cada seção acomoda o degradê, para o texto nunca ficar sobre ele */
.section { padding-block: max(var(--section-y), calc(var(--seam) + 10px)) var(--section-y); }
.hero + .section,
.stat-band + .section { padding-top: calc(var(--fade) + 44px); }
.section:has(+ .stat-band),
.section:has(+ .final-cta) { padding-bottom: calc(var(--fade) + 44px); }

/* Cores do texto das seções claras (balões, tabelas e relatório repetem o tema claro) */
:root {
  --heading: var(--blue);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --neg-c: var(--red);
  --link: var(--blue);
}
.pain-list li, .split__col, .ctable, .callout, .deliver__list li, .report__paper,
.trust-list li, .about__text, .faq__item, .stat-card {
  --heading: var(--blue);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --neg-c: var(--red);
  --link: var(--blue);
  color: var(--fg);
}
.section { color: var(--fg); }

/* Títulos das seções: centralizados; no PC saem da coluna estreita e ocupam uma linha larga */
.section:not(.legal) h2, .stat-band__title { text-align: center; }

.icon { width: 20px; height: 20px; flex: none; }

/* Palavra negativa */
.neg { color: var(--neg-c); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font: 500 1.0625rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 22px; height: 22px; }

.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--beige); }
.btn--light:active { transform: translateY(1px); }

/* Liquid Glass: cápsula de vidro no azul da chamada final (#0f4b70). O fundo desfoca e
   satura o que passa por trás; as pontas são mais transparentes (onde o vidro "refrata"
   o fundo) e o miolo, sob o texto, fica denso (0,9), no mesmo tom da seção azul.
   A borda acende onde a luz bate e o brilho do topo segue o cursor no desktop. */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: -30%; }

.btn--glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg,
    rgba(15, 75, 112, .62) 0%,
    rgba(15, 75, 112, .9) 13%,
    rgba(15, 75, 112, .9) 87%,
    rgba(15, 75, 112, .62) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(210%);
  backdrop-filter: blur(22px) saturate(210%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 -1px 1px rgba(255, 255, 255, .25),
    inset 0 -14px 22px -14px rgba(255, 255, 255, .45),
    0 12px 28px -12px rgba(15, 75, 112, .5),
    0 2px 6px rgba(15, 75, 112, .14);
  text-shadow: 0 1px 2px rgba(5, 30, 48, .35);
  transition: background .25s ease, box-shadow .25s ease, transform .35s var(--ease-spring),
    --mx .35s var(--ease-out), --my .35s var(--ease-out);
}
.btn--glass::before {
  /* borda especular */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .15) 30%,
    rgba(255, 255, 255, .05) 60%,
    rgba(255, 255, 255, .6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn--glass::after {
  /* luz difusa no topo da cápsula */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(90% 120% at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 55%),
    radial-gradient(80% 60% at 85% 130%, rgba(120, 190, 235, .35), transparent 60%);
  pointer-events: none;
}
.btn--glass:hover {
  background: linear-gradient(90deg,
    rgba(11, 58, 87, .68) 0%,
    rgba(11, 58, 87, .94) 13%,
    rgba(11, 58, 87, .94) 87%,
    rgba(11, 58, 87, .68) 100%);
  transform: scale(1.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .8),
    inset 0 -1px 1px rgba(255, 255, 255, .3),
    inset 0 -14px 22px -14px rgba(255, 255, 255, .55),
    0 16px 34px -12px rgba(15, 75, 112, .55),
    0 2px 6px rgba(15, 75, 112, .16);
}
.btn--glass:active { transform: scale(.96); transition-duration: .12s; }
.btn--glass:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Vidro claro, para fundos azuis (chamada final) */
.btn--glass-light {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .06) 0%,
    rgba(255, 255, 255, .16) 13%,
    rgba(255, 255, 255, .16) 87%,
    rgba(255, 255, 255, .06) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .75),
    inset 0 -1px 1px rgba(255, 255, 255, .25),
    inset 0 -14px 22px -14px rgba(255, 255, 255, .4),
    0 14px 30px -12px rgba(0, 0, 0, .35);
}
.btn--glass-light:hover {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .1) 0%,
    rgba(255, 255, 255, .24) 13%,
    rgba(255, 255, 255, .24) 87%,
    rgba(255, 255, 255, .1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .85),
    inset 0 -1px 1px rgba(255, 255, 255, .3),
    inset 0 -14px 22px -14px rgba(255, 255, 255, .5),
    0 18px 36px -12px rgba(0, 0, 0, .4);
}

/* ---------- Topo (faixa azul: logo e textos em branco) ---------- */
.topbar { padding-block: 22px 0; }
.topbar__logo { display: inline-block; }
.topbar__logo img { width: 220px; height: auto; }
.topbar :focus-visible { outline-color: var(--white); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 26px 48px;
  color: var(--white);
}
/* Luzes suaves atrás do vidro, como na chamada final; afastadas da emenda com o logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 55% at 92% 45%, rgba(90, 165, 215, .4), transparent 70%),
    radial-gradient(40% 45% at 8% 62%, rgba(237, 232, 208, .14), transparent 70%);
  /* as luzes somem antes da borda de baixo, para não cortar a emenda com a próxima faixa */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
  pointer-events: none;
}
.hero :focus-visible { outline-color: var(--white); }
.hero .hero__title { color: var(--white); }
.hero .hero__sub { color: rgba(255, 255, 255, .92); }
.hero .hero__note { color: rgba(255, 255, 255, .8); }

.hero__grid { display: block; }

/* Gráfico de pizza do empório (dados hipotéticos): cartão branco sobre o azul.
   Paleta categórica validada (dataviz). As porcentagens ficam dentro das fatias, em
   branco simples. */
.pie {
  margin: 28px 0 0;
  padding: 16px 18px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-balloon);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .55);
}
.pie__head { text-align: center; }
.pie__title { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--blue); }
.pie__sub { margin: 2px 0 0; font-size: .8125rem; color: var(--ink-soft); }
.pie__body { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 12px; }

.pie__svg { width: 176px; height: 176px; overflow: visible; }
/* Rotação lenta e contínua; os rótulos giram ao contrário e ficam sempre em pé */
.pie__spin { transform-box: view-box; transform-origin: 50% 50%; animation: pie-spin 120s linear infinite; }
.pie__slice text {
  font: 600 14px/1 var(--font);
  fill: var(--white);
  text-anchor: middle;
  dominant-baseline: central;
  transform-box: fill-box;
  transform-origin: center;
  animation: pie-spin 120s linear infinite reverse;
  pointer-events: none;
}
@keyframes pie-spin { to { transform: rotate(360deg); } }
.pie.has-active .pie__spin,
.pie.has-active .pie__slice text { animation-play-state: paused; } /* pausa para ler */

.pie__slice { cursor: default; transition: opacity .25s ease, transform .45s var(--ease-spring); }
.pie__slice path { stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
/* Destaque: os outros apagam levemente e o escolhido "salta" para fora da pizza */
.pie.has-active .pie__slice { opacity: .35; }
.pie.has-active .pie__slice.is-active { opacity: 1; transform: translate(var(--dx), var(--dy)); }

/* Tabela: produto · faturamento · lucro líquido (com a margem embaixo) */
.pie__table { width: 100%; font-size: .875rem; }
.pie__cols, .pie__row, .pie__total {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 76px 50px 68px;
  align-items: center;
  gap: 6px;
}
.pie__cols {
  margin: 0 0 4px;
  padding: 0 6px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
}
.pie__cols span:nth-child(n+3), .pie__rev, .pie__margin, .pie__profit, .pie__total span:nth-child(n+3) { text-align: right; }
.pie__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pie__row {
  min-height: 40px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: default;
  transition: opacity .25s ease, background-color .25s ease;
}
.pie__row:hover { background: #f3f1e6; }
.pie__row:focus-visible { outline-offset: 0; }
.pie__swatch { width: 12px; height: 12px; border-radius: 3px; }
.pie__name { line-height: 1.25; }
.pie__rev, .pie__margin, .pie__profit { font-variant-numeric: tabular-nums; }
.pie__profit { font-weight: 600; color: var(--green-ink); }
.pie__profit small, .pie__total small { display: block; font-size: .6875rem; font-weight: 500; color: var(--ink-soft); }
.pie__total {
  margin: 4px 0 0;
  padding: 8px 6px 0;
  border-top: 1px solid var(--gray);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pie.has-active .pie__row { opacity: .45; }
.pie.has-active .pie__row.is-active { opacity: 1; background: var(--beige); font-weight: 600; animation: pie-hop .5s var(--ease-spring); }
@keyframes pie-hop {
  0% { transform: none; }
  35% { transform: translateY(-5px) scale(1.03); }
  100% { transform: none; }
}
.pie__note { margin-top: 10px; font-size: .75rem; color: var(--ink-soft); text-align: center; }

.hero__title {
  font-size: clamp(1.875rem, 1.2rem + 3.2vw, 3.375rem);
  line-height: 1.1;
  text-wrap: balance;
}

.hero__sub {
  margin: 16px 0 0;
  font-size: 1.125rem;
}

.hero__cta { margin-top: 24px; }
.hero__cta .btn { width: 100%; }
.hero__note { margin-top: 12px; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- 2. A dor ---------- */
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pain-list li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--beige);
  border-radius: var(--radius-balloon);
}
.pain-list .icon { color: var(--red); margin-top: 3px; }

/* ---------- 3. Faixa de dados ---------- */
.stat-band {
  color: var(--white);
  padding-block: calc(var(--seam) + 8px) 44px;
}
.stat-band__lead { display: grid; gap: 10px; }
.stat-band__title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  color: var(--white);
}
.stat-band__fact { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.stat-band__number {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* a contagem 0→6 não faz o texto pular */
}
.stat-band__fact .neg { color: var(--red-on-blue); font-weight: 600; }
.stat-band__source { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .82); }
.stat-band__lead a { color: var(--white); }
.stat-band__lead :focus-visible { outline-color: var(--white); }

/* Cartões de notícias: balões bege sobre o azul, número grande e fonte linkada */
.stat-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--beige);
  color: var(--ink);
  border-radius: var(--radius-balloon);
}
.stat-card__number {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--blue);
}
.stat-card p { margin: 0; font-size: 1rem; line-height: 1.45; }
.stat-card .stat-card__source { margin-top: auto; padding-top: 6px; font-size: .8125rem; color: var(--ink-soft); }

/* ---------- 4. O que é BPO ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.split__col { background: var(--beige); padding: 14px 12px 16px; border-radius: var(--radius-balloon); }
.split__col--us { box-shadow: inset 0 0 0 1.5px var(--blue); }
.split__title {
  margin-bottom: 12px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.split__col--us .split__title { color: var(--blue); font-weight: 600; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 3px 10px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.4;
}
.split__col--us .tags li { border-color: var(--blue); color: var(--blue); }

.emphasis { font-weight: 500; color: var(--heading); }

/* ---------- 5. Sem BPO x Com BPO: duas tabelas de uma coluna, separadas ---------- */
.compare { display: grid; gap: 16px; }

.ctable { border-radius: var(--radius-balloon); overflow: hidden; }
.ctable--sem { background: var(--red-soft); }
.ctable--com { background: var(--green-soft); }

.ctable__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 1.125rem;
  letter-spacing: 0;
}
.ctable--sem .ctable__title { background: var(--red); }
.ctable--com .ctable__title { background: var(--green); }

.ctable__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  transition: opacity .25s ease, background-color .25s ease, transform .3s var(--ease-out);
}
.ctable__row .icon { width: 18px; height: 18px; margin-top: 3px; }
.ctable--sem .ctable__row .icon { color: var(--red); }
.ctable--com .ctable__row .icon { color: var(--green); }
/* Ao passar o mouse: a linha se destaca e desliza um pouco; as outras da mesma lista clareiam */
@media (hover: hover) {
  .ctable { transition: box-shadow .3s ease, transform .3s var(--ease-out); }
  .ctable:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(15, 75, 112, .5); }
  .ctable:has(.ctable__row:hover) .ctable__row:not(:hover) { opacity: .45; }
  .ctable--sem .ctable__row:hover { background: #f8d3ce; transform: translateX(4px); }
  .ctable--com .ctable__row:hover { background: #c9ebd5; transform: translateX(4px); }
}
.ctable__row + .ctable__row { border-top: 1px solid; }
.ctable--sem .ctable__row + .ctable__row { border-top-color: rgba(180, 35, 24, .2); }
.ctable--com .ctable__row + .ctable__row { border-top-color: rgba(6, 118, 71, .2); }

.ctable__moment {
  display: block;
  margin-bottom: 2px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ctable--sem .ctable__moment { color: var(--red-ink); }
.ctable--com .ctable__moment { color: var(--green-ink); }
.ctable__row p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------- 6. Manaus ---------- */
.callout {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--beige);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-balloon) var(--radius-balloon) 0;
}
.callout strong { color: var(--blue); font-weight: 600; }

/* ---------- 7. Entregas + relatório ---------- */
.deliver { display: grid; gap: 22px; }

.deliver__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: entrega; }
.deliver__list li {
  counter-increment: entrega;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 12px 14px;
  background: var(--beige);
  border-radius: var(--radius-balloon);
}
.deliver__list li::before {
  content: counter(entrega, decimal-leading-zero);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue);
}
.deliver__list strong { color: var(--blue); font-weight: 600; }

.report { margin: 0; }
.report__paper {
  max-width: 440px;
  margin-inline: auto;
  padding: 16px 16px 14px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(31, 45, 56, .1), 0 22px 44px -24px rgba(15, 75, 112, .55);
  font-size: .8125rem;
  line-height: 1.4;
  --ink-soft: #4b5862;
}
.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray);
}
.report__logo { width: 104px; height: auto; }
.report__period {
  text-align: right;
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.report__client { margin: 8px 0 10px; color: var(--ink-soft); }

.report__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; }
.report__kpis div { padding: 8px; border: 1px solid var(--gray); border-radius: 4px; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
/* Entrou fica verde e Saiu fica vermelho só ao passar o mouse */
.report__kpis .report__kpi--in:hover { background: var(--green-soft); border-color: var(--green); }
.report__kpis .report__kpi--in:hover dd, .report__kpis .report__kpi--in:hover dt { color: var(--green-ink); }
.report__kpis .report__kpi--out:hover { background: var(--red-soft); border-color: var(--red); }
.report__kpis .report__kpi--out:hover dd, .report__kpis .report__kpi--out:hover dt { color: var(--red-ink); }
.report__kpis dt { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.report__kpis dd { margin: 2px 0 0; font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report__kpis .report__kpi--result { background: var(--blue); border-color: var(--blue); }
.report__kpi--result dt, .report__kpi--result dd { color: var(--white); }

.report__block { padding-top: 10px; border-top: 1px solid var(--gray); margin-bottom: 10px; }
.report__label { margin-bottom: 8px; font-weight: 600; color: var(--blue); }
.report__name { color: var(--ink-soft); }
.report__val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Barras de margem: escala até a maior margem (--max); passar o mouse destaca a linha */
.report__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.report__bars li {
  display: grid;
  grid-template-columns: 96px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity .2s ease, background-color .2s ease;
}
.report__bars .report__val { text-align: right; }
.report__track { position: relative; height: 10px; }
.report__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100% / var(--max));
  background: var(--c, var(--blue)); /* mesma cor do produto na pizza */
  border-radius: 0 4px 4px 0;
}
.report__bars:hover li { opacity: .4; }
.report__bars li:hover { opacity: 1; background: #f3f1e6; }

/* Projeção de caixa: colunas com uma linha que acompanha os resultados */
.proj { display: block; width: 100%; height: auto; overflow: visible; }
.proj__base { stroke: var(--ink-soft); stroke-width: 1; }
.proj__bar { fill: var(--blue); }
.proj__hit { fill: transparent; }
.proj__line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.proj__dot { fill: var(--white); stroke: var(--green); stroke-width: 2.5; }
.proj__val { font: 600 12px var(--font); fill: var(--ink); text-anchor: middle; }
.proj__day { font: 400 12px var(--font); fill: var(--ink-soft); text-anchor: middle; }
.proj__col { transition: opacity .2s ease; }
.proj:hover .proj__col { opacity: .35; }
.proj:hover .proj__col:hover { opacity: 1; }
.proj:hover .proj__line { opacity: .5; }

.report__decision { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--gray); }
.report__decision strong { color: var(--blue); }

.report figcaption { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--fg-soft); }

/* ---------- 8. Segurança ---------- */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: var(--radius-balloon);
}
.trust-list .icon { width: 24px; height: 24px; color: var(--blue); }
.trust-list p { margin: 0; }

/* ---------- 9. Quem sou eu ---------- */
.about {
  display: grid;
  grid-template-areas:
    "title"
    "photo"
    "text";
  justify-items: stretch;
}
.about__photo {
  grid-area: photo;
  justify-self: center;
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  background: var(--beige);
}
.about__title { grid-area: title; margin: 0 0 18px; }
.about__text {
  grid-area: text;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--beige);
  border-radius: var(--radius-balloon);
  --ink-soft: #4b5862;
}
.about__limit {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: var(--blue);
  font-weight: 500;
}

/* ---------- 10. FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq__item { padding-inline: 16px; background: var(--beige); border-radius: var(--radius-balloon); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--blue);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding-bottom: 16px; }

/* ---------- 11. Chamada final ---------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--seam) + 8px) 52px;
  color: var(--white);
  text-align: center;
}
/* Luzes suaves atrás do vidro: é o que deixa a transparência do botão visível.
   Elas se acomodam uma vez quando a seção entra na tela (sem loop infinito). */
.final-cta::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  background:
    radial-gradient(34% 42% at 20% 22%, rgba(90, 165, 215, .5), transparent 70%),
    radial-gradient(30% 40% at 82% 80%, rgba(237, 232, 208, .2), transparent 70%),
    radial-gradient(26% 30% at 60% 55%, rgba(60, 140, 195, .3), transparent 70%);
  /* as luzes nascem depois da emenda de cima e somem antes da de baixo: sem corte visível */
  -webkit-mask-image: linear-gradient(to bottom, transparent 14%, #000 38%, #000 60%, transparent 84%);
  mask-image: linear-gradient(to bottom, transparent 14%, #000 38%, #000 60%, transparent 84%);
  transition: transform 1.6s var(--ease-out);
}
.final-cta[data-reveal]:not(.is-in)::before { transform: translate3d(-6%, 8%, 0) scale(1.08); }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255, 255, 255, .92); }
.final-cta .btn { width: 100%; max-width: 380px; margin-top: 22px; }
.final-cta__note { margin-top: 12px; font-size: .9375rem; }
.final-cta :focus-visible { outline-color: var(--white); }

/* ---------- 12. Rodapé ---------- */
.footer {
  padding-block: calc(var(--seam) + 4px) 24px;
  color: rgba(255, 255, 255, .88);
  font-size: .9375rem;
  line-height: 1.5;
}
.footer a { color: var(--white); }
.footer :focus-visible { outline-color: var(--white); }
.footer__logo { width: 190px; height: auto; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.footer__grid > :first-child { grid-column: 1 / -1; }
.footer__title {
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .8125rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Botão fixo: cápsula de vidro flutuando sobre o conteúdo ---------- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateY(calc(100% + 24px)) scale(.92);
  visibility: hidden;
  /* sai rápido e sem drama... */
  transition: transform .22s var(--ease-in), visibility 0s linear .22s;
}
.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  /* ...e entra com uma mola leve, como uma bolha de vidro subindo */
  transition: transform .55s var(--ease-spring), visibility 0s;
}
.sticky-cta .btn { width: 100%; min-height: 56px; padding-inline: 16px; }

/* ---------- Página simples (política de privacidade) ---------- */
.page-simple { padding-bottom: 0; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.375rem; margin: 28px 0 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal__updated { color: var(--ink-soft); font-size: .9375rem; }

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
  .hero__cta .btn { width: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 900px) {
  :root { --section-y: 80px; --gutter: 32px; --seam: 72px; --fade: 180px; }

  body { padding-bottom: 0; }

  .topbar { padding-top: 28px; }
  .topbar__logo img { width: 280px; }

  .hero { padding-block: 48px 96px; }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      ".     photo"
      "title photo"
      "sub   photo"
      "cta   photo"
      ".     photo";
    column-gap: 72px;
  }
  .hero__chart { grid-area: photo; margin: 0; padding: 20px 22px 16px; }
  .hero__chart .pie__svg { width: 200px; height: 200px; }
  .hero__title { grid-area: title; text-wrap: balance; }
  .hero__sub { grid-area: sub; font-size: 1.25rem; max-width: 34ch; }
  .hero__cta { grid-area: cta; }

  .stat-band { padding-block: calc(var(--seam) + 12px) 80px; }
  .stat-band__fact { display: flex; align-items: center; gap: 28px; font-size: 1.25rem; }
  .stat-band__fact > span { max-width: 30ch; }
  .stat-band__number { margin: 0; white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
  .stat-card { padding: 22px 24px; }

  .split { gap: 16px; }
  .split__col { padding: 20px 22px 22px; }
  .split__title { font-size: 1rem; }

  /* Duas tabelas lado a lado, separadas; o subgrid alinha cada momento na mesma altura */
  .compare { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); gap: 0 28px; }
  .ctable { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
  .ctable__title { padding: 16px 22px; font-size: 1.25rem; }
  .ctable__row { padding: 18px 22px; }
  .ctable__row p { font-size: 1.0625rem; }

  .deliver { grid-template-columns: minmax(0, 480px) minmax(0, 440px); justify-content: center; gap: 72px; align-items: center; }
  .report__paper { padding: 22px 22px 18px; }

  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-list li { flex-direction: column; padding: 24px; }

  .about {
    grid-template-columns: 340px minmax(0, 560px);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "photo ."
      "photo title"
      "photo text"
      "photo .";
    justify-content: center;
    column-gap: 72px;
  }
  .about__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    box-shadow: -16px 16px 0 -1px var(--gray-light), -16px 16px 0 0 var(--blue);
  }
  .about__title { margin-bottom: 20px; }
  .about__text { margin-top: 0; padding: 24px 28px; }

  .final-cta { padding-block: 88px; }
  .final-cta .btn { width: auto; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
  .footer__grid > :first-child { grid-column: auto; }

  .sticky-cta { left: auto; right: 28px; bottom: 28px; }
  .sticky-cta .btn { width: auto; padding-inline: 26px; }
}

/* ---------- Motion design ---------- */

/* Topo: título, subtítulo e botão sobem em sequência; a foto aparece por escala */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.hero__title { animation: rise .55s var(--ease-out) both; }
.hero__chart { animation: pop .7s var(--ease-out) .08s both; }
.hero__sub { animation: rise .55s var(--ease-out) .1s both; }
.hero__cta { animation: rise .55s var(--ease-out) .2s both; }

/* Revelação no scroll. O JS só marca com data-reveal o que está ABAIXO da dobra,
   então sem JS (ou com "reduzir movimento") nada fica escondido. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal="left"] { transform: translate3d(-24px, 0, 0); }
[data-reveal="right"] { transform: translate3d(24px, 0, 0); }
[data-reveal="bg"] { opacity: 1; transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Relatório: as barras, as colunas e a linha "desenham" os dados quando o papel entra na tela */
.report__fill { transform-origin: left center; transition: transform .8s var(--ease-out); }
.report__bars li:nth-child(1) .report__fill { transition-delay: .3s; }
.report__bars li:nth-child(2) .report__fill { transition-delay: .36s; }
.report__bars li:nth-child(3) .report__fill { transition-delay: .42s; }
.report__bars li:nth-child(4) .report__fill { transition-delay: .48s; }
.report__bars li:nth-child(5) .report__fill { transition-delay: .54s; }
.proj__bar { transform-box: fill-box; transform-origin: center bottom; transition: transform .7s var(--ease-out) .5s; }
.proj__line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out) 1s, opacity .2s ease; }
.proj__dot { transition: opacity .3s ease 1.6s; }
.report[data-reveal]:not(.is-in) .report__fill { transform: scaleX(0); }
.report[data-reveal]:not(.is-in) .proj__bar { transform: scaleY(0); }
.report[data-reveal]:not(.is-in) .proj__line { stroke-dashoffset: 1; }
.report[data-reveal]:not(.is-in) .proj__dot { opacity: 0; }

/* Caixas de texto: ao passar o mouse, a caixa sobe um pouco e as demais do grupo clareiam */
@media (hover: hover) {
  .stat-grid > li, .trust-list > li, .deliver__list > li, .pain-list > li {
    transition: opacity .25s ease, transform .3s var(--ease-out), box-shadow .3s ease;
  }
  .stat-grid:has(> li:hover) > li:not(:hover),
  .trust-list:has(> li:hover) > li:not(:hover),
  .deliver__list:has(> li:hover) > li:not(:hover),
  .pain-list:has(> li:hover) > li:not(:hover) { opacity: .45; }
  .stat-grid > li:hover, .trust-list > li:hover, .deliver__list > li:hover, .pain-list > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(15, 75, 112, .55);
  }
}

/* FAQ: a seta gira de volta assim que o fechamento começa */
.faq__item.is-closing summary .icon { transform: none; }

/* Navegação entre páginas (início ⇄ política de privacidade): fade com leve subida */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* PC: o título sai da coluna estreita (margens negativas) e cabe numa linha larga */
@media (min-width: 900px) {
  .section:not(.legal) h2, .stat-band__title, .final-cta h2 {
    --h2-w: min(1120px, 100vw - 64px);
    margin-inline: calc((100% - var(--h2-w)) / 2);
    font-size: min(2.125rem, 2.85vw);
  }
}

@media (min-width: 900px) {
  .section .deliver__text h2,
  .section h2.about__title { margin-inline: 0; }
}

/* Telas largas: a fonte do "6 em cada 10" vai para a direita, na mesma linha */
@media (min-width: 1200px) {
  .stat-band__lead { grid-template-columns: minmax(0, 1fr) 260px; align-items: end; column-gap: 40px; }
  .stat-band__title { grid-column: 1 / -1; }
  .stat-band__source { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .btn--glass:hover, .btn--glass:active { transform: none; }
}
