/* ==========================================================================
   TeamTrener — Guia AnyDesk
   Design system inspirado na identidade visual oficial do AnyDesk
   Paleta: #EF443B (carmim) / #000000 / cinzas neutros
   Sem webfonts externas -> LCP e CLS otimizados (Core Web Vitals)
   ========================================================================== */

:root {
  --red: #ef443b;          /* cor de marca — usada em ícones, bordas e destaques */
  --red-btn: #d3352d;      /* fundo de botão — contraste 4.86:1 com branco (WCAG AA) */
  --red-dark: #b82820;     /* hover */
  --red-soft: #fdecea;
  --ink: #0f1115;
  --ink-2: #2b2f36;
  --gray: #5b6270;
  --gray-2: #6b7280;   /* 4.83:1 com branco — WCAG AA para texto normal */
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --green: #12855a;
  --blue: #1a5fb4;
  --amber: #8a5a00;
  --amber-bg: #fff8e6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .12);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.4rem); margin-top: 1.8em; }
h4 { font-size: 1.06rem; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
strong { color: var(--ink); font-weight: 650; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 800px; }

/* ---------- Faixa de aviso (disclaimer topo) ---------- */
.topbar {
  background: var(--ink);
  color: #d7dae0;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 0;
  text-align: center;
}
.topbar a { color: #fff; text-decoration: underline; }
.topbar strong { color: #fff; }

/* ---------- Cabeçalho ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-2);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-alt); color: var(--red-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding: 8px 0 14px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 11px 6px; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  background: var(--red-btn);
  color: #fff !important;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid var(--red-btn);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  text-align: center;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff !important; }
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }
.btn-outline {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-outline:hover { background: var(--bg-alt); border-color: var(--gray-2); color: var(--ink) !important; }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero-kicker {
  font-size: 15px;
  font-weight: 650;
  color: var(--gray);
  margin: -.2em 0 1em;
  letter-spacing: .01em;
}
.hero .lead {
  font-size: 1.16rem;
  color: var(--gray);
  margin-bottom: 1.5em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 880px) {
  .hero { padding: 34px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Cartão de download ---------- */
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.dl-card h2 { margin: 0 0 4px; font-size: 1.22rem; }
.dl-card .sub { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.dl-specs {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14.5px;
}
.dl-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  color: var(--gray);
}
.dl-specs li b { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Seções ---------- */
section { padding: 8px 0; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); padding: 44px 0; margin: 48px 0; }
.band > .wrap > h2:first-child { margin-top: 0; }

/* ---------- Grade de cartões ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); border-color: #cfd4dd; color: inherit; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; font-size: 15px; color: var(--gray); }
.card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card .more { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--red-dark); }

/* ---------- Passos ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0; }
.steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 56px;
  margin: 0;
  border-left: 2px solid var(--line);
  margin-left: 17px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: -18px; top: -2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red-btn);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps > li > h3, .steps > li > strong { display: block; margin: 2px 0 6px; color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.steps > li > p:last-child { margin-bottom: 0; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: #fff; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }

/* ---------- Caixas de destaque ---------- */
.note, .warn, .tip {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 15.5px;
  border-left: 4px solid;
}
.note { background: #f0f5ff; border-color: var(--blue); color: #17325c; }
.warn { background: var(--amber-bg); border-color: #e0a020; color: #6b4700; }
.tip { background: #edfaf3; border-color: var(--green); color: #0b4d34; }
.note p:last-child, .warn p:last-child, .tip p:last-child { margin-bottom: 0; }
.note strong, .warn strong, .tip strong { color: inherit; }

/* ---------- FAQ ---------- */
.faq { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 16px 46px 16px 18px;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  position: relative;
  font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { background: var(--bg-alt); }
.faq .faq-body { padding: 4px 18px 18px; font-size: 15.5px; color: var(--gray); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13.5px; color: var(--gray); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Índice do artigo ---------- */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0 34px;
}
.toc h2 { margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15.5px; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Artigo ---------- */
.article { padding: 26px 0 10px; }
.article-meta { font-size: 14px; color: var(--gray); margin: -.4em 0 1.6em; }
.article .lead { font-size: 1.14rem; color: var(--gray); }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--ink);
  color: #d7dae0;
  border-radius: var(--radius);
  padding: 34px;
  margin: 42px 0;
  text-align: center;
}
.cta-final h2 { color: #fff; margin: 0 0 10px; }
.cta-final p { max-width: 620px; margin: 0 auto 20px; color: #aab1bd; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 46px 0 26px;
  font-size: 15px;
  color: var(--gray);
  margin-top: 56px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.65;
}
.footer-bottom p { margin-bottom: .6em; }

/* ---------- Banner de cookies ---------- */
#cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  max-width: 940px;
  margin-inline: auto;
  display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner p { font-size: 14.5px; color: var(--gray); margin: 0 0 14px; }
#cookie-banner strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 15px; }
#cookie-banner .cookie-more a { color: var(--blue); }

@media (max-width: 640px) {
  #cookie-banner {
    left: 10px; right: 10px; bottom: 10px;
    padding: 14px 16px;
  }
  #cookie-banner strong { font-size: 15px; margin-bottom: 4px; }
  #cookie-banner p { font-size: 13.5px; line-height: 1.5; margin-bottom: 11px; }
  #cookie-banner .cookie-more { display: none; }
  .cookie-actions { gap: 8px; }
  .cookie-actions .btn { padding: 9px 14px; font-size: 14px; flex: 1 1 auto; }
  .cookie-actions .cookie-manage { flex: 1 1 100%; }
}

/* ---------- Utilitários ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.tag {
  display: inline-block;
  background: var(--red-soft);
  color: #9d211a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 18px; z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.pill-list li { margin: 0; }
.pill-list a {
  display: block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14.5px;
  background: #fff;
  color: var(--ink-2);
  text-decoration: none;
}
.pill-list a:hover { border-color: var(--red); color: var(--red); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 18px; height: 10px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

@media print {
  .topbar, .site-header, #cookie-banner, .cta-final, .site-footer { display: none; }
}
