/* ============================================================
   Central Financeira — CIApp
   Documentação financeira estilo fintech (Stripe / Notion / Linear).
   Tema escuro premium, fiel à identidade black & white do CIApp
   (ver lib/theme.dart e web/ajuda/assets/ajuda.css).
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #131315;
  --bg-card: #141416;
  --bg-inset: #0f0f11;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.56);
  --accent: #ffffff;

  /* Estados semânticos (usados com parcimônia, sobre o neutro) */
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-max: 1240px;
  --sidebar-w: 268px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  scroll-padding-top: 96px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(255, 255, 255, 0.18); }

/* ---------- Fundo ambiente ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(700px 400px at -5% 10%, rgba(255, 255, 255, 0.035), transparent 55%);
  pointer-events: none;
}

/* ---------- Barra de progresso ---------- */
.cf-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 200;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ---------- Cabeçalho ---------- */
.cf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.cf-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cf-brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cf-brand__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.cf-brand__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }
.cf-brand__text { display: flex; flex-direction: column; gap: 1px; }
.cf-brand__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-faint);
}
.cf-brand__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.cf-header__actions { display: flex; align-items: center; gap: 10px; }
.cf-header__link {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s;
}
.cf-header__link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.cf-header__cta {
  font-size: 13.5px; font-weight: 600; color: #000;
  background: var(--accent); padding: 9px 16px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.cf-header__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.14); }

.cf-nav-toggle {
  display: none;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 13px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}

/* ---------- Navegação de portal (unificada entre Ajuda/Financeira/Jurídica) ---------- */
.cf-portal { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.cf-portal a {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.cf-portal a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.cf-portal a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 720px) {
  .cf-header__inner { flex-wrap: wrap; row-gap: 8px; }
  .cf-portal { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Layout documentação ---------- */
.cf-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.cf-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 28px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.cf-sidebar::-webkit-scrollbar { width: 6px; }
.cf-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
.cf-sidebar__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 0 12px 10px;
}
.cf-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.cf-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color .14s, background .14s;
}
.cf-toc a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.cf-toc a .cf-toc__ico { width: 17px; text-align: center; opacity: .85; font-size: 13px; }
.cf-toc a.is-active {
  color: var(--text); background: rgba(255,255,255,0.06);
  border-left-color: var(--accent);
}

/* ---------- Conteúdo ---------- */
.cf-main { padding: 0 0 120px; min-width: 0; }

/* ---------- Hero ---------- */
.cf-hero { padding: 56px 0 12px; }
.cf-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px;
}
.cf-hero__eyebrow .cf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft);
}
.cf-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 20px 0 0; font-weight: 800;
}
.cf-hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted); max-width: 62ch; margin: 16px 0 0;
}
.cf-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.cf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 999px;
}
.cf-chip strong { color: var(--text); font-weight: 600; }

/* ---------- Seções ---------- */
.cf-section {
  padding-top: 64px;
  scroll-margin-top: 90px;
}
.cf-section__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-faint);
}
.cf-section > h2 {
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.02em; font-weight: 750;
  margin: 8px 0 0; line-height: 1.15;
}
.cf-section__desc {
  color: var(--text-muted); font-size: 16px; margin: 12px 0 0; max-width: 66ch;
}
.cf-section h3 {
  font-size: 18px; font-weight: 650; letter-spacing: -0.01em;
  margin: 34px 0 12px;
}
.cf-section p { color: var(--text-muted); margin: 12px 0; }
.cf-section p strong, .cf-section li strong { color: var(--text); font-weight: 600; }
.cf-section ul { color: var(--text-muted); padding-left: 20px; margin: 12px 0; }
.cf-section li { margin: 7px 0; }

.cf-divider { height: 1px; background: var(--border); border: 0; margin: 8px 0; }

/* ---------- Cards / grid ---------- */
.cf-grid { display: grid; gap: 16px; margin-top: 22px; }
.cf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cf-grid--4 { grid-template-columns: repeat(4, 1fr); }

.cf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color .18s, transform .18s, background .18s;
}
.cf-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cf-card__ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; background: var(--bg-inset);
  border: 1px solid var(--border); margin-bottom: 14px;
}
.cf-card h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.cf-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.cf-stat { }
.cf-stat__num {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.cf-stat__label { margin-top: 8px; font-size: 13px; color: var(--text-muted); }

/* ---------- Callout / destaque ---------- */
.cf-callout {
  display: flex; gap: 14px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px 18px; margin: 22px 0;
}
.cf-callout__ico { font-size: 18px; line-height: 1.5; flex-shrink: 0; }
.cf-callout__body { font-size: 14.5px; }
.cf-callout__body strong { color: var(--text); }
.cf-callout__body p { margin: 4px 0 0; color: var(--text-muted); }
.cf-callout--info    { border-left-color: var(--info);   background: linear-gradient(90deg, var(--info-soft), transparent 60%); }
.cf-callout--ok      { border-left-color: var(--ok);     background: linear-gradient(90deg, var(--ok-soft), transparent 60%); }
.cf-callout--warn    { border-left-color: var(--warn);   background: linear-gradient(90deg, var(--warn-soft), transparent 60%); }
.cf-callout--danger  { border-left-color: var(--danger); background: linear-gradient(90deg, var(--danger-soft), transparent 60%); }

/* ---------- Tabelas responsivas ---------- */
.cf-table-wrap {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cf-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cf-table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 14px;
}
.cf-table thead th {
  text-align: left; font-weight: 600; color: var(--text-muted);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--bg-inset);
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cf-table tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); vertical-align: top;
}
.cf-table tbody tr:last-child td { border-bottom: 0; }
.cf-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.cf-table td strong, .cf-table th strong { color: var(--text); font-weight: 650; }
.cf-table .cf-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }

.cf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); white-space: nowrap;
}
.cf-badge--ok   { color: var(--ok);   background: var(--ok-soft);   border-color: transparent; }
.cf-badge--warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.cf-badge--off  { color: var(--text-faint); }

/* ---------- Fluxograma ---------- */
.cf-flow {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px;
  margin: 26px 0;
}
.cf-flow__step {
  flex: 1 1 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px; position: relative;
}
.cf-flow__num {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent); color: #000;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cf-flow__step h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 650; }
.cf-flow__step p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cf-flow__arrow {
  align-self: center; color: var(--text-faint); font-size: 20px; flex: 0 0 auto;
}

/* ---------- Linha do tempo ---------- */
.cf-timeline { margin: 26px 0 6px; position: relative; padding-left: 8px; }
.cf-timeline__item {
  position: relative; padding: 0 0 26px 34px;
  border-left: 2px solid var(--border);
}
.cf-timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.cf-timeline__dot {
  position: absolute; left: -9px; top: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.cf-timeline__item--muted .cf-timeline__dot { border-color: var(--text-faint); }
.cf-timeline__when {
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-faint);
}
.cf-timeline__item h4 { margin: 4px 0 4px; font-size: 15.5px; font-weight: 650; }
.cf-timeline__item p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- Simulador ---------- */
.cf-sim {
  margin: 26px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.cf-sim__grid { display: grid; grid-template-columns: 1fr 1fr; }
.cf-sim__controls { padding: 26px; border-right: 1px solid var(--border); }
.cf-sim__result { padding: 26px; background: var(--bg-inset); }
.cf-sim__legend { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }

.cf-field { margin-bottom: 20px; }
.cf-field__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.cf-field__hint { font-size: 12px; color: var(--text-faint); font-weight: 400; }

.cf-input-money {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color .15s;
}
.cf-input-money:focus-within { border-color: var(--accent); }
.cf-input-money__prefix { color: var(--text-muted); font-size: 15px; font-weight: 600; }
.cf-input-money input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 17px; font-weight: 600;
  padding: 13px 10px; font-variant-numeric: tabular-nums;
  min-width: 0;
}
.cf-range { width: 100%; margin-top: 12px; accent-color: #fff; }

.cf-segment {
  display: inline-flex; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 3px; gap: 3px; flex-wrap: wrap;
}
.cf-segment button {
  border: 0; background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 999px;
  cursor: pointer; transition: color .15s, background .15s;
}
.cf-segment button.is-active { background: var(--accent); color: #000; }

.cf-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; border-top: 1px solid var(--border);
}
.cf-toggle-row:first-of-type { border-top: 0; }
.cf-toggle-row__text { font-size: 13.5px; }
.cf-toggle-row__text small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.cf-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cf-switch input { opacity: 0; width: 0; height: 0; }
.cf-switch__track {
  position: absolute; inset: 0; background: rgba(255,255,255,0.14);
  border-radius: 999px; transition: background .18s;
}
.cf-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .18s;
}
.cf-switch input:checked + .cf-switch__track { background: var(--accent); }
.cf-switch input:checked + .cf-switch__track::after { transform: translateX(18px); }
.cf-switch input:disabled + .cf-switch__track { opacity: .4; cursor: not-allowed; }

/* Resultado */
.cf-result__headline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
}
.cf-result__headline .cf-result__big {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cf-result__headline .cf-result__cap { font-size: 12.5px; color: var(--text-faint); }

.cf-result__line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cf-result__line:last-of-type { border-bottom: 0; }
.cf-result__line .cf-result__k { color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.cf-result__line .cf-result__v { font-variant-numeric: tabular-nums; font-weight: 600; }
.cf-result__swatch { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.cf-result__line--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.cf-result__line--total .cf-result__k { color: var(--text); font-weight: 650; }
.cf-result__line--total .cf-result__v { font-size: 18px; font-weight: 800; }
.cf-result__line--sub { font-size: 13px; }
.cf-result__line--sub .cf-result__k, .cf-result__line--sub .cf-result__v { color: var(--text-faint); }

.cf-bar {
  display: flex; height: 12px; border-radius: 999px; overflow: hidden;
  margin: 18px 0 14px; background: var(--bg); border: 1px solid var(--border);
}
.cf-bar__seg { height: 100%; transition: width .25s ease; }

.cf-sim__note {
  font-size: 12px; color: var(--text-faint); margin: 8px 0 0;
  display: flex; gap: 6px;
}

/* ---------- Exemplo prático ---------- */
.cf-example {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-inset); padding: 20px 22px; margin: 20px 0;
}
.cf-example__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.cf-calc { list-style: none; margin: 0; padding: 0; }
.cf-calc li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 14px; color: var(--text-muted);
}
.cf-calc li:last-child { border-bottom: 0; }
.cf-calc li .v { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cf-calc li.is-total { color: var(--text); font-weight: 650; border-top: 1px solid var(--border-strong); margin-top: 4px; padding-top: 12px; }

/* ---------- FAQ ---------- */
.cf-faq { margin-top: 22px; border-top: 1px solid var(--border); }
.cf-faq__item { border-bottom: 1px solid var(--border); }
.cf-faq__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); font-size: 15.5px; font-weight: 600;
  padding: 18px 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cf-faq__q:hover { color: #fff; }
.cf-faq__sign { flex-shrink: 0; transition: transform .22s; color: var(--text-muted); font-size: 20px; line-height: 1; }
.cf-faq__item.is-open .cf-faq__sign { transform: rotate(45deg); }
.cf-faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.cf-faq__a-inner { padding: 0 4px 20px; color: var(--text-muted); font-size: 14.5px; }
.cf-faq__a-inner p { margin: 0 0 10px; }
.cf-faq__a-inner p:last-child { margin: 0; }

/* ---------- Transparência ---------- */
.cf-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.cf-principle {
  display: flex; gap: 14px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card);
}
.cf-principle__ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-inset); border: 1px solid var(--border); font-size: 18px;
}
.cf-principle h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 650; }
.cf-principle p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Rodapé de atualização ---------- */
.cf-updated {
  margin-top: 60px; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cf-updated__ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-inset); border: 1px solid var(--border); font-size: 20px;
}
.cf-updated__text { flex: 1; min-width: 220px; }
.cf-updated__text strong { display: block; font-size: 15px; }
.cf-updated__text span { font-size: 13.5px; color: var(--text-muted); }
.cf-updated__ver {
  font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
}

/* ---------- Glossário ---------- */
.cf-glossary { margin-top: 22px; border-top: 1px solid var(--border); }
.cf-glossary__item {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  padding: 16px 4px; border-bottom: 1px solid var(--border);
}
.cf-glossary__item dt {
  margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--text);
}
.cf-glossary__item dd {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted);
}
@media (max-width: 640px) {
  .cf-glossary__item { grid-template-columns: 1fr; gap: 5px; }
}

/* ---------- Footer ---------- */
.cf-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: 40px;
}
.cf-footer__tax {
  max-width: var(--content-max); margin: 0 auto; padding: 30px 24px 6px;
}
.cf-footer__tax-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px;
}
.cf-footer__tax-text {
  font-size: 12.5px; line-height: 1.6; color: var(--text-faint);
  max-width: 92ch; margin: 0;
}
.cf-footer__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 24px 24px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.cf-footer__brand { font-weight: 700; font-size: 15px; }
.cf-footer__note { font-size: 13px; color: var(--text-muted); }
.cf-footer__legal { font-size: 12.5px; color: var(--text-faint); }
.cf-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .cf-shell { grid-template-columns: 1fr; gap: 0; }
  .cf-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(84vw, 320px); max-height: 100vh;
    background: var(--bg-elevated); border-right: 1px solid var(--border);
    padding: 24px 16px; z-index: 150;
    transform: translateX(-102%); transition: transform .26s ease;
    box-shadow: var(--shadow);
  }
  body.cf-nav-open .cf-sidebar { transform: translateX(0); }
  .cf-nav-toggle { display: inline-flex; align-items: center; gap: 7px; }
  .cf-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 140;
    opacity: 0; pointer-events: none; transition: opacity .26s;
    backdrop-filter: blur(2px);
  }
  body.cf-nav-open .cf-scrim { opacity: 1; pointer-events: auto; }
  .cf-header__link { display: none; }
}

@media (max-width: 720px) {
  .cf-grid--2, .cf-grid--3, .cf-grid--4 { grid-template-columns: 1fr; }
  .cf-principles { grid-template-columns: 1fr; }
  .cf-sim__grid { grid-template-columns: 1fr; }
  .cf-sim__controls { border-right: 0; border-bottom: 1px solid var(--border); }
  .cf-flow__arrow { transform: rotate(90deg); align-self: center; margin: -4px auto; }
  .cf-flow__step { flex-basis: 100%; }
  .cf-header__cta { display: none; }
  .cf-hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
