/* ─── Theme tokens ─────────────────────────────────────────────
   Três paletas. O tema vive no <html data-theme="...">, gravado em
   localStorage por assets/tema.js (que roda antes da pintura, pra não
   piscar o tema errado). O switcher fica no header de toda página.

   Regra: nenhuma cor nasce fora daqui. Componente que precisa de cor
   pede um token — assim um tema novo é só mais um bloco abaixo.
─────────────────────────────────────────────────────────────── */
:root,
[data-theme="atlas"] {
  --paper:        #fbf7ef;
  --paper-soft:   #f3ede0;
  --ink:          #2a2520;
  --ink-soft:     #5a4f44;
  --ink-mute:     #8a7e72;
  --accent:       #3a4a8c;   /* cobalto */
  --accent-warm:  #b04a2e;   /* tijolo */
  --accent-ochre: #c8a03c;
  --border:       rgba(60, 50, 40, 0.18);

  /* Cores das regiões anatômicas — usadas como --region-color
     em cada página interna pra carregar a cor da home pra dentro. */
  --region-sobre:         #c8412a;
  --region-principios:    #e07820;
  --region-publicacoes:   #d4b020;
  --region-emdr:          #5fa758;
  --region-brainspotting: #3a78c4;
  --region-supervisao:    #4a52b8;
  --region-online:        #7a4ec4;

  /* Grão do papel. No claro é sombra multiplicada; no escuro vira luz. */
  --grain-a:       rgba(40, 30, 20, 0.04);
  --grain-b:       rgba(40, 30, 20, 0.025);
  --grain-blend:   multiply;
  --grain-opacity: 0.7;

  /* Arte das páginas internas e o cérebro da home. */
  --art-filter:   none;
  --atlas-filter: none;

  color-scheme: light;
}

/* ─── Tema "sépia" — a mesma prancha, papel mais velho ────────── */
[data-theme="sepia"] {
  --paper:        #f1e7d3;
  --paper-soft:   #e5d7bd;
  --ink:          #33281c;
  --ink-soft:     #61503a;
  --ink-mute:     #8f7d62;
  --accent:       #3f4a70;   /* tinta ferrogálica */
  --accent-warm:  #9d4a28;
  --accent-ochre: #b8873a;
  --border:       rgba(70, 55, 35, 0.24);

  --region-sobre:         #b23a25;
  --region-principios:    #c8691a;
  --region-publicacoes:   #b8971a;
  --region-emdr:          #4f8f49;
  --region-brainspotting: #33689f;
  --region-supervisao:    #43489a;
  --region-online:        #6a44a8;

  --grain-a:       rgba(70, 50, 25, 0.055);
  --grain-b:       rgba(70, 50, 25, 0.035);
  --grain-blend:   multiply;
  --grain-opacity: 0.85;

  --art-filter:   sepia(0.16) saturate(0.92);
  --atlas-filter: sepia(0.16) saturate(0.92);

  color-scheme: light;
}

/* ─── Tema "noite" — a prancha no negatoscópio ────────────────── */
[data-theme="noite"] {
  --paper:        #17150f;
  --paper-soft:   #211e17;
  --ink:          #ece4d5;
  --ink-soft:     #b5a894;
  --ink-mute:     #877c6d;
  --accent:       #91a5ea;   /* o cobalto, levantado pro escuro */
  --accent-warm:  #e2825f;
  --accent-ochre: #dfbe6a;
  --border:       rgba(236, 228, 213, 0.18);

  --region-sobre:         #e56b52;
  --region-principios:    #f09648;
  --region-publicacoes:   #e6c74e;
  --region-emdr:          #85c47b;
  --region-brainspotting: #6aa3e0;
  --region-supervisao:    #7d84dc;
  --region-online:        #a67ce0;

  --grain-a:       rgba(255, 246, 225, 0.035);
  --grain-b:       rgba(255, 246, 225, 0.022);
  --grain-blend:   screen;
  --grain-opacity: 0.6;

  --art-filter:   brightness(0.9) saturate(0.95);
  --atlas-filter: brightness(1.08) contrast(0.94);

  color-scheme: dark;
}

/* Só pra leitor de tela e pro buscador: sai do desenho sem sair da página.
   Não usar display:none nem visibility:hidden — os dois escondem também de
   quem navega por leitor, que é exatamente quem precisa ler isto. */
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces', 'EB Garamond', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Subtle paper grain — fixo sobre toda página */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(var(--grain-a) 1px, transparent 1.2px),
    radial-gradient(var(--grain-b) 1px, transparent 1.2px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: var(--grain-blend);
  opacity: var(--grain-opacity);
}

/* ─── Layout: home (canvas: ocupa exatamente a viewport, sem scroll) ── */
.home {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 56px 22px;
  gap: 24px;
}

/* ─── Layout: páginas internas (scroll natural) ─────────────── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 56px 22px;
  gap: 32px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 28px;
  height: 28px;
  opacity: 0.92;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a {
  transition: color 0.15s;
  white-space: nowrap;
  position: relative;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent); outline: none; }
.nav a.is-active {
  color: var(--region-color, var(--ink));
}
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ─── Switcher de tema ───────────────────────────────────────────
   Três amostras de papel, sem legenda: a escolha se lê pela cor.
   O nome vai no aria-label/title, pra quem navega por leitor de tela. */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--swatch-paper);
  transition: transform 0.15s, box-shadow 0.15s;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
/* Só a escolhida ganha o ponto. As outras ficam lisas — o papel é a amostra. */
.theme-swatch[aria-pressed="true"] {
  box-shadow: inset 0 0 0 4px var(--swatch-paper), inset 0 0 0 8px var(--swatch-ink);
  border-color: var(--ink-mute);
}
.theme-swatch[data-set="atlas"] { --swatch-paper: #fbf7ef; --swatch-ink: #3a4a8c; }
.theme-swatch[data-set="sepia"] { --swatch-paper: #f1e7d3; --swatch-ink: #9d4a28; }
.theme-swatch[data-set="noite"] { --swatch-paper: #17150f; --swatch-ink: #91a5ea; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cta-agende {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}
.cta-agende:hover,
.cta-agende:focus-visible { background: var(--accent); outline: none; }
.cta-agende:active { transform: translateY(1px); }

/* ─── Page spread (metade imagem / metade texto) ────────────── */
.page-spread {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: start;
  flex: 1;
}

.page-image {
  position: sticky;
  top: 26px;
  width: 100%;
  max-height: calc(100vh - 180px);
}
/* Sem aspect-ratio forçado: as artes são quadradas (1024×1024), e a moldura
   2:3 com object-fit:cover decepava um terço da largura de cada uma. A
   moldura agora segue a proporção da imagem, e nada é cortado. */
.page-img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--art-filter);
  max-height: calc(100vh - 180px);
  object-fit: contain;
  object-position: center top;
  /* Sem background: quando a caixa do <img> fica maior que a arte (a altura
     trava no teto da viewport e a largura segue a coluna), o letterbox deve
     mostrar o fundo do site — um background aqui pintava uma moldura. */
}

/* ─── Page content ───────────────────────────────────────────── */
.page-content {
  padding-top: 8px;
  max-width: 64ch;
}

.page-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--region-color, var(--accent));
  margin-bottom: 20px;
  font-weight: 600;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 144;
}
.page-title em {
  font-style: italic;
  color: var(--region-color, var(--accent));
}

.page-prose {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.page-prose > * + * { margin-top: 18px; }
.page-prose h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 4px;
}
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--region-color, var(--accent));
  margin-top: 28px;
  margin-bottom: 4px;
}
.page-prose ul, .page-prose ol {
  padding-left: 22px;
}
.page-prose li {
  margin-bottom: 8px;
}
.page-prose a {
  color: var(--region-color, var(--accent));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-thickness 0.15s;
}
.page-prose a:hover {
  text-decoration-thickness: 2px;
}
.page-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.page-prose blockquote {
  border-left: 2px solid var(--region-color, var(--accent));
  padding-left: 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink);
}
.page-prose .lead {
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 28px;
}
.page-prose .meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Lista de publicações (simples, numerada) */
.papers-list {
  list-style: none;
  padding-left: 0;
  counter-reset: paper;
}
.papers-list li {
  counter-increment: paper;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.5;
}
.papers-list li::before {
  content: counter(paper, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--region-color, var(--accent));
}
.papers-list li:last-child {
  border-bottom: none;
}

/* Seções com label/sublabel (formação, indicações, etc) */
.spec-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px 28px;
  margin-top: 28px;
}
.spec-grid dt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--region-color, var(--accent));
  padding-top: 4px;
  font-weight: 600;
}
.spec-grid dd {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Vídeos embed */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-soft);
  border: 1px solid var(--border);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contato — bloco simples */
.contact-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
}
.contact-block a {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-block a:hover {
  color: var(--region-color, var(--accent));
  border-color: currentColor;
}
.contact-block .label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .home, .page { padding: 18px 20px; gap: 22px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 18px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .theme-switch { align-self: flex-start; }

  .page-spread {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .page-image {
    position: static;
    max-height: none;
  }
  .page-content { padding-top: 0; max-width: none; }
  .page-title { font-size: 36px; }
  .page-prose { font-size: 16px; }
  .page-prose h2 { font-size: 22px; }
  .page-prose .lead { font-size: 18px; }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .spec-grid dd { margin-bottom: 16px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 9px;
    gap: 14px;
  }
  .cta-agende { width: 100%; padding: 14px; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Folheto da supervisão (apresentação em slides) ─────────────── */
.folheto-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 28px 0 34px;
}
/* `.folheto-cta` no seletor nao e enfeite: este bloco vive dentro de
   `.page-prose`, e `.page-prose a` (0,1,1) ganharia de `.folheto-open` (0,1,0)
   — o link ficaria com texto da cor do proprio fundo, invisivel. Ja aconteceu. */
.folheto-cta .folheto-open,
.folheto-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--region-color, var(--accent));
  color: var(--paper);
  text-decoration: none;
  border: none;
  padding: 13px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.folheto-cta .folheto-open:hover,
.folheto-cta .folheto-open:focus-visible,
.folheto-open:hover,
.folheto-open:focus-visible { background: var(--ink); outline: none; }
.folheto-open:active { transform: translateY(1px); }
.folheto-open .icon { width: 18px; height: 18px; flex: none; }

.folheto-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-soft) 35%, transparent);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.folheto-wa .icon { width: 16px; height: 16px; flex: none; }
.folheto-wa:hover,
.folheto-wa:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }

.folheto-modal[hidden] { display: none; }
.folheto-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.folheto-stage {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.folheto-slide {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}
.folheto-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
}
.folheto-nav:hover,
.folheto-nav:focus-visible { background: var(--paper); outline: none; }
.folheto-nav:active { transform: translateY(-50%) scale(0.94); }
.folheto-nav[disabled] { opacity: 0.28; cursor: default; box-shadow: none; }
.folheto-prev { left: -12px; }
.folheto-next { right: -12px; }
.folheto-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper);
  opacity: 0.9;
}
.folheto-close {
  position: fixed;
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.folheto-close:hover,
.folheto-close:focus-visible { background: color-mix(in srgb, var(--paper) 30%, transparent); outline: none; }

@media (max-width: 640px) {
  .folheto-prev { left: 2px; }
  .folheto-next { right: 2px; }
  .folheto-nav { width: 44px; height: 44px; font-size: 22px; }
}

/* Blocos estruturados do livreto — números, listas, preço, FAQ. */
.lv-selo {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--region-color, var(--accent)) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  margin-top: 8px !important;
}
.lv-nota {
  font-style: italic;
  font-size: 15px !important;
  color: var(--ink-mute) !important;
  margin-top: 18px !important;
}
.lv-lista { list-style: none; padding: 0; margin: 0 0 4px; }
.lv-lista li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.lv-lista li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--region-color, var(--accent));
  font-size: 18px;
}
.lv-frentes { list-style: none; padding: 0; margin: 0; counter-reset: frente; }
.lv-frentes li {
  counter-increment: frente;
  position: relative;
  padding: 13px 0 13px 48px;
  border-bottom: 1px solid var(--border);
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.45;
}
.lv-frentes li:last-child { border-bottom: none; }
.lv-frentes li::before {
  content: counter(frente, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--region-color, var(--accent));
}
.lv-tempos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 6px;
}
.lv-tempo-h {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  color: var(--region-color, var(--accent));
}
.lv-tempos h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 10px 0 12px;
}
.lv-tempos p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 11px; }
.lv-preco { margin-bottom: 6px; }
.lv-valor { margin: 4px 0 10px !important; }
.lv-valor b {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.lv-valor span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--ink-mute);
  margin-left: 6px;
}
.lv-sub {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  margin: 30px 0 12px;
}
.lv-passos { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: passo; }
.lv-passos li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 20px 48px;
  border-left: 1px solid var(--border);
  margin-left: 11px;
}
.lv-passos li:last-child { border-left-color: transparent; padding-bottom: 6px; }
.lv-passos li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute;
  left: -12px;
  top: 0;
  width: 23px;
  text-align: center;
  background: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--region-color, var(--accent));
}
.lv-passos h3 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.lv-passos p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.lv-faq { margin-top: 4px; }
.lv-faq details { border-bottom: 1px solid var(--border); }
.lv-faq summary {
  cursor: pointer;
  padding: 16px 26px 16px 0;
  position: relative;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}
.lv-faq summary::-webkit-details-marker { display: none; }
.lv-faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 14px;
  font-size: 20px;
  color: var(--region-color, var(--accent));
}
.lv-faq details[open] summary::after { content: '–'; }
.lv-faq summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.lv-faq details p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.lv-contato { list-style: none; padding: 0; margin: 18px 0 0; }
.lv-contato li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.lv-contato span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  min-width: 8ch;
}
.lv-contato a {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--region-color, var(--accent));
}
@media (max-width: 880px) {
  .lv-tempos { grid-template-columns: 1fr; gap: 26px; }
  .lv-valor b { font-size: 40px; }
}

/* ─── Leitor do livreto ──────────────────────────────────────────
   O folheto é um objeto desenhado, de 20 páginas. Lê-se folheando, não
   rolando — e foi por não entender isso que a primeira versão virou uma
   página comprida que ninguém leria.

   Aqui a página inteira é o leitor: sem cabeçalho do site, sem rodapé, sem
   scroll. Dois trilhos na mesma moldura — as imagens, que são o livreto como
   ele foi desenhado, e o texto, que é a alternativa para leitor de tela,
   buscador e celular. Mesma navegação, mesmo contador, mesmo lugar: trocar de
   trilho não perde a página. */
body.leitor { overflow: hidden; }
.lr {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
}

.lr-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lr-sair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.lr-sair svg { width: 15px; height: 15px; flex: none; }
.lr-sair:hover, .lr-sair:focus-visible { color: var(--region-supervisao); outline: none; }

.lr-modos {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lr-modos button {
  padding: 8px 18px;
  font: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: none;
  transition: background 0.15s, color 0.15s;
}
.lr-modos button[aria-pressed="true"] {
  background: var(--region-supervisao);
  color: var(--paper);
}
.lr-modos button:focus-visible { outline: 1px solid var(--accent); outline-offset: -3px; }

.lr-ferramentas { display: flex; align-items: center; gap: 18px; }
.lr-ferramentas button {
  font: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.lr-ferramentas button:hover { color: var(--region-supervisao); }
.lr-conta { color: var(--ink-mute); white-space: nowrap; }
.lr-conta b { color: var(--ink); font-weight: 600; }

.lr-sumario {
  position: absolute;
  top: 52px;
  right: 22px;
  z-index: 5;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  padding: 10px;
  min-width: 280px;
}
.lr-sumario ol { list-style: none; margin: 0; padding: 0; counter-reset: pg; }
.lr-sumario button {
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 3px;
}
.lr-sumario button:hover,
.lr-sumario button:focus-visible {
  background: var(--paper-soft);
  color: var(--ink);
  outline: none;
}
.lr-sumario button span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--region-supervisao);
  min-width: 3.4em;
  flex: none;
}

.lr-palco {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
/* Só o trilho ativo ocupa o palco. */
.lr[data-modo="imagens"] .lr-pagina { display: none; }
.lr[data-modo="texto"] .lr-figura { display: none; }
.lr-figura { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lr-figura img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: var(--art-filter);
}

.lr-pagina { width: 100%; max-width: 68ch; margin: auto; }
.lr-pagina[hidden] { display: none; }
.lr-texto h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 20px;
}
.lr-texto p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 15px;
}
.lr-texto .lead { font-size: 19px; color: var(--ink); }
.lr-texto blockquote {
  border-left: 2px solid var(--region-supervisao);
  padding-left: 20px;
  margin: 22px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}


.lr-barra {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
}
.lr-seta {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.lr-seta svg { width: 18px; height: 18px; }
.lr-seta:hover:not(:disabled) { background: var(--region-supervisao); color: var(--paper); }
.lr-seta:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.lr-seta:disabled { opacity: 0.28; cursor: default; }
.lr-progresso { flex: 1; height: 2px; background: var(--border); }
.lr-progresso span {
  display: block;
  height: 100%;
  background: var(--region-supervisao);
  transition: width 0.2s;
}
.lr-cta {
  flex: none;
  background: var(--region-supervisao);
  color: var(--paper);
  padding: 11px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.lr-cta:hover, .lr-cta:focus-visible { background: var(--ink); outline: none; }

@media (max-width: 720px) {
  .lr-topo { flex-wrap: wrap; gap: 12px 14px; padding: 12px 16px; }
  .lr-sair span { display: none; }
  .lr-sumario { left: 16px; right: 16px; min-width: 0; }
  .lr-palco { padding: 14px; }
  .lr-figura img { max-height: calc(100vh - 190px); }
  .lr-texto h2 { font-size: 24px; }
  .lr-cta { display: none; }
  .lr-barra { padding: 10px 16px; }
}

/* Blocos de conteúdo que o modo texto do leitor reaproveita. Estavam no
   artigo /livreto e sobreviveram à sua remoção — o conteúdo continua o mesmo,
   só mudou a moldura em volta dele. */
.lv-kicker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--region-supervisao);
  margin-bottom: 14px;
}
.lv-rotulo {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute) !important;
  margin: 22px 0 6px !important;
}
.lv-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
}
.lv-stats b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--region-supervisao);
}
.lv-stats span {
  display: block;
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: 18ch;
}
.lv-defs { margin: 20px 0 0; }
.lv-defs dt {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
}
.lv-defs dd {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
