/* Lux Carbon — Design Tokens v2
   Fonte: Manual de marca (Estúdio Vestígio, 2026) + Lux Carbon - IDV.
   Importe este arquivo antes de qualquer outro CSS. */

/* ---- Base mínima (necessária para os componentes medirem certo) ---- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* ---- Institucionais ---- */
  --lc-verde-escuro: #0B3D2E;
  --lc-azul-petroleo: #003C63;
  --lc-navy: #02172E;

  /* ---- Escalas ---- */
  --lc-verde-100: #85B199;
  --lc-verde-500: #1E6E43;
  --lc-verde-900: #0B3D2E;

  --lc-azul-100: #D5E5EC;
  --lc-azul-400: #7596AB;
  --lc-azul-800: #003C63;

  --lc-neutro-0: #FFFFFF;
  --lc-neutro-100: #EBECEE;
  --lc-neutro-300: #A4ABB4;
  --lc-neutro-600: #495869;
  --lc-neutro-900: #02172E;

  /* ---- Acentos (uso pontual; nunca texto sobre claro) ---- */
  --lc-lime: #90D62E;
  --lc-sky: #59C3FF;

  /* ---- Cores internas do logo (referência; NÃO usar em UI) ---- */
  --lc-logo-navy: #17293F;
  --lc-logo-branco: #FDFEFF;
  --lc-logo-verde: #1E6E43;
  --lc-logo-verde-claro: #7EB572;

  /* ---- Semânticos ---- */
  --lc-bg: #FFFFFF;
  --lc-bg-subtle: #EBECEE;
  --lc-bg-soft-blue: #D5E5EC;
  --lc-bg-brand: #0B3D2E;
  --lc-bg-brand-alt: #003C63;
  --lc-bg-inverse: #02172E;

  --lc-text: #02172E;
  --lc-text-secondary: #495869;
  --lc-text-muted: #A4ABB4;        /* só placeholder/desabilitado */
  --lc-text-on-brand: #FFFFFF;
  --lc-link: #003C63;
  --lc-link-inverse: #59C3FF;

  --lc-border: #A4ABB4;
  --lc-border-subtle: #EBECEE;
  --lc-focus: #59C3FF;

  /* ---- Tema (light) — flipam no modo escuro; ver bloco no fim ---- */
  --lc-surface: #FFFFFF;              /* cards, inputs, painéis */
  --lc-surface-2: #FAFBFB;            /* rodapés de documento, faixas */
  --lc-heading: #0B3D2E;              /* títulos e valores fortes */
  --lc-secondary: #0B3D2E;            /* botão secundário (texto/borda) */
  --lc-action-hover: #1E6E43;
  --lc-action-cta-hover: #0B3D2E;
  --lc-kpi-destaque: #1E6E43;
  --lc-verde-texto: #1E6E43;          /* verde como TEXTO (dark → verde-100) */
  --lc-track: #EBECEE;                /* trilhos, zebras, skeletons */
  --lc-tick: rgba(2, 23, 46, 0.14);
  --lc-tick-strong: rgba(2, 23, 46, 0.38);
  --lc-tick-soft: var(--lc-tick-soft);
  --lc-row-hover: rgba(213, 229, 236, 0.4);
  --lc-chip-bg: rgba(255, 255, 255, 0.65);
  --lc-chip-border: rgba(2, 23, 46, 0.06);
  --lc-pill-bg: rgba(2, 23, 46, 0.04);
  --lc-atmo: linear-gradient(175deg, #EAF3F8 0%, #F7FBFD 55%, #FFFFFF 100%);
  --lc-orb-cor: rgba(213, 229, 236, 0.9);

  --lc-action: #0B3D2E;            /* primário UI */
  --lc-action-cta: #1E6E43;        /* CTA do manual ("LEIA MAIS") */

  /* ---- Estados de feedback (convenção da skill, AA validado) ---- */
  --lc-success: #1E6E43;
  --lc-success-bg: #E8F1EC;
  --lc-info: #003C63;
  --lc-info-bg: #D5E5EC;
  --lc-warning: #8A6A00;
  --lc-warning-bg: #FFF4D6;
  --lc-danger: #9B1C1C;
  --lc-danger-bg: #FDE8E8;

  /* ---- Gradiente institucional (só hero/capa/divisória) ---- */
  --lc-gradient-brand: linear-gradient(135deg, #02172E 0%, #003C63 45%, #1E6E43 100%);

  /* ---- Gráficos (ordem fixa das séries) ---- */
  --lc-chart-1: #0B3D2E;
  --lc-chart-2: #003C63;
  --lc-chart-3: #85B199;
  --lc-chart-4: #7596AB;
  --lc-chart-5: #90D62E;
  --lc-chart-6: #495869;
  --lc-chart-7: #59C3FF;

  /* ---- Tipografia ---- */
  --lc-font-heading: "Zalando Sans", system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
  --lc-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;

  --lc-fw-light: 300;
  --lc-fw-regular: 400;
  --lc-fw-medium: 500;
  --lc-fw-semibold: 600;
  --lc-fw-bold: 700;

  --lc-fs-display: 3.815rem;  /* 61px */
  --lc-fs-h1: 3.052rem;       /* 49px */
  --lc-fs-h2: 2.441rem;       /* 39px */
  --lc-fs-h3: 1.953rem;       /* 31px */
  --lc-fs-h4: 1.563rem;       /* 25px */
  --lc-fs-h5: 1.25rem;        /* 20px */
  --lc-fs-body-lg: 1.25rem;
  --lc-fs-body: 1rem;
  --lc-fs-body-sm: 0.875rem;
  --lc-fs-caption: 0.75rem;

  --lc-ls-tight: -0.02em;     /* headline (manual: -2%) */
  --lc-ls-overline: 0.05em;   /* overline (manual: +5%) */

  --lc-lh-hero: 1.05;         /* manual: 100% */
  --lc-lh-heading: 1.2;
  --lc-lh-peca: 1.4;          /* manual: 140% (peça/marketing) */
  --lc-lh-normal: 1.55;       /* leitura longa web */

  /* ---- Espaçamento (escala 4px) ---- */
  --lc-space-1: 4px;  --lc-space-2: 8px;   --lc-space-3: 12px;
  --lc-space-4: 16px; --lc-space-6: 24px;  --lc-space-8: 32px;
  --lc-space-12: 48px; --lc-space-16: 64px; --lc-space-24: 96px; --lc-space-32: 128px;

  /* ---- Raio ---- */
  --lc-radius-sm: 4px;
  --lc-radius-md: 8px;
  --lc-radius-lg: 16px;
  --lc-radius-xl: 24px;   /* superfícies de marketing (cards do manual) */
  --lc-radius-full: 9999px;

  /* ---- Sombra (nunca colorida) ---- */
  --lc-shadow-sm: 0 1px 2px rgba(2, 23, 46, 0.06);
  --lc-shadow-md: 0 4px 12px rgba(2, 23, 46, 0.08);
  --lc-shadow-lg: 0 12px 32px rgba(2, 23, 46, 0.12);

  /* ---- Layout ---- */
  --lc-container: 1200px;
  --lc-measure: 65ch;
  --lc-control-h: 44px;       /* altura padrão de botão/input (alvo mínimo) */
}

/* ================= Base ================= */
body {
  margin: 0;
  font-family: var(--lc-font-body);
  font-size: var(--lc-fs-body);
  line-height: var(--lc-lh-normal);
  color: var(--lc-text);
  background: var(--lc-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--lc-font-heading);
  font-weight: var(--lc-fw-semibold);
  line-height: var(--lc-lh-heading);
  color: var(--lc-heading);
  margin: 0 0 var(--lc-space-4);
}
h1 { font-size: var(--lc-fs-h1); font-weight: var(--lc-fw-medium); letter-spacing: var(--lc-ls-tight); line-height: 1.1; }
h2 { font-size: var(--lc-fs-h2); letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: var(--lc-fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--lc-fs-h4); line-height: 1.3; }
h5 { font-size: var(--lc-fs-h5); line-height: 1.4; }

.lc-display {
  font-family: var(--lc-font-heading);
  font-weight: var(--lc-fw-medium);
  font-size: var(--lc-fs-display);
  line-height: var(--lc-lh-hero);
  letter-spacing: var(--lc-ls-tight);
}

p { max-width: var(--lc-measure); margin: 0 0 var(--lc-space-4); }
a { color: var(--lc-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--lc-focus); outline-offset: 2px; }

/* Overline — kicker acima do título.
   Marca (manual): Zalando itálico CAPS +5%. UI sóbria: Public Sans 600 CAPS. */
.lc-overline {
  font-family: var(--lc-font-heading);
  font-style: italic;
  font-weight: var(--lc-fw-semibold);
  font-size: var(--lc-fs-body-sm);
  letter-spacing: var(--lc-ls-overline);
  text-transform: uppercase;
  color: var(--lc-verde-texto);
}
.lc-overline--ui { font-family: var(--lc-font-body); font-style: normal; font-size: var(--lc-fs-caption); letter-spacing: 0.08em; color: var(--lc-text-secondary); }
.lc-overline--azul { color: var(--lc-link); }
.lc-inverse .lc-overline, .lc-overline--lime { color: var(--lc-lime); }

/* Números tabulares */
.lc-num { font-variant-numeric: tabular-nums; font-weight: var(--lc-fw-medium); }

/* ================= Superfícies ================= */
.lc-inverse { background: var(--lc-bg-brand); color: var(--lc-text-on-brand); }
.lc-inverse--navy { background: var(--lc-bg-inverse); }
.lc-inverse--azul { background: var(--lc-bg-brand-alt); }
.lc-inverse h1, .lc-inverse h2, .lc-inverse h3, .lc-inverse h4, .lc-inverse h5,
.lc-inverse--navy h1, .lc-inverse--navy h2, .lc-inverse--navy h3 { color: var(--lc-text-on-brand); }
.lc-inverse a { color: var(--lc-link-inverse); }
.lc-inverse p { color: var(--lc-neutro-100); }

/* Gradiente institucional — APENAS hero/capa/divisória.
   Textura oficial extraída do manual: assets/img/gradiente-institucional.jpg */
.lc-hero-gradient { background: var(--lc-gradient-brand); color: #fff; }

/* Fundo atmosférico claro (marketing — manual p.2 e slides claros dos posts):
   gradiente suave azulado + orbes translúcidos via .lc-orb */
.lc-bg-atmo {
  position: relative;
  background: var(--lc-atmo);
  overflow: hidden;
}
.lc-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, var(--lc-orb-cor), transparent 70%);
}
.lc-bg-atmo > .lc-content { position: relative; }

/* Véu sobre foto (obrigatório sob texto) */
.lc-veil { position: relative; }
.lc-veil::before { content: ""; position: absolute; inset: 0; background: rgba(2, 23, 46, 0.5); }
.lc-veil > * { position: relative; }

/* Halftone assinatura (sobre foto/fundo escuro) */
.lc-halftone { position: relative; }
.lc-halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

/* Círculo decorativo 1px (posts/capas) */
.lc-circle-line {
  position: absolute; border: 1px solid rgba(89, 195, 255, 0.25);
  border-radius: 50%; pointer-events: none;
}

/* ================= Botões ================= */
.lc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--lc-space-2);
  height: var(--lc-control-h); padding: 0 var(--lc-space-6);
  font-family: var(--lc-font-body); font-weight: var(--lc-fw-medium); font-size: var(--lc-fs-body);
  border-radius: var(--lc-radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.lc-btn--primary { background: var(--lc-action); color: #fff; }
.lc-btn--primary:hover { background: var(--lc-action-hover); }
/* CTA do manual: verde, Zalando Bold CAPS */
.lc-btn--cta {
  background: var(--lc-action-cta); color: #fff;
  font-family: var(--lc-font-heading); font-weight: var(--lc-fw-bold);
  font-size: var(--lc-fs-body-sm); letter-spacing: 0.04em; text-transform: uppercase;
}
.lc-btn--cta:hover { background: var(--lc-action-cta-hover); }
.lc-btn--secondary { background: transparent; color: var(--lc-secondary); border-color: var(--lc-secondary); }
.lc-btn--secondary:hover { background: var(--lc-track); }
.lc-btn--tertiary { background: transparent; color: var(--lc-link); padding: 0; height: auto; }
.lc-btn--tertiary:hover { text-decoration: underline; }
.lc-btn--on-dark { background: #FFFFFF; color: var(--lc-verde-escuro); }
.lc-btn--on-dark:hover { background: #EBECEE; }
.lc-btn--accent { background: var(--lc-lime); color: var(--lc-navy); }
.lc-btn--accent:hover { background: #7FC024; }
.lc-btn[disabled], .lc-btn--disabled { background: var(--lc-bg-subtle); color: var(--lc-text-muted); cursor: not-allowed; border-color: transparent; }
.lc-btn--sm { height: 36px; font-size: var(--lc-fs-body-sm); padding: 0 var(--lc-space-4); }
.lc-btn--lg { height: 52px; padding: 0 var(--lc-space-8); }

/* Pill de marketing (posts/hero) — cápsula com borda e seta */
.lc-pill {
  display: inline-flex; align-items: center; gap: var(--lc-space-3);
  padding: 12px 24px; border-radius: var(--lc-radius-full);
  font-family: var(--lc-font-body); font-weight: var(--lc-fw-semibold);
  border: 1px solid var(--lc-border); color: var(--lc-text);
  background: var(--lc-pill-bg); text-decoration: none;
}
.lc-pill .lc-arrow { color: var(--lc-verde-texto); }
.lc-inverse .lc-pill, .lc-pill--dark {
  border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.06);
}
.lc-inverse .lc-pill .lc-arrow, .lc-pill--dark .lc-arrow { color: var(--lc-lime); }
/* Pill sólida — o CTA do próprio manual (p.2/p.4): navy, seta verde, sombra suave */
.lc-pill--solid {
  background: var(--lc-navy); color: #fff; border-color: transparent;
  box-shadow: var(--lc-shadow-md);
}
.lc-pill--solid .lc-arrow { color: var(--lc-lime); }

/* ================= Formulários ================= */
.lc-label { display: block; font-weight: var(--lc-fw-medium); font-size: var(--lc-fs-body-sm); margin-bottom: var(--lc-space-2); color: var(--lc-text); }
.lc-input, .lc-select, .lc-textarea {
  width: 100%; font-family: var(--lc-font-body); font-size: var(--lc-fs-body);
  color: var(--lc-text); background: var(--lc-surface);
  border: 1px solid var(--lc-border); border-radius: var(--lc-radius-sm);
  height: var(--lc-control-h); padding: 0 var(--lc-space-3);
}
.lc-textarea { height: auto; min-height: 120px; padding: var(--lc-space-3); }
.lc-input::placeholder, .lc-textarea::placeholder { color: var(--lc-text-muted); }
.lc-input:focus, .lc-select:focus, .lc-textarea:focus { border-color: var(--lc-azul-800); outline: 2px solid var(--lc-focus); outline-offset: 1px; }
.lc-input[disabled], .lc-select[disabled] { background: var(--lc-bg-subtle); color: var(--lc-text-muted); }
.lc-input--error { border-color: var(--lc-danger); }
.lc-help { font-size: 13px; color: var(--lc-text-secondary); margin-top: var(--lc-space-1); }
.lc-error { font-size: 13px; color: var(--lc-danger); margin-top: var(--lc-space-1); font-weight: var(--lc-fw-medium); }

/* ================= Badges ================= */
.lc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--lc-fs-caption); font-weight: var(--lc-fw-semibold);
  padding: 2px 10px; border-radius: var(--lc-radius-full); line-height: 1.6;
}
.lc-badge--success { color: var(--lc-success); background: var(--lc-success-bg); }
.lc-badge--info    { color: var(--lc-info);    background: var(--lc-info-bg); }
.lc-badge--warning { color: var(--lc-warning); background: var(--lc-warning-bg); }
.lc-badge--danger  { color: var(--lc-danger);  background: var(--lc-danger-bg); }
.lc-badge--neutral { color: var(--lc-text-secondary); background: var(--lc-track); }
.lc-badge--brand   { color: var(--lc-navy);    background: var(--lc-lime); }

/* ================= Cards ================= */
.lc-card { background: var(--lc-surface); border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-md); padding: var(--lc-space-6); }
.lc-card--accent { border-top: 3px solid var(--lc-lime); }
/* Card de marketing (manual p.7/p.12): raio maior, sem borda, sombra difusa */
.lc-card--soft {
  border: 0; border-radius: var(--lc-radius-xl);
  box-shadow: 0 8px 32px rgba(2, 23, 46, 0.07);
  padding: var(--lc-space-8);
}
.lc-card--clickable { transition: box-shadow .15s ease, border-color .15s ease; }
.lc-card--clickable:hover { box-shadow: var(--lc-shadow-md); border-color: var(--lc-border); }
.lc-kpi { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-medium); font-size: 3.5rem; line-height: 1.05; color: var(--lc-heading); font-variant-numeric: tabular-nums; }
.lc-kpi--destaque { color: var(--lc-kpi-destaque); }

/* ================= Alertas =================
   Tinta de fundo + ícone/título fortes. Sem barra lateral decorativa. */
.lc-alert { display: flex; gap: var(--lc-space-3); align-items: flex-start; padding: var(--lc-space-4); border-radius: var(--lc-radius-md); font-size: var(--lc-fs-body-sm); }
.lc-alert--success { background: var(--lc-success-bg); color: var(--lc-success); }
.lc-alert--info    { background: var(--lc-info-bg);    color: var(--lc-info); }
.lc-alert--warning { background: var(--lc-warning-bg); color: var(--lc-warning); }
.lc-alert--danger  { background: var(--lc-danger-bg);  color: var(--lc-danger); }

/* ================= Tabela ================= */
.lc-table { width: 100%; border-collapse: collapse; font-size: var(--lc-fs-body-sm); }
.lc-table th { background: var(--lc-verde-escuro); color: #fff; text-align: left; padding: 10px 14px; font-weight: var(--lc-fw-medium); }
.lc-table td { padding: 10px 14px; border-bottom: 1px solid var(--lc-border-subtle); }
.lc-table tbody tr:nth-child(even) { background: var(--lc-track); }
.lc-table tbody tr:hover { background: var(--lc-row-hover); }
.lc-table .lc-num, .lc-table th.lc-num { text-align: right; }

/* ================= Progresso e loading ================= */
.lc-progress { height: 4px; border-radius: var(--lc-radius-full); background: var(--lc-track); overflow: hidden; }
.lc-progress > span { display: block; height: 100%; background: var(--lc-verde-500); border-radius: inherit; }
.lc-inverse .lc-progress { background: rgba(255, 255, 255, 0.2); }
.lc-inverse .lc-progress > span { background: var(--lc-lime); }

.lc-skeleton { background: var(--lc-track); border-radius: var(--lc-radius-sm); animation: lc-pulse 1.2s ease-in-out infinite; }
@keyframes lc-pulse { 50% { opacity: 0.55; } }

/* Chip de ícone (posts/empty states) */
.lc-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--lc-radius-lg);
  background: var(--lc-chip-bg); border: 1px solid var(--lc-chip-border);
  box-shadow: var(--lc-shadow-sm); color: var(--lc-heading);
}

/* ============================================================
   COMPONENTES EXCLUSIVOS DA MARCA
   Derivados do material oficial — não existem em kit genérico.
   ============================================================ */

/* Régua de ticks (manual p.13) — timeline, etapas, eixo de processo.
   Marcos: posicione .lc-regua__marco com style="left:NN%". */
.lc-regua {
  --regua-major: var(--lc-tick-strong);
  --regua-minor: var(--lc-tick);
  position: relative;
  height: 36px;
  background-image:
    repeating-linear-gradient(90deg, var(--regua-major) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, var(--regua-minor) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 100% 58%;
  background-position: left top, left bottom;
  background-repeat: no-repeat;
}
.lc-inverse .lc-regua, .lc-regua--dark {
  --regua-major: rgba(133, 177, 153, 0.85);
  --regua-minor: rgba(133, 177, 153, 0.35);
}
.lc-regua__marco {
  position: absolute; top: -5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--lc-verde-500);
  transform: translateX(-50%);
}
.lc-inverse .lc-regua__marco { background: var(--lc-lime); }

/* Círculo de dado (posts oficiais / manual p.12) — o "hero metric" da marca:
   número + contexto + fonte citada, dentro de um círculo verde sólido. */
.lc-dado {
  width: min(480px, 86vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--lc-verde-500); color: #fff;
  display: grid; place-content: center; text-align: center;
  gap: var(--lc-space-3); padding: 11%;
}
.lc-dado__numero {
  font-family: var(--lc-font-heading); font-weight: var(--lc-fw-bold);
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lc-dado__contexto { font-size: var(--lc-fs-body); line-height: 1.4; color: #E4F0E9; max-width: 24ch; margin-inline: auto; }
.lc-dado__fonte { font-size: var(--lc-fs-caption); color: #BFDCCB; }

/* Selo de certificação (estrutura do asset Manifesto) — carimbo institucional
   vivo: claim ou certificado + meta verificável. */
.lc-selo {
  display: inline-flex; flex-direction: column; gap: var(--lc-space-2);
  border: 1.5px solid var(--lc-verde-500); border-radius: var(--lc-radius-lg);
  background: var(--lc-surface); padding: var(--lc-space-6); max-width: 340px;
}
.lc-selo__titulo { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: var(--lc-fs-h5); line-height: 1.3; color: var(--lc-heading); }
.lc-selo__meta { font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); }
.lc-inverse .lc-selo, .lc-selo--dark { background: transparent; border-color: var(--lc-logo-verde-claro); }
.lc-inverse .lc-selo .lc-selo__titulo, .lc-selo--dark .lc-selo__titulo { color: #fff; }
.lc-inverse .lc-selo .lc-selo__meta, .lc-selo--dark .lc-selo__meta { color: var(--lc-verde-100); }

/* Carimbo de proveniência — o "prova > promessa" como átomo: origem + data/hora.
   Use ao lado de todo número/afirmação que precise de lastro. */
.lc-carimbo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--lc-fs-caption); color: var(--lc-text-secondary);
  border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-sm);
  background: var(--lc-surface); padding: 3px 10px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lc-carimbo::before { content: "✓"; color: var(--lc-verde-500); font-weight: 700; }
.lc-inverse .lc-carimbo { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--lc-neutro-100); }
.lc-inverse .lc-carimbo::before { color: var(--lc-lime); }

/* Trilha de rastreabilidade — a cadeia de custódia (medição → certificado)
   como componente. Estados: .done (feito), .atual, .pendente. */
.lc-trilha { list-style: none; margin: 0; padding: 0; position: relative; }
.lc-trilha::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px;
  width: 1px; background: var(--lc-border-subtle);
}
.lc-trilha > li { position: relative; padding: 0 0 var(--lc-space-6) 44px; }
.lc-trilha > li:last-child { padding-bottom: 0; }
.lc-trilha > li::before {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--lc-surface); border: 2px solid var(--lc-border);
}
.lc-trilha > li.done::before { background: var(--lc-verde-500); border-color: var(--lc-verde-500); }
.lc-trilha > li.atual::before { border-color: var(--lc-verde-500); }
.lc-trilha__titulo { display: block; font-weight: var(--lc-fw-semibold); font-size: var(--lc-fs-body-sm); color: var(--lc-text); }
.lc-trilha__meta { display: block; font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); margin-top: 2px; }

/* ID de registro (LCS-0027 etc.) — sempre tabular e levemente espaçado */
.lc-id { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-weight: var(--lc-fw-medium); }

/* ------------------------------------------------------------
   EXCLUSIVOS · OBJETOS DO DOMÍNIO — o negócio da certificadora
   como componente: certificado, verificação, parcela, safra,
   balanço. Só a Lux Carbon tem esses.
   ------------------------------------------------------------ */

/* Certificado — o documento-cartão da casa. 1 por vista. */
.lc-certificado {
  background: var(--lc-surface); border: 1px solid var(--lc-verde-500);
  border-radius: var(--lc-radius-lg); overflow: hidden; max-width: 600px;
}
.lc-certificado__topo {
  display: flex; align-items: center; justify-content: space-between; gap: var(--lc-space-4);
  padding: var(--lc-space-4) var(--lc-space-6);
  background: var(--lc-verde-escuro); color: #fff;
}
.lc-certificado__tipo { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lc-verde-100); }
.lc-certificado__id { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 1.1rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.lc-certificado__corpo {
  padding: var(--lc-space-6);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--lc-space-4) var(--lc-space-6);
}
.lc-certificado__campo { display: grid; gap: 2px; }
.lc-certificado__campo dt { font-size: 10.5px; font-weight: var(--lc-fw-semibold); letter-spacing: 0.07em; text-transform: uppercase; color: var(--lc-text-secondary); }
.lc-certificado__campo dd { margin: 0; font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 0.98rem; color: var(--lc-heading); font-variant-numeric: tabular-nums; }
.lc-certificado__rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lc-space-3);
  padding: var(--lc-space-3) var(--lc-space-6);
  border-top: 1px dashed var(--lc-border); background: var(--lc-surface-2);
  font-size: var(--lc-fs-caption); color: var(--lc-text-secondary);
}
.lc-certificado__hash { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

/* Anel de verificação — a régua de ticks em círculo. --p = percentual. */
.lc-anel { --p: 0; --tam: 120px; --anel-cor: var(--lc-verde-500);
  width: var(--tam); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.lc-anel::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--anel-cor) calc(var(--p) * 1%), var(--lc-track) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(closest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
}
.lc-anel::after {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: repeating-conic-gradient(var(--lc-tick-strong) 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.lc-anel__valor { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: calc(var(--tam) * 0.2); color: var(--lc-heading); font-variant-numeric: tabular-nums; }
.lc-inverse .lc-anel__valor { color: #fff; }
.lc-inverse .lc-anel::after { background: repeating-conic-gradient(rgba(255, 255, 255, 0.3) 0 1deg, transparent 1deg 6deg); }

/* Medidor — barra com escala de ticks e marcador de meta (--w, --meta). */
.lc-medidor { position: relative; display: grid; gap: 5px; }
.lc-medidor__barra { height: 10px; border-radius: var(--lc-radius-full); background: var(--lc-track); overflow: hidden; }
.lc-medidor__barra > span { display: block; height: 100%; width: var(--w, 0%); background: var(--lc-verde-500); border-radius: inherit; }
.lc-medidor__escala {
  height: 13px;
  background-image:
    repeating-linear-gradient(90deg, var(--lc-tick-strong) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, var(--lc-tick) 0 1px, transparent 1px 2.5%);
  background-size: calc(100% + 1px) 100%, calc(100% + 1px) 55%;
  background-position: left top, left top; background-repeat: no-repeat;
}
.lc-medidor__meta { position: absolute; top: -4px; height: 18px; width: 2px; background: var(--lc-heading); left: var(--meta, 100%); }

/* Mapa de parcelas — matriz de pontos (o halftone virando dado).
   Cada ponto = uma parcela real; legenda é obrigatória. */
.lc-parcelas { display: grid; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr)); gap: 6px; }
.lc-parcelas span { aspect-ratio: 1; border-radius: 50%; background: var(--lc-track); }
.lc-parcelas .ok { background: var(--lc-verde-500); }
.lc-parcelas .consolidacao { background: var(--lc-verde-100); }
.lc-parcelas .pendente { background: var(--lc-warning); }
.lc-parcelas span[title] { cursor: help; }
.lc-parcelas-legenda { display: flex; flex-wrap: wrap; gap: var(--lc-space-4); font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); margin-top: var(--lc-space-3); }
.lc-parcelas-legenda i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.lc-parcelas-legenda i::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--lc-neutro-100)); }

/* Balanço de carbono — "mostramos a conta": linhas + saldo. --w em %. */
.lc-balanco { display: grid; gap: var(--lc-space-3); max-width: 560px; }
.lc-balanco__linha { display: grid; grid-template-columns: minmax(96px, 150px) 1fr auto; align-items: center; gap: var(--lc-space-3); font-size: var(--lc-fs-body-sm); }
.lc-balanco__linha > span:first-child { color: var(--lc-text-secondary); }
.lc-balanco__barra { height: 14px; border-radius: var(--lc-radius-sm); background: var(--lc-track); overflow: hidden; }
.lc-balanco__barra > span { display: block; height: 100%; width: var(--w, 0%); background: var(--lc-verde-500); }
.lc-balanco__linha--debito .lc-balanco__barra > span { background: var(--lc-neutro-600); }
.lc-balanco__valor { font-variant-numeric: tabular-nums; font-weight: var(--lc-fw-medium); color: var(--lc-text); }
.lc-balanco__saldo { display: flex; justify-content: space-between; align-items: baseline; gap: var(--lc-space-3); border-top: 1px solid var(--lc-border-subtle); padding-top: var(--lc-space-3); font-size: var(--lc-fs-body-sm); font-weight: var(--lc-fw-semibold); }
.lc-balanco__saldo strong { font-family: var(--lc-font-heading); font-size: 1.15rem; color: var(--lc-kpi-destaque); font-variant-numeric: tabular-nums; }

/* Linha de safras — vintages; ativa com sublinha verde (padrão de nav da casa) */
.lc-safras { display: flex; flex-wrap: wrap; gap: var(--lc-space-2); }
.lc-safra {
  display: grid; gap: 2px; min-width: 108px; padding: 10px 14px;
  background: var(--lc-surface); border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-sm);
  text-decoration: none; color: inherit;
}
.lc-safra small { font-size: 11px; color: var(--lc-text-secondary); }
.lc-safra strong { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 0.95rem; color: var(--lc-heading); }
.lc-safra .lc-num { font-size: 12px; color: var(--lc-text-secondary); font-weight: var(--lc-fw-regular); }
.lc-safra--ativa { border-color: var(--lc-verde-500); box-shadow: inset 0 -2px 0 var(--lc-verde-500); }

/* Bloco de assinatura — o ÚNICO lugar do Lettering manuscrito em documento */
.lc-assinatura { display: inline-grid; gap: var(--lc-space-2); }
.lc-assinatura img { height: 42px; width: auto; justify-self: start; }
.lc-assinatura__linha { border-top: 1px solid var(--lc-heading); padding-top: 6px; min-width: 220px; font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); }
.lc-assinatura__linha strong { display: block; font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 13px; color: var(--lc-heading); }

/* Evidência fotográfica — foto com chip georreferenciado e meta verificável */
.lc-evidencia { max-width: 440px; background: var(--lc-surface); border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-md); overflow: hidden; }
.lc-evidencia__foto { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.lc-evidencia__geo {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; gap: 10px; padding: 4px 9px; border-radius: var(--lc-radius-sm);
  background: rgba(2, 23, 46, 0.72); color: #EAF3F8;
  font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.lc-evidencia__meta { display: flex; justify-content: space-between; gap: var(--lc-space-3); padding: 10px 14px; font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); }

/* Bloco de fontes — a conta por trás do número */
.lc-fontes { border-top: 1px solid var(--lc-border-subtle); padding-top: var(--lc-space-3); max-width: 64ch; font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); }
.lc-fontes__titulo { display: block; font-size: 10.5px; font-weight: var(--lc-fw-semibold); letter-spacing: 0.07em; text-transform: uppercase; color: var(--lc-text-muted); margin-bottom: 6px; }
.lc-fontes ol { margin: 0; padding: 0; list-style: none; counter-reset: fonte; display: grid; gap: 4px; }
.lc-fontes li { counter-increment: fonte; line-height: 1.5; }
.lc-fontes li::before { content: "[" counter(fonte) "] "; color: var(--lc-verde-texto); font-weight: var(--lc-fw-semibold); }

/* Quantidade tCO₂e — lockup tipográfico correto (subscrito + tabular) */
.lc-co2 { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-co2 .un { font-size: 0.48em; font-weight: var(--lc-fw-semibold); color: var(--lc-text-secondary); margin-left: 0.18em; letter-spacing: 0.02em; }
.lc-co2 sub { font-size: 0.62em; vertical-align: -0.14em; }
.lc-inverse .lc-co2 .un { color: var(--lc-verde-100); }

/* Trilha horizontal — a cadeia de custódia deitada (passaporte do crédito) */
.lc-trilha--horizontal { display: flex; }
.lc-trilha--horizontal::before { display: none; }
.lc-trilha--horizontal > li { flex: 1; padding: 26px 12px 0 0; }
.lc-trilha--horizontal > li::before { left: 0; top: 0; }
.lc-trilha--horizontal > li::after {
  content: ""; position: absolute; top: 9px; left: 24px; right: 8px; height: 1px;
  background: var(--lc-border-subtle);
}
.lc-trilha--horizontal > li:last-child { padding-right: 0; }
.lc-trilha--horizontal > li:last-child::after { display: none; }

/* ------------------------------------------------------------
   VIDRO — material funcional sobre foto/fundo escuro/atmosfera
   (padrão dos chips dos posts). Nunca vidro dentro de vidro;
   nunca como default em produto. Fallback sólido automático.
   ------------------------------------------------------------ */
.lc-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--lc-radius-lg);
  box-shadow: 0 12px 40px rgba(2, 23, 46, 0.14);
  color: var(--lc-navy);
}
.lc-glass--escuro {
  background: rgba(2, 23, 46, 0.66);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lc-glass {
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
  .lc-glass--escuro { background: rgba(2, 23, 46, 0.42); }
}
.lc-card--glass { padding: var(--lc-space-6); }
.lc-topo-glass { position: sticky; top: 0; z-index: 50; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }

/* ------------------------------------------------------------
   INSTRUMENTOS — a família do anel: réguas e escalas de medição.
   ------------------------------------------------------------ */

/* Anel com rótulo interno */
.lc-anel__sub {
  font-family: var(--lc-font-body); font-weight: var(--lc-fw-medium);
  font-size: calc(var(--tam) * 0.082); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--lc-text-secondary); text-align: center; margin-top: 2px;
}
.lc-anel--rotulado { place-content: center; }
.lc-inverse .lc-anel__sub { color: var(--lc-verde-100); }

/* Anel inline — completude dentro de texto/tabela */
.lc-anel--inline { --tam: 16px; display: inline-grid; vertical-align: -2px; }
.lc-anel--inline::before {
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.lc-anel--inline::after { display: none; }

/* Grupo de anéis — leitura por dimensão */
.lc-anel-grupo { display: flex; flex-wrap: wrap; gap: var(--lc-space-8); }
.lc-anel-grupo figure { margin: 0; display: grid; gap: var(--lc-space-2); justify-items: center; }
.lc-anel-grupo figcaption { font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); text-align: center; }

/* Arco — medidor semicircular com ticks (0–100 → --p) */
.lc-arco { --p: 0; --tam: 220px; --arco-cor: var(--lc-verde-500);
  position: relative; width: var(--tam); aspect-ratio: 2 / 1.18;
  overflow: hidden; display: grid; justify-items: center; align-items: end;
}
.lc-arco::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: var(--tam); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--arco-cor) calc(var(--p) * 0.5%), var(--lc-track) 0 50%, transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
  mask: radial-gradient(closest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}
.lc-arco::after {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(var(--tam) - 36px); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(var(--lc-tick-strong) 0 1deg, transparent 1deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.lc-arco__valor {
  position: relative; z-index: 1; font-family: var(--lc-font-heading);
  font-weight: var(--lc-fw-semibold); font-size: calc(var(--tam) * 0.16);
  color: var(--lc-heading); font-variant-numeric: tabular-nums; line-height: 1; padding-bottom: 4px;
}
.lc-arco__minmax {
  position: absolute; bottom: 0; left: 4px; right: 4px; z-index: 1;
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--lc-text-muted); font-variant-numeric: tabular-nums;
}
.lc-inverse .lc-arco__valor { color: #fff; }
.lc-inverse .lc-arco::after { background: repeating-conic-gradient(rgba(255, 255, 255, 0.3) 0 1deg, transparent 1deg 7.5deg); }

/* Escala vertical — altímetro/estoque (--h preenchimento, --marco meta) */
.lc-escala-v { position: relative; display: inline-flex; gap: 7px; height: 180px; }
.lc-escala-v__barra { width: 10px; height: 100%; border-radius: var(--lc-radius-full); background: var(--lc-track); position: relative; overflow: hidden; }
.lc-escala-v__barra > span { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: var(--lc-verde-500); }
.lc-escala-v__ticks {
  width: 15px; height: 100%;
  background-image:
    repeating-linear-gradient(180deg, var(--lc-tick-strong) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(180deg, var(--lc-tick) 0 1px, transparent 1px 2.5%);
  background-size: 100% calc(100% + 1px), 60% calc(100% + 1px);
  background-position: left top, left top; background-repeat: no-repeat;
}
.lc-escala-v__marco { position: absolute; left: -4px; width: 18px; height: 2px; background: var(--lc-heading); bottom: var(--marco, 100%); }

/* Medidor comparativo — segundo marcador (ex.: volume auditado) */
.lc-medidor--comparativo .lc-medidor__barra { overflow: visible; position: relative; }
.lc-medidor__auditado { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--lc-link); left: var(--x, 0%); }

/* ------------------------------------------------------------
   ORGÂNICOS — a linguagem de terreno: curvas de nível e formas
   de parcela. Decorativo de fundo ou moldura de foto — nunca
   em botão, input ou card de produto.
   ------------------------------------------------------------ */

/* Curvas de nível (mapa de relevo) — máscara SVG recolorível */
.lc-relevo { position: relative; }
.lc-relevo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--relevo-cor, var(--lc-tick));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M300,230 C336,226 366,258 368,294 C370,332 338,366 300,368 C260,370 232,336 230,298 C228,262 262,234 300,230 Z'/%3E%3Cpath d='M300,190 C356,184 410,240 412,296 C414,356 358,410 298,412 C238,414 188,360 188,300 C188,242 242,196 300,190 Z'/%3E%3Cpath d='M302,148 C386,142 450,222 454,300 C458,386 378,454 294,452 C212,450 146,378 148,294 C150,214 220,154 302,148 Z'/%3E%3Cpath d='M300,105 C406,98 494,194 498,298 C502,410 400,500 292,497 C186,494 100,398 103,290 C106,186 196,112 300,105 Z'/%3E%3Cpath d='M302,58 C440,50 550,172 554,302 C558,440 436,556 294,552 C158,548 44,428 48,292 C52,160 166,66 302,58 Z'/%3E%3C/g%3E%3C/svg%3E")
    var(--relevo-pos, center) / var(--relevo-tam, 130%) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M300,230 C336,226 366,258 368,294 C370,332 338,366 300,368 C260,370 232,336 230,298 C228,262 262,234 300,230 Z'/%3E%3Cpath d='M300,190 C356,184 410,240 412,296 C414,356 358,410 298,412 C238,414 188,360 188,300 C188,242 242,196 300,190 Z'/%3E%3Cpath d='M302,148 C386,142 450,222 454,300 C458,386 378,454 294,452 C212,450 146,378 148,294 C150,214 220,154 302,148 Z'/%3E%3Cpath d='M300,105 C406,98 494,194 498,298 C502,410 400,500 292,497 C186,494 100,398 103,290 C106,186 196,112 300,105 Z'/%3E%3Cpath d='M302,58 C440,50 550,172 554,302 C558,440 436,556 294,552 C158,548 44,428 48,292 C52,160 166,66 302,58 Z'/%3E%3C/g%3E%3C/svg%3E")
    var(--relevo-pos, center) / var(--relevo-tam, 130%) no-repeat;
}
.lc-relevo > * { position: relative; }
.lc-inverse .lc-relevo::before, .lc-relevo--escuro::before { background: var(--relevo-cor, rgba(133, 177, 153, 0.28)); }

/* Formas orgânicas — moldura de parcela para foto ou cor */
.lc-forma-organica { border-radius: 62% 38% 55% 45% / 48% 56% 44% 52%; overflow: hidden; }
.lc-forma-organica--2 { border-radius: 43% 57% 48% 52% / 58% 44% 56% 42%; }
.lc-forma-organica--3 { border-radius: 55% 45% 34% 66% / 42% 58% 40% 60%; }
.lc-forma-organica > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Terreno — a parcela como card: relevo + dado + chip geo (compor
   com .lc-relevo .lc-relevo--escuro e um filho .lc-glass--escuro) */
.lc-terreno {
  position: relative; overflow: hidden;
  background: var(--lc-verde-escuro); color: #fff;
  border-radius: var(--lc-radius-lg); min-height: 250px;
  padding: var(--lc-space-6);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--lc-space-3);
}
.lc-terreno__nome { font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 1.1rem; }
.lc-terreno__geo {
  display: inline-flex; gap: 10px; align-self: flex-start;
  padding: 5px 10px; border-radius: var(--lc-radius-sm);
  font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   DA ARTE PARA O COMPONENTE — elementos minerados das peças
   oficiais (posts e páginas do manual), prontos para reuso.
   ------------------------------------------------------------ */

/* Dica de arraste (topo da capa dos carrosséis oficiais) */
.lc-hint-swipe {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--lc-fs-body-sm); letter-spacing: 0.02em; color: var(--lc-sky);
}

/* Paginação de carrossel — barra segmentada da base dos posts.
   Marque a tela atual com .ativo */
.lc-progress--segmentos { display: flex; gap: 6px; height: 4px; background: none; border-radius: 0; overflow: visible; }
.lc-progress--segmentos span { flex: 1; height: 100%; border-radius: var(--lc-radius-full); background: var(--lc-track); }
.lc-progress--segmentos span.ativo { background: var(--lc-verde-500); }
.lc-inverse .lc-progress--segmentos span, .lc-escuro .lc-progress--segmentos span { background: rgba(255, 255, 255, 0.22); }
.lc-inverse .lc-progress--segmentos span.ativo, .lc-escuro .lc-progress--segmentos span.ativo { background: var(--lc-lime); }

/* Chip de ícone flutuante (slides claros dos posts: relógio, folha…).
   Use dentro de um contêiner position:relative; posicione com inline style. */
.lc-chip-icon--flutuante {
  position: absolute; transform: rotate(var(--rot, -6deg));
  box-shadow: 0 12px 28px rgba(2, 23, 46, 0.12);
}

/* Wordmark inline em headline ("…que a [LuxCarbon] trabalha.") —
   sempre o ARQUIVO do logo, alinhado à linha de base do texto. */
.lc-marca-inline { height: 0.92em; vertical-align: -0.08em; width: auto; }

/* Citação/afirmação editorial (intro do manual, fechos dos posts) */
.lc-citacao {
  margin: 0; font-family: var(--lc-font-heading); font-weight: var(--lc-fw-medium);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.16;
  letter-spacing: -0.015em; color: var(--lc-heading); max-width: 26ch; text-wrap: balance;
}
.lc-citacao strong { font-weight: var(--lc-fw-bold); }
.lc-citacao em { font-style: normal; color: var(--lc-verde-texto); }
.lc-citacao__origem { display: block; margin-top: var(--lc-space-4); font-family: var(--lc-font-body); font-weight: var(--lc-fw-medium); font-size: var(--lc-fs-caption); color: var(--lc-text-secondary); letter-spacing: 0; }
.lc-inverse .lc-citacao { color: #fff; }
.lc-inverse .lc-citacao em { color: var(--lc-lime); }
.lc-inverse .lc-citacao__origem { color: var(--lc-verde-100); }

/* Fecho verde — última frase em destaque (POST 2, tela final) */
.lc-fecho-verde { color: var(--lc-verde-texto); font-weight: var(--lc-fw-semibold); }

/* Intro editorial (manual p.2): título à esquerda, corpo à direita */
.lc-intro-editorial {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px); align-items: start;
}
@media (max-width: 900px) { .lc-intro-editorial { grid-template-columns: 1fr; } }

/* Malha de construção (grades técnicas do manual, p.5) — fundo de apoio
   para seções de especificação; nunca atrás de texto longo. */
.lc-malha {
  background-image:
    linear-gradient(var(--lc-tick-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--lc-tick-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lc-inverse .lc-malha, .lc-malha--escura {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

/* Card de uso proibido (manual p.6) — tile com diagonal vermelha.
   Para documentação de marca: mostrar o erro riscado. */
.lc-nao-card {
  position: relative; overflow: hidden; text-align: center;
  display: grid; place-items: center; gap: var(--lc-space-3);
  background: var(--lc-surface); border: 1px solid var(--lc-border-subtle);
  border-radius: var(--lc-radius-md); padding: var(--lc-space-6);
}
.lc-nao-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right,
    transparent calc(50% - 1px), #C0392B calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.lc-nao-card__rotulo { font-size: 11px; font-weight: var(--lc-fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lc-text-muted); }

/* Régua com marcos rotulados acima/abaixo (slide de timeline, manual p.13).
   Estrutura: .lc-regua-bloco > .lc-regua (+ .lc-regua__marco) + .lc-marco-rotulo */
.lc-regua-bloco { position: relative; padding-block: 104px; }
.lc-regua-bloco > .lc-regua { position: relative; }
.lc-marco-rotulo { position: absolute; width: min(210px, 38vw); font-size: 12px; line-height: 1.45; }
.lc-marco-rotulo strong { display: block; font-family: var(--lc-font-heading); font-weight: var(--lc-fw-semibold); font-size: 13px; color: var(--lc-heading); margin-bottom: 2px; }
.lc-marco-rotulo span { color: var(--lc-text-secondary); }
.lc-marco-rotulo--acima { bottom: calc(50% + 34px); }
.lc-marco-rotulo--abaixo { top: calc(50% + 34px); }
.lc-inverse .lc-marco-rotulo strong { color: #fff; }
.lc-inverse .lc-marco-rotulo span { color: var(--lc-verde-100); }

/* Wordmark sangrado (manual p.5 e p.11): o logo gigante cortado pelas
   bordas como textura de capa/divisória. Sempre o arquivo; nunca em UI. */
.lc-wordmark-bleed {
  position: absolute; max-width: none; pointer-events: none; user-select: none;
  opacity: var(--bleed-opacity, 0.12);
}

/* Galeria de variantes (manual p.8): tiles quadrados alternando fundos */
.lc-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--lc-space-3); }
.lc-galeria__tile {
  aspect-ratio: 1; display: grid; place-items: center; padding: var(--lc-space-4);
  background: var(--lc-surface); border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-sm);
}
.lc-galeria__tile--escuro { background: var(--lc-navy); border-color: var(--lc-navy); }
.lc-galeria__tile img { max-width: 78%; max-height: 58%; }

/* Card de especificação (manual p.7: "APLICAÇÕES DIGITAIS · MIN 100 PX") */
.lc-espec {
  display: grid; justify-items: center; gap: var(--lc-space-4);
  text-align: center; padding: var(--lc-space-8) var(--lc-space-6);
  background: var(--lc-surface); border: 1px solid var(--lc-border-subtle); border-radius: var(--lc-radius-md);
}
.lc-espec__rotulo { font-size: 11px; font-weight: var(--lc-fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lc-azul-400); }

/* ================= Layout ================= */
.lc-container { max-width: var(--lc-container); margin-inline: auto; padding-inline: var(--lc-space-6); }
.lc-section { padding-block: var(--lc-space-16); }

@media (min-width: 1024px) {
  .lc-container { padding-inline: var(--lc-space-12); }
  .lc-section { padding-block: var(--lc-space-24); }
}
@media (max-width: 767px) {
  :root { --lc-fs-display: 3.052rem; --lc-fs-h1: 2.441rem; --lc-fs-h2: 1.953rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-skeleton { animation: none; }
  .lc-btn, .lc-card--clickable { transition: none; }
}

/* Troca de logo por tema: use os dois <img> lado a lado.
   <img src=..._Claro.svg class="lc-light-only"> <img src=..._Escuro.svg class="lc-dark-only"> */
.lc-dark-only { display: none; }

/* ============================================================
   MODO ESCURO — segue o sistema por padrão; force com
   <html data-theme="dark"> ou trave o claro com data-theme="light".
   Superfícies escuras derivam do Navy #02172E (documentado em cores.md).
   ============================================================ */
:root[data-theme="dark"] {
  --lc-bg: #02172E;
  --lc-bg-subtle: #0C2238;
  --lc-bg-soft-blue: #0F2C45;
  --lc-surface: #0F2540;
  --lc-surface-2: #0B2036;
  --lc-heading: #F2F5F3;
  --lc-text: #E8ECEF;
  --lc-text-secondary: #AAB6C0;
  --lc-text-muted: #7596AB;
  --lc-border: rgba(255, 255, 255, 0.26);
  --lc-border-subtle: rgba(255, 255, 255, 0.12);
  --lc-link: #59C3FF;
  --lc-secondary: #D5E5EC;
  --lc-action-hover: #2A8552;
  --lc-action-cta-hover: #164F31;
  --lc-kpi-destaque: #90D62E;
  --lc-verde-texto: #85B199;
  --lc-success: #85B199; --lc-success-bg: rgba(133, 177, 153, 0.16);
  --lc-info: #59C3FF;    --lc-info-bg: rgba(89, 195, 255, 0.13);
  --lc-warning: #DDBA5C; --lc-warning-bg: rgba(221, 186, 92, 0.15);
  --lc-danger: #F0A6A6;  --lc-danger-bg: rgba(240, 166, 166, 0.15);
  --lc-track: rgba(255, 255, 255, 0.16);
  --lc-tick: rgba(255, 255, 255, 0.16);
  --lc-tick-strong: rgba(255, 255, 255, 0.42);
  --lc-tick-soft: rgba(255, 255, 255, 0.07);
  --lc-row-hover: rgba(89, 195, 255, 0.09);
  --lc-chip-bg: rgba(15, 37, 64, 0.72);
  --lc-chip-border: rgba(255, 255, 255, 0.14);
  --lc-pill-bg: rgba(255, 255, 255, 0.06);
  --lc-atmo: linear-gradient(175deg, #0B2036 0%, #071B2F 55%, #02172E 100%);
  --lc-orb-cor: rgba(89, 195, 255, 0.12);
  color-scheme: dark;
}
:root[data-theme="dark"] .lc-dark-only { display: inline-block; }
:root[data-theme="dark"] .lc-light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lc-bg: #02172E;
    --lc-bg-subtle: #0C2238;
    --lc-bg-soft-blue: #0F2C45;
    --lc-surface: #0F2540;
    --lc-surface-2: #0B2036;
    --lc-heading: #F2F5F3;
    --lc-text: #E8ECEF;
    --lc-text-secondary: #AAB6C0;
    --lc-text-muted: #7596AB;
    --lc-border: rgba(255, 255, 255, 0.26);
    --lc-border-subtle: rgba(255, 255, 255, 0.12);
    --lc-link: #59C3FF;
    --lc-secondary: #D5E5EC;
    --lc-action-hover: #2A8552;
    --lc-action-cta-hover: #164F31;
    --lc-kpi-destaque: #90D62E;
    --lc-verde-texto: #85B199;
    --lc-success: #85B199; --lc-success-bg: rgba(133, 177, 153, 0.16);
    --lc-info: #59C3FF;    --lc-info-bg: rgba(89, 195, 255, 0.13);
    --lc-warning: #DDBA5C; --lc-warning-bg: rgba(221, 186, 92, 0.15);
    --lc-danger: #F0A6A6;  --lc-danger-bg: rgba(240, 166, 166, 0.15);
    --lc-track: rgba(255, 255, 255, 0.16);
    --lc-tick: rgba(255, 255, 255, 0.16);
    --lc-tick-strong: rgba(255, 255, 255, 0.42);
    --lc-tick-soft: rgba(255, 255, 255, 0.07);
    --lc-row-hover: rgba(89, 195, 255, 0.09);
    --lc-chip-bg: rgba(15, 37, 64, 0.72);
    --lc-chip-border: rgba(255, 255, 255, 0.14);
    --lc-pill-bg: rgba(255, 255, 255, 0.06);
    --lc-atmo: linear-gradient(175deg, #0B2036 0%, #071B2F 55%, #02172E 100%);
    --lc-orb-cor: rgba(89, 195, 255, 0.12);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .lc-dark-only { display: inline-block; }
  :root:not([data-theme="light"]) .lc-light-only { display: none; }
}
