@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --accent: hsl(83, 100%, 59%);        /* verde-limão Mobilize-C (#A6FF2E) */
  --accent-foreground: hsl(0, 0%, 5%);
  --brand-dark: hsl(95, 70%, 26%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 8%);
  --muted: hsl(83, 20%, 95%);
  --muted-foreground: hsl(83, 10%, 40%);
  --border: hsl(83, 30%, 88%);
  --dark: hsl(0, 0%, 7%);
  --dark-foreground: hsl(0, 0%, 96%);
  --radius: 0.5rem;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  color: var(--dark-foreground);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--accent);
}
.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--dark-foreground);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand img { height: 32px; width: auto; display: block; }
.brand .c { color: var(--accent); }
.site-nav { display: flex; gap: 0.5rem; }
.site-nav a {
  color: var(--dark-foreground);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-nav a.active { background: var(--accent); color: var(--accent-foreground); }

/* ---------- Documento ---------- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

#doc h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid var(--accent);
}
#doc h1 + p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
#doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: 5rem;
}
#doc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
#doc p { margin-bottom: 1rem; }
#doc ul, #doc ol { margin: 0 0 1rem 1.4rem; }
#doc li { margin-bottom: 0.5rem; }
#doc li::marker { color: var(--brand-dark); }
#doc a { color: var(--brand-dark); font-weight: 600; text-decoration-color: var(--accent); }
#doc a:hover { color: var(--foreground); }
#doc strong { font-weight: 700; }
#doc hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
#doc table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
#doc th {
  background: var(--dark);
  color: var(--dark-foreground);
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
#doc td { padding: 0.65rem 0.85rem; border-top: 1px solid var(--border); vertical-align: top; }
#doc tbody tr:nth-child(even) { background: var(--muted); }

.erro {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted-foreground);
}

/* ---------- Landing (index) ---------- */
.landing { text-align: center; padding-top: 4rem; }
.landing h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.landing p { color: var(--muted-foreground); margin-bottom: 2rem; }
.cards { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.card {
  display: block;
  text-decoration: none;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 240px;
  font-weight: 700;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted-foreground); margin-top: 0.35rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-foreground);
  font-size: 0.8rem;
  line-height: 1.6;
}
.site-footer .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  opacity: 0.85;
}
.site-footer strong { color: var(--accent); font-weight: 700; }

@media (max-width: 560px) {
  .site-header .inner { flex-direction: column; padding-bottom: 0.75rem; }
}
