/*
  /now - a plataforma contada para quem decide: fundo branco, a mesma base do
  produto (Geist, neutros frios, azul da plataforma na ação), texto curto em
  três níveis de leitura e o detalhe técnico em <details>. A única peça viva é a
  venda simulada e a amostra de marca; nada se mexe sem o leitor pedir.
*/

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/now/fonts/geist-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/now/fonts/geist-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Os tokens do produto (web/src/estilos/tokens.css), no que esta página usa. */
:root {
  --fundo: oklch(1 0 0);
  --fundo-2: oklch(0.985 0 0);
  --fundo-3: oklch(0.967 0.001 286.375);
  --borda: oklch(0.92 0.004 286.32);
  --borda-forte: oklch(0.64 0.02 285);
  --texto: oklch(0.21 0.006 285.885);
  --texto-2: oklch(0.37 0.013 285.805);
  --texto-3: oklch(0.5 0.016 285.9);
  /* O magenta da marca Avalia Sales, o mesmo do logo: 5,4:1 com texto branco e sobre o branco. */
  --primaria: #bb00bf;
  --primaria-hover: color-mix(in oklch, var(--primaria), black 12%);
  --primaria-fundo: color-mix(in oklch, var(--primaria), white 93%);
  /* Link que sai da página: azul, com a seta; o magenta fica para o que é desta página. */
  --externo: #1d4ed8;
  --externo-hover: #1e3a8a;
  --marca: #bb00bf;

  --ok: oklch(0.527 0.154 150.069);
  --ok-fundo: oklch(0.982 0.018 155.826);
  --ok-borda: oklch(0.925 0.084 155.995);
  --espera: oklch(0.555 0.163 48.998);
  --espera-fundo: oklch(0.987 0.022 95.277);
  --espera-borda: oklch(0.924 0.12 95.746);

  --raio: 6px;
  --raio-grande: 10px;
  --sombra: 0 1px 2px oklch(0.21 0.006 285.885 / 0.06), 0 8px 24px -8px oklch(0.21 0.006 285.885 / 0.12);
  --sombra-telefone: 0 2px 4px oklch(0.21 0.006 285.885 / 0.08), 0 24px 48px -16px oklch(0.21 0.006 285.885 / 0.28);
  --saida: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 16px;
  --largura: 72rem;

  color-scheme: light;
  scrollbar-color: var(--borda-forte) var(--fundo);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1rem/1.6 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: 'ss01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body { font-size: 1.0625rem; }
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

::selection { background: color-mix(in oklch, var(--primaria), white 78%); color: var(--texto); }

a { color: var(--primaria); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primaria-hover); }

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

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--texto);
  color: var(--fundo);
  border-radius: var(--raio);
  text-decoration: none;
}
.pular:focus, .pular:hover { top: 12px; color: var(--fundo); }

.largura {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----- Botões ----- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--raio);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--saida), border-color 150ms var(--saida), color 150ms var(--saida);
}
.botao-cheio { background: var(--primaria); color: #fff; }
.botao-cheio:hover { background: var(--primaria-hover); color: #fff; }
.botao-linha { background: var(--fundo); border-color: var(--borda); color: var(--texto); }
.botao-linha:hover { background: var(--fundo-2); border-color: var(--borda-forte); color: var(--texto); }
.botao-pequeno { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.botao-icone { width: 44px; padding: 0; }
.botao-icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.botao:disabled { opacity: 0.45; cursor: default; }

.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.nota { font-size: 0.8125rem; color: var(--texto-3); }

/* ----- Topo ----- */

.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--fundo), transparent 6%);
  border-bottom: 1px solid var(--borda);
}
.topo-linha {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.topo-marca { display: block; border-radius: 4px; }
.topo-marca img { width: 98px; height: auto; }
.topo-nav { display: none; gap: 4px; margin-left: auto; }
.topo-nav a {
  padding: 8px 10px;
  border-radius: var(--raio);
  font-size: 0.875rem;
  color: var(--texto-2);
  text-decoration: none;
}
.topo-nav a:hover { color: var(--texto); background: var(--fundo-3); }
.topo .botao { margin-left: auto; }

@media (min-width: 900px) {
  .topo-nav { display: flex; }
  .topo .botao { margin-left: 8px; }
}

/* ----- Abertura ----- */

.abertura {
  display: grid;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.abertura h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.abertura-lead {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--texto-2);
  text-wrap: pretty;
}

.abertura-autor {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--texto-2);
}
.abertura-autor strong { color: var(--texto); font-weight: 600; }

.abertura .acoes { margin-top: 28px; }

.abertura-estado {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--texto-3);
}
.ponto { position: relative; top: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.ponto[data-estado="lendo"] { background: var(--borda-forte); }
.ponto[data-estado="fora"] { background: oklch(0.505 0.213 27.518); }
.ponto[data-estado="ok"] { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok), transparent 40%); animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { to { box-shadow: 0 0 0 6px transparent; } }

.abertura-telas {
  position: relative;
  padding-bottom: 28px;
}
.tela-computador {
  width: 100%;
  height: auto;
  border: 1px solid var(--borda);
  border-radius: var(--raio-grande);
  box-shadow: var(--sombra);
}
.tela-celular {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 26%;
  max-width: 190px;
  height: auto;
  border: 5px solid var(--texto);
  border-radius: 22px;
  box-shadow: var(--sombra-telefone);
  background: var(--texto);
}
.abertura-telas figcaption {
  margin-top: 12px;
  max-width: 64%;
  font-size: 0.8125rem;
  color: var(--texto-3);
}

/* Celular e tablet: o banner das telas fica entre a chamada e a descrição. O bloco de texto some da
   grade (display: contents) para seus filhos poderem se ordenar em volta da figura. */
@media (max-width: 1023.98px) {
  .abertura { gap: 0; }
  .abertura-texto { display: contents; }
  .abertura h1 { order: 1; }
  .abertura-sub { order: 2; }
  .abertura-telas { order: 3; margin: 28px 0 8px; }
  .abertura-lead { order: 4; }
  .abertura-autor { order: 5; }
  .abertura-estado { order: 6; }
}

@media (min-width: 1024px) {
  .abertura {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    align-items: center;
    gap: 56px;
    padding-top: 80px;
    padding-bottom: 88px;
  }
  .abertura-lead { font-size: 1.1875rem; }
}

/* ----- Seções ----- */

.secao { padding-top: 88px; }
.secao-topo { max-width: 46rem; margin-bottom: 40px; }
.secao-topo h2,
.fecho h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.secao-topo p { margin-top: 12px; color: var(--texto-2); text-wrap: pretty; }

@media (min-width: 960px) {
  .secao { padding-top: 120px; }
  .secao-topo { margin-bottom: 48px; }
}

h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

/* ----- Venda simulada ----- */

.venda { display: grid; gap: 40px; }

.venda-palco {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 16px 20px;
  background: var(--fundo-2);
  border: 1px solid var(--borda);
  border-radius: var(--raio-grande);
}

.telefone {
  width: min(100%, 230px);
  aspect-ratio: 9 / 17.5;
  padding: 8px;
  background: var(--texto);
  border-radius: 40px;
  box-shadow: var(--sombra-telefone);
}
.telefone-tela {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--fundo);
  border-radius: 32px;
}

.tela {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 16px 20px;
  font-size: 0.8125rem;
  line-height: 1.4;
  animation: entrar 260ms var(--saida);
}
.tela[hidden] { display: none; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(8px); }
}

.app-titulo { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.app-itens { display: grid; gap: 8px; }
.app-itens li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}
.app-itens small { display: block; color: var(--texto-3); font-size: 0.75rem; }
.app-itens b, .app-total strong, .divisao-legenda dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--borda); }
.app-total span { color: var(--texto-3); }
.app-total strong { font-size: 1.0625rem; }
.app-botao {
  margin-top: auto;
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: var(--raio);
  background: var(--primaria);
  color: #fff;
  font-weight: 500;
}
.app-centro { display: flex; justify-content: center; }
.app-nota { text-align: center; font-size: 0.75rem; color: var(--texto-3); }

.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo-ok { color: var(--ok); background: var(--ok-fundo); border-color: var(--ok-borda); }
.selo-espera { color: var(--espera); background: var(--espera-fundo); border-color: var(--espera-borda); }

.camera {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: oklch(0.3 0.01 285);
  border-radius: var(--raio-grande);
}
.placa {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 58%;
  padding: 10px 10px 8px;
  background: #fff;
  border-radius: 8px;
}
.placa-qr { width: 100%; }
.placa-texto { font-size: 0.6875rem; font-weight: 600; color: var(--marca); }
.camera-linha {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--primaria);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.5);
  animation: varrer 1.8s ease-in-out infinite alternate;
}
@keyframes varrer {
  from { top: 18%; }
  to { top: 80%; }
}

.pix { display: grid; place-items: center; padding: 12px; border: 1px solid var(--borda); border-radius: var(--raio-grande); }
.pix-qr { width: 72%; }

.pago { display: grid; place-items: center; padding: 28px 0 8px; }
.pago svg { width: 72px; height: 72px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pago path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: riscar 500ms 120ms var(--saida) forwards; }
@keyframes riscar { to { stroke-dashoffset: 0; } }

.divisao { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 3px; }
.parte { flex: var(--parte) 0 0; }
.parte-revenda { background: var(--primaria); }
.parte-operadora { background: var(--texto); }
.parte-comissao { background: oklch(0.705 0.015 286.067); }
.divisao-legenda { display: grid; gap: 8px; }
.divisao-legenda div { display: flex; justify-content: space-between; gap: 8px; }
.divisao-legenda dt { display: flex; align-items: center; gap: 8px; color: var(--texto-2); }
.marcador { width: 8px; height: 8px; border-radius: 2px; flex: none; }

.avaliacao { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--borda); border-radius: var(--raio-grande); }
.avaliacao-nome { font-weight: 600; font-size: 0.9375rem; }
.avaliacao-local { color: var(--texto-3); font-size: 0.75rem; }
.estrelas { display: flex; gap: 4px; margin: 6px 0; }
.estrelas i {
  width: 20px;
  height: 20px;
  background: oklch(0.8 0.16 85);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.avaliacao-campo { padding: 10px; min-height: 52px; border: 1px solid var(--borda-forte); border-radius: var(--raio); color: var(--texto-3); font-size: 0.75rem; }
.avaliacao-botao { justify-self: end; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: oklch(0.55 0.2 260); color: #fff; font-size: 0.75rem; font-weight: 500; }

.venda-controles { display: flex; align-items: center; gap: 12px; }
.venda-contagem { min-width: 7.5em; text-align: center; font-size: 0.875rem; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.venda-nota { text-align: center; }

.passos { display: grid; gap: 4px; counter-reset: passo; }
.passos li { display: grid; gap: 2px; border-radius: var(--raio); transition: background-color 150ms var(--saida); }
.passos li:has(.passo[aria-pressed='true']) { background: var(--primaria-fundo); }

.passo {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 4px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--raio);
  cursor: pointer;
}
.passos li:hover:not(:has(.passo[aria-pressed='true'])) { background: var(--fundo-2); }
.passo-numero {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--borda);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--texto-2);
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms var(--saida), border-color 150ms var(--saida), color 150ms var(--saida);
}
.passo-texto { display: grid; gap: 2px; color: var(--texto-2); }
.passo-texto strong { color: var(--texto); font-weight: 600; }
.passo[aria-pressed='true'] .passo-numero { background: var(--primaria); border-color: var(--primaria); color: #fff; }
.passo-tec {
  padding: 0 14px 12px 56px;
  font-size: 0.875rem;
  color: var(--texto-3);
}

@media (min-width: 960px) {
  .venda { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
  .venda-palco { position: sticky; top: 96px; padding: 40px 24px 24px; }
  .telefone { width: 280px; }
}

/* ----- Mapa da solução ----- */

.mapa {
  padding: 24px;
  border: 1px solid var(--borda);
  border-radius: var(--raio-grande);
  background: var(--fundo-2);
}
.mapa-grade { display: grid; gap: 0; }
.mapa-coluna { display: grid; gap: 10px; align-content: start; }
.mapa-lugar { font-size: 0.8125rem; font-weight: 500; color: var(--texto-3); }

.no {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}
.no strong { font-weight: 600; }
.no > span { color: var(--texto-2); font-size: 0.9375rem; }
.no small { font-size: 0.8125rem; color: var(--texto-3); }

.mapa-ligacao {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-left: 28px;
  font-size: 0.75rem;
  color: var(--texto-3);
}
.mapa-ligacao::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--borda-forte);
}
.mapa-ligacao::after {
  content: '';
  position: absolute;
  left: 9px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--borda-forte);
  border-bottom: 1px solid var(--borda-forte);
  transform: rotate(45deg);
}

.mapa-base {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--borda-forte);
  font-size: 0.875rem;
}
.mapa-base .tecs { margin-top: 0; color: var(--texto-2); }

@media (min-width: 960px) {
  .mapa { padding: 32px; }
  .mapa-grade { grid-template-columns: 1fr 112px 1fr 112px 1fr; align-items: start; }
  .mapa-ligacao {
    align-self: center;
    justify-content: center;
    min-height: 0;
    padding: 0 6px 22px;
    text-align: center;
  }
  .mapa-ligacao::before { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 1px; }
  .mapa-ligacao::after { left: auto; right: 8px; bottom: 5px; transform: rotate(-45deg); }
}

/* O fluxograma com cartões da mesma altura: na coluna de dois, cada um ocupa metade; o de um só ocupa a coluna. */
.mapa-coluna { grid-template-rows: auto; }
.no { align-content: start; }
.no .tecs { padding-top: 6px; }
.mapa-volta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--borda-forte);
  border-radius: var(--raio);
  background: var(--fundo);
  font-size: 0.875rem;
  color: var(--texto-2);
}
.mapa-volta strong { margin-right: 4px; color: var(--texto); }
@media (min-width: 960px) {
  .mapa-grade { align-items: stretch; }
  .mapa-coluna { grid-template-rows: auto repeat(2, 1fr); }
  .mapa-coluna:has(> .no:only-of-type) { grid-template-rows: auto 1fr; }
  .mapa-coluna > .no:only-of-type { align-self: center; }
  .mapa-ligacao { align-self: center; }
  .no { min-height: 0; }
}

/* ----- Aprofundar (details) ----- */

.aprofundar { margin-top: 12px; }
.aprofundar summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primaria);
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.aprofundar summary::-webkit-details-marker { display: none; }
.aprofundar summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--saida);
}
.aprofundar[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.aprofundar summary:hover { color: var(--primaria-hover); }
.aprofundar-corpo { display: grid; gap: 12px; padding: 8px 0 4px; max-width: 64ch; color: var(--texto-2); font-size: 0.9375rem; }
#solucao > .aprofundar { margin-top: 20px; }
#solucao .aprofundar-corpo { max-width: 46rem; }

.evidencia { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.875rem; }

/* ----- Decisões ----- */

.decisoes { display: grid; border-top: 1px solid var(--borda); }
.decisoes > li { padding: 24px 0; border-bottom: 1px solid var(--borda); }
.decisoes > li > p { margin-top: 6px; max-width: 64ch; color: var(--texto-2); text-wrap: pretty; }

@media (min-width: 960px) {
  .decisoes > li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 48px;
    padding: 28px 0;
  }
  .decisoes > li > h3 { grid-row: span 3; line-height: 1.6; }
  .decisoes > li > p { margin-top: 0; }
}

/* A amostra de marca */
.marca { display: grid; gap: 20px; margin-top: 20px; }
.marca fieldset { margin: 0; padding: 0; border: 0; }
.marca legend { margin-bottom: 10px; font-size: 0.875rem; font-weight: 500; }
.amostras { display: flex; flex-wrap: wrap; gap: 8px; }
.amostra {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amostra);
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1);
  cursor: pointer;
}
.amostra input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.amostra:has(input:checked) { outline: 2px solid var(--texto); outline-offset: 3px; }
.amostra:has(input:focus-visible) { outline: 2px solid var(--primaria); outline-offset: 3px; }
.amostra-livre { background: conic-gradient(from 0deg, #e11d48, #f5b301, #2dd4bf, #1d4ed8, #bb00bf, #e11d48); }
.marca-leitura { margin-top: 12px; font-size: 0.875rem; color: var(--texto-2); }

.mini {
  --marca: #bb00bf;
  --marca-texto: #fff;
  --marca-destaque: #bb00bf;
  display: grid;
  gap: 10px;
  max-width: 340px;
  padding: 16px;
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: var(--raio-grande);
  font-size: 0.875rem;
}
.mini-topo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mini-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--marca); color: var(--marca-texto); font-size: 0.8125rem; }
.mini-abas { display: flex; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--borda); color: var(--texto-3); }
.mini-abas span { padding: 4px 8px; border-radius: 4px; }
.mini-abas .ativa { color: var(--marca-destaque); font-weight: 500; box-shadow: inset 0 -2px 0 var(--marca-destaque); border-radius: 0; }
.mini-linha { display: flex; justify-content: space-between; align-items: center; }
.mini-selo { padding: 2px 8px; border: 1px solid var(--ok-borda); border-radius: 999px; background: var(--ok-fundo); color: var(--ok); font-size: 0.75rem; }
.mini-link { color: var(--marca-destaque); font-weight: 500; }
.mini-botao { display: grid; place-items: center; min-height: 40px; margin-top: 4px; border-radius: var(--raio); background: var(--marca); color: var(--marca-texto); font-weight: 500; }

@media (min-width: 640px) {
  .marca { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}

/* ----- Provas de qualidade ----- */

.provas { display: grid; border-top: 1px solid var(--borda); }
.provas li { display: grid; gap: 6px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--borda); }
.provas p { color: var(--texto-2); max-width: 60ch; }
.provas a { justify-self: start; font-size: 0.875rem; }

@media (min-width: 720px) {
  .provas { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1100px) {
  .provas { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Integrações ----- */

.tabela { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio-grande); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--borda); }
thead th { background: var(--fundo-2); font-size: 0.8125rem; font-weight: 500; color: var(--texto-3); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody td { color: var(--texto-2); }

.estado { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.875rem; font-weight: 500; }
.estado::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado-ok { color: var(--ok); }
.estado-espera { color: var(--espera); }
.estado-neutro { color: var(--texto-2); }
.estado-neutro::before { background: oklch(0.705 0.015 286.067); }

/* No celular a tabela vira lista: serviço e estado na linha de cima, o uso embaixo. */
@media (max-width: 639px) {
  .tabela { border: 0; border-top: 1px solid var(--borda); border-radius: 0; overflow: visible; }
  .tabela thead { display: none; }
  .tabela tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--borda); }
  .tabela th, .tabela td { padding: 0; border: 0; }
  .tabela tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 0.875rem; }
  .tabela tbody td:nth-child(3) { grid-column: 2; grid-row: 1; }
  #integracoes .tabela tbody th { white-space: normal; }
  .aprofundar .tabela tbody tr { grid-template-columns: 1fr; }
  .aprofundar .tabela tbody td:nth-child(2) { grid-row: auto; }
}


/* A comparação no celular: o nome da camada, depois o antes e o agora, cada um com o rótulo. */
@media (max-width: 639px) {
  .tabela-comparacao tbody tr { grid-template-columns: 1fr; }
  .tabela-comparacao tbody td:nth-child(2), .tabela-comparacao tbody td:nth-child(3) { grid-column: 1; grid-row: auto; font-size: 0.875rem; }
  .tabela-comparacao tbody td:nth-child(2)::before { content: "Antes: "; color: var(--texto-3); }
  .tabela-comparacao tbody td:nth-child(3)::before { content: "Depois: "; font-weight: 500; color: var(--texto); }
}

/* ----- Fecho e rodapé ----- */

.fecho { padding-top: 104px; padding-bottom: 88px; }
.fecho p:not(.acoes) { margin-top: 12px; max-width: 46rem; color: var(--texto-2); }
.fecho .acoes { margin-top: 24px; }

.rodape { border-top: 1px solid var(--borda); }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-block: 16px; font-size: 0.9375rem; }
.rodape-links { display: flex; gap: 20px; }
.rodape-papel { display: block; font-size: 0.875rem; color: var(--texto-2); }


/* ----- Blocos editoriais: subtítulo da abertura, decisões, leituras ----- */

.abertura-sub { max-width: 36rem; margin-top: 14px; font-size: 1.25rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
.sub-titulo { margin: 48px 0 16px; }
.sub-texto { max-width: 64ch; margin-top: -8px; color: var(--texto-2); }

.decisao { display: grid; gap: 10px; margin-top: 12px; }
.decisao div { display: grid; gap: 2px; }
.decisao dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--texto-3); }
.decisao dd { margin: 0; color: var(--texto-2); max-width: 64ch; }
.decisao .evidencia { margin-top: 2px; }
.decisao .nota { display: block; margin-top: 4px; }
.no-fluxo { margin-top: 10px; font-size: 0.875rem; }
.no-fluxo a, .passo-tec a, .evidencia a { display: inline-flex; align-items: center; min-height: 24px; }
.passo-tec a { white-space: nowrap; }

@media (min-width: 960px) {
  .decisoes > li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .decisoes > li > h3 { grid-row: span 2; }
  .decisao { margin-top: 0; }
}

.leituras { display: grid; gap: 12px; margin-bottom: 24px; }
.leituras a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--borda); border-radius: var(--raio); color: var(--texto); text-decoration: none; transition: border-color 150ms var(--saida), background-color 150ms var(--saida); }
.leituras a:hover { border-color: var(--borda-forte); background: var(--fundo-2); color: var(--texto); }
.leituras strong { font-weight: 600; }
.leituras span { font-size: 0.875rem; color: var(--texto-2); }
@media (min-width: 720px) { .leituras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.seta-de-ir { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Logos da stack: máscara na cor do texto, todas no mesmo quadro de 16 px ----- */

.tecs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; font-size: 0.8125rem; color: var(--texto-3); }
.tecs li { display: inline-flex; align-items: center; gap: 6px; }
.ico { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; mask: var(--ico) center / contain no-repeat; -webkit-mask: var(--ico) center / contain no-repeat; }
.ico-letra { display: inline-grid; place-items: center; background: none; mask: none; -webkit-mask: none; border: 1px solid currentColor; border-radius: 4px; font-size: 7px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.servico { display: inline-flex; align-items: center; gap: 10px; }
.servico .ico { color: var(--texto-2); }
.i-dotnet { --ico: url('/now/icons/dotnet.svg'); }
.i-postgresql { --ico: url('/now/icons/postgresql.svg'); }
.i-react { --ico: url('/now/icons/react.svg'); }
.i-typescript { --ico: url('/now/icons/typescript.svg'); }
.i-reactquery { --ico: url('/now/icons/reactquery.svg'); }
.i-tailwindcss { --ico: url('/now/icons/tailwindcss.svg'); }
.i-resend { --ico: url('/now/icons/resend.svg'); }
.i-googlemaps { --ico: url('/now/icons/googlemaps.svg'); }
.i-totvs { --ico: url('/now/icons/totvs.svg'); }
.i-linux { --ico: url('/now/icons/linux.svg'); }
.i-docker { --ico: url('/now/icons/docker.svg'); }
.i-nginx { --ico: url('/now/icons/nginx.svg'); }
.i-letsencrypt { --ico: url('/now/icons/letsencrypt.svg'); }
.i-githubactions { --ico: url('/now/icons/githubactions.svg'); }
.i-sentry { --ico: url('/now/icons/sentry.svg'); }
.i-vite { --ico: url('/now/icons/vite.svg'); }
.i-github { --ico: url('/now/icons/github.svg'); }

/* ----- Links externos ----- */

a[href^="http"]:not(.botao):not(.topo-marca) { color: var(--externo); }
a[href^="http"]:not(.botao):not(.topo-marca):hover { color: var(--externo-hover); }
a[href^="http"]:not(.botao):not(.topo-marca)::after,
.leituras strong::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.25em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.leituras a[href^="http"]:not(.botao):not(.topo-marca)::after { display: none; }
.leituras strong { color: var(--externo); }

/* ----- Movimento reduzido ----- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .pago path { stroke-dashoffset: 0; }
}
