/* ============================================================
   Dados Jah — Design System Compartilhado (v2)
   Extraído do index.html original e expandido para multipágina
   ============================================================ */

/* --- Ícones Lucide --- */
svg.lucide,
.lucide {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  stroke-width: 2.2;
}

.icon-circle .lucide { width: 1.5rem; height: 1.5rem; color: var(--brand); }
.icon-circle.icon-green { background: rgba(34, 197, 94, 0.15); }
.icon-circle.icon-green .lucide { color: #22C55E; }
.icon-circle.icon-accent { background: rgba(246, 173, 31, 0.15); }
.icon-circle.icon-accent .lucide { color: var(--accent); }
.icon-circle.icon-brand { background: rgba(59, 130, 246, 0.15); }
.icon-circle.icon-brand .lucide { color: #3B82F6; }
.icon-circle.icon-amber { background: rgba(245, 158, 11, 0.15); }
.icon-circle.icon-amber .lucide { color: #F59E0B; }
.icon-circle.icon-purple { background: rgba(139, 92, 246, 0.15); }
.icon-circle.icon-purple .lucide { color: #8B5CF6; }
.icon-circle.icon-cyan { background: rgba(6, 182, 212, 0.15); }
.icon-circle.icon-cyan .lucide { color: #06B6D4; }
.icon-circle.icon-rose { background: rgba(244, 63, 94, 0.15); }
.icon-circle.icon-rose .lucide { color: #F43F5E; }

.step-icon .lucide { width: 2.2rem; height: 2.2rem; color: var(--brand); }
.step-icon.icon-green .lucide { color: #22C55E; }
.step-icon.icon-blue .lucide { color: #3B82F6; }
.step-icon.icon-purple .lucide { color: #8B5CF6; }
.step-icon.icon-amber .lucide { color: #F59E0B; }

.hero-card-icon .lucide { width: 1.75rem; height: 1.75rem; color: var(--accent); }

.service-icon-badge {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15); flex-shrink: 0;
}
.service-icon-badge .lucide { width: 24px; height: 24px; color: var(--accent); }
.service-card.featured .service-icon-badge {
  background: rgba(246, 173, 31, 0.15); border-color: rgba(246, 173, 31, 0.3);
}

.cert-icon-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(5, 70, 135, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.cert-icon-badge .lucide { width: 28px; height: 28px; color: var(--brand); }

/* --- Variáveis CSS --- */
:root {
  --brand: #054687;
  --brand-dark: #07244A;
  --brand-light: #0A3A70;
  --accent: #F6AD1F;
  --accent-hover: #E09B10;
  --bg: #FAFAFA;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #07244A;
  --text: #5A5555;
  --text-light: #FFFFFF;
  --text-muted: #595959;
  --border: #E2E6E9;
  --border-light: #EDEDED;
  --link: #0065CE;
  --success: #22C55E;
  --warning: #F6AD1F;
  --shadow: 0 4px 24px rgba(7, 36, 74, 0.08);
  --shadow-lg: 0 12px 40px rgba(7, 36, 74, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 69px; }

body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400; color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--brand-dark); line-height: 1.25; margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { height: auto; max-width: 50px; min-width: 44px; }

/* --- Layout Utilitário --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section { padding: 40px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--text-light); }

.section-title { font-size: 2rem; text-align: center; margin-bottom: 12px; }
.section-subtitle {
  text-align: center; color: var(--text-muted); font-size: 1.1rem;
  max-width: 680px; margin: 0 auto 48px;
}
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.75); }

/* --- Page Header (para páginas internas) --- */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-header p { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }



/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: rgba(5, 70, 135, 0.08); color: var(--brand);
  border: 1px solid rgba(5, 70, 135, 0.15);
}
.badge-accent {
  background: rgba(246, 173, 31, 0.12); color: #8A5D08;
  border-color: rgba(246, 173, 31, 0.25);
}
.badge-soon {
  background: rgba(89, 89, 89, 0.12); color: var(--text-muted);
  border-color: var(--border); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-disponivel {
  background: rgba(34, 197, 94, 0.12); color: #166534;
  border-color: rgba(34, 197, 94, 0.25);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-beta {
  background: rgba(59, 130, 246, 0.12); color: #1E40AF;
  border-color: rgba(59, 130, 246, 0.25);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-breve {
  background: rgba(245, 158, 11, 0.12); color: #92400E;
  border-color: rgba(245, 158, 11, 0.25);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px;
}

/* --- Alerta (aviso de cadastro indisponível) --- */
.alert-note {
  display: block;
  margin: 20px auto 0;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.25);
  font-size: 0.95rem;
  max-width: 560px;
}
.alert-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* --- Botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #1E1B18; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #1E1B18 !important; border-color: var(--accent-hover); box-shadow: 0 4px 16px rgba(246, 173, 31, 0.35); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #FFFFFF !important; border-color: var(--brand); box-shadow: 0 4px 14px rgba(5, 70, 135, 0.25); }
.btn-light { background: var(--text-light); color: var(--brand-dark); border-color: var(--text-light); }
.btn-light:hover { background: var(--border-light); border-color: var(--border-light); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- Cards --- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card-muted { opacity: 0.7; }

.icon-circle {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(5, 70, 135, 0.08);
  font-size: 1.5rem; margin-bottom: 16px;
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--brand-dark); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo {
  display: flex; align-items: center; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { height: 36px; width: auto; display: block; max-width: none; min-width: 0; }

.nav-menu {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.nav-menu a.btn-outline { color: var(--text-light) !important; border-color: rgba(255, 255, 255, 0.35); }
.nav-menu a.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF !important; border-color: #FFFFFF; box-shadow: none; }
.nav-menu a.btn-primary:hover { background: var(--accent-hover); color: #1E1B18 !important; border-color: var(--accent-hover); box-shadow: 0 4px 16px rgba(246, 173, 31, 0.35); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  color: var(--text-light); font-weight: 500; font-size: 0.95rem;
  background: none; border: none; padding: 0; font-family: inherit;
}
.dropdown-toggle:hover { color: var(--accent); }
.dropdown-menu {
  position: absolute; top: 140%; left: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  list-style: none; margin: 0;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 6px; color: var(--text); font-size: 0.9rem;
}
.dropdown-menu li a:hover { background: rgba(5, 70, 135, 0.05); color: var(--brand); text-decoration: none; }
.dropdown-menu .soon {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-muted); background: var(--border-light);
  padding: 2px 6px; border-radius: 4px;
}
.dropdown-menu .soon.green { background: rgba(34, 197, 94, 0.12); color: #166534; }
.dropdown-menu .soon.yellow { background: rgba(246, 173, 31, 0.12); color: #8A5D08; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navbar fixa no topo */
.navbar { top: 0; }

/* --- Hero --- */
.hero { padding: 140px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 3rem; margin: 20px 0 18px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 14px;
}
.hero-card:nth-child(2) { margin-left: 24px; }
.hero-card:nth-child(3) { margin-left: 48px; }
.hero-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.hero-card h4 { font-size: 1rem; margin: 0 0 4px; }
.hero-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- Grids --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* --- Feature Cards --- */
.feature-card { text-align: center; }
.feature-card .icon-circle { margin: 0 auto 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.section-dark .feature-card p { color: rgba(255, 255, 255, 0.85); }

/* --- DFe Cards --- */
.dfe-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column; height: 100%;
}
.dfe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(5, 70, 135, 0.08); border-color: rgba(5, 70, 135, 0.2); }
.dfe-card .icon-circle {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.dfe-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.dfe-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* --- Steps --- */
.steps { display: flex; align-items: stretch; gap: 20px; }
.step {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px 28px; position: relative;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(5, 70, 135, 0.08); border-color: rgba(5, 70, 135, 0.2); }
.step-number {
  position: absolute; top: -14px; left: 28px;
  background: var(--brand-dark); color: var(--accent);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.88rem;
  border: 2px solid #FFFFFF; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.step-icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform 0.25s ease;
}
.step:hover .step-icon-badge { transform: scale(1.08); }
.step-icon-badge .lucide { width: 28px; height: 28px; stroke-width: 2.2; }
.step-icon-amber { background: rgba(246, 173, 31, 0.12); border: 1px solid rgba(246, 173, 31, 0.25); color: #D97706; }
.step-icon-amber .lucide { color: #D97706; }
.step-icon-blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25); color: #2563EB; }
.step-icon-blue .lucide { color: #2563EB; }
.step-icon-purple { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25); color: #7C3AED; }
.step-icon-purple .lucide { color: #7C3AED; }
.step h3 { font-size: 1.15rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.step-arrow { display: flex; align-items: center; justify-content: center; color: var(--brand); flex-shrink: 0; }
.step-arrow .lucide { width: 24px; height: 24px; color: var(--brand); }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 100%;
}
.service-card.featured { border-color: var(--brand); position: relative; }
.service-card.featured::before {
  content: "Disponível"; position: absolute; top: 14px; right: 14px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--success); background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px; border-radius: 4px;
}
.service-card h3 {
  font-size: 1.25rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; color: var(--text-muted) !important;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 16px; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 16px; color: var(--text-muted); font-size: 0.9rem; }
.service-card ul li { padding: 4px 0; }
.service-card .actions { margin-top: auto; }

/* --- Tutorial --- */
.tutorial-grid { display: flex; align-items: stretch; gap: 16px; }
.tutorial-card {
  flex: 1; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tutorial-card:hover { transform: translateY(-4px); border-color: rgba(246, 173, 31, 0.4); }
.tutorial-badge {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(246, 173, 31, 0.15); border: 1px solid rgba(246, 173, 31, 0.3);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.tutorial-badge .lucide { width: 22px; height: 22px; color: var(--accent); }
.tutorial-card .step-label {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--accent); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;
}
.tutorial-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: #FFFFFF; }
.tutorial-card p { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; margin: 0; }
.tutorial-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.tutorial-arrow .lucide { width: 24px; height: 24px; color: var(--accent); }

.code-block-mini {
  background: rgba(0, 0, 0, 0.35); color: #F3F4F6;
  padding: 14px; border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem; border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto; margin: 0 0 12px;
}

/* --- Pricing --- */
.price-banner {
  background: rgba(246, 173, 31, 0.12); border: 1px solid rgba(246, 173, 31, 0.25);
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  color: #8A5D08; font-weight: 600; font-size: 0.95rem; margin-bottom: 24px;
}
.price-table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-light); }
.price-table th {
  background: var(--bg-alt); font-weight: 700; color: var(--brand-dark);
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.4px;
}
.price-table td { font-size: 0.95rem; }
.price-table .price { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--brand); }
.price-table tr:last-child td { border-bottom: none; }

.price-tabs {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; justify-content: center;
}
.price-tabs button {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 20px; font-family: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--text); cursor: pointer; transition: all 0.15s ease;
}
.price-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.price-tabs button.active { background: var(--brand); color: white; border-color: var(--brand); }

.price-highlights {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-bottom: 24px;
}
.price-highlights span { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.95rem; }
.price-example {
  background: rgba(5, 70, 135, 0.05); border-left: 4px solid var(--brand);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 720px; margin: 0 auto;
}
.price-example p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.price-example strong { color: var(--brand-dark); }

.price-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 16px 0 0; }
.price-note a { color: var(--brand); text-decoration: underline; }

/* --- Calculator --- */
.calculator { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.calc-row { margin-bottom: 20px; }
.calc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calc-header label { font-weight: 600; color: var(--brand-dark); font-size: 0.95rem; }
.calc-header .price-each { font-size: 0.85rem; color: var(--text-muted); }
.calc-controls { display: flex; align-items: center; gap: 14px; }
.calc-controls input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 6px;
  border-radius: 3px; background: var(--border); outline: none;
}
.calc-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); cursor: pointer; border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.calc-controls input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); cursor: pointer; border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.calc-controls input[type="number"] {
  width: 90px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; text-align: right;
}
.calc-subtotal { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--brand); min-width: 80px; text-align: right; }
.calc-presets { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.calc-presets button {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.calc-presets button:hover { border-color: var(--brand); color: var(--brand); }
.calc-result {
  background: var(--bg-dark); color: var(--text-light);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg); position: sticky; top: 100px;
}
.calc-result h3 { color: var(--text-light); font-size: 1.1rem; margin-bottom: 20px; }
.calc-result .big {
  font-family: 'Montserrat', sans-serif; font-size: 2.25rem;
  font-weight: 700; color: var(--accent); margin-bottom: 4px;
}
.calc-result .label { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-bottom: 20px; }
.calc-result .compare { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; margin-bottom: 18px; }
.calc-result .compare-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.calc-result .compare-row span:first-child { color: rgba(255, 255, 255, 0.7); }
.calc-result .compare-row span:last-child { font-weight: 700; }
.calc-result .savings { color: var(--success); }
.calc-footer { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-top: 20px; }

/* --- Compare Table --- */
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.compare-table th, .compare-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border-light); }
.compare-table th { background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); font-size: 0.9rem; }
.compare-table td { font-size: 0.95rem; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--brand-dark); }
.compare-table .winner { background: rgba(34, 197, 94, 0.08); color: #166534; font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }

/* --- Code --- */
.code-tabs { display: flex; gap: 8px; padding-bottom: 12px; flex-wrap: wrap; }
.code-tabs button {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; font-family: inherit; font-weight: 600; font-size: 0.85rem;
  color: var(--text); cursor: pointer;
}
.code-tabs button.active { background: var(--brand); color: white; border-color: var(--brand); }
.code-block {
  position: relative; background: #0D1B2A; border-radius: var(--radius-sm);
  padding: 20px; overflow-x: auto; margin: 0 0 16px;
}
.code-block pre {
  margin: 0; color: #E2E8F0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem; line-height: 1.6;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15);
  color: white; border-radius: 6px; padding: 6px 12px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
.sdk-banner {
  background: rgba(5, 70, 135, 0.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text-muted);
  font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
}
.code-accordion { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.code-accordion summary {
  padding: 16px 20px; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 1.05rem; cursor: pointer; color: var(--brand-dark);
  background: var(--bg-card); list-style: none; display: flex; align-items: center; gap: 8px;
}
.code-accordion summary::-webkit-details-marker { display: none; }
.code-accordion summary::before { content: '▸'; font-size: 0.8rem; transition: transform 0.2s ease; }
.code-accordion[open] summary::before { transform: rotate(90deg); }
.code-accordion .code-tabs { margin: 0 20px; }
.code-accordion .code-block { margin: 0 20px 16px; }

/* --- Testimonials --- */
.testimonials { position: relative; max-width: 800px; margin: 0 auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.4s ease; }
.testimonial-card { min-width: 100%; padding: 12px; }
.testimonial-card .card { text-align: center; }
.video-wrapper {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto 24px;
  padding-bottom: 56.25%; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.testimonial-author a { color: var(--brand-dark); text-decoration: none; }
.testimonial-author a:hover { text-decoration: underline; }
.testimonial-card p { font-size: 1.1rem; color: var(--text); font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.testimonial-author div { text-align: left; }
.testimonial-author strong { color: var(--brand-dark); }
.testimonial-author span { display: block; font-size: 0.85rem; color: var(--text-muted); }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.testimonial-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--brand); font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.testimonial-nav button:hover { border-color: var(--brand); background: rgba(5, 70, 135, 0.05); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; padding: 0;
}
.testimonial-dots button.active { background: var(--brand); }

/* --- Checklist --- */
.checklist {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.checklist li::before {
  content: "✓"; width: 24px; height: 24px; border-radius: 50%;
  background: var(--success); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

/* --- About --- */
.about-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.about-stat { background: rgba(5, 70, 135, 0.05); border-radius: var(--radius-sm); padding: 16px; }
.about-stat strong { display: block; color: var(--brand-dark); margin-bottom: 4px; }
.about-stat span { font-size: 0.9rem; color: var(--text-muted); }
.about-box {
  background: rgba(246, 173, 31, 0.08); border: 1px solid rgba(246, 173, 31, 0.2);
  border-radius: var(--radius); padding: 28px;
}
.about-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.about-box p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* --- Status --- */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.status-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.status-dot {
  width: 15px; height: 15px; min-width: 12px; min-height: 12px;
  max-width: 12px; max-height: 12px; border-radius: 50%;
  flex-shrink: 0; aspect-ratio: 1 / 1; position: relative;
  margin-right: 4px; box-sizing: border-box;
}
.status-dot.online { background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: statusPulseGreen 2s infinite; }
.status-dot.soon { background: #F59E0B; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); animation: statusPulseAmber 2s infinite; }
@keyframes statusPulseGreen { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes statusPulseAmber { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.status-item div { flex: 1; }
.status-item strong { color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
.status-item strong .lucide { width: 1.2em; height: 1.2em; color: var(--brand); flex-shrink: 0; aspect-ratio: 1 / 1; }
.status-item span { display: block; font-size: 0.9rem; color: var(--text-muted); }
.status-item a { font-size: 0.85rem; font-weight: 600; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow);
}
summary {
  padding: 18px 22px; font-weight: 600; color: var(--brand-dark);
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 18px; color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* --- Contact Page --- */
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  max-width: 500px; margin: 0 auto; text-align: center;
}
.contact-card .contact-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(5, 70, 135, 0.08); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
}
.contact-card .contact-icon .lucide { width: 32px; height: 32px; color: var(--brand); }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-card p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }

/* --- Coming Soon Pages --- */
.coming-soon-hero {
  text-align: center; padding: 100px 0 60px;
}
.coming-soon-icon {
  width: 100px; height: 100px; border-radius: 24px;
  background: rgba(5, 70, 135, 0.06); border: 2px dashed var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.coming-soon-icon .lucide { width: 48px; height: 48px; color: var(--brand); }

/* --- Footer --- */
.footer { background: var(--brand-dark); color: rgba(255, 255, 255, 0.75); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo img { height: 40px; }
.footer-brand p { font-size: 0.9rem; margin: 0; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: rgba(255, 255, 255, 0.75); display: inline-flex; transition: color 0.2s ease; }
.footer-social a:hover { color: white; }
.footer-links h4 { color: white; font-size: 0.95rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* --- Endpoint Table (documentação) --- */
.endpoint-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.endpoint-table th, .endpoint-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.endpoint-table th { background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); }
.endpoint-table .method { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.endpoint-table .method.get { color: #22C55E; }
.endpoint-table .method.post { color: #3B82F6; }
.endpoint-table .method.put { color: #F59E0B; }
.endpoint-table .method.patch { color: #F59E0B; }
.endpoint-table .method.delete { color: #EF4444; }
.endpoint-table code { font-family: ui-monospace, monospace; font-size: 0.85rem; background: rgba(0,0,0,0.03); padding: 2px 6px; border-radius: 4px; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .hero-grid { display: flex; flex-flow: column-reverse; gap: 48px; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-card:nth-child(2), .hero-card:nth-child(3) { margin-left: 0; }
  .calculator { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .about-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--brand-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 8px; box-shadow: var(--shadow-lg);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a, .dropdown-toggle { display: flex; align-items: center; padding: 10px 0; width: 100%; }
  .dropdown { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; display: none; }
  .dropdown.active .dropdown-menu { display: block; padding: 10px; }
  .dropdown-menu li a { padding: 8px 20px; color: var(--text-muted); }
  .dropdown-menu li a:hover { color: var(--accent-hover); background: var(--bg-card); }
  .dropdown-menu .soon { color: var(--text-light); background: rgba(255, 255, 255, 0.1); }
  .hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.05rem; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .tutorial-grid { flex-direction: column; }
  .tutorial-arrow { transform: rotate(90deg); padding: 8px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-table th, .price-table td, .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.85rem; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.65rem; }
  .calc-controls { gap: 10px; }
  .calc-controls input[type="number"] { width: 70px; padding: 6px 8px; }
  .btn { padding: 10px 18px; font-size: 0.9rem; }
  .logo img { height: 30px; }
  .footer-brand .logo img { height: 34px; }
}

/* ============================================================
   Documentação (estilo GitBook)
   ============================================================ */

:root {
  --docs-sidebar-w: 260px;
  --docs-toc-w: 220px;
  --docs-content-max: 800px;
  --docs-sidebar-bg: #FFFFFF;
  --docs-sidebar-border: #E8ECEF;
  --docs-link-hover: rgba(5, 70, 135, 0.06);
  --docs-link-active-bg: rgba(5, 70, 135, 0.08);
  --docs-code-bg: #1e293b;
  --docs-code-text: #E2E8F0;
  --docs-inline-code-bg: #f1f5f9;
}

/* Page header da docs — mais compacto */
.docs-header {
  padding: 110px 0 32px;
  text-align: center;
}
.docs-header h1 { font-size: 2rem; margin-bottom: 4px; text-align: center; }
.docs-header p { font-size: 1rem; color: var(--text-muted); margin: 0; text-align: center; }

/* Layout principal de 3 colunas */
.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-w) minmax(0, 1fr) var(--docs-toc-w);
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 80px;
  align-items: start;
}
.docs-layout > .docs-content {
  max-width: var(--docs-content-max);
  width: 100%;
  min-height: 300px;
}

/* ============ Sidebar ============ */
.docs-sidebar {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 8px;
  border-right: 1px solid var(--docs-sidebar-border);
  scrollbar-width: thin;
}
.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #d0d5da; border-radius: 3px; }

.docs-group { margin-bottom: 20px; }
.docs-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand);
  padding: 8px 12px 6px;
}
.docs-group-label .lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.docs-group-pages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-group-pages li { margin: 0; }
.docs-group-pages a {
  display: block;
  padding: 6px 12px 6px 34px;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 6px 0 0 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.docs-group-pages a:hover {
  background: var(--docs-link-hover);
  color: var(--brand);
  text-decoration: none;
}
.docs-group-pages a.is-active {
  background: var(--docs-link-active-bg);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

/* ============ Sidebar — Menu de 3 níveis ============ */

/* Título "Menu" no topo da sidebar */
.docs-sidebar-title {
  margin: 0 0 12px;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--docs-sidebar-border);
}

/* Links de topo (Introdução, Atualizações) */
.docs-top-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  border-radius: 6px 0 0 6px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  margin-bottom: 2px;
}
.docs-top-link .lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}
.docs-top-link:hover {
  background: var(--docs-link-hover);
  color: var(--brand);
  text-decoration: none;
}
.docs-top-link.is-active {
  background: var(--docs-link-active-bg);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

/* Wrapper da seção com subseções (Painel, API) */
.docs-nav-section {
  margin-top: 6px;
}

/* Wrapper colapsável do grupo API (contém as subseções) */
.docs-subnav-group {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  border-left: 1px solid var(--docs-sidebar-border);
  margin-left: 14px;
  margin-top: 2px;
  margin-bottom: 4px;
}
.docs-section-header.is-open + .docs-subnav-group {
  max-height: 2000px;
}

/* Cabeçalho de subseção (botão acordeão) — Painel, API e subseções internas */
.docs-section-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 8px 12px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 6px 0 0 6px;
  border-left: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Subseções dentro do wrapper do API — levemente indentadas */
.docs-subnav-group .docs-subsection-header {
  padding-left: 16px;
  font-size: 0.78rem;
  font-weight: 500;
}
.docs-subnav-group .docs-subsection-header .lucide:not(.docs-section-chevron) {
  width: 13px;
  height: 13px;
}
.docs-section-header:hover {
  background: var(--docs-link-hover);
  color: var(--brand);
}
.docs-section-header:focus {
  outline: none;
  color: var(--brand);
}
.docs-section-header:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  color: var(--brand);
}
.docs-section-header:active {
  background: var(--docs-link-active-bg);
  color: var(--brand);
}
.docs-section-header .lucide {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  flex-shrink: 0;
  color: inherit;
}
.docs-section-header .docs-section-title {
  flex: 1;
  color: inherit;
}

/* Chevron do acordeão */
.docs-section-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.docs-section-header.is-open .docs-section-chevron {
  transform: rotate(180deg);
}
.docs-section-header.is-open,
.docs-section-header.is-open:hover,
.docs-section-header.is-open:focus,
.docs-section-header.is-open:focus-visible,
.docs-section-header.is-open:active {
  color: var(--brand);
}

/* Lista de páginas dentro da subseção (colapsável) */
.docs-section-pages {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.docs-section-header.is-open + .docs-section-pages {
  max-height: 800px;
}
.docs-section-pages li { margin: 0; }
.docs-section-pages a {
  display: block;
  padding: 5px 12px 5px 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  border-radius: 6px 0 0 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
/* Páginas dentro das subseções do API — mais indentadas */
.docs-subnav-group .docs-section-pages a {
  padding-left: 56px;
  font-size: 0.85rem;
}
.docs-section-pages a:hover {
  background: var(--docs-link-hover);
  color: var(--brand);
  text-decoration: none;
}
.docs-section-pages a.is-active {
  background: var(--docs-link-active-bg);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

/* ============ TOC (Nesta página) ============ */
.docs-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-left: 16px;
  border-left: 1px solid var(--docs-sidebar-border);
  font-size: 0.85rem;
  scrollbar-width: thin;
}
.docs-toc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-toc-list li { margin: 0; }
.docs-toc-link {
  display: block;
  padding: 4px 0 4px 10px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-size: 0.82rem;
}
.docs-toc-link:hover {
  color: var(--brand);
  text-decoration: none;
  border-left-color: var(--border);
}
.docs-toc-link.is-h3 {
  padding-left: 22px;
  font-size: 0.78rem;
}

/* ============ Conteúdo / Markdown ============ */
.docs-content { padding: 0 8px; }
.md-content { font-size: 1rem; line-height: 1.7; color: var(--text); }
.md-content h1 {
  font-size: 2rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.md-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 120px;
}
.md-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  scroll-margin-top: 120px;
}
.md-content h4 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  scroll-margin-top: 120px;
}
.md-content p { margin: 0 0 1em; }
.md-content ul, .md-content ol {
  padding-left: 24px;
  margin: 0 0 1em;
}
.md-content li { margin-bottom: 4px; }
.md-content a { color: var(--link); }
.md-content a:hover { text-decoration: underline; }
.md-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}
.md-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Tabelas */
.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
  background: var(--bg-card);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.md-content table th,
.md-content table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
.md-content table th {
  background: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-dark);
}
.md-content table tr:last-child td { border-bottom: none; }

/* Código inline */
.md-content code {
  background: var(--docs-inline-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: #c7254e;
}

/* Blocos de código */
.md-content pre {
  background: var(--docs-code-bg);
  color: var(--docs-code-text);
  padding: 18px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}
.md-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* Blockquote */
.md-content blockquote {
  margin: 16px 0 24px;
  padding: 12px 20px;
  border-left: 3px solid var(--brand);
  background: rgba(5, 70, 135, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.md-content blockquote p:last-child { margin-bottom: 0; }

/* Callouts — 4 variantes */
.md-content .callout,
.md-content blockquote.callout {
  margin: 20px 0 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  font-size: 0.95rem;
}
.md-content .callout p:last-child { margin-bottom: 0; }

.md-content .callout-atencao {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #F59E0B;
  color: #7c4d00;
}
.md-content .callout-dica {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: #22C55E;
  color: #14532d;
}
.md-content .callout-importante {
  background: rgba(5, 70, 135, 0.06);
  border-left-color: var(--brand);
  color: var(--brand-dark);
}
.md-content .callout-nota {
  background: rgba(89, 89, 89, 0.06);
  border-left-color: #888;
  color: #444;
}

/* ============ Prev / Next ============ */
.docs-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.docs-prevnext-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.docs-prevnext-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(5, 70, 135, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.docs-prevnext-card.is-next { text-align: right; align-items: flex-end; }
.docs-prevnext-card.is-empty { visibility: hidden; }
.docs-prevnext-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.docs-prevnext-label .lucide { width: 14px; height: 14px; }
.docs-prevnext-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brand);
}

/* ============ Loading / Error ============ */
.docs-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 24px 0;
}
.docs-error {
  background: #fff8e6;
  border: 1px solid #f6ad1f;
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  color: #7c4d00;
}
.docs-error h3 { color: #7c4d00; margin-bottom: 8px; }
.docs-error code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.docs-error-icon {
  color: #F59E0B;
  margin-bottom: 8px;
}
.docs-error-icon .lucide { width: 28px; height: 28px; }
.docs-error-detail {
  font-size: 0.85rem;
  color: #8a6d3b;
  margin-top: 12px;
}
.docs-error-mini { font-size: 0.85rem; padding: 12px; }

/* ============ Mobile toggle ============ */
.docs-mobile-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand);
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}
.docs-mobile-toggle .lucide { width: 16px; height: 16px; }

.docs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 36, 74, 0.45);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.docs-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ============ Responsivo ============ */

/* ≤1024px: esconde TOC direita */
@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: var(--docs-sidebar-w) minmax(0, 1fr);
    gap: 32px;
  }
  .docs-toc { display: none; }
}

/* ≤900px: sidebar vira off-canvas */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
  }
  .docs-mobile-toggle { display: inline-flex; }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    max-height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--docs-sidebar-border);
    box-shadow: var(--shadow-lg);
    padding: 80px 16px 24px;
    z-index: 950;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .docs-sidebar.is-open {
    transform: translateX(0);
  }
  .docs-content { padding: 0; }
}

@media (max-width: 480px) {
  .docs-header { padding: 100px 0 20px; }
  .docs-header h1 { font-size: 1.6rem; }
  .md-content h1 { font-size: 1.6rem; }
  .md-content h2 { font-size: 1.25rem; }
  .md-content h3 { font-size: 1.08rem; }
  .docs-prevnext { grid-template-columns: 1fr; }
  .docs-prevnext-card.is-next { text-align: left; align-items: flex-start; }
}

/* ============================================================
   MD Content — elementos estendidos do markdown
   ============================================================ */

/* Tachado */
.md-content del {
  color: #9ca3af;
  text-decoration: line-through;
}

/* Realce / marcação */
.md-content mark {
  background: rgba(246, 173, 31, 0.25);
  padding: 1px 4px;
  border-radius: 4px;
  color: inherit;
}

/* Subscrito e sobrescrito */
.md-content sub,
.md-content sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
}
.md-content sub { bottom: -0.25em; }
.md-content sup { top: -0.5em; }

/* Listas de tarefas (checkbox) */
.md-content li.task-item {
  list-style: none;
  margin-left: -1.25em;
}
.md-content li.task-item input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #054687;
  vertical-align: middle;
}

/* Listas de definição */
.md-content dl {
  margin: 16px 0;
}
.md-content dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 12px;
}
.md-content dd {
  margin: 4px 0 12px 20px;
  color: var(--text);
}

/* Notas de rodapé */
.md-content .footnotes {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #888;
}
.md-content .footnotes ol {
  padding-left: 1.25rem;
}
.md-content .footnotes li {
  margin-bottom: 6px;
}
.md-content sup.footnote-ref a {
  color: #054687;
  text-decoration: none;
  font-weight: 600;
}
.md-content sup.footnote-ref a:hover {
  text-decoration: underline;
}
.md-content .footnote-backref {
  margin-left: 4px;
  text-decoration: none;
  color: #054687;
}

