/*
 * Site institucional (SPEC §14). As cores vêm de theme.css (o mesmo arquivo do
 * planner, copiado no build); aqui só a tipografia e o layout do site.
 */

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/urbanist-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --titulo: 'Urbanist', var(--font-sans);
  /* Azul-petróleo dos títulos do PDF: só dentro da folha que imita o plano. */
  --petroleo: #1b7fa6;
  --largura: 1120px;
  --lado: max(var(--gutter), calc((100% - var(--largura)) / 2));
  --topo-alto: 88px;
  --topo-compacto: 64px;
  /* Fundo claro das seções alternadas (o branco é --surface). */
  --claro: var(--bg);
}

html {
  scroll-behavior: smooth;
  /* Os saltos para âncoras sempre chegam com o topo já compacto. */
  scroll-padding-top: calc(var(--topo-compacto) + 1rem);
}

body {
  padding-top: var(--topo-alto);
  font-family: var(--titulo);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

h1,
h2,
h3,
summary,
.botao,
.marca,
.plano-preco,
.folha {
  font-family: var(--titulo);
}

h1,
h2,
h3 {
  color: var(--p48-navy);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--p48-navy);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--p48-navy);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.pular {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 20;
}

.pular:focus {
  top: 0.5rem;
}

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

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.botao--principal {
  background: var(--p48-yellow);
  color: var(--p48-navy-700);
}

.botao--principal:hover {
  background: #ffcf40;
}

.botao--linha {
  background: transparent;
  border-color: var(--p48-navy);
  color: var(--p48-navy);
}

.botao--linha:hover {
  background: var(--p48-navy-100);
}

.botao--texto {
  background: none;
  color: var(--text-muted);
  padding-inline: 0.6em;
}

.botao--pequeno {
  padding: 0.6em 1em;
  font-size: 0.95rem;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--p48-navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* --- Topo --- */

/* Fixo, com a altura cheia reservada no corpo: encolher não desloca a página. */
.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--topo-alto);
  padding: 0 var(--lado);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 0.2s ease, border-color 0.2s ease;
}

.topo--compacto {
  height: var(--topo-compacto);
  border-bottom-color: var(--border);
}

/* Marca a distância a partir da qual o topo encolhe (maior que a diferença de altura). */
.topo-sentinela {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100px;
  pointer-events: none;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--titulo);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--p48-navy);
  text-decoration: none;
  transition: font-size 0.2s ease;
}

.marca img {
  width: 52px;
  height: 52px;
  transition: width 0.2s ease, height 0.2s ease;
}

.topo--compacto .marca {
  font-size: 1.4rem;
}

.topo--compacto .marca img {
  width: 38px;
  height: 38px;
}

.topo-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.topo-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}

.topo-nav a:hover {
  color: var(--p48-navy);
  text-decoration: underline;
}

.so-estreito,
.menu-abrir {
  display: none;
}

.menu-abrir,
.menu-fechar {
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--p48-navy);
  cursor: pointer;
}

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

/* Menu do celular: painel que desce do topo. */
.menu {
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  padding: 0 var(--gutter) 1.5rem;
  border: 0;
  background: var(--surface);
  box-shadow: 0 20px 40px -20px rgb(31 49 87 / 0.45);
}

.menu::backdrop {
  background: rgb(31 49 87 / 0.45);
}

.menu-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topo-compacto);
}

.menu .marca {
  font-size: 1.4rem;
}

.menu .marca img {
  width: 40px;
  height: 40px;
}

.menu-fechar {
  display: inline-flex;
}

.menu nav {
  display: grid;
  margin: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--border);
}

.menu nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  font-family: var(--titulo);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--p48-navy);
  text-decoration: none;
}

.menu > .botao {
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] {
    animation: menu-desce 0.22s ease-out;
  }

  @keyframes menu-desce {
    from {
      transform: translateY(-1.5rem);
      opacity: 0;
    }
  }
}

/* --- Abertura: o texto e a vitrine (recorte do planner + folhas do plano) --- */

/* Título na largura toda; embaixo, o texto à esquerda e a demo à direita. */
.abertura {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    'titulo titulo'
    'texto demo';
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) var(--lado) clamp(3rem, 7vw, 6rem);
  /* A folha de trás, girada, não pode abrir rolagem lateral. */
  overflow-x: clip;
}

.abertura h1 {
  grid-area: titulo;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 24ch;
}

.abertura-texto {
  grid-area: texto;
  padding-top: 1.5rem;
}

/* O slogan abre o texto: puxa a leitura sem mexer no título. Sempre numa linha:
   o tamanho acompanha a largura da coluna (cqi), até 1,45rem. */
.abertura-texto {
  container-type: inline-size;
}

.abertura-slogan {
  margin-bottom: 0.5rem;
  font-size: min(1.45rem, 5.9cqi);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.25;
  color: var(--p48-navy);
}

.abertura-sub {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.abertura-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.abertura-acoes p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* O recorte do planner ao lado da folha, invadindo só a margem dela: o mesmo faturamento grifado nos dois. */
.vitrine {
  grid-area: demo;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: center;
  margin-right: 2rem;
}

.recorte {
  position: relative;
  z-index: 2;
  margin: 0 -1.25rem 0 0;
}

.recorte img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -20px rgb(31 49 87 / 0.55);
}

/* Rótulo "No planner" / "No plano" preso ao canto de cada lado. */
.etiqueta {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: var(--p48-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.etiqueta--folha {
  position: absolute;
  top: -0.9rem;
  right: 1.25rem;
  margin: 0;
}

.folhas {
  position: relative;
  margin: 0;
}

/* Uma página do plano, um pouco mais baixa que o A4 para os números caberem na primeira tela;
   a do sumário fica atrás, girada. */
.folha {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.2;
  padding: 7% 8% 6%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #222;
}

.folha--frente {
  position: relative;
  box-shadow:
    0 1px 2px rgb(28 34 51 / 0.06),
    0 24px 48px -22px rgb(42 65 114 / 0.45);
}

.folha--atras {
  position: absolute;
  inset: 0;
  transform: translate(7%, -5%) rotate(3.5deg);
  box-shadow: 0 12px 30px -20px rgb(42 65 114 / 0.35);
}

.folha-topo {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #d6dbe3;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.folha-titulo {
  margin: 9% 0 5%;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--petroleo);
}

.folha-cap {
  margin-top: 6%;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--petroleo);
}

.folha-secao {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.85rem;
  color: var(--petroleo);
}

/* O texto real do template; se passar da página, some num degradê em vez de cortar a seco. */
.folha-texto {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-size: clamp(0.72rem, 0.95vw, 0.8rem);
  line-height: 1.5;
}

.folha-texto::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2.5rem;
  background: linear-gradient(transparent, var(--surface));
}

.folha-texto p {
  margin-top: 0.55em;
  text-align: justify;
  hyphens: auto;
}

/* Os três números em destaque logo abaixo do capítulo, como o quadro de destaque do PDF. */
.folha-numeros {
  display: grid;
  /* O faturamento vai com centavos (igual ao planner), então a primeira coluna é mais larga. */
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 0.9rem 0 0.4rem;
  padding: 0.7rem 0;
  border-block: 1px solid var(--p48-navy);
}

/* Rótulo em cima, valor embaixo: os três valores na mesma linha mesmo se um rótulo quebrar. */
.folha-numeros > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.folha-numeros dt {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.folha-numeros dd {
  width: fit-content;
  margin: 0.15rem 0 0;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--p48-navy);
  font-variant-numeric: tabular-nums;
}

/* O faturamento grifado, o mesmo do recorte do planner. */
.folha mark {
  padding: 0 0.15em;
  border-radius: 2px;
  background: var(--p48-yellow);
  color: inherit;
  box-decoration-break: clone;
}

.sumario {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.sumario li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.25rem 0;
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
}

.sumario-num {
  min-width: 1.2em;
  font-weight: 700;
  color: var(--petroleo);
}

/* Pontilhado até o número da página, como no sumário do PDF. */
.sumario--paginas .sumario-tit {
  flex: 1;
  display: flex;
  gap: 0.4rem;
}

.sumario--paginas .sumario-tit::after {
  content: '';
  flex: 1;
  border-bottom: 2px dotted #b9c0cc;
  transform: translateY(-0.3em);
}

.sumario-pag {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.folhas figcaption {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.secao {
  padding: clamp(3rem, 7vw, 5.5rem) var(--lado);
}

.secao > h2 {
  max-width: 30ch;
}

.secao-intro {
  margin-top: 1rem;
  max-width: 40em;
  color: var(--text-muted);
}

.secao--branca {
  background: var(--surface);
}

/* Como funciona: é uma sequência de verdade, então vai numerada. */
.passos {
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.passos > li {
  counter-increment: passo;
  padding-top: 1rem;
  border-top: 3px solid var(--p48-navy);
}

.passos > li::before {
  content: counter(passo);
  display: block;
  font-family: var(--titulo);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--p48-navy);
  margin-bottom: 0.75rem;
}

.passos p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* Ilustração de cada passo, numa moldura da mesma altura. */
.passo-quadro {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 27 / 20;
  margin-bottom: 1.25rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

/* 1. As abas do planner na ordem de leitura (1 2 / 3 4 / … — a lista vem de ROTULOS_ABAS), com setas no caminho:
   → no vão entre as colunas e ↙ no cruzamento dos vãos, levando ao começo da linha seguinte. */
.abas {
  --abas-vao: 0.55rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--abas-vao) 1.6rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.abas li {
  position: relative;
}

.abas li:not(:last-child)::after {
  position: absolute;
  color: var(--p48-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.abas li:nth-child(odd):not(:last-child)::after {
  content: '→';
  top: 50%;
  right: -1.3rem;
  transform: translateY(-50%);
}

.abas li:nth-child(even):not(:last-child)::after {
  content: '↙';
  left: -0.8rem;
  bottom: calc(var(--abas-vao) / -2);
  transform: translate(-50%, 50%);
}

.abas li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p48-navy);
}

.aba-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--p48-navy-100);
  font-size: 0.78rem;
}

.aba-final {
  border-color: var(--p48-yellow);
}

.aba-final .aba-num {
  background: var(--p48-yellow);
  color: var(--p48-navy-700);
}

/* 2. A página real do resumo, inclinada, cortada pela moldura. */
.passo-quadro--pagina {
  align-items: flex-start;
  padding: 1.25rem 1.5rem 0;
}

.passo-quadro--pagina img {
  display: block;
  width: 78%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px -18px rgb(42 65 114 / 0.5);
  transform: rotate(-2deg);
}

/* 3. Os botões de baixar, desenhados. */
.passo-quadro--baixar {
  flex-direction: column;
  gap: 0.7rem;
}

.baixar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(15rem, 100%);
  padding: 0.7rem 1rem;
  border: 2px solid var(--p48-navy);
  border-radius: var(--radius);
  background: var(--p48-navy);
  color: #fff;
  font-weight: 700;
}

.baixar--linha {
  background: var(--surface);
  color: var(--p48-navy);
}

.baixar-seta {
  font-size: 1.1rem;
  line-height: 1;
}

.selo-pro {
  margin-left: auto;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: var(--p48-yellow);
  color: var(--p48-navy-700);
  font-size: 0.72rem;
  font-weight: 800;
}

.baixar-preco {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* As contas: a faixa navy no meio da página, com os números do exemplo. */
.secao--contas {
  background: var(--p48-navy);
  color: #dfe5f1;
}

.secao--contas h2 {
  color: #fff;
}

.secao--contas .secao-intro {
  color: #c9d3e6;
}

.secao--contas :focus-visible {
  outline-color: var(--p48-yellow);
}

.contas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 0;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.conta {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--p48-navy);
}

.conta-icone {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--p48-yellow);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.conta p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #c9d3e6;
}

.contas-mais {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #c9d3e6;
}

.contas-mais strong {
  color: var(--p48-yellow);
}

/* --- Canvas: texto ao lado da folha deitada do exemplo. --- */

.canvas {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.canvas-lista {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.2rem;
}

.canvas-lista li + li {
  margin-top: 0.35rem;
}

.canvas-figura img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 18px 40px -22px rgb(42 65 114 / 0.55);
}

.canvas-figura figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Exemplos --- */

.exemplos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

/* A capa dá a altura do card: o título começa no topo dela e o botão fecha na base.
   Por isso ela é alta o bastante para o texto mais longo, e os cards vão para uma coluna
   antes que a largura estreita faça o texto passar da capa. */
.exemplo {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* A capa do PDF do exemplo, que abre as páginas. */
.exemplo-capa {
  align-self: start;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: 0 12px 24px -16px rgb(42 65 114 / 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exemplo-capa:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgb(42 65 114 / 0.55);
}

.exemplo-capa img {
  display: block;
  width: 100%;
  height: auto;
}

.exemplo-corpo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Sem o respiro acima das maiúsculas, o título encosta no topo da capa. */
.exemplo-corpo h3 {
  text-box: trim-start cap alphabetic;
}

.selo-forma {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: var(--p48-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 0.2em;
}

.selo-forma--mei {
  background: var(--p48-yellow);
  color: var(--p48-navy-700);
}

.exemplo-corpo > p:not(.exemplo-links) {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.exemplo dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0.2rem 0 0;
}

.exemplo dt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exemplo dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--p48-navy);
  font-variant-numeric: tabular-nums;
}

/* Botão no pé do card, alinhado com a base da capa. */
.exemplo-links {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* Diálogo com as páginas de um exemplo. */
.dialogo.dialogo--paginas {
  width: min(64rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
}

.paginas-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.paginas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.paginas figure {
  margin: 0;
}

.paginas img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -16px rgb(42 65 114 / 0.5);
}

.paginas figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Planos --- */

.planos {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.plano {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border-radius: 12px;
}

.plano ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

/* ✓ no lugar da bolinha: o item está incluído. */
.plano li {
  position: relative;
  padding-left: 1.6rem;
}

.plano li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--p48-navy);
}

.plano--passe li::before {
  color: var(--p48-yellow);
}

/* Os três arquivos do passe, em destaque. */
.plano--passe .plano-arquivos {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.plano--passe .plano-arquivos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid rgb(255 192 0 / 0.45);
  border-radius: 8px;
  background: rgb(255 192 0 / 0.12);
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  color: #c9d3e6;
}

.plano--passe .plano-arquivos li::before {
  content: none;
}

.plano-arquivos strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--p48-yellow);
}

/* Botões na base dos três cards, na mesma altura. */
.plano .botao {
  margin-top: auto;
}

.plano-preco {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--p48-navy);
}

.plano-preco span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plano--gratis {
  background: var(--surface);
  border: 1px solid var(--border);
}

.plano--passe {
  background: var(--p48-navy);
  color: #fff;
}

.plano--passe h3,
.plano--passe .plano-preco {
  color: #fff;
}

.plano--passe .plano-preco span,
.plano-nota {
  color: #c9d3e6;
}

.plano--passe :focus-visible {
  outline-color: var(--p48-yellow);
}

/* No Passe Pro a nota vai no pé, logo acima do botão. */
.plano-nota {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.95rem;
}

.plano--equipe {
  border: 1px dashed #aab4c6;
}

.plano-nota + .botao {
  margin-top: 0;
}

.plano--equipe .plano-preco {
  font-size: 1.5rem;
}

.plano--equipe > p:not(.plano-preco) {
  color: var(--text-muted);
}

.clientes {
  margin-top: 3.5rem;
}

.clientes h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--p48-navy);
}

.clientes ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.clientes img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  mix-blend-mode: multiply;
}

/* Logos quadrados com muita margem branca no arquivo: maiores para igualar a altura visível. */
.clientes .logo-folgado {
  height: 104px;
  max-width: 156px;
  margin-block: -20px;
}

/* --- Perguntas --- */

.perguntas {
  margin-top: 2rem;
  max-width: 48rem;
  border-top: 1px solid var(--border);
}

.perguntas details {
  border-bottom: 1px solid var(--border);
}

.perguntas summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--p48-navy);
  cursor: pointer;
  list-style: none;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
}

.perguntas details[open] summary::after {
  content: '−';
}

.perguntas details p {
  padding-bottom: 1.25rem;
  max-width: 42em;
  color: var(--text-muted);
}

/* --- Rodapé --- */

.rodape {
  padding: 3rem var(--lado) 2rem;
  background: var(--p48-navy-700);
  color: #dfe5f1;
  font-size: 0.95rem;
}

.rodape a {
  color: #fff;
}

.rodape :focus-visible {
  outline-color: var(--p48-yellow);
}

.rodape-grade {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 2rem;
}

.rodape address {
  font-style: normal;
  line-height: 1.9;
}

.rodape nav {
  line-height: 1.9;
}

.rodape-titulo {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #aeb9d0;
}

.rodape .rodape-marca {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.rodape-icone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rodape-icone svg {
  flex: none;
}

/* O relógio da marca, em branco sobre o navy. */
.rodape-marca img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}

.rodape-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.85rem;
  color: #aeb9d0;
}

/* --- Diálogo da consultoria --- */

.dialogo {
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  padding: 2rem;
  border: 0;
  border-radius: 12px;
  color: var(--text);
}

.dialogo::backdrop {
  background: rgb(31 49 87 / 0.55);
}

.dialogo h2 {
  font-size: 1.6rem;
}

.dialogo > p,
.form > p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b7bfcd;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline-offset: 0;
}

.form [aria-invalid='true'] {
  border-color: var(--danger);
}

.opcional {
  font-weight: 400;
  color: var(--text-muted);
}

.form > .form-erro {
  margin-top: 1rem;
  color: var(--danger);
}

.form-nota {
  font-size: 0.85rem;
}

.escondido {
  position: absolute;
  left: -9999px;
}

.dialogo-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Páginas de documentos (termos, privacidade, cookies) --- */

.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--lado) 4rem;
}

.doc > * {
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}

.doc h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
}

.doc p,
.doc ul {
  margin-top: 0.9rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc-data {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* --- Telas menores --- */

@media (max-width: 1100px) {
  .exemplos {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .planos {
    grid-template-columns: minmax(0, 1fr);
  }

  .abertura {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'titulo'
      'texto'
      'demo';
  }

  .abertura-texto {
    padding-top: 0;
  }

  .vitrine {
    display: block;
    max-width: 30rem;
    margin-right: 0;
  }

  .recorte {
    width: min(20rem, 85%);
    margin: 0 0 2rem;
  }

  .folhas {
    margin-right: 1.5rem;
  }

  /* Empilhado, não há dobra a respeitar: a folha volta ao A4 e mostra mais texto. */
  .folha {
    aspect-ratio: 1 / 1.414;
  }



  .passos {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* Empilhado, primeiro o número, o título e o texto; a ilustração vem depois. */
  .passos > li {
    display: flex;
    flex-direction: column;
  }

  .passo-quadro {
    order: 1;
    margin: 1.25rem 0 0;
  }

  .contas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --topo-alto: var(--topo-compacto);
  }

  .topo {
    gap: 0.75rem;
  }

  .topo .marca {
    font-size: 1.4rem;
  }

  .topo .marca img {
    width: 38px;
    height: 38px;
  }

  .topo-nav,
  .so-largo {
    display: none;
  }

  .so-estreito {
    display: inline;
  }

  .menu-abrir {
    display: inline-flex;
  }

  .topo-cta {
    margin-left: auto;
  }

  .contas,
  .exemplos,
  .paginas,
  .rodape-grade {
    grid-template-columns: minmax(0, 1fr);
  }

  .clientes ul {
    gap: 1.5rem 2rem;
  }

  .clientes img {
    height: 48px;
    max-width: 130px;
  }

  .clientes .logo-folgado {
    height: 78px;
    max-width: 110px;
    margin-block: -15px;
  }

  .dialogo {
    padding: 1.5rem;
  }

  .exemplo {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem;
  }
}

@media (max-width: 340px) {
  .topo .marca span {
    display: none;
  }
}

@media (min-width: 681px) {
  .menu {
    display: none;
  }
}
