/* ==========================================================================
   CONTROLA CONTA — LANDING PAGE DESIGN SYSTEM (MOBILE-FIRST, LIGHT & DARK)
   Paleta neutra fintech com destaque esmeralda e foco em credibilidade
   ========================================================================== */

:root {
  /* Superfícies Neutras — Light Mode */
  --lp-bg: #f8fafc;
  --lp-bg-alt: #f1f5f9;
  --lp-surface: #ffffff;
  --lp-surface-subtle: #f8fafc;
  --lp-header-bg: rgba(255, 255, 255, 0.88);
  --lp-backdrop: rgba(15, 23, 42, 0.45);

  /* Bordas & Sombras */
  --lp-border: #e2e8f0;
  --lp-border-strong: #cbd5e1;
  --lp-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --lp-shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --lp-shadow-md: 0 14px 32px -8px rgba(15, 23, 42, 0.10), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --lp-shadow-lg: 0 24px 54px -14px rgba(15, 23, 42, 0.14);

  /* Identidade Esmeralda / Teal */
  --lp-brand: #0d9488;
  --lp-brand-hover: #0f766e;
  --lp-brand-light: #14b8a6;
  --lp-brand-soft: rgba(13, 148, 136, 0.10);
  --lp-brand-border: rgba(13, 148, 136, 0.24);
  --lp-brand-glow: rgba(13, 148, 136, 0.16);

  /* Tipografia */
  --lp-text: #0f172a;
  --lp-text-secondary: #475569;
  --lp-text-muted: #64748b;
  --lp-on-brand: #ffffff;

  /* Acentos Semânticos (Preview & Regra 60/30/10) */
  --lp-green: #059669;
  --lp-green-soft: rgba(5, 150, 105, 0.12);
  --lp-amber: #d97706;
  --lp-amber-soft: rgba(217, 119, 6, 0.12);
  --lp-blue: #0284c7;
  --lp-blue-soft: rgba(2, 132, 199, 0.12);

  /* Raios & Transições */
  --lp-radius-sm: 8px;
  --lp-radius-md: 14px;
  --lp-radius-lg: 20px;
  --lp-radius-pill: 999px;
  --lp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Altura do Header fixo para offset de âncoras */
  --lp-header-height: 70px;
}

[data-theme="dark"] {
  --lp-bg: #0b1120;
  --lp-bg-alt: #0f172a;
  --lp-surface: #131c2e;
  --lp-surface-subtle: #0f172a;
  --lp-header-bg: rgba(11, 17, 32, 0.88);
  --lp-backdrop: rgba(2, 6, 23, 0.72);

  --lp-border: #1f2b40;
  --lp-border-strong: #334155;
  --lp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --lp-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.32);
  --lp-shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
  --lp-shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.58);

  --lp-brand: #14b8a6;
  --lp-brand-hover: #0d9488;
  --lp-brand-light: #2dd4bf;
  --lp-brand-soft: rgba(20, 184, 166, 0.14);
  --lp-brand-border: rgba(20, 184, 166, 0.30);
  --lp-brand-glow: rgba(20, 184, 166, 0.20);

  --lp-text: #f1f5f9;
  --lp-text-secondary: #cbd5e1;
  --lp-text-muted: #94a3b8;
  --lp-on-brand: #042f2e;

  --lp-green: #10b981;
  --lp-green-soft: rgba(16, 185, 129, 0.16);
  --lp-amber: #fbbf24;
  --lp-amber-soft: rgba(251, 191, 36, 0.16);
  --lp-blue: #38bdf8;
  --lp-blue-soft: rgba(56, 189, 248, 0.16);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Oculta conteúdo brevemente apenas quando há token salvo sendo verificado para redirecionamento */
html.cc-checking-session body {
  opacity: 0;
  pointer-events: none;
}

h1, h2, h3, h4, .lp-brand-name, .lp-kpi-val {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Foco acessível */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lp-brand);
  outline-offset: 2px;
}

/* ==========================================================================
   BOTÕES (MOBILE-FIRST: ÁREA DE TOQUE >= 44px)
   ========================================================================== */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--lp-radius-sm);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--lp-transition), border-color var(--lp-transition), color var(--lp-transition), transform var(--lp-transition), box-shadow var(--lp-transition);
  white-space: nowrap;
}

.lp-btn-primary {
  background-color: var(--lp-brand);
  color: #ffffff;
  border-color: var(--lp-brand);
  box-shadow: 0 6px 18px -6px var(--lp-brand-glow);
}

[data-theme="dark"] .lp-btn-primary {
  color: #042f2e;
}

.lp-btn-primary:hover {
  background-color: var(--lp-brand-hover);
  border-color: var(--lp-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px var(--lp-brand-glow);
}

[data-theme="dark"] .lp-btn-primary:hover {
  background-color: var(--lp-brand-light);
  border-color: var(--lp-brand-light);
}

.lp-btn-outline {
  background-color: var(--lp-surface);
  color: var(--lp-text);
  border-color: var(--lp-border-strong);
  box-shadow: var(--lp-shadow-xs);
}

.lp-btn-outline:hover {
  border-color: var(--lp-brand);
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

.lp-btn-lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 0.98rem;
  border-radius: 10px;
}

.lp-btn-full {
  width: 100%;
}

/* ==========================================================================
   A. HEADER (BARRA DE NAVEGAÇÃO SUPERIOR)
   ========================================================================== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--lp-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lp-border);
  width: 100%;
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--lp-header-height);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
}

.lp-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 60%, #0f766e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(13, 148, 136, 0.45);
}

.lp-brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--lp-text);
  line-height: 1.1;
}

/* Navegação central desktop (oculta no mobile) */
.lp-nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.lp-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--lp-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lp-text-secondary);
  transition: color var(--lp-transition), background-color var(--lp-transition);
}

.lp-nav-link:hover,
.lp-nav-link.is-active {
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

/* Ações direita desktop (ocultas no mobile) */
.lp-header-actions-desktop {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Controles mobile (visíveis < 860px) */
.lp-header-mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background-color: var(--lp-surface);
  color: var(--lp-text-secondary);
  cursor: pointer;
  transition: border-color var(--lp-transition), color var(--lp-transition), background-color var(--lp-transition);
}

.lp-icon-btn:hover {
  border-color: var(--lp-brand);
  color: var(--lp-brand);
}

/* Ícone Hambúrguer animado */
.lp-hamburger {
  flex-direction: column;
  gap: 5px;
}

.lp-hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.lp-hamburger[aria-expanded="true"] .lp-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lp-hamburger[aria-expanded="true"] .lp-hamburger-bar:nth-child(2) {
  opacity: 0;
}

.lp-hamburger[aria-expanded="true"] .lp-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu Mobile Dropdown */
.lp-mobile-backdrop {
  position: fixed;
  inset: var(--lp-header-height) 0 0 0;
  background: var(--lp-backdrop);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lp-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lp-mobile-menu {
  position: fixed;
  top: var(--lp-header-height);
  left: 0;
  right: 0;
  z-index: 195;
  background-color: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg);
  padding: 16px 20px 24px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.2s ease;
}

.lp-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lp-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--lp-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-text);
  transition: background-color var(--lp-transition), color var(--lp-transition);
}

.lp-mobile-nav-link:hover,
.lp-mobile-nav-link:active,
.lp-mobile-nav-link.is-active {
  background-color: var(--lp-brand-soft);
  color: var(--lp-brand);
}

.lp-mobile-divider {
  height: 1px;
  background-color: var(--lp-border);
  margin: 14px 0;
}

.lp-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-mobile-actions .lp-btn {
  min-height: 48px;
  width: 100%;
}

/* ==========================================================================
   B. HERO SECTION (DOBRA PRINCIPAL)
   ========================================================================== */
.lp-hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}

.lp-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 120vw);
  height: 520px;
  background: radial-gradient(ellipse at center, var(--lp-brand-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.lp-hero-copy {
  min-width: 0;
}

.lp-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--lp-radius-pill);
  background-color: var(--lp-brand-soft);
  border: 1px solid var(--lp-brand-border);
  color: var(--lp-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.lp-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--lp-brand);
  flex-shrink: 0;
}

.lp-hero-title {
  font-size: clamp(2rem, 6.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--lp-text);
  margin-bottom: 18px;
}

.lp-text-accent {
  color: var(--lp-brand);
}

.lp-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--lp-text-secondary);
  max-width: 58ch;
  margin-bottom: 28px;
}

.lp-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.lp-hero-ctas .lp-btn {
  width: 100%;
}

.lp-hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  color: var(--lp-text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.lp-hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lp-check-icon {
  color: var(--lp-brand);
  flex-shrink: 0;
}

/* Mockup interativo/visual do painel Controla Conta no Hero */
.lp-hero-visual {
  min-width: 0;
  position: relative;
}

.lp-preview-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lp-border);
}

.lp-preview-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--lp-border-strong);
}

.lp-preview-month {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lp-text);
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  padding: 4px 10px;
  border-radius: var(--lp-radius-pill);
}

.lp-preview-health {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--lp-green);
  background-color: var(--lp-green-soft);
  padding: 4px 9px;
  border-radius: var(--lp-radius-pill);
}

.lp-preview-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lp-kpi-box {
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.lp-kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.lp-kpi-val {
  display: block;
  font-size: clamp(1.05rem, 3.2vw, 1.32rem);
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.02em;
}

.lp-kpi-val.is-positive {
  color: var(--lp-green);
}

.lp-kpi-meta {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lp-brand);
}

.lp-preview-rule {
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-preview-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-preview-rule-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
  padding: 2px 8px;
  border-radius: var(--lp-radius-pill);
}

.lp-rule-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-rule-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--lp-text-secondary);
}

.lp-rule-row-meta strong {
  color: var(--lp-text);
  font-weight: 700;
}

.lp-progress-track {
  width: 100%;
  height: 7px;
  border-radius: var(--lp-radius-pill);
  background-color: var(--lp-border);
  overflow: hidden;
}

.lp-progress-fill {
  height: 100%;
  border-radius: var(--lp-radius-pill);
}

.lp-fill-essential {
  width: 86%;
  background-color: var(--lp-brand);
}

.lp-fill-personal {
  width: 68%;
  background-color: var(--lp-amber);
}

.lp-fill-reserve {
  width: 100%;
  background-color: var(--lp-blue);
}

.lp-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background-color: var(--lp-surface);
}

.lp-preview-item-info {
  min-width: 0;
}

.lp-preview-item-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-preview-item-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--lp-text-muted);
}

.lp-preview-item-amount {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lp-text);
  flex-shrink: 0;
}

.lp-preview-security-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  background-color: var(--lp-brand-soft);
  color: var(--lp-brand);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ==========================================================================
   SEÇÕES COM OFFSET DE ÂNCORA PARA HEADER FIXO
   ========================================================================== */
.lp-section {
  padding: 64px 0;
  scroll-margin-top: calc(var(--lp-header-height) + 16px);
}

.lp-section-alt {
  background-color: var(--lp-bg-alt);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

.lp-section-header {
  text-align: left;
  max-width: 680px;
  margin-bottom: 36px;
}

.lp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-brand);
  margin-bottom: 10px;
}

.lp-section-title {
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--lp-text);
  margin-bottom: 12px;
}

.lp-section-desc {
  font-size: clamp(0.96rem, 2vw, 1.06rem);
  color: var(--lp-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   C. SEÇÃO 1: COMO FUNCIONA (MOBILE-FIRST: 1 COL -> 2 COL -> 3 COL)
   ========================================================================== */
.lp-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.lp-step-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 26px 24px;
  box-shadow: var(--lp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  transition: transform var(--lp-transition), border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--lp-brand-border);
  box-shadow: var(--lp-shadow-md);
}

.lp-step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--lp-brand-soft);
  border: 1px solid var(--lp-brand-border);
  color: var(--lp-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  padding: 4px 10px;
  border-radius: var(--lp-radius-pill);
}

.lp-step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--lp-text);
}

.lp-step-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--lp-text-secondary);
  flex: 1;
}

.lp-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-border);
}

.lp-meta-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-pill);
  padding: 4px 10px;
}

/* Mini barra ilustrativa 60/30/10 dentro do card 2 */
.lp-ratio-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-border);
}

.lp-ratio-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: var(--lp-radius-pill);
  overflow: hidden;
  gap: 3px;
}

.lp-ratio-seg-60 {
  flex: 60;
  background-color: var(--lp-brand);
  border-radius: var(--lp-radius-pill);
}

.lp-ratio-seg-30 {
  flex: 30;
  background-color: var(--lp-amber);
  border-radius: var(--lp-radius-pill);
}

.lp-ratio-seg-10 {
  flex: 10;
  background-color: var(--lp-blue);
  border-radius: var(--lp-radius-pill);
}

.lp-ratio-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--lp-text-muted);
}

/* ==========================================================================
   D. SEÇÃO 2: PRIVACIDADE E SEGURANÇA (MOBILE-FIRST: 1 COL -> 2 COL -> 3 COL)
   ========================================================================== */
.lp-privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.lp-privacy-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 26px 24px;
  box-shadow: var(--lp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform var(--lp-transition), border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-privacy-card:hover {
  transform: translateY(-2px);
  border-color: var(--lp-brand-border);
  box-shadow: var(--lp-shadow-md);
}

.lp-privacy-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--lp-text);
}

.lp-privacy-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--lp-text-secondary);
}

.lp-trust-banner {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-brand-border);
  border-radius: var(--lp-radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-trust-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-trust-banner-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--lp-text-secondary);
}

.lp-trust-banner-items li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================================================
   CTA FINAL DE CONVERSÃO
   ========================================================================== */
.lp-cta-section {
  padding: 56px 0 64px;
}

.lp-cta-box {
  background: linear-gradient(135deg, var(--lp-surface) 0%, var(--lp-brand-soft) 100%);
  border: 1px solid var(--lp-brand-border);
  border-radius: var(--lp-radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--lp-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lp-cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--lp-text);
  max-width: 24ch;
}

.lp-cta-box p {
  font-size: 0.98rem;
  color: var(--lp-text-secondary);
  max-width: 52ch;
}

.lp-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-top: 6px;
}

.lp-cta-actions .lp-btn {
  width: 100%;
}

/* ==========================================================================
   E. FOOTER (RODAPÉ)
   ========================================================================== */
.lp-footer {
  background-color: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
  padding: 40px 0 32px;
}

.lp-footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lp-border);
}

.lp-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.lp-footer-tagline {
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  line-height: 1.55;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.lp-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--lp-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lp-text-secondary);
  transition: color var(--lp-transition), background-color var(--lp-transition);
}

.lp-footer-link:hover {
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

.lp-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: var(--lp-text-muted);
}

.lp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.lp-footer-author {
  color: var(--lp-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--lp-transition);
}

.lp-footer-author:hover {
  color: var(--lp-brand);
  text-decoration: underline;
}

.lp-version-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background-color: var(--lp-surface-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-pill);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  transition: border-color var(--lp-transition), color var(--lp-transition), background-color var(--lp-transition);
}

a.lp-version-pill:hover {
  border-color: var(--lp-brand-border);
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

/* ==========================================================================
   F. PÁGINA DE CHANGELOG (HISTÓRICO DE ATUALIZAÇÕES & TIMELINE)
   ========================================================================== */
.lp-cl-container {
  max-width: 900px;
}

.lp-cl-hero {
  position: relative;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--lp-border);
  overflow: hidden;
}

.lp-cl-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 120vw);
  height: 420px;
  background: radial-gradient(ellipse at center, var(--lp-brand-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lp-cl-hero > .lp-container {
  position: relative;
  z-index: 1;
}

.lp-cl-back-row {
  margin-bottom: 20px;
}

.lp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--lp-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lp-text-secondary);
  transition: color var(--lp-transition), background-color var(--lp-transition), transform var(--lp-transition);
}

.lp-back-link:hover {
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

.lp-cl-title {
  font-size: clamp(1.9rem, 5.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--lp-text);
  margin-bottom: 14px;
}

.lp-cl-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: var(--lp-text-secondary);
  max-width: 64ch;
  margin-bottom: 24px;
}

.lp-cl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-cl-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--lp-radius-pill);
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-cl-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lp-border-strong);
  flex-shrink: 0;
}

.lp-cl-status-dot.is-live {
  background-color: var(--lp-green);
  box-shadow: 0 0 0 3px var(--lp-green-soft);
}

.lp-cl-status-dot.is-cached {
  background-color: var(--lp-brand);
  box-shadow: 0 0 0 3px var(--lp-brand-soft);
}

.lp-cl-status-dot.is-fallback {
  background-color: var(--lp-blue);
  box-shadow: 0 0 0 3px var(--lp-blue-soft);
}

.lp-cl-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background-color: var(--lp-surface);
  color: var(--lp-text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--lp-transition), color var(--lp-transition), background-color var(--lp-transition);
}

.lp-cl-refresh-btn:hover:not(:disabled) {
  border-color: var(--lp-brand);
  color: var(--lp-brand);
  background-color: var(--lp-brand-soft);
}

.lp-cl-refresh-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lp-cl-refresh-btn.is-spinning .lp-cl-refresh-icon {
  animation: lpClSpin 0.9s linear infinite;
}

@keyframes lpClSpin {
  to {
    transform: rotate(360deg);
  }
}

.lp-cl-section {
  padding: 44px 0 20px;
}

/* Estado de Carregamento (Spinner + Skeletons) */
.lp-cl-loading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-cl-loading[hidden],
.lp-cl-timeline[hidden] {
  display: none !important;
}

.lp-cl-loading-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-cl-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--lp-border-strong);
  border-top-color: var(--lp-brand);
  animation: lpClSpin 0.8s linear infinite;
  flex-shrink: 0;
}

.lp-cl-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-cl-skeleton-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-cl-sk-line {
  height: 13px;
  border-radius: var(--lp-radius-pill);
  background: linear-gradient(
    90deg,
    var(--lp-bg-alt) 25%,
    var(--lp-border) 50%,
    var(--lp-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: lpClShimmer 1.4s ease-in-out infinite;
}

.lp-cl-sk-sm { width: 28%; height: 11px; }
.lp-cl-sk-lg { width: 68%; height: 18px; }
.lp-cl-sk-md { width: 90%; }

@keyframes lpClShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Timeline Vertical Cronológica */
.lp-cl-timeline {
  display: flex;
  flex-direction: column;
}

.lp-cl-entry {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  padding-bottom: 32px;
}

.lp-cl-entry:last-child {
  padding-bottom: 8px;
}

.lp-cl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.lp-cl-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--lp-border);
}

.lp-cl-entry:last-child .lp-cl-rail::before {
  display: none;
}

.lp-cl-dot {
  width: 13px;
  height: 13px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--lp-surface);
  border: 2.5px solid var(--lp-border-strong);
  z-index: 1;
  flex-shrink: 0;
}

.lp-cl-entry.is-latest .lp-cl-dot {
  background-color: var(--lp-brand);
  border-color: var(--lp-brand);
  box-shadow: 0 0 0 4px var(--lp-brand-soft);
}

.lp-cl-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-cl-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.lp-cl-version-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-cl-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--lp-radius-pill);
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-cl-entry.is-latest .lp-cl-version-badge {
  background-color: var(--lp-brand);
  border-color: var(--lp-brand);
  color: #ffffff;
}

[data-theme="dark"] .lp-cl-entry.is-latest .lp-cl-version-badge {
  color: #042f2e;
}

.lp-cl-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-cl-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lp-cl-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--lp-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp-cl-tag-latest,
.lp-cl-tag-brand {
  background-color: var(--lp-brand-soft);
  color: var(--lp-brand);
  border: 1px solid var(--lp-brand-border);
}

.lp-cl-tag-green {
  background-color: var(--lp-green-soft);
  color: var(--lp-green);
}

.lp-cl-tag-blue {
  background-color: var(--lp-blue-soft);
  color: var(--lp-blue);
}

.lp-cl-tag-amber {
  background-color: var(--lp-amber-soft);
  color: var(--lp-amber);
}

.lp-cl-tag-neutral {
  background-color: var(--lp-surface-subtle);
  color: var(--lp-text-muted);
  border: 1px solid var(--lp-border);
}

.lp-cl-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 22px 20px;
  box-shadow: var(--lp-shadow-sm);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-cl-entry.is-latest .lp-cl-card {
  border-color: var(--lp-brand-border);
  box-shadow: var(--lp-shadow-md);
}

.lp-cl-card:hover {
  border-color: var(--lp-brand-border);
}

.lp-cl-card-title {
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--lp-text);
  margin-bottom: 12px;
}

/* Tipografia Markdown Renderizada */
.lp-cl-markdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--lp-text-secondary);
}

.lp-cl-md-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-brand);
  margin-top: 4px;
}

.lp-cl-md-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.lp-cl-md-list li {
  position: relative;
  padding-left: 18px;
}

.lp-cl-md-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.64em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lp-brand);
}

.lp-cl-md-ol {
  list-style: decimal;
  padding-left: 20px;
}

.lp-cl-md-ol li {
  padding-left: 4px;
}

.lp-cl-md-ol li::before {
  display: none;
}

.lp-cl-markdown strong {
  color: var(--lp-text);
  font-weight: 700;
}

.lp-cl-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background-color: var(--lp-bg-alt);
  border: 1px solid var(--lp-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--lp-brand);
}

.lp-cl-ext-link {
  color: var(--lp-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-cl-ext-link:hover {
  color: var(--lp-brand-hover);
}

.lp-cl-md-compare {
  font-size: 0.84rem;
  color: var(--lp-text-muted);
  padding-top: 6px;
  border-top: 1px dashed var(--lp-border);
}

.lp-cl-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  justify-content: flex-end;
}

.lp-cl-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lp-brand);
  transition: color var(--lp-transition);
}

.lp-cl-gh-link:hover {
  color: var(--lp-brand-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .lp-cl-hero {
    padding: 44px 0 48px;
  }

  .lp-cl-section {
    padding: 56px 0 24px;
  }

  .lp-cl-entry {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 40px;
  }

  .lp-cl-rail::before {
    bottom: -40px;
  }

  .lp-cl-card {
    padding: 28px 28px;
  }
}

/* ==========================================================================
   MEDIA QUERIES MOBILE-FIRST (>= 480px, >= 768px, >= 860px, >= 1024px)
   ========================================================================== */
@media (min-width: 480px) {
  .lp-hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .lp-hero-ctas .lp-btn {
    width: auto;
  }

  .lp-cta-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .lp-cta-actions .lp-btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .lp-container {
    padding: 0 28px;
  }

  .lp-section {
    padding: 80px 0;
  }

  .lp-section-header {
    text-align: center;
    margin: 0 auto 44px;
  }

  .lp-steps-grid,
  .lp-privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  /* Evita card órfão em tablets (768px–1023px) */
  .lp-steps-grid > :last-child:nth-child(odd),
  .lp-privacy-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .lp-preview-card {
    padding: 22px;
  }

  .lp-trust-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
  }

  .lp-cta-box {
    padding: 48px 40px;
  }

  .lp-footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .lp-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lp-footer-author {
    min-height: auto;
  }
}

@media (min-width: 860px) {
  .lp-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }

  .lp-nav-desktop {
    display: flex;
    justify-content: center;
  }

  .lp-header-actions-desktop {
    display: flex;
    justify-content: flex-end;
  }

  .lp-header-mobile-controls,
  .lp-mobile-menu,
  .lp-mobile-backdrop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lp-hero {
    padding: 64px 0 84px;
  }

  .lp-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 48px;
  }

  .lp-steps-grid,
  .lp-privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .lp-steps-grid > :last-child:nth-child(odd),
  .lp-privacy-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .lp-step-card,
  .lp-privacy-card {
    padding: 30px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
