/* ================================================================
   RealFrete Design System — ds.css  v1.0
   Shared styles for every page in the portal.
   DO NOT add page-specific styles here.
   ================================================================ */

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --green:       #16a34a;
  --green-light: #dcfce7;
  --green-mid:   #166534;
  --green-dark:  #14532d;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --red:         #dc2626;
  --red-light:   #fee2e2;

  /* Neutral palette */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Radius */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);

  /* Layout */
  --max-w-article: 760px;
  --max-w-wide:   1100px;
  --gutter: 20px;

  /* Type scale */
  --text-xs:   .72rem;
  --text-sm:   .85rem;
  --text-base: .97rem;
  --text-lg:   1.10rem;
  --text-xl:   1.35rem;
}

/* ── ACCESSIBILITY ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gray-900);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 640px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-entrar {
  display: none;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-700);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  transition: border-color .15s, color .15s;
}
@media (min-width: 480px) { .nav-entrar { display: inline-block; } }
.nav-entrar:hover { border-color: var(--green); color: var(--green); }
.nav-cta {
  background: var(--green);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #15803d; }

/* Language toggle (tool pages) */
.lang-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 5px 12px; border-radius: 16px;
  font-size: .75rem; font-weight: 700;
  color: var(--gray-500); transition: all .2s;
}
.lang-btn.active {
  background: #fff; color: var(--gray-900);
  box-shadow: var(--shadow);
}

/* ── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px var(--gutter);
  max-width: var(--max-w-article);
  margin: 0 auto;
  font-size: .80rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── ARTICLE HERO ───────────────────────────────────────────────── */
.article-hero {
  padding: 32px var(--gutter) 28px;
  max-width: var(--max-w-article);
  margin: 0 auto;
}
.article-cat {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.article-hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.article-meta a { color: var(--green); text-decoration: underline; }

/* ── TABLE OF CONTENTS ──────────────────────────────────────────── */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 var(--gutter) 32px;
  max-width: var(--max-w-article);
}
@media (min-width: 800px) { .toc { margin: 0 auto 32px; } }
.toc-title {
  font-size: .80rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.toc li { font-size: .88rem; }
.toc a { color: var(--green); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* ── ARTICLE BODY ───────────────────────────────────────────────── */
.article-content {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-content h2 {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--gray-900);
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--gray-100);
}
.article-content h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--gray-900);
  margin: 28px 0 10px;
}
.article-content p {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-content strong { color: var(--gray-900); }
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.article-content li {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.7;
}
.article-content a { color: var(--green); text-decoration: underline; }
.article-content a:hover { opacity: .85; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-content th {
  background: var(--green);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
}
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--gray-50); }
.article-content blockquote {
  border-left: 4px solid var(--green);
  padding: 14px 20px;
  background: var(--green-light);
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-size: .95rem;
  color: var(--green-dark);
  font-style: italic;
}
.article-content .callout {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.article-content .callout-title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

/* ── AD PLACEHOLDERS ────────────────────────────────────────────── */
.ad-wrap { margin: 40px 0; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  background: var(--gray-50);
  padding: 18px 24px;
  text-align: center;
}
.ad-label  { font-size: .62rem; font-weight: 800; letter-spacing: .12em; color: var(--gray-400); text-transform: uppercase; }
.ad-name   { font-size: .95rem; font-weight: 800; color: var(--gray-700); }
.ad-size   { font-size: .75rem; color: var(--gray-400); }
.ad-placeholder-728 { min-height: 64px; }

/* ── ARTICLE CTA BLOCK ──────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}
.article-cta-label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .80;
  margin-bottom: 8px;
}
.article-cta h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; }
.article-cta p  { font-size: .88rem; opacity: .90; margin-bottom: 18px; }
.article-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--green);
  font-size: .95rem; font-weight: 800;
  padding: 12px 26px; border-radius: var(--radius-sm);
  text-decoration: none; transition: opacity .15s;
}
.article-cta a:hover { opacity: .92; }
.cta-multi { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-multi a {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--green);
  font-size: .88rem; font-weight: 800;
  padding: 10px 20px; border-radius: var(--radius-sm);
  text-decoration: none;
}
.cta-multi a:hover { opacity: .90; }

/* ── FAQ ACCORDION ──────────────────────────────────────────────── */
.faq-section {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.faq-section h2 {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-top: 8px;
  border-top: 2px solid var(--gray-100);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  padding: 15px 20px;
  font-size: .93rem; font-weight: 800;
  color: var(--gray-900);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .15s;
}
.faq-q:hover { color: var(--green); }
.faq-q:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-icon {
  font-size: 1.2rem; flex-shrink: 0;
  transition: transform .2s;
  color: var(--green);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 14px 20px 16px;
  font-size: .90rem; color: var(--gray-700);
  line-height: 1.75;
  border-top: 1px solid var(--gray-200);
}
.faq-item.open .faq-a { display: block; }

/* ── RELATED ARTICLES ───────────────────────────────────────────── */
.related-section {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
}
.related-title {
  font-size: .80rem; font-weight: 800;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 16px;
  border-top: 1px solid var(--gray-100); padding-top: 28px;
}
.related-grid { display: grid; gap: 14px; }
@media (min-width: 480px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px; background: var(--gray-50);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.related-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.related-card-cat {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 6px;
}
.related-card-title {
  font-size: .90rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: 6px; line-height: 1.35;
}
.related-card-link { font-size: .80rem; font-weight: 700; color: var(--green); }

/* ── SITE FOOTER (tool / landing pages — dark 4-column) ────────── */
.site-footer { background: #111827; color: #d1d5db; padding: 48px 20px 0; }
.footer-top {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid #1f2937;
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo  { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-brand .footer-desc  { font-size: .82rem; color: #9ca3af; line-height: 1.7; margin-bottom: 16px; max-width: 280px; }
.footer-lang-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-lang-label  { font-size: .70rem; color: #6b7280; font-weight: 600; }
.footer-lang-btn    { font-size: .78rem; font-weight: 700; color: #9ca3af; padding: 4px 10px; border-radius: 6px; border: 1px solid #374151; transition: all .15s; }
.footer-lang-btn:hover,
.footer-lang-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.footer-col-title   { font-size: .70rem; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; color: #f9fafb; margin-bottom: 14px; }
.footer-links-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links-list li a { font-size: .83rem; color: #9ca3af; transition: color .15s; }
.footer-links-list li a:hover { color: #4ade80; }
.footer-searches    { max-width: var(--max-w-wide); margin: 0 auto; padding: 20px 0; border-bottom: 1px solid #1f2937; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.footer-searches-label { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.footer-searches a  { font-size: .75rem; color: #6b7280; background: #1f2937; padding: 3px 10px; border-radius: 20px; transition: all .15s; }
.footer-searches a:hover { color: #4ade80; background: #166534; }
.footer-bottom {
  max-width: var(--max-w-wide); margin: 0 auto;
  padding: 20px 0 28px;
  display: flex; flex-direction: column; gap: 6px;
}
@media (min-width: 560px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-copy { font-size: .75rem; color: #6b7280; }
.footer-dev  { font-size: .75rem; color: #6b7280; }
.footer-dev a { color: #4ade80; font-weight: 600; }
.footer-dev a:hover { color: #86efac; }

/* ── SIMPLE FOOTER (blog / article pages) ───────────────────────── */
footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--gray-100);
}
.footer-inner { max-width: var(--max-w-article); margin: 0 auto; }
.footer-links {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px;
}
.footer-links a { font-size: .80rem; color: var(--gray-500); font-weight: 600; }
.footer-links a:hover { color: var(--green); }
.footer-copy { text-align: center; font-size: .75rem; color: var(--gray-400); }
.footer-dev  { text-align: center; font-size: .75rem; color: var(--gray-500); margin-top: 10px; }
.footer-dev-btn {
  display: inline-block;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: .78rem;
  padding: 7px 16px; border-radius: var(--radius-sm);
  text-decoration: none; letter-spacing: .02em;
  transition: background .15s;
}
.footer-dev-btn:hover { background: #15803d; }

/* ================================================================
   COMPONENT LIBRARY  —  extensão do Design System
   Todos os valores usam exclusivamente os tokens de :root.
   ================================================================ */

/* ── HERO ───────────────────────────────────────────────────────── */
/*
  Variantes:
    .hero              → fundo verde gradiente (padrão)
    .hero + .hero-dark → fundo verde sólido escuro, texto branco
    .hero + .hero-minimal → fundo cinza claro, borda inferior
  Partes:
    .hero-inner   → container centralizado (max-w-wide)
    .hero-badge   → pílula acima do título
    .hero h1      → título principal
    .hero-sub     → subtítulo
    .hero-stats   → linha de estatísticas
    .hero-actions → linha de botões
*/
.hero {
  background: linear-gradient(135deg, #f0fdf4 0%, var(--green-light) 50%, #bbf7d0 100%);
  padding: 48px var(--gutter) 40px;
  text-align: center;
}
.hero-sm  { padding: 32px var(--gutter) 24px; }
.hero-dark {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.hero-minimal {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.hero-inner { max-width: var(--max-w-wide); margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff;
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.hero-dark .hero-badge   { background: rgba(255,255,255,.20); }
.hero-minimal .hero-badge { background: var(--green-light); color: var(--green-dark); }

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900; line-height: 1.15;
  color: var(--green-dark); margin-bottom: 16px;
}
.hero-dark h1    { color: #fff; }
.hero-minimal h1 { color: var(--gray-900); }

.hero-sub {
  font-size: 1rem; color: var(--gray-700);
  max-width: 540px; margin: 0 auto 28px; line-height: 1.65;
}
.hero-dark .hero-sub    { color: rgba(255,255,255,.85); }
.hero-minimal .hero-sub { color: var(--gray-500); }

.hero-stats {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap; margin-top: 8px;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 1.5rem; font-weight: 900;
  color: var(--green); line-height: 1; margin-bottom: 4px;
}
.hero-dark .hero-stat-value { color: #fff; }
.hero-stat-label {
  font-size: .68rem; color: var(--gray-500);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.hero-dark .hero-stat-label { color: rgba(255,255,255,.70); }

.hero-actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap; margin-top: 28px;
}

/* ── CARDS ──────────────────────────────────────────────────────── */
/*
  Variantes:
    .card              → base (branco, borda sutil, sombra)
    .card-feature      → card com ícone centralizado
    .card-tool         → card de calculadora (borda verde 2px)
    .card-article      → card de listagem de artigo (clicável)
    .card-info         → callout lateral colorido
  Tamanhos: .card-sm / .card-lg
  Partes: .card-icon .card-cat .card-title .card-desc .card-meta
*/
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card-sm { padding: 14px 16px; border-radius: var(--radius-sm); }
.card-lg { padding: 28px 32px; }

.card-feature {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.card-icon  { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
.card-cat   { font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.card-title { font-size: .92rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; line-height: 1.3; }
.card-desc  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.55; }
.card-meta  { font-size: .78rem; color: var(--gray-400); margin-top: 8px; }
.card-link  { font-size: var(--text-sm); font-weight: 700; color: var(--green); margin-top: 10px; display: inline-block; }

.card-tool {
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.card-article {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px; background: #fff;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.card-article:hover { border-color: var(--green); box-shadow: var(--shadow); }
.card-article .card-title { font-size: 1rem; margin-bottom: 8px; }

.card-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}
.card-info.card-warning { border-left-color: var(--amber); }
.card-info.card-danger  { border-left-color: var(--red); }

/* Cards grid helpers */
.cards-grid-2 { display: grid; gap: 16px; }
.cards-grid-3 { display: grid; gap: 16px; }
.cards-grid-4 { display: grid; gap: 14px; }
@media (min-width: 480px) {
  .cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
/*
  Base: .btn
  Variantes: .btn-primary / .btn-secondary / .btn-ghost / .btn-white / .btn-dark
  Tamanhos: .btn-sm / .btn-lg / .btn-block
*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 800;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  white-space: nowrap; letter-spacing: .01em;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn-sm    { padding: 7px 14px; font-size: var(--text-xs); }
.btn-lg    { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary            { background: var(--green);      color: #fff;              border-color: var(--green); }
.btn-primary:hover      { background: #15803d;            border-color: #15803d; }

.btn-secondary          { background: transparent;        color: var(--green);      border-color: var(--green); }
.btn-secondary:hover    { background: var(--green-light); }

.btn-ghost              { background: transparent;        color: var(--gray-700);   border-color: var(--gray-200); }
.btn-ghost:hover        { border-color: var(--green);     color: var(--green); }

.btn-white              { background: #fff;               color: var(--green);      border-color: transparent; }
.btn-white:hover        { opacity: .90; }

.btn-dark               { background: var(--gray-900);    color: #fff;              border-color: var(--gray-900); }
.btn-dark:hover         { background: var(--gray-700); }

/* ── BADGE ──────────────────────────────────────────────────────── */
/*
  Base: .badge
  Variantes: .badge-green / .badge-amber / .badge-red / .badge-gray / .badge-dark
  Tamanhos: .badge-lg
*/
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: var(--gray-100); color: var(--gray-700);
  line-height: 1.4;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-red   { background: var(--red-light);   color: var(--red); }
.badge-gray  { background: var(--gray-100);    color: var(--gray-500); }
.badge-dark  { background: var(--green);        color: #fff; }
.badge-lg    { font-size: var(--text-sm); padding: 5px 14px; }

/* ── ALERT ──────────────────────────────────────────────────────── */
/*
  Base: .alert
  Variantes: .alert-success / .alert-warning / .alert-error / .alert-info
  Partes: .alert-icon  .alert-body  .alert-title
*/
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: var(--text-sm); color: var(--gray-700);
}
.alert-icon  { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.alert-body  { flex: 1; }
.alert-title { font-weight: 800; color: var(--gray-900); margin-bottom: 2px; font-size: var(--text-sm); display: block; }

.alert-success { background: var(--green-light); border-color: var(--green-light); border-left-color: var(--green); color: var(--green-dark); }
.alert-success .alert-title { color: var(--green-dark); }

.alert-warning { background: var(--amber-light); border-color: var(--amber-light); border-left-color: var(--amber); color: #92400e; }
.alert-warning .alert-title { color: #78350f; }

.alert-error   { background: var(--red-light);   border-color: var(--red-light);   border-left-color: var(--red);   color: #991b1b; }
.alert-error .alert-title { color: #7f1d1d; }

.alert-info    { background: #eff6ff; border-color: #eff6ff; border-left-color: #3b82f6; color: #1e40af; }
.alert-info .alert-title { color: #1e3a8a; }

/* ── TABLE ──────────────────────────────────────────────────────── */
/*
  Uso: .table-wrap > table.table
  Variantes: .table-sm (compacta)
*/
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem;
}
.table th {
  background: var(--green); color: #fff;
  padding: 11px 14px; text-align: left;
  font-size: .82rem; font-weight: 700;
  white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.table tr:last-child td { border-bottom: none; }
.table tr:nth-child(even) td { background: var(--gray-50); }
.table-sm th,
.table-sm td { padding: 8px 12px; font-size: .82rem; }

/* ── STATS ──────────────────────────────────────────────────────── */
/*
  .stats            → flex row (wraps automaticamente)
  .stats-grid-N     → grid N colunas
  Partes: .stat / .stat-value / .stat-label / .stat-suffix
*/
.stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.stats-grid-2 { display: grid; gap: 16px; }
.stats-grid-3 { display: grid; gap: 16px; }
@media (min-width: 480px) { .stats-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 480px) { .stats-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .stats-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center; flex: 1; min-width: 120px;
}
.stat-value {
  font-size: 2rem; font-weight: 900;
  color: var(--green); line-height: 1; margin-bottom: 6px;
}
.stat-suffix { font-size: 1.2rem; font-weight: 700; }
.stat-label {
  font-size: var(--text-xs); font-weight: 700;
  color: var(--gray-500); text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-green { border-top: 3px solid var(--green); }
.stat-amber { border-top: 3px solid var(--amber); }
.stat-red   { border-top: 3px solid var(--red); }

/* ── TIMELINE ───────────────────────────────────────────────────── */
/*
  Partes: .timeline > .timeline-item > .timeline-left + .timeline-content
          .timeline-left: .timeline-dot + .timeline-line
          .timeline-content: .timeline-time + .timeline-title + .timeline-desc
*/
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 16px;
  padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-left  { display: flex; flex-direction: column; align-items: center; }
.timeline-dot   {
  width: 12px; height: 12px;
  background: var(--green); border: 2px solid var(--green);
  border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.timeline-line  {
  width: 2px; background: var(--gray-200);
  flex: 1; min-height: 16px; margin: 4px 0 0;
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { min-width: 0; }
.timeline-time  { font-size: var(--text-xs); color: var(--green); font-weight: 700; margin-bottom: 4px; letter-spacing: .04em; }
.timeline-title { font-size: .90rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.timeline-desc  { font-size: var(--text-sm); color: var(--gray-700); line-height: 1.65; }

/* ── STEPS ──────────────────────────────────────────────────────── */
/*
  Vertical (padrão): .steps > .step > .step-number + .step-content
  Horizontal: .steps-h > .step (mesmas partes)
  Partes de conteúdo: .step-title + .step-desc
*/
.steps   { display: flex; flex-direction: column; gap: 24px; }
.step    { display: grid; grid-template-columns: 36px 1fr; gap: 0 16px; align-items: flex-start; }
.step-number {
  width: 36px; height: 36px;
  background: var(--green); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900; flex-shrink: 0;
}
.step-content { padding-top: 6px; }
.step-title { font-size: .92rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.step-desc  { font-size: var(--text-sm); color: var(--gray-700); line-height: 1.65; }

.steps-h { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.steps-h .step         { flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 80px; max-width: 140px; gap: 8px 0; }
.steps-h .step-number  { margin: 0 auto; }
.steps-h .step-content { padding-top: 0; }

/* Steps com conector entre números */
.steps-connected       { position: relative; }
.steps-connected .step { position: relative; }
.steps-connected .step:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 2px; height: calc(100% + 8px);
  background: var(--gray-200);
}

/* ── FAQ (standalone — sem .faq-section wrapper) ────────────────── */
/* Já definido como .faq-section/.faq-list/.faq-item/.faq-q/.faq-a.
   Use .faq como alias de .faq-list para nova markup minimalista. */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq .faq-item  { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq .faq-q     { width: 100%; text-align: left; padding: 15px 20px; font-size: .93rem; font-weight: 800; color: var(--gray-900); background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: color .15s; }
.faq .faq-q:hover { color: var(--green); }
.faq .faq-q:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: var(--radius); }
.faq .faq-icon  { font-size: 1.2rem; flex-shrink: 0; transition: transform .2s; color: var(--green); }
.faq .faq-item.open .faq-icon { transform: rotate(45deg); }
.faq .faq-a     { display: none; padding: 14px 20px 16px; font-size: .90rem; color: var(--gray-700); line-height: 1.75; border-top: 1px solid var(--gray-200); }
.faq .faq-item.open .faq-a { display: block; }

/* ── EMPTY STATE ────────────────────────────────────────────────── */
/*
  Partes: .empty > .empty-icon + .empty-title + .empty-desc + .empty-action
*/
.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
}
.empty-sm   { padding: 28px 20px; }
.empty-icon  { font-size: 2.8rem; margin-bottom: 16px; line-height: 1; }
.empty-title { font-size: 1.05rem; font-weight: 900; color: var(--gray-900); margin-bottom: 8px; }
.empty-desc  { font-size: var(--text-sm); color: var(--gray-500); max-width: 320px; margin: 0 auto 20px; line-height: 1.65; }
.empty-action { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ── CTA SECTION (genérico) ─────────────────────────────────────── */
/*
  Já existe .article-cta para artigos.
  .cta-section → versão genérica para qualquer página.
  Variantes: .cta-light (fundo verde claro)
*/
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center; color: #fff;
}
.cta-section .cta-label {
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .80; margin-bottom: 10px;
}
.cta-section h2,
.cta-section h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.cta-section p  { font-size: .90rem; opacity: .90; margin-bottom: 24px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-section .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta-light {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #86efac;
}
.cta-light .cta-label { opacity: .70; }
.cta-light p { color: var(--green-mid); opacity: 1; }
