/* ─────────────────────────────────────────────────────────────────────────────
   Judô One — páginas de conteúdo (preços, funcionalidades, dúvidas, sobre, termos)
   Mesmo mundo da home: tatami, tinta sumi, Newsreader nos títulos, General Sans no
   texto, JetBrains Mono para números. Tokens em tokens.css. Gerado por
   tools/landing-pages (as páginas); este arquivo é editado à mão.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --gutter: clamp(1rem, 4vw, 4rem);
  --measure: 40rem;
  --wide: 72rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: rgb(var(--tatami));
  color: rgb(var(--sumi));
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Mesmo grão orgânico da home, fixo na tela. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

::selection {
  background-color: rgb(var(--sumi));
  color: rgb(var(--tatami));
}

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 40;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  background-color: rgb(var(--paper));
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

a {
  color: rgb(var(--sumi));
  text-decoration-color: rgb(var(--sumi) / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.18s var(--out);
}
a:hover {
  text-decoration-color: currentColor;
}

/* ── Topo ─────────────────────────────────────────────────────────────────── */
.topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 1rem) var(--gutter) 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  border-radius: 2px;
}
.brand-obi {
  width: 2.5rem;
  height: 1.5625rem;
  fill: rgb(var(--preto));
  stroke: rgb(var(--preto));
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.menu a {
  display: inline-block;
  padding: 0.375rem 0;
  color: rgb(var(--sumi-soft));
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current='page'] {
  color: rgb(var(--sumi));
}
.menu a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: rgb(var(--sumi));
  text-underline-offset: 0.4em;
}
.menu .entrar a {
  text-decoration: underline;
  text-decoration-color: rgb(var(--line));
  text-underline-offset: 4px;
}

/* ── Conteúdo ─────────────────────────────────────────────────────────────── */
.conteudo {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}

.trilha {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.8125rem;
  color: rgb(var(--sumi-muted));
}
.trilha ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trilha li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgb(var(--line));
}
.trilha a {
  color: rgb(var(--sumi-soft));
}

.texto {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  text-wrap: balance;
  color: rgb(var(--sumi));
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  max-width: 36rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: rgb(var(--sumi-soft));
  text-wrap: pretty;
}

.atualizado {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--sumi-muted));
}

.corpo {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgb(var(--line));
}

.corpo h2 {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0.75rem;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.corpo > h2:first-child,
.corpo > section:first-child > h2:first-child {
  margin-top: 0;
}
.corpo h3 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.corpo p,
.corpo ul,
.corpo ol {
  max-width: var(--measure);
  margin: 0 0 1rem;
  text-wrap: pretty;
}
.corpo ul,
.corpo ol {
  padding-left: 1.25rem;
}
.corpo li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.corpo li::marker {
  color: rgb(var(--sumi-muted));
}
.corpo ol li::marker {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.corpo strong {
  font-weight: 600;
}

/* Resposta direta logo abaixo do título da pergunta (o trecho que buscadores e IA citam). */
.resposta {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(var(--line));
  border-radius: 6px;
  background-color: rgb(var(--paper));
  box-shadow: var(--shadow-card);
  font-size: 1.125rem;
  line-height: 1.55;
}
.resposta p {
  margin: 0;
}

.nota {
  max-width: var(--measure);
  font-size: 0.9375rem;
  color: rgb(var(--sumi-soft));
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 0.92em;
}

/* ── Tabelas (planos, comparativos) ───────────────────────────────────────── */
.tabela-wrap {
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid rgb(var(--line));
  border-radius: 6px;
  background-color: rgb(var(--paper));
  box-shadow: var(--shadow-card);
}
table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
caption {
  padding: 1rem 1.25rem 0;
  text-align: left;
  font-size: 0.8125rem;
  color: rgb(var(--sumi-muted));
}
th,
td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgb(var(--line-soft));
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
thead th {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom-color: rgb(var(--line));
}
tbody th {
  font-weight: 500;
  color: rgb(var(--sumi-soft));
}
td.num,
.preco {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}
.preco {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgb(var(--sumi));
}

/* ── Faixas (só onde a cor significa grau) ────────────────────────────────── */
.faixas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.25rem 1rem;
  max-width: var(--measure);
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.faixas li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgb(var(--line-soft));
}
.faixa-obi {
  flex: none;
  width: 2.25rem;
  height: 1.40625rem;
  stroke: rgb(var(--sumi) / 0.35);
}
.belt-branca { fill: rgb(var(--belt-branca)); }
.belt-cinza { fill: rgb(var(--belt-cinza)); }
.belt-azul { fill: rgb(var(--belt-azul)); }
.belt-amarela { fill: rgb(var(--belt-amarela)); }
.belt-laranja { fill: rgb(var(--belt-laranja)); }
.belt-verde { fill: rgb(var(--belt-verde)); }
.belt-roxa { fill: rgb(var(--belt-roxa)); }
.belt-marrom { fill: rgb(var(--belt-marrom)); }
.belt-preta { fill: rgb(var(--belt-preta)); }
.belt-vermelha { fill: rgb(var(--belt-vermelha)); }

/* ── Perguntas frequentes ─────────────────────────────────────────────────── */
.faq {
  max-width: var(--measure);
  margin: 1rem 0 0;
  border-top: 1px solid rgb(var(--line));
}
.faq details {
  border-bottom: 1px solid rgb(var(--line));
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  color: rgb(var(--sumi-muted));
  transition: transform 0.25s var(--out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary h3 {
  margin: 0;
  font: inherit;
  color: inherit;
}
.faq .faq-resp {
  padding: 0 0 1.25rem;
  color: rgb(var(--sumi-soft));
}
.faq .faq-resp p:last-child {
  margin-bottom: 0;
}

/* ── Índice de artigos e páginas relacionadas ─────────────────────────────── */
.lista {
  max-width: var(--measure);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(var(--line));
}
.corpo .lista li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgb(var(--line));
}
.lista a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
}
.lista a strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lista a span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: rgb(var(--sumi-soft));
}
.lista a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Texto legal longo (termos): quebra de linha preservada, medida de leitura. */
.legal {
  max-width: var(--measure);
  white-space: pre-line;
  font-size: 1rem;
  color: rgb(var(--sumi-soft));
}

/* ── Fecho com o CTA ──────────────────────────────────────────────────────── */
.fecho {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgb(var(--line));
  border-radius: 6px;
  background-color: rgb(var(--paper));
  box-shadow: var(--shadow-sheet);
}
.fecho h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.fecho p {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: rgb(var(--sumi-soft));
}
.fecho-acao {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cta-note {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  color: rgb(var(--sumi-soft));
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0 1.5rem;
  border-radius: 4px;
  background-color: rgb(var(--brand-blue));
  color: rgb(var(--brand-blue-ink));
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgb(var(--brand-blue) / 0.2),
    0 10px 24px -12px rgb(var(--brand-blue) / 0.6);
  transition:
    background-color 0.18s var(--out),
    transform 0.18s var(--out);
}
.cta:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}
.cta-arrow {
  font-family: var(--font-mono);
  font-weight: 500;
  transition: transform 0.35s var(--spring);
}
@media (hover: hover) {
  .cta:hover {
    background-color: rgb(var(--brand-blue-deep));
  }
  .cta:hover .cta-arrow {
    transform: translateX(4px);
  }
}

@media (min-width: 768px) {
  .fecho {
    grid-template-columns: 1fr auto;
  }
  .cta {
    min-width: 17rem;
  }
}

/* ── Rodapé ───────────────────────────────────────────────────────────────── */
.rodape {
  border-top: 1px solid rgb(var(--line));
}
.rodape-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) calc(env(safe-area-inset-bottom) + 2rem);
  font-size: 0.9375rem;
}
.rodape h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgb(var(--sumi-muted));
}
.rodape ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rodape li {
  margin: 0 0 0.375rem;
}
.rodape a {
  color: rgb(var(--sumi-soft));
  text-decoration: none;
}
.rodape a:hover {
  color: rgb(var(--sumi));
  text-decoration: underline;
}
.colofao {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--line-soft));
  font-size: 0.8125rem;
  color: rgb(var(--sumi-muted));
}

/* Entrada única e curta: o título e o lead assentam; o resto já está lá. */
@media (prefers-reduced-motion: no-preference) {
  .cabeca h1,
  .cabeca .lead {
    animation: assenta 0.7s var(--out) both;
  }
  .cabeca .lead {
    animation-delay: 0.08s;
  }
}
@keyframes assenta {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}
