/* Visual do app Torre (../../../../torre/src/renderer/torre.css): moldura clara (#141414) em volta de
   um poço rebaixado (#101010), cards sem borda (#1a1a1a), Inter Tight, pesos 400–600.
   Versão enxuta (24/09/2026): pouco texto por tela; descrições só dentro das páginas.
   Diferença proposital: o texto de leitura é maior e um pouco mais claro que no app, porque
   quem lê aqui é cliente leigo, muitas vezes no celular. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fontes/inter-tight-latin.woff2") format("woff2"); 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: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fontes/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  /* escada de luminância da Torre */
  --well: #101010;
  --pressed: #121212;
  --chrome: #141414;
  --raise: #1a1a1a;
  --raise2: #1f1f1f;
  --hair: rgba(255, 255, 255, .05);
  --inbord: #2a2a2b;
  --inbord2: #3a3a3c;
  --foco: #5a5a5e;

  --ink: #f9f9f9;
  --ink2: #a3a2a2;
  --ink3: #8f8e8f;
  --ink4: #838387;      /* 4,6:1 sobre --raise; o #6f6f73 da Torre ficava em 3,5:1 no texto pequeno */
  --ink5: #3d3d40;
  --texto: #d2d2d3;      /* corpo do artigo: um pouco abaixo do --ink, para ler sem ofuscar */
  --sobre-ink: #101010;  /* texto em cima de um fundo --ink (botão cheio) */

  --ok: #6fbf84;
  --crit: #e08a7e;
  --wait: #d4b04a;
  --info: #8fb8e8;
  --sombra: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px var(--inbord);
  --scrim: rgba(0, 0, 0, .55);

  /* cor do software aberto; o app.js troca por página */
  --sw: #8f8e8f;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px;
  --gut: 28px;
  --r-card: 12px; --r-sm: 6px; --r: 8px; --r-pill: 999px;

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --side: 256px;
  color-scheme: dark;
}

/* Modo claro (25/09/2026). A Torre só tem o escuro; aqui a mesma escada foi invertida: moldura
   levemente acinzentada em volta de um poço branco, cartões um degrau abaixo do branco e uma
   linha fina, porque no claro a diferença de luminância sozinha some. Segue o sistema por padrão
   e o botão do topo fixa a escolha (localStorage "ca-tema"). */
:root[data-tema="claro"] {
  --well: #ffffff;
  --pressed: #efefef;
  --chrome: #f7f7f6;
  --raise: #f4f4f3;
  --raise2: #ececeb;
  --hair: rgba(0, 0, 0, .07);
  --inbord: #dededd;
  --inbord2: #c9c9c8;
  --foco: #9a9a9e;

  --ink: #161618;
  --ink2: #4b4b50;
  --ink3: #5f5f65;
  --ink4: #6e6e73;      /* 4,6:1 sobre --raise (era #86868c, 3,3:1) */
  --ink5: #c2c2c6;
  --texto: #2c2c30;
  --sobre-ink: #ffffff;

  --ok: #2f7d45;
  --crit: #b8483c;
  --wait: #9a7412;
  --info: #2f6db0;
  --sombra: 0 12px 32px rgba(0, 0, 0, .10), 0 0 0 1px var(--inbord);
  --scrim: rgba(0, 0, 0, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--well); -webkit-tap-highlight-color: transparent; }
::selection { background: color-mix(in srgb, var(--ink) 18%, transparent); }
body {
  margin: 0; background: var(--well); color: var(--ink);
  font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
svg { stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.escondido { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: var(--r-sm); }
/* Toque responde na hora: sem a espera de 300 ms do duplo toque. */
a, button, label, summary { touch-action: manipulation; }
main { outline: none; }
@keyframes entrar { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- esqueleto ---------- */

.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.principal { display: flex; flex-direction: column; min-width: 0; }
#app { flex: 1; padding: 28px var(--gut) 56px; width: 100%; max-width: 1320px; margin: 0 auto; animation: entrar .14s ease-out; }

/* Telas internas (24/09/2026): uma coluna só, centralizada, como o início. Largura de leitura
   confortável (~70 caracteres por linha) em vez de conteúdo encostado à esquerda. */
.coluna { max-width: 680px; margin: 24px auto 0; }
.voltar {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 20px -4px; padding: 4px 8px 4px 4px;
  border-radius: var(--r-sm); color: var(--ink3); text-decoration: none; font-size: 13px; transition: color .12s, background-color .12s;
}
.voltar:hover { color: var(--ink); background: var(--chrome); }
.voltar svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- lateral ---------- */

.side {
  position: sticky; top: 0; height: 100vh; background: var(--chrome); border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; min-height: 0; z-index: 30;
}
.marca { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.marca img { border-radius: 6px; }

.search {
  display: flex; align-items: center; gap: var(--s2); height: 34px; margin: 10px 14px 8px; padding: 0 var(--s3);
  background: var(--raise); border-radius: var(--r); color: var(--ink3);
}
.search svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.search input { background: none; border: 0; color: var(--ink); font: inherit; font-size: 13px; width: 100%; outline: none; min-width: 0; }
.search input::placeholder { color: var(--ink3); }
.search input::-webkit-search-cancel-button { display: none; }

.navscroll { overflow-y: auto; flex: 1; padding: 4px 10px 14px; min-height: 0; }
.nav { display: flex; flex-direction: column; }
.nav a, .sys a {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px 0 12px; margin: 1px 0;
  border-radius: var(--r-sm); color: var(--ink3); text-decoration: none; font-size: 13px;
  transition: background-color .12s, color .12s;
}
.nav a:hover, .sys a:hover { background: var(--pressed); color: var(--ink); }
.nav a[aria-current="page"], .sys a[aria-current="page"] { background: var(--raise); color: var(--ink); font-weight: 500; }
.nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; flex: none; }
.sys .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp { display: flex; align-items: center; height: 30px; margin-top: 16px; padding: 0 12px; color: var(--ink4); font-size: 12px; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--sw); }
.sys .dot { margin: 0 4px 0 5px; }

/* ---------- barra de cima e abas ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3);
  height: 52px; padding: 0 var(--gut); border-bottom: 1px solid var(--hair);
  /* Material translúcido, como as barras da Apple: o texto passa por baixo em vez de sumir num corte seco. */
  background: color-mix(in srgb, var(--well) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--well); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.menu { display: none; width: 34px; height: 34px; place-items: center; color: var(--ink3); margin-left: -8px; }
.menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink4); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumb a { color: var(--ink4); text-decoration: none; }
.crumb a:hover { color: var(--ink2); }
.crumb .sep { color: var(--ink5); }
.crumb .atual { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; }
.marca-topo { display: none; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); min-width: 0; }
.marca-topo img { border-radius: 6px; flex: none; }
.acoes-topo { margin-left: auto; display: flex; align-items: center; gap: var(--s2); flex: none; }

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: var(--r); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--inbord); color: var(--ink); background: var(--well);
  transition: background-color .12s, border-color .12s, transform .1s;
}
.btn:hover { background: var(--raise); border-color: var(--inbord2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.btn-fantasma { border-color: transparent; background: var(--raise); color: var(--ink2); border-radius: var(--r-pill); }
.btn-fantasma:hover { color: var(--ink); background: var(--raise2); border-color: transparent; }
.btn-cheio { background: var(--ink); color: var(--sobre-ink); border-color: var(--ink); }
.btn-cheio:hover { background: color-mix(in srgb, var(--ink) 88%, var(--well)); border-color: transparent; }
.btn-grande { height: 44px; font-size: 14px; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-tema { width: 34px; padding: 0; color: var(--ink3); border-color: transparent; background: none; }
.btn-tema:hover { color: var(--ink); background: var(--raise); border-color: transparent; }
.btn-tema svg { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }

/* ---------- cabeçalho de página ---------- */

.cab { margin-bottom: 36px; }
.cab h1 { font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 8px; }
.cab p { color: var(--ink3); margin: 0; font-size: 16px; line-height: 1.55; }
.cab .busca { margin-top: 20px; max-width: none; }
/* Página do software: mesmo molde do início (ícone, nome e busca no centro). */
.cab-centro { text-align: center; margin: 2vh 0 36px; }
.cab-centro .ic-sw { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 16px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--hair); }
.cab-centro .ic-sw svg { width: 24px; height: 24px; }
.cab-centro h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 4px; }
.cab-centro .frase { font-size: 15px; color: var(--ink3); margin: 0 0 24px; }
.abrir-sw { display: none; align-items: center; gap: 6px; margin: -12px auto 22px; padding: 0 16px; height: 40px;
  border-radius: var(--r-pill); background: var(--raise); color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 500; width: max-content; }
.abrir-sw svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.75; }
/* Ícone do software e das categorias (25/09/2026). O dono achou os ícones com "cara de vibecode":
   eram traços desenhados à mão, cada um de um jeito, sobre quadrados pastel tingidos com a cor do
   software. Agora todos vêm do mesmo conjunto (Lucide, traço 1,75) e ficam num encaixe neutro,
   rebaixado como o poço da Torre. A cor do software fica só no ponto da lateral e da trilha. */
.ic {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--well); box-shadow: inset 0 0 0 1px var(--inbord); color: var(--ink2);
}
.ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.ic-sw { width: 40px; height: 40px; border-radius: 11px; color: var(--ink); }
.ic-sw svg { width: 19px; height: 19px; }

/* Início: pergunta e busca centralizadas, com bastante ar em volta. */
.hero { max-width: 640px; margin: 8vh auto 40px; text-align: center; }
.hero h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 24px; }
.hero .busca { margin: 0 auto; }

.busca {
  position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; max-width: 640px;
  background: var(--raise); border-radius: var(--r-card); color: var(--ink3); border: 1px solid transparent;
  transition: border-color .12s;
}
.busca:focus-within { border-color: var(--inbord2); }
.busca svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; flex: none; }
.busca input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
.busca input::placeholder { color: var(--ink4); }
.busca input::-webkit-search-cancel-button { display: none; }

/* Atalho "/" dentro do campo, como na Torre; some quando a pessoa começa a digitar. */
.busca .kbd, .search .kbd {
  flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 500; color: var(--ink4); box-shadow: inset 0 0 0 1px var(--inbord); font-family: var(--font);
}
.busca:focus-within .kbd, .search:focus-within .kbd { display: none; }
@media (hover: none) { .busca .kbd, .search .kbd { display: none; } }

/* Sugestões ao tocar na busca (25/09/2026): com o campo vazio, as dúvidas mais procuradas;
   digitando, os artigos que batem, na hora. É o que mais evita o "não sei o que digitar". */
.busca-box { position: relative; }
.painel-busca {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; text-align: left;
  background: var(--well); border-radius: var(--r-card); box-shadow: var(--sombra); padding: 6px;
  max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  animation: painel .12s cubic-bezier(.2, .8, .2, 1);
  transform-origin: top center;
}
@keyframes painel { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
.painel-busca .rot { display: block; padding: 8px 10px 6px; font-size: 12px; font-weight: 500; color: var(--ink4); }
.painel-busca a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: var(--r);
  color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.35; scroll-margin: 6px;
}
.painel-busca a .t { flex: 1; min-width: 0; }
.painel-busca a .chip { margin-left: auto; font-size: 12px; }
.painel-busca a svg { width: 15px; height: 15px; stroke: var(--ink4); fill: none; stroke-width: 1.75; flex: none; }
.painel-busca a.ativo, .painel-busca a:hover { background: var(--raise); }
.painel-busca a.ativo svg { stroke: var(--ink2); }
.painel-busca mark { background: none; color: inherit; font-weight: 600; }
.painel-busca .todos { color: var(--ink3); font-size: 13.5px; border-top: 1px solid var(--hair); border-radius: 0 0 var(--r) var(--r); margin-top: 4px; }
.painel-busca .nada { margin: 0; padding: 14px 10px; color: var(--ink3); font-size: 14px; }
.painel-busca .nada .link { display: inline; padding: 0; min-height: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink5); text-underline-offset: 3px; }
.painel-busca .nada .link:hover { background: none; }
/* Na lateral o painel fica mais estreito: só o título, sem o nome do software. */
.side .painel-busca { top: calc(100% + 4px); padding: 4px; }
.side .painel-busca a { font-size: 13px; min-height: 34px; padding: 6px 8px; }
.side .painel-busca a .chip { display: none; }
.search { position: relative; }

.secao { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--ink4); margin: 40px 0 12px; padding-left: 4px; }
.secao:first-child { margin-top: 0; }
.secao-centro { text-align: center; padding-left: 0; margin: 0 0 14px; }
/* Cursos na home: mesma grade dos softwares, logo abaixo. */
.secao-centro.secao-cursos { margin-top: 36px; }
/* "vale para todos os cursos": explica por que a categoria da plataforma aparece dentro do curso. */
.secao-nota { color: var(--ink4); opacity: .75; font-weight: 400; margin-left: 6px; }
.lista .t .dot { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* ---------- softwares (início) ---------- */

.grade-sw { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
.sw-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 132px; border-radius: var(--r-card);
  background: var(--raise); color: var(--ink); text-decoration: none; transition: background-color .12s, transform .12s;
}
.sw-card:hover { background: var(--raise2); }
.sw-card:hover .ic, .cat:hover .ic { color: var(--ink); }
.ic { transition: color .12s; }
.sw-card:active { transform: scale(.98); }
.sw-txt { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.sw-txt b { font-size: 15px; font-weight: 600; }
.sw-txt small { font-size: 13px; color: var(--ink3); }

/* ---------- página do software: categorias ---------- */

.cats { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: var(--r-card);
  background: var(--raise); color: var(--ink); text-decoration: none; transition: background-color .12s;
}
.cat:hover { background: var(--raise2); }
.cat-txt { flex: 1; min-width: 0; }
.cat-txt b { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cat .seta { width: 15px; height: 15px; stroke: var(--ink5); fill: none; stroke-width: 2; flex: none; }

/* ---------- lista de artigos (só o título) ---------- */

.lista { background: var(--raise); border-radius: var(--r-card); overflow: hidden; }
.lista a {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 14px 18px; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--hair); transition: background-color .12s;
}
.lista a:first-child { border-top: 0; }
.lista a:hover { background: var(--raise2); }
.lista .t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.lista .seta { width: 15px; height: 15px; stroke: var(--ink5); fill: none; stroke-width: 2; flex: none; }
.lista .t .chip { display: flex; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink4); flex: none; white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; }

/* ---------- guia em vídeo / PDF (uma linha) ---------- */

.guia {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px 12px 12px;
  border-radius: var(--r-card); background: var(--raise); color: var(--ink); text-decoration: none; transition: background-color .12s;
}
.cats + .guia { margin-top: 40px; }
.guia-video { padding: 10px 16px 10px 10px; gap: 14px; }
.mini-capa { position: relative; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; flex: none; background: var(--raise2) center / cover no-repeat; display: grid; place-items: center; }
.mini-play { width: 28px; height: 28px; border-radius: 50%; background: rgba(16, 16, 16, .78); color: #fff; display: grid; place-items: center; }
.mini-play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }
.guia-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guia:hover { background: var(--raise2); }
.guia b { font-weight: 500; font-size: 14px; }
.guia small { color: var(--ink4); font-size: 13px; }
.guia-acao { margin-left: auto; color: var(--ink3); display: grid; place-items: center; }
.guia-acao svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.guia:hover .guia-acao { color: var(--ink); }
.guia .seta { margin-left: auto; width: 15px; height: 15px; stroke: var(--ink5); fill: none; stroke-width: 2; flex: none; }

.rodape-pagina { margin: 48px 0 0; color: var(--ink4); font-size: 13px; text-align: center; }
.rodape-pagina a { color: var(--ink2); text-underline-offset: 3px; text-decoration-color: var(--ink5); }
.rodape-pagina a:hover { color: var(--ink); }

/* ---------- artigo ---------- */

/* Texto para ler com calma (quem chega aqui gasta alguns minutos): corpo maior, entrelinha
   folgada, passos numerados em círculos para a pessoa não se perder no meio do caminho. */
.artigo h1 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.artigo .lead { font-size: 18px; line-height: 1.5; color: var(--ink3); margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.corpo { font-size: 17px; line-height: 1.7; color: var(--texto); }
.corpo p { margin: 0 0 18px; }
.corpo strong { color: var(--ink); font-weight: 600; }
.corpo h3 { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin: 36px 0 12px; }
.corpo ul { padding-left: 22px; margin: 0 0 18px; }
.corpo ul li { margin: 8px 0; padding-left: 4px; }
.corpo li > ul { margin: 8px 0 0; }
.corpo li > ul li { margin: 4px 0; }
.corpo li::marker { color: var(--ink4); }
.corpo ol { list-style: none; counter-reset: passo; padding: 0; margin: 0 0 20px; }
.corpo ol > li { counter-increment: passo; position: relative; padding-left: 40px; margin: 14px 0; }
.corpo ol > li::before {
  content: counter(passo); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--raise2); color: var(--ink); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.corpo a { color: var(--ink); text-decoration-color: var(--ink4); text-underline-offset: 3px; }
.corpo a:hover { text-decoration-color: var(--ink); }
.corpo code { background: var(--raise2); color: var(--ink); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.corpo .dica, .corpo .alerta { background: var(--raise); border-radius: var(--r-card); padding: 16px 18px; margin: 24px 0; color: var(--ink2); font-size: 16px; line-height: 1.6; }
.corpo .dica::before, .corpo .alerta::before { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.corpo .dica::before { content: "Dica"; color: var(--info); }
.corpo .alerta::before { content: "Atenção"; color: var(--wait); }
.corpo .dica > :last-child, .corpo .alerta > :last-child { margin-bottom: 0; }

.ajudou { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ajudou > span { color: var(--ink3); margin-right: 8px; }
.ajudou .btn { border-radius: var(--r-pill); min-width: 64px; }
.ajudou .obrigado { color: var(--ok); }

/* ---------- vídeo ---------- */

.video { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--raise); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; background: #000; }
/* Capa do vídeo: sem ela o player aparece como um retângulo preto antes do play. */
/* Capa: o quadro de abertura do próprio vídeo (midia/capa-<slug>.webp), com o play num canto para
   não cobrir o título do quadro. */
.capa {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 14px;
  background: var(--raise) center / cover no-repeat;
}
.play-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: var(--r-pill);
  background: rgba(16, 16, 16, .86); color: #fff; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.capa .play {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #101010; display: grid; place-items: center;
  transition: transform .2s cubic-bezier(.34, 1.4, .44, 1);
}
.capa:hover .play { transform: scale(1.08); }
.capa .play svg { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }

/* ---------- passo a passo em vídeo (25/09/2026) ----------
   Os prints são quadros do próprio guia em vídeo (midia/telas/). Fundo claro dentro do tema escuro:
   por isso ficam sempre em moldura arredondada, como uma janela. */

.secao-link { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.secao-link a { color: var(--ink3); text-decoration: none; font-weight: 400; font-variant-numeric: tabular-nums; }
.secao-link a:hover { color: var(--ink); }

/* Trilho que rola para o lado: sete passos não cabem em 680px e o corte do último avisa que tem mais. */
.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%);
}
.trilho::-webkit-scrollbar { display: none; }
.passo { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.passo-img {
  position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--raise2) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--hair); transition: transform .2s cubic-bezier(.34, 1.4, .44, 1), filter .12s;
}
.passo:hover .passo-img { filter: brightness(1.06); }
.passo:active .passo-img { transform: scale(.97); }
.passo-n {
  position: absolute; left: 8px; bottom: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: rgba(16, 16, 16, .86); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.passo-nm { font-size: 13.5px; font-weight: 500; line-height: 1.3; padding: 0 2px; }

/* Capítulos embaixo do vídeo. */
.capitulos { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.capitulo {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 10px;
  text-align: left; transition: background-color .12s;
}
.capitulo:hover { background: var(--raise); }
.capitulo-img { width: 72px; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--raise2) center / cover no-repeat; flex: none; }
.capitulo-n { width: 18px; color: var(--ink4); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; text-align: right; }
.capitulo-nm { font-size: 15px; font-weight: 500; flex: 1; min-width: 0; }
.capitulo-t { color: var(--ink4); font-size: 13px; font-variant-numeric: tabular-nums; }
.capitulo.ativo { background: var(--raise); }
.capitulo.ativo .capitulo-n, .capitulo.ativo .capitulo-t { color: var(--sw); }
.capitulos + .guia { margin-top: 20px; }

/* Print no artigo: tocar vira o trecho do vídeo, do mesmo tamanho. */
.tela { margin: 0 0 32px; }
.tela-play, .tela > video {
  position: relative; display: block; width: 100%; aspect-ratio: 1000 / 422; border-radius: var(--r-card); overflow: hidden;
  background: var(--raise2);
}
.tela > video { object-fit: cover; }
.tela-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.tela-play:hover img { filter: brightness(.94); }
.tela-play .play-pill { position: absolute; left: 12px; bottom: 12px; height: 36px; padding: 0 14px 0 4px; font-size: 13px; gap: 8px; }
.tela-play .play { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #101010; display: grid; place-items: center; transition: transform .2s cubic-bezier(.34, 1.4, .44, 1); }
.tela-play:hover .play { transform: scale(1.08); }
.tela-play .play svg { width: 11px; height: 11px; fill: currentColor; stroke: none; margin-left: 2px; }
.tela figcaption { margin-top: 10px; color: var(--ink4); font-size: 13px; text-align: center; }
/* Print de celular (em pé): altura limitada e centralizado, como um aparelho. */
.tela-print img { display: block; margin: 0 auto; max-height: 520px; width: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--hair); }

/* ---------- chamado ---------- */

.chamado form, .sucesso { background: var(--raise); border-radius: var(--r-card); padding: 24px; }
.campo { margin-bottom: 18px; }
.campo label, .rotulo-campo { display: block; font-weight: 500; margin-bottom: 7px; font-size: 13px; color: var(--ink); }
.opcional { color: var(--ink4); font-weight: 400; margin-left: 4px; }
.campo small { display: block; color: var(--ink4); font-size: 12px; margin-top: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--inbord);
  background: var(--well); color: var(--ink); outline: none; transition: border-color .12s;
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--ink4); }
.campo select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f8e8f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--foco); }
.campo .invalido, .campo .invalido:focus { border-color: var(--crit); }
.linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.arquivo { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.arquivo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.arquivo-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--inbord); background: var(--well); font-size: 13px; font-weight: 500; flex: none; transition: background-color .12s;
}
.arquivo:hover .arquivo-btn { background: var(--raise2); }
.arquivo input:focus-visible + .arquivo-btn { outline: 1px solid var(--foco); outline-offset: 2px; }
.arquivo-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.arquivo-nome { color: var(--ink4); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.arquivo-nome.tem { color: var(--ink2); }

.erro-form { color: var(--crit); font-weight: 500; margin: 0 0 16px; }
.sugestoes { margin-top: 10px; background: var(--well); border: 1px solid var(--inbord); border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
.sugestoes strong { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
.sugestoes a { display: block; padding: 3px 0; color: var(--ink2); }
.sugestoes a:hover { color: var(--ink); }

.sucesso { text-align: center; padding: 36px 24px; animation: entrar .14s ease-out; }
.sucesso h2 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.sucesso p { color: var(--ink2); }
.sucesso .check { width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.sucesso .protocolo { font-size: 20px; font-weight: 600; letter-spacing: .06em; background: var(--well); display: inline-block; padding: 8px 16px; border-radius: var(--r); margin: 4px 0 12px; font-variant-numeric: tabular-nums; }

.vazio { text-align: center; color: var(--ink2); padding: 40px 10px; background: var(--raise); border-radius: var(--r-card); }
.vazio h2 { color: var(--ink); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.vazio a:not(.btn) { color: var(--ink); }

.rodape { display: flex; justify-content: space-between; gap: 12px; padding: 14px var(--gut); border-top: 1px solid var(--hair); color: var(--ink4); font-size: 12px; }
.rodape a { color: var(--ink4); }
.rodape a:hover { color: var(--ink2); }

.scrim { display: none; }

/* ---------- setas do trilho ---------- */

.trilho-box { position: relative; }
.trilho-seta {
  position: absolute; top: calc((172px * 10 / 16) / 2 - 18px); z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--well); color: var(--ink); box-shadow: var(--sombra);
  transition: transform .1s, background-color .12s;
}
.trilho-seta.ant { left: -18px; }
.trilho-seta.prox { right: -18px; }
.trilho-seta:hover { background: var(--raise); }
.trilho-seta:active { transform: scale(.94); }
.trilho-seta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
/* No toque o dedo arrasta o trilho; seta ali só atrapalharia. */
@media (hover: none) { .trilho-seta { display: none; } }

/* ---------- filtro da busca ---------- */

.cab-busca { margin-bottom: 16px; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.filtros a {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--r-pill);
  background: var(--raise); color: var(--ink2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background-color .12s, color .12s;
}
.filtros a:hover { background: var(--raise2); color: var(--ink); }
.filtros a[aria-current] { background: var(--ink); color: var(--sobre-ink); }
.filtros .dot { width: 6px; height: 6px; }

/* ---------- chamado: divisor entre o problema e o contato ---------- */

.divisor { border: 0; border-top: 1px solid var(--hair); margin: 26px 0 22px; }

/* ---------- toque ----------
   Resposta no instante do toque (Apple: feedback no pointer-down), e o hover não gruda no celular
   depois que o dedo sai. */

.lista a:active, .cat:active, .guia:active, .capitulo:active, .painel-busca a:active, .nav a:active, .sys a:active { background: var(--raise2); transition: none; }
@media (hover: none) {
  .lista a:hover, .cat:hover, .guia:hover, .sw-card:hover, .capitulo:hover, .filtros a:not([aria-current]):hover { background: var(--raise); }
  .nav a:hover, .sys a:hover { background: none; color: var(--ink3); }
  .nav a[aria-current="page"]:hover, .sys a[aria-current="page"]:hover { background: var(--raise); color: var(--ink); }
}

/* ---------- telas menores ---------- */

@media (max-width: 900px) {
  :root { --gut: 18px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  /* A lateral vira gaveta, como no app da Torre recolhido. */
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .app.menu-aberto .side { transform: none; box-shadow: var(--sombra); }
  .app.menu-aberto .scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 25; }
  .menu { display: grid; }
  .grade-sw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app { padding-top: 22px; }
  /* iPhone dá zoom sozinho em campo com fonte menor que 16 px. */
  .search input, .campo input, .campo select, .campo textarea { font-size: 16px; }
  .search { height: 40px; }
  .nav a, .sys a { height: 44px; font-size: 15px; }
}

@media (max-width: 600px) {
  .acoes-topo .btn-fantasma { display: none; }
  .abrir-sw { display: inline-flex; }
  .crumb { display: none; }
  .marca-topo { display: inline-flex; }
  /* Alvos de toque de 44 px (menu, suporte, Sim/Não). */
  .menu { width: 44px; height: 44px; margin-left: -12px; }
  .btn-topo { width: 44px; height: 44px; padding: 0; margin-right: -6px; }
  .btn-tema { width: 44px; height: 44px; }
  .ajudou .btn { height: 44px; min-width: 76px; }
  .btn-topo .txt { display: none; }
  .crumb .ocultavel { display: none; }
  .linha2 { grid-template-columns: 1fr; }
  .grade-sw { gap: 8px; }
  .sw-card { min-height: 112px; padding: 16px; }
  .hero { margin-top: 4vh; }
  .hero h1 { font-size: 26px; }
  /* Uma coluna vira lista agrupada, como as mais procuradas logo acima (mesma forma, mesma função). */
  .cats { grid-template-columns: 1fr; gap: 0; background: var(--raise); border-radius: var(--r-card); overflow: hidden; }
  .cats .cat { border-radius: 0; border-top: 1px solid var(--hair); min-height: 56px; }
  .cats .cat:first-child { border-top: 0; }
  .cat { padding: 12px; gap: 10px; }
  .coluna { margin-top: 4px; }
  .cab h1, .cab-centro h1 { font-size: 24px; }
  .cab-centro { margin-top: 4px; margin-bottom: 28px; }
  .cab-centro .ic-sw { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 12px; }
  .cab-centro .frase { margin-bottom: 18px; }
  .abrir-sw { margin: -6px auto 18px; }
  .artigo h1 { font-size: 24px; }
  .artigo .lead { font-size: 16px; }
  .corpo { font-size: 16px; }
  .chamado form, .sucesso { padding: 18px; }
  .ajudou > span { width: 100%; }
  .rodape { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- vídeo de boas-vindas (30/09/2026) ---------- */

.rever-video { margin: 40px 0 0; text-align: center; }
.rever-video button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px;
  border: 0; border-radius: var(--r-pill); background: var(--raise); color: var(--ink2);
  font: inherit; font-size: 13px; cursor: pointer; transition: background-color .12s, color .12s;
}
.rever-video button:hover { background: var(--raise2); color: var(--ink); }
.rever-video svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.rever-video + .rodape-pagina { margin-top: 16px; }

.boas-vindas {
  width: min(960px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--inbord); border-radius: var(--r-card);
  background: var(--well); color: var(--ink); overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}
.boas-vindas::backdrop { background: rgba(0, 0, 0, .55); }
.boas-vindas[open] { animation: bv-entra .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes bv-entra { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.boas-vindas video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.bv-barra { display: flex; align-items: center; gap: var(--s2); padding: 12px 12px 12px 18px; }
.bv-barra b { margin-right: auto; font-size: 14px; font-weight: 600; }
.bv-fechar { width: 34px; padding: 0; color: var(--ink3); }
.bv-fechar svg, .bv-som svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .boas-vindas[open] { animation: none; } }
@media (max-width: 600px) { .bv-barra b { display: none; } .bv-som { flex: 1; } }
