/* ============================================================
   FLS — site público (fls.app.br)
   Folha única, todas as páginas e idiomas.

     1. Fonte
     2. Tokens
     3. Reset e base
     4. Tipografia
     5. Estrutura (shell, bandas)
     6. Header e navegação
     7. Home
     8. Documento (páginas de leitura)
     9. Rodapé

   Tema claro, único e deliberado. O app (app.) e o PWA (m.) seguem
   escuros — site e produto são mundos visuais distintos, de propósito.
   ============================================================ */

/* ── 1. Fonte ────────────────────────────────────────────── */
/* Archivo, variável 400–800, auto-hospedada. Sem CDN: nenhuma
   requisição do visitante sai para terceiro. Licença em
   assets/fonts/OFL.txt. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Archivo';
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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;
}

/* ── 2. Tokens ───────────────────────────────────────────── */

:root {
  /* Neutros com viés índigo — escolhidos, não herdados de um cinza puro */
  --paper:    #f7f7fa;
  --raised:   #ffffff;
  --ink:      #12142e;
  --ink-2:    #4a4d6b;
  --ink-3:    #7c7f99;
  --rule:     #e2e3ec;

  /* Banda escura full-bleed */
  --band:     #14173a;
  --band-ink: #f2f3f9;
  --band-2:   #a9adcc;
  --band-rule: rgba(255, 255, 255, .13);

  /* Acentos — o índigo e o esmeralda da marca, calibrados por fundo */
  --accent:         #4338ca;
  --accent-hover:   #372dab;
  --accent-on-dark: #a5b4fc;
  --accent-wash:    #cdcfe9;  /* índigo lavado — marcas estruturais */
  --wash:           #c7c9d6;  /* neutro lavado — numerais em repouso */
  --mint:           #0d9276;
  --mint-wash:      #eef9f5;  /* lavado do turquesa — fundo do detalhe */
  --mint-on-dark:   #6ee7b7;

  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shell:  1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ── 3. Reset e base ─────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; }
ul, ol { list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── 4. Tipografia ───────────────────────────────────────── */

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* A segunda metade do título em cor — é o gesto que dá o impacto do
   hero da referência. O tom é o mesmo do botão logo abaixo, então a
   chamada e a cor da ação conversam. */
.display-1 .tone { color: var(--accent); }

.display-1 {
  font-size: clamp(2.35rem, 6.6vw, 4.7rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.display-2 {
  font-size: clamp(1.55rem, 4.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

/* ── 5. Estrutura ────────────────────────────────────────── */

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

.band {
  background: var(--band);
  color: var(--band-ink);
}

/* Banda clara: separa uma seção do papel sem o peso de outra banda escura. */
.band-light {
  background: var(--raised);
  border-block: 1px solid var(--rule);
}
.band .eyebrow { color: var(--band-2); }
.band a { color: var(--accent-on-dark); }
.band :focus-visible { outline-color: var(--mint-on-dark); }

main { flex: 1; }

.section { padding-block: clamp(56px, 9vw, 104px); }

/* ── 6. Header e navegação ───────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-right: auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark .glyph {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #10b981);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.03em;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: rgba(18, 20, 46, .05); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* Botão único do hero: maior, porque agora carrega sozinho a chamada. */
.btn-lg { font-size: 1.02rem; padding: 14px 26px; border-radius: 12px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--raised); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.band .btn-primary { background: var(--mint-on-dark); color: var(--band); }
.band .btn-primary:hover { background: #93f0cd; color: var(--band); }
.band .btn-ghost { background: transparent; border-color: var(--band-rule); color: var(--band-ink); }
.band .btn-ghost:hover { border-color: var(--band-ink); color: var(--band-ink); }

.lang {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 10px; border-radius: 8px;
}
.lang:hover { color: var(--ink); background: rgba(18, 20, 46, .05); }

/* Menu mobile sem JavaScript: <details> nativo. */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 9px;
  border: 1px solid var(--rule); background: var(--raised);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--ink-3); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; padding: 8px;
  background: var(--raised); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(18, 20, 46, .12);
  display: flex; flex-direction: column; gap: 2px;
}
.menu-panel a { padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; }
.menu-panel a:hover { background: rgba(18, 20, 46, .05); color: var(--ink); }
.menu-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 0; }

@media (max-width: 780px) {
  .nav, .masthead .btn, .masthead .lang { display: none; }
  .menu { display: block; }
}

/* ── 7. Home ─────────────────────────────────────────────── */

.hero { padding-block: clamp(56px, 11vw, 132px) clamp(48px, 8vw, 96px); }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero .lede { margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Grade de módulos, dentro da banda escura */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--band-rule);
  border: 1px solid var(--band-rule);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 44px;
}
.module { background: var(--band); padding: 26px 24px; }
.module .mic { color: var(--mint-on-dark); display: block; margin-bottom: 14px; }
.module h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.module p { color: var(--band-2); font-size: .92rem; margin-top: 5px; }

@media (max-width: 860px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* As cinco crenças.
   Tela larga: faixa de cinco colunas, com o painel ocupando uma linha
   inteira abaixo — explicação em coluna de 200px não se lê.
   Tela estreita: o mesmo HTML flui como acordeão, na ordem do documento.
   Sem JavaScript: rádios escondidos + seletor de irmão. */

.claims {
  display: grid;
  margin-top: 44px;
  border-top: 1px solid var(--rule);
}

/* Escondido, mas ainda focável pelo teclado — as setas navegam entre os
   cinco como em qualquer grupo de rádio. */
.claim-radio {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.claim-tab {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 24px 18px 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: color .15s ease;
}

.claim-tab .n {
  flex: none;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 700; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--wash);
  transition: color .15s ease;
}
.claim-tab .claim {
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  font-weight: 650; line-height: 1.22; letter-spacing: -.022em;
  color: var(--ink); text-wrap: balance;
}
.claim-tab:hover .claim { color: var(--mint); }
.claim-tab:hover .n     { color: var(--mint); }

.claim-panel { display: none; }
/* Encostado na linha das abas e sem canto arredondado: o painel é a
   continuação do bloco, não um cartão solto embaixo dele. */
.claim-panel {
  background: var(--mint-wash);
  padding: clamp(22px, 2.8vw, 30px) clamp(22px, 2.8vw, 32px);
}
.claim-panel p {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.62;
}

/* Uma coluna só, ocupando o painel de ponta a ponta. Quem segura o
   comprimento da linha é o recuo lateral, não um max-width que deixaria
   sobra assimétrica à direita: assim o vazio fica igual dos dois lados e
   a linha para perto dos 80 caracteres. */
@media (min-width: 900px) {
  .claim-panel { padding-inline: clamp(56px, 14vw, 180px); }
}

/* Seleção: cada rádio acende a sua aba e o seu painel. */
#belief-1:checked ~ .claim-panel:nth-of-type(1),
#belief-2:checked ~ .claim-panel:nth-of-type(2),
#belief-3:checked ~ .claim-panel:nth-of-type(3),
#belief-4:checked ~ .claim-panel:nth-of-type(4),
#belief-5:checked ~ .claim-panel:nth-of-type(5) { display: block; }

#belief-1:checked ~ .claim-tab:nth-of-type(1) .n,
#belief-2:checked ~ .claim-tab:nth-of-type(2) .n,
#belief-3:checked ~ .claim-tab:nth-of-type(3) .n,
#belief-4:checked ~ .claim-tab:nth-of-type(4) .n,
#belief-5:checked ~ .claim-tab:nth-of-type(5) .n { color: var(--mint); }

#belief-1:checked ~ .claim-tab:nth-of-type(1) .claim,
#belief-2:checked ~ .claim-tab:nth-of-type(2) .claim,
#belief-3:checked ~ .claim-tab:nth-of-type(3) .claim,
#belief-4:checked ~ .claim-tab:nth-of-type(4) .claim,
#belief-5:checked ~ .claim-tab:nth-of-type(5) .claim { color: var(--mint); }

#belief-1:checked ~ .claim-tab:nth-of-type(1),
#belief-2:checked ~ .claim-tab:nth-of-type(2),
#belief-3:checked ~ .claim-tab:nth-of-type(3),
#belief-4:checked ~ .claim-tab:nth-of-type(4),
#belief-5:checked ~ .claim-tab:nth-of-type(5) { background: var(--mint-wash); }

#belief-1:focus-visible ~ .claim-tab:nth-of-type(1),
#belief-2:focus-visible ~ .claim-tab:nth-of-type(2),
#belief-3:focus-visible ~ .claim-tab:nth-of-type(3),
#belief-4:focus-visible ~ .claim-tab:nth-of-type(4),
#belief-5:focus-visible ~ .claim-tab:nth-of-type(5) {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ── Tela larga: colunas + painel de linha inteira ── */
@media (min-width: 900px) {
  /* O recuo lateral das abas existe para o fundo da escolhida respirar.
     A grade é puxada pelo mesmo tanto, senão o "01" deixa de alinhar com
     o título da seção — o bloco fica um pouco mais largo que o texto, que
     é o comportamento normal de um container. */
  .claims {
    grid-template-columns: repeat(5, 1fr);
    margin-inline: -20px;
  }

  .claim-tab {
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 20px 30px;
    border-right: 1px solid var(--rule);
  }
  .claim-tab:nth-of-type(1) { grid-column: 1; }
  .claim-tab:nth-of-type(2) { grid-column: 2; }
  .claim-tab:nth-of-type(3) { grid-column: 3; }
  .claim-tab:nth-of-type(4) { grid-column: 4; }
  .claim-tab:nth-of-type(5) { grid-column: 5; border-right: 0; }


  /* A aba escolhida e o painel são uma forma só: mesmo fundo, e sem a
     linha de baixo, que separaria o que está ligado. */
  #belief-1:checked ~ .claim-tab:nth-of-type(1),
  #belief-2:checked ~ .claim-tab:nth-of-type(2),
  #belief-3:checked ~ .claim-tab:nth-of-type(3),
  #belief-4:checked ~ .claim-tab:nth-of-type(4),
  #belief-5:checked ~ .claim-tab:nth-of-type(5) {
    border-bottom-color: transparent;
  }

  .claim-panel { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .claim-tab, .claim-tab .n { transition: none; }
}

/* Link discreto para a página completa. */
.section-claims { padding-bottom: clamp(34px, 4vw, 52px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  font-size: .92rem; font-weight: 600;
  color: var(--ink-3);
}
.link-quiet:hover { color: var(--accent); }

/* Linha de privacidade, dentro da banda escura. */
.trust {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--band-rule);
  color: var(--band-2); font-size: .93rem; line-height: 1.5;
  max-width: 62ch;
}
.trust svg { color: var(--mint-on-dark); flex: none; margin-top: 2px; }

/* Declaração de propósito, na banda escura. Corpo de display: é uma
   afirmação para ser lida como manchete, não como parágrafo. */
.mission {
  margin-top: 24px;
  font-size: clamp(1.35rem, 2.9vw, 2.15rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.026em;
  max-width: 44ch;
  text-wrap: pretty;
}
.mission .tone { color: var(--mint-on-dark); }

/* Convite — seção de status, com ilustração. */
.invite { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .invite { grid-template-columns: 1fr 1fr; } }

.invite-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.invite-text .lede { margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--mint-wash); color: var(--mint);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); flex: none;
}

.fineprint { font-size: .88rem; color: var(--ink-3); margin: 0; max-width: 46ch; line-height: 1.55; }
.fineprint a { font-weight: 600; color: var(--accent); }
.fineprint a:hover { text-decoration: underline; text-underline-offset: 3px; }

.invite-art img { width: 100%; height: auto; display: block; }

/* Passos da página de instalação. */
.steps h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700; letter-spacing: -.022em;
  border-top: 1px solid var(--rule);
  padding-top: 26px; margin-top: 48px;
}
.steps ol { counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.steps li {
  counter-increment: step; position: relative; padding-left: 38px;
  color: var(--ink-2); line-height: 1.55;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}
.steps .aside { margin-top: 20px; }
.steps strong { color: var(--ink); font-weight: 600; }

.kbd {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(18, 20, 46, .07); color: var(--ink);
  font-size: .9em; font-weight: 600;
}

/* ── 8. Documento (páginas de leitura) ───────────────────── */
/* Mesma tipografia da home: Archivo em tudo, numerais grandes na fonte
   do texto. A serifada saiu — página e home passam a ser o mesmo sistema
   em vez de dois registros. */

.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 9vw, 104px); }
.doc-col { max-width: 660px; }
.doc-col p { max-width: 64ch; }

.masthead-doc { display: flex; flex-direction: column; gap: 20px; }

/* O h1 vem do Markdown (`# Título`), sem classe — estilizado pelo contexto. */
.doc h1 {
  font-size: clamp(1.85rem, 5.6vw, 3.4rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -.032em;
  text-wrap: balance;
}

.prose { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* Entradas numeradas. O número sai do contador CSS — o Markdown só traz
   os <h2>, então nada dessincroniza quando a lista mudar. */
.entries { counter-reset: entry; margin-top: 8px; }

.entries h2 {
  counter-increment: entry;
  font-size: clamp(1.38rem, 4.2vw, 2.15rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.028em;
  text-wrap: balance; color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin-top: 60px;
}
.entries > h2:first-child { margin-top: 0; }

/* Mesmo numeral da home: grande, na fonte do texto, neutro lavado. */
.entries h2::before {
  content: "0" counter(entry);
  display: block; margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; color: var(--wash);
}

.entries p, .entries ul { margin-top: 18px; }

.turn {
  font-size: 1.06rem; line-height: 1.55; color: var(--ink);
  font-weight: 500;
}
.turn .label {
  display: block; margin-bottom: 8px;
  font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mint); font-weight: 700;
}

.kicker {
  font-size: 1.22rem; font-weight: 700; line-height: 1.3;
  letter-spacing: -.02em; color: var(--ink);
  max-width: 34ch;
}

.conseq { display: flex; flex-direction: column; gap: 14px; }
.conseq li { position: relative; padding-left: 22px; }
.conseq li::before {
  content: ''; position: absolute; left: 0; top: .74em;
  width: 10px; height: 2px; background: var(--mint); border-radius: 2px;
}
.conseq strong { color: var(--ink); font-weight: 600; }

/* Nota honesta: fundo lavado, igual ao painel de detalhe da home. */
.aside {
  background: var(--mint-wash);
  padding: 18px 20px;
  font-size: .95rem; line-height: 1.6; color: var(--ink-2);
  max-width: 58ch;
}
.aside b { color: var(--ink); font-weight: 700; }

.colophon {
  border-top: 1px solid var(--rule);
  padding-top: 30px; margin-top: 60px;
  display: flex; flex-direction: column; align-items: flex-start;
}

/* ── 8b. Guia do usuário ─────────────────────────────────────
   Índice e artigos. O texto vem de docs/help/ e é o MESMO que o app
   mostra na Biblioteca (ADR 0022) — então aqui só pode haver markdown
   comum. Nada de classe combinada com o conteúdo: o artigo tem de
   continuar legível dentro do app, que não carrega esta folha. */

/* A seção é um <details>: colapsa sem JavaScript, como o menu do topo.
   Nasce FECHADA — o índice se lê primeiro como lista de seções, e só depois
   como lista de artigos. Fechadas, elas precisam de menos ar entre si do
   que precisavam abertas. */
.guide-section { margin-top: 34px; }
.guide-section[open] { margin-top: 54px; }
.guide-section:first-of-type { margin-top: 8px; }

.guide-section > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 16px;
}
.guide-section > summary::-webkit-details-marker { display: none; }
.guide-section-head { flex: 1; min-width: 0; }

/* Quantos artigos há dentro — é o que faz a seção fechada valer a pena,
   porque diz se abrir vale o clique. Alinha pela BASE do próprio texto, e
   não pelo meio da caixa: assim a contagem e a seta ficam na linha do
   título, não boiando ao lado do resumo. */
.guide-section-meta {
  flex: none; display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink-3); font-size: .84rem;
  letter-spacing: .04em; white-space: nowrap;
}

/* A seta: dois lados de um quadrado girado, para não precisar de imagem. */
.guide-section-meta::after {
  content: ''; display: block; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.guide-section[open] > summary .guide-section-meta::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.guide-section > summary:hover h2,
.guide-section > summary:hover .guide-section-meta { color: var(--accent); }

.guide-section h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 700; letter-spacing: -.026em; color: var(--ink);
  transition: color .15s ease;
}
.guide-section-sub { color: var(--ink-3); font-size: .97rem; margin-top: 6px; }

/* Recuo: o artigo é filho da seção, e começar na mesma margem dela fazia a
   lista ler como se fossem irmãos do título. O app faz o mesmo, com o ícone
   da tela; aqui não há tela nem biblioteca de ícones, então é só o recuo. */
.guide-list { margin-top: 20px; margin-left: 4px; padding-left: 20px; border-top: 1px solid var(--rule); }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a {
  display: flex; flex-direction: column; gap: 5px;
  padding: 20px 0; color: inherit;
}
.guide-list a:hover .guide-list-title { color: var(--accent); }
.guide-list-title { font-weight: 700; color: var(--ink); font-size: 1.06rem; }
.guide-list-sub { color: var(--ink-2); font-size: .95rem; line-height: 1.55; max-width: 60ch; }

/* Seção anunciada e ainda sem artigo. Fica na página porque o índice é o
   mapa do sistema — mas apagada, e sem a seta, para não prometer um clique
   que não leva a lugar nenhum. */
.guide-section-vazia { display: flex; align-items: baseline; gap: 16px; }
.guide-section-vazia h2 { color: var(--ink-3); }
.guide-section-vazia .guide-section-sub { color: var(--ink-3); opacity: .75; }
.guide-section-vazia .guide-section-meta { font-style: italic; }
.guide-section-vazia .guide-section-meta::after { content: none; }

/* Migalha de volta ao índice. Vive dentro do .eyebrow, então herda o
   versalete; só precisa parar de parecer texto morto. */
.guide-up { color: var(--ink-3); }
.guide-up:hover { color: var(--accent); }

/* Coluna do artigo, mais larga que a de leitura pura: o print de tela
   precisa de largura para ser legível. O texto não alarga junto —
   `.doc-col p` segura o parágrafo em 64ch. */
.guide-col { max-width: 820px; }

/* Ritmo do artigo. O markdown não traz classe nenhuma, então tudo aqui
   é seletor de elemento — de propósito. */
.guide-body { margin-top: 34px; }
.guide-body > * + * { margin-top: 18px; }
.guide-body h2 {
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.026em;
  color: var(--ink);
  margin-top: 46px;
}
.guide-body h3 {
  font-size: 1.06rem; font-weight: 700; color: var(--ink); margin-top: 30px;
}
.guide-body ul, .guide-body ol { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.guide-body li { position: relative; padding-left: 22px; }
.guide-body li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 10px; height: 2px; background: var(--mint); border-radius: 2px;
}

/* O markdown embrulha a imagem sozinha num <p>, e `.doc-col p` limita
   parágrafo a 64ch — o que espremia o print à largura de uma frase.
   Aqui o parágrafo-imagem é liberado; o de texto continua contido. */
.doc-col .guide-body p:has(img) { max-width: 100%; }

/* Print de tela. Borda e fundo porque a captura é clara e a página
   também — sem o filete, a tela do app sangra na do site. */
/* Teto de altura: print em pé (recorte de menu, modal estreito) esticava
   para ~2000px ao ocupar a largura da coluna. Os prints deitados rendem
   perto de 530px, então o teto só morde os verticais. */
.guide-body img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 620px;
  margin-top: 26px;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--raised);
}

/* Citação = nota lateral do artigo (o "os outros tipos são mais diretos").
   Reusa o lavado turquesa do `.aside`, que é o gesto que o site já tem para
   "isto é secundário, leia se interessar". */
.guide-body blockquote {
  margin-top: 22px;
  background: var(--mint-wash);
  border-left: 2px solid var(--mint);
  padding: 16px 18px;
  font-size: .96rem;
}
.guide-body blockquote > * + * { margin-top: 12px; }

.guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; color: var(--ink);
  background: var(--raised); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1px 5px;
}
.guide-body pre {
  margin-top: 18px; overflow-x: auto;
  background: var(--raised); border: 1px solid var(--rule);
  border-radius: 8px; padding: 14px 16px;
}
.guide-body pre code { border: 0; background: none; padding: 0; font-size: .84rem; }

/* Tabela de sintomas ("o que aparece / o que houve"). Rola sozinha em
   tela estreita: encolher a coluna quebraria a frase em uma palavra
   por linha. */
.guide-body table {
  display: block; overflow-x: auto;
  margin-top: 24px; border-collapse: collapse;
  font-size: .95rem; width: 100%;
}
.guide-body th, .guide-body td {
  text-align: left; vertical-align: top;
  padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule);
}
.guide-body th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.guide-body tbody td:first-child { color: var(--ink); }

.guide-foot { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 26px; }

/* ── 9. Rodapé ───────────────────────────────────────────── */

.sitefoot { border-top: 1px solid var(--rule); padding-block: 44px 40px; }
.sitefoot .cols {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 720px) { .sitefoot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .sitefoot .cols { grid-template-columns: 1fr; } }

.sitefoot h4 {
  font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
  margin-bottom: 14px;
}
.sitefoot ul { display: flex; flex-direction: column; gap: 9px; }
.sitefoot ul a { color: var(--ink-2); font-size: .93rem; }
.sitefoot ul a:hover { color: var(--ink); }
.sitefoot .about p { color: var(--ink-3); font-size: .9rem; margin-top: 12px; max-width: 34ch; }
.sitefoot .rule {
  border: 0; border-top: 1px solid var(--rule);
  margin-top: 36px; padding-top: 20px;
}
.sitefoot .fine {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  color: var(--ink-3); font-size: .84rem;
}
