:root {
  --brand: #7cb22c;
  --brand-strong: #5f8f1c;
  --brand-soft: #eef6e2;
  --earth: #b27c36;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --text: #1f2a17;
  --muted: #5c6653;
  --border: #e2e8d8;
  --glow: rgba(124, 178, 44, 0.18);
  --logo-plate: transparent;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8fc63d;
    --brand-strong: #a6d65c;
    --brand-soft: #1f2a14;
    --earth: #d19a52;
    --bg: #11150d;
    --surface: #181e12;
    --text: #e9eee1;
    --muted: #a3ad97;
    --border: #2c3622;
    --glow: rgba(143, 198, 61, 0.14);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand: #8fc63d;
  --brand-strong: #a6d65c;
  --brand-soft: #1f2a14;
  --earth: #d19a52;
  --bg: #11150d;
  --surface: #181e12;
  --text: #e9eee1;
  --muted: #a3ad97;
  --border: #2c3622;
  --glow: rgba(143, 198, 61, 0.14);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-strong);
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer {
  margin-top: auto;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Home ---------- */

.home {
  background:
    radial-gradient(60rem 40rem at 50% -10%, var(--glow), transparent 70%),
    var(--bg);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
}

.hero-logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--glow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.cta:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.cta svg {
  width: 18px;
  height: 18px;
}

.footprints {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 22px);
  height: 72px;
  margin-top: 48px;
}

.footprints img {
  width: 22px;
  height: auto;
  opacity: 0;
  animation: step 4.2s ease-in-out infinite;
}

/* Pé direito embaixo, pé esquerdo (espelhado) em cima, caminhando para a direita */
.footprints img:nth-child(odd) {
  transform: translateY(14px) rotate(90deg);
}

.footprints img:nth-child(even) {
  transform: translateY(-14px) rotate(90deg) scaleX(-1);
}

.footprints img:nth-child(1) { animation-delay: 0s; }
.footprints img:nth-child(2) { animation-delay: 0.35s; }
.footprints img:nth-child(3) { animation-delay: 0.7s; }
.footprints img:nth-child(4) { animation-delay: 1.05s; }
.footprints img:nth-child(5) { animation-delay: 1.4s; }
.footprints img:nth-child(6) { animation-delay: 1.75s; }
.footprints img:nth-child(7) { animation-delay: 2.1s; }

@keyframes step {
  0% { opacity: 0; }
  6% { opacity: 1; }
  50% { opacity: 1; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .footprints img {
    animation: none;
    opacity: 0.85;
  }

  .badge-dot {
    animation: none;
  }

  .cta {
    transition: none;
  }
}

/* ---------- Documento ---------- */

.doc-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.doc-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.doc-header img {
  width: 140px;
  height: auto;
}

.doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}

.doc-eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.doc-updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  color: var(--earth);
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--brand);
}

.doc strong {
  font-weight: 650;
}

.summary {
  margin: 0 0 14px;
  padding: 18px 20px 6px;
  border-radius: 12px;
  background: var(--brand-soft);
}

.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc th,
.doc td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.doc th {
  background: var(--brand-soft);
  font-weight: 650;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc td:first-child {
  width: 38%;
}

.contact {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.contact p:last-child {
  margin-bottom: 0;
}
