/* Manual ExlogWMS — identidade visual de exlogwms.com */
:root {
  --bg: #0b1420;
  --bg2: #0d1a2a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --teal: #2dd4bf;
  --teal2: #14b8a6;
  --teal-soft: rgba(45, 212, 191, 0.06);
  --teal-border: rgba(45, 212, 191, 0.3);
  --text: #ffffff;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --whatsapp: #25d366;
  --radius: 12px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
a:hover { color: #5eead4; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 84px; padding: 0 clamp(16px, 4vw, 64px);
  display: flex; align-items: center; gap: 32px;
  background: rgba(11, 20, 32, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { height: 34px; width: auto; }
.brand-word { white-space: nowrap; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.brand-word .x { display: inline-block; padding: 0 3px; margin: 0 1px; border: 2px solid currentColor; border-radius: 3px; line-height: 0.9; }
.brand-sub { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.12); }
.topnav { display: flex; gap: 28px; font-size: 16px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.spacer { flex-grow: 1; }
.search {
  display: flex; align-items: center; gap: 10px; width: 340px; height: 44px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 8px;
}
.search:focus-within { border-color: var(--teal-border); }
.search input { flex-grow: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.search kbd { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 2px 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: #5eead4; color: var(--bg); }
.btn-whatsapp { background: var(--whatsapp); color: var(--bg); border-radius: 100px; }
.btn-whatsapp:hover { color: var(--bg); filter: brightness(1.08); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 100px;
  background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.35);
  color: var(--teal); font-size: 14px; font-weight: 500;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }

/* ---------- Início ---------- */
/* Abertura centralizada: boas-vindas, busca grande, buscas frequentes e dados do manual */
.hero {
  padding: 80px clamp(16px, 4vw, 64px) 56px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(45, 212, 191, .14), transparent 70%),
    var(--bg2);
  border-bottom: 1px solid var(--card-border);
}
.hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.search-hero {
  width: 100%; max-width: 720px; height: 64px; padding: 0 22px; gap: 14px; margin-top: 8px;
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); border-radius: 100px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.search-hero:focus-within { border-color: var(--teal); }
.search-hero svg { flex-shrink: 0; }
.search-hero input { font-size: 18px; }
.sugestoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sugestao {
  height: 32px; padding: 0 14px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--card-border); background: transparent; color: var(--body); font: inherit; font-size: 14px;
}
.sugestao:hover { border-color: var(--teal-border); color: var(--teal); }
.sugestao:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hero-meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font-size: 14px; }
.hero-meta div { display: flex; gap: 8px; }
.hero-meta dt { color: var(--muted); }
.hero-meta dd { margin: 0; font-weight: 600; }

.section { padding: 56px clamp(16px, 4vw, 64px) 0; }
.section h2 { margin: 0 0 20px; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
/* frase de apoio logo abaixo do título de uma seção da página inicial */
main h2:has(+ .section-sub) { margin-bottom: 6px; }
.section-sub { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.start-grid { display: flex; flex-direction: column; gap: 14px; }
.start-card {
  display: flex; gap: 20px; align-items: center; padding: 20px 24px; text-decoration: none; color: var(--text);
  background: var(--teal-soft); border: 1px solid var(--teal-border); border-radius: var(--radius);
}
.start-card:hover { color: var(--text); border-color: var(--teal); }
.start-card .num { font-weight: 800; font-size: 32px; line-height: 1; color: var(--teal); }
.start-card strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.start-card span { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Faixa de primeiros passos + novidades */
.faixa { margin-top: 64px; padding: 56px clamp(16px, 4vw, 64px); background: var(--bg2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.faixa-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faixa h2 { margin: 0 0 20px; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
/* a busca pode esconder todos os primeiros passos: some o bloco e as novidades ocupam a faixa */
.primeiros:not(:has(.start-card:not([hidden]))) { display: none; }
.faixa-inner:not(:has(.start-card:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }

/* Chamada do suporte no fim da página inicial */
.suporte {
  margin: 56px clamp(16px, 4vw, 64px) 0; padding: 32px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--teal-soft); border: 1px solid var(--teal-border); border-radius: var(--radius);
}
.suporte h2 { margin: 0 0 6px; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.suporte p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.footer-home { margin-top: 56px; justify-content: center; }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 136px; padding: 20px;
  text-decoration: none; color: var(--text);
}
.module-card:hover { color: var(--text); border-color: var(--teal-border); }
.module-card .grupo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.module-card .grupo::after { content: "→"; color: var(--muted); letter-spacing: 0; }
.module-card strong { font-size: 18px; font-weight: 600; }
.module-card span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.module-card.soon { opacity: .55; pointer-events: none; }
.module-card.soon .grupo::after { content: "em breve"; text-transform: none; font-weight: 500; }
.no-results { display: none; color: var(--muted); padding: 24px 0; }
/* card escondido pela busca ou pelo filtro (display:flex dos cards vencia o atributo hidden) */
.module-card[hidden], .start-card[hidden] { display: none; }

/* Filtro por área na página inicial: um bloco com ícone para cada área */
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; margin: 0 0 32px; }
.filtros[hidden] { display: none; }
.filtro {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 132px; padding: 18px 12px; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--card-border); background: var(--card);
  color: var(--body); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.filtro:hover { border-color: var(--teal-border); color: var(--text); transform: translateY(-2px); }
.filtro:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.filtro[aria-pressed="true"] { background: rgba(45, 212, 191, .12); border-color: var(--teal); color: var(--text); }
.filtro-icone {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(45, 212, 191, .1); color: var(--teal);
}
.filtro[aria-pressed="true"] .filtro-icone { background: var(--teal); color: var(--bg); }
.filtro small { font-size: 13px; font-weight: 500; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .filtro { transition: none; } .filtro:hover { transform: none; } }

.news { min-width: 0; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li a { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-bottom: 1px solid var(--card-border); text-decoration: none; color: var(--text); }
.news-list .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 100px; border: 1px solid rgba(45,212,191,.5); color: var(--teal); }
.news-list .tag.novo { background: var(--teal); color: var(--bg); border-color: var(--teal); }
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.news-list .row { display: flex; gap: 10px; align-items: center; }
.news-list .title { font-size: 15px; font-weight: 500; line-height: 1.45; }
.news .more { display: block; padding: 16px 20px; font-size: 14px; font-weight: 600; }

.footer {
  margin-top: 64px; padding: 32px clamp(16px, 4vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  background: var(--bg2); border-top: 1px solid var(--card-border); font-size: 15px; color: var(--muted);
}

/* ---------- Guia ---------- */
.guide-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 240px; min-height: calc(100vh - 84px); }
.sidebar {
  background: var(--bg2); border-right: 1px solid var(--card-border);
  padding: 32px 20px; font-size: 15px;
  position: sticky; top: 84px; height: calc(100vh - 84px); overflow-y: auto;
}
.sidebar h3 { margin: 0; padding: 0 12px 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--body); border: 1px solid transparent; }
.sidebar a:hover { background: var(--card); color: var(--text); }
.sidebar a[aria-current="page"] { color: var(--teal); font-weight: 600; background: rgba(45,212,191,.08); border-color: var(--teal-border); }

.article { padding: 40px clamp(16px, 4vw, 64px) 64px; max-width: 900px; display: flex; flex-direction: column; gap: 36px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--text); }
.article-head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.article-head h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.article-head .lead { margin: 0; font-size: 19px; line-height: 1.7; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.callout { display: flex; gap: 16px; padding: 20px 24px; font-size: 16px; line-height: 1.7; color: var(--body); }
.callout svg { flex-shrink: 0; margin-top: 3px; }
.callout strong { display: block; color: var(--text); margin-bottom: 4px; }
.callout.tip { background: var(--teal-soft); border: 1px solid var(--teal-border); border-radius: var(--radius); }
.callout.tip strong { color: var(--teal); }

.step { display: flex; flex-direction: column; gap: 16px; }
.step-head { display: flex; gap: 16px; align-items: center; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px;
  background: var(--teal); color: var(--bg); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h2 { margin: 0; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.step-body { padding-left: 56px; display: flex; flex-direction: column; gap: 16px; }
.step-body p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); }

/* Print de tela — mostra a imagem; se o arquivo ainda não existir, mostra o marcador */
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-frame { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.shot-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(255,255,255,.06); border-bottom: 1px solid var(--card-border); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.shot-missing {
  display: none; height: 340px; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 16px;
  background-image: repeating-linear-gradient(135deg, rgba(45,212,191,.05) 0 10px, transparent 10px 20px);
}
.shot-missing b { color: var(--text); font-size: 15px; }
.shot-missing code { font-family: var(--mono); font-size: 13px; }
.shot.is-missing img { display: none; }
.shot.is-missing .shot-missing { display: flex; }
.shot figcaption { font-size: 14px; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 16px 20px; font-size: 16px; line-height: 1.7; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--teal); }
.faq p { margin: 8px 0 0; color: var(--body); }

.feedback { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.feedback span { flex-grow: 1; font-weight: 500; }
.btn-outline { height: 44px; padding: 0 22px; border-radius: 8px; background: transparent; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); border: 1px solid rgba(255,255,255,.15); }
.btn-outline.yes { color: var(--teal); border-color: rgba(45,212,191,.5); }
.btn-outline[aria-pressed="true"] { background: rgba(45,212,191,.12); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 20px; text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--teal-border); color: var(--text); }
.pager a:last-child { align-items: flex-end; }
.pager small { font-size: 13px; color: var(--muted); }
.pager strong { font-size: 17px; font-weight: 600; }

.toc { padding: 40px 24px; font-size: 14px; position: sticky; top: 84px; align-self: start; }
.toc h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc a { color: var(--body); text-decoration: none; line-height: 1.45; }
.toc a.active { color: var(--teal); }

/* Lightbox para ampliar prints */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(5,10,16,.9); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; border-radius: 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .guide-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { display: none; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faixa-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 800px) {
  .topnav, .brand-sub, .search kbd { display: none; }
  .topbar { gap: 12px; height: 72px; }
  .search { width: auto; flex-grow: 1; }
  .spacer { display: none; }
  .topbar .btn { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  .search-hero { flex-grow: 0; width: 100%; height: 56px; padding: 0 18px; }
  .search-hero input { font-size: 16px; }
  .filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtro { min-height: 116px; }
  .suporte { padding: 24px; }
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .step-body { padding-left: 0; }
  .shot-missing { height: 220px; }
}

/* Guias ainda não publicados: apagados e sem clique (remova a classe "soon" ao publicar) */
.start-card.soon, .sidebar a.soon, .pager a.soon { opacity: .5; pointer-events: none; }
