/* Variables */
:root {
  --bg: #120E0D;
  --bg2: #231C1A;
  --bg3: #0F0C0B;
  --border: #3A302C;
  --border2: #4A3E39;
  --text: #F7F2EE;
  --muted: #A89C94;
  --dim: #6E625C;
  --green: #00C896;
  --red: #F87171;
  --blue: #58a6ff;
  --amber: #FAC775;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, sans-serif; font-size: 14px; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border); }
.lp-header-main { display: flex; align-items: center;
  justify-content: space-between; padding: 10px 24px; gap: 16px; }
.lp-logo { display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.lp-nav { display: flex; gap: 18px; }
.lp-nav a { color: var(--muted); text-decoration: none; font-size: 13px;
  transition: color .2s; padding-top: 6px; padding-bottom: 6px; }
.lp-nav a:hover { color: var(--text); }
.lp-header-actions { display: flex; gap: 8px; }
.lp-menu-btn { display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px; }
.lp-menu-btn span { display: block; width: 20px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Mobile menu open state */
.lp-header.open .lp-nav {
  display: flex; flex-direction: column; position: absolute;
  top: 100%; left: 0; right: 0; background: var(--bg);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
  gap: 12px; z-index: 99;
}
.lp-header.open .lp-menu-btn span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.lp-header.open .lp-menu-btn span:nth-child(2) { opacity: 0; }
.lp-header.open .lp-menu-btn span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Buttons */
.btn-primary { background: var(--green); color: var(--bg);
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-primary:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--green);
  border: 1px solid rgba(0,200,150,.45); border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block; }
.btn-blue { background: rgba(88,166,255,.1); color: var(--blue);
  border: 1px solid rgba(88,166,255,.25); border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block; }
.btn-lg { padding: 12px 24px; font-size: 14px; }

/* Hero */
.lp-hero { padding: 52px 24px 40px;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg) 100%); }
.lp-hero-content { max-width: 760px; }
.lp-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.15;
  margin-bottom: 14px; max-width: 700px; }
.text-green { color: var(--green); }
.lp-hero-sub { color: var(--muted); font-size: 15px; line-height: 1.7;
  max-width: 520px; margin-bottom: 24px; }
.lp-badge { display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; letter-spacing: .5px;
  margin-bottom: 16px; background: rgba(0,200,150,.1); color: var(--green); }
.lp-badge.blue { background: rgba(88,166,255,.1); color: var(--blue); }

/* Search */
.lp-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 12px;
}
.lp-search-bar { display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 10px 16px; width: 100%; }
.lp-search-bar input { background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; flex: 1; font-family: inherit; }
.lp-search-bar input::placeholder { color: var(--muted); }

#lp-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #231C1A;
  border: 1px solid #4A3E39;
  border-radius: 8px;
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
}
#lp-search-dropdown.lp-search-dropdown--open {
  display: block;
}
.lp-search-dropdown__status {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}
.lp-search-dropdown__item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}
.lp-search-dropdown__item:last-child {
  border-bottom: none;
}
.lp-search-dropdown__item:hover,
.lp-search-dropdown__item:focus {
  background: #3A302C;
  outline: none;
}
.lp-search-dropdown__badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1.2;
}
.lp-search-dropdown__badge--stock {
  background: rgba(88, 166, 255, 0.18);
  color: var(--blue);
}
.lp-search-dropdown__badge--fii {
  background: rgba(0, 200, 150, 0.18);
  color: var(--green);
}
.lp-search-dropdown__badge--etf {
  background: rgba(250, 199, 117, 0.22);
  color: var(--amber);
}
.lp-search-dropdown__badge--bdr {
  background: rgba(163, 113, 247, 0.2);
  color: #a371f7;
}
.lp-search-dropdown__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-search-dropdown__ticker {
  font-size: 14px;
  font-weight: 700;
  color: #00c896;
}
.lp-search-dropdown__name {
  font-size: 12px;
  color: #DDD3CC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-search-hints { display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px; font-size: 12px; flex-wrap: wrap; }
.hint-label { color: var(--muted); }
.lp-search-hints a { color: var(--blue); text-decoration: none; }
.lp-search-hints a:hover { text-decoration: underline; }
.lp-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* KPIs */
.lp-kpis { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px; padding: 0 24px 20px; }
.lp-kpi-card { background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; }
.kpi-label { color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 4px; }
.kpi-val { font-size: 22px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.kpi-val.green { color: var(--green); }
.kpi-val.red { color: var(--red); }
.kpi-sub { font-size: 11px; color: var(--muted); }

/* Comparativo */
.lp-comparison { padding: 8px 24px 40px; max-width: 1200px; margin: 0 auto; }
.lp-comparison h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lp-comparison-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
}
.lp-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}
.lp-comparison-table th,
.lp-comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lp-comparison-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg3);
}
.lp-comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.lp-comparison-table th.highlight,
.lp-comparison-table td.highlight {
  background: rgba(0, 200, 150, 0.08);
  color: var(--text);
  font-weight: 600;
}
.lp-comparison-table td:not(.highlight) {
  color: var(--muted);
}

/* Sections */
.lp-section { padding: 0 24px 16px; }
.lp-section-header { display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px; }
.section-title { font-size: 15px; font-weight: 700; }
.section-sub { font-size: 11px; color: var(--muted); }
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Cards */
.lp-card { background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; }
.card-header { display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.card-sub { font-size: 10px; color: var(--muted); }
.card-link { color: var(--green); font-size: 12px; text-decoration: none;
  white-space: nowrap; }

.muted-sm { color: var(--muted); font-size: 11px; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }

/* LGPD cookie consent */
.lp-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #231C1A;
  border-top: 1px solid #4A3E39;
  font-size: 13px;
  line-height: 1.45;
  color: #F7F2EE;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.lp-cookie-consent.lp-cookie-consent--visible {
  display: flex;
}
.lp-cookie-consent__text {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: #F7F2EE;
}
.lp-cookie-consent__text a {
  color: var(--blue);
}
.lp-cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lp-cookie-consent__accept {
  background: #00c896;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.lp-cookie-consent__accept:active {
  opacity: 0.9;
}
.lp-cookie-consent__reject {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 6px;
  min-width: 24px;
  min-height: 24px;
}
.lp-cookie-consent__reject:hover,
.lp-cookie-consent__reject:focus-visible {
  color: var(--text);
  outline: none;
}
/* A barra de cookies tinha fundo e texto em hex fixo (#161b22 / #e6edf3, grafite antigo) e
   nenhum override de tema — ficava uma faixa preta atravessada no rodapé do
   tema claro. O botão verde e o link já funcionam nos dois temas. */
[data-theme="light"] .lp-cookie-consent {
  background: #ffffff;
  border-top-color: #E2E8F0;
  color: #0F172A;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .lp-cookie-consent__text {
  color: #0F172A;
}

/* Calculator */
.calc-inputs { display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end; margin-bottom: 12px; }
.calc-field label { display: block; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 5px; }
.calc-field input, .calc-field select { width: 100%;
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 8px; padding: 9px 12px; font-size: 13px;
  font-weight: 600; color: var(--text); font-family: inherit;
  outline: none; }
.calc-field input:focus, .calc-field select:focus {
  border-color: var(--green); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }
.calc-result-card { background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; }

/* Blog */
.blog-card { cursor: pointer; transition: border-color .2s; }
.blog-card:hover { border-color: var(--border2); }
.blog-img-placeholder { width: 100%; height: 100px;
  background: var(--border); border-radius: 8px; margin-bottom: 10px; }
.blog-img { width: 100%; height: 100px; object-fit: cover;
  border-radius: 8px; margin-bottom: 10px; }
.blog-cat { font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--green); margin-bottom: 6px; }
.blog-cat.blue { color: var(--blue); }
.blog-cat.amber { color: var(--amber); }
.blog-title { font-size: 13px; font-weight: 600; line-height: 1.45;
  margin-bottom: 8px; color: var(--text); }
.blog-meta { font-size: 11px; color: var(--muted); }

/* App CTA */
.lp-app-cta { background: linear-gradient(135deg, #0a1f15, #120E0D);
  border: 1px solid #1f3a2a; border-radius: 14px; padding: 36px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; }
.app-cta-text h2 { font-size: 24px; font-weight: 700;
  margin: 12px 0; line-height: 1.3; }
.app-cta-text p { color: var(--muted); font-size: 13px;
  line-height: 1.7; margin-bottom: 22px; }
.app-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.app-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-card { background: var(--bg); border: 1px solid #1f3a2a;
  border-radius: 10px; padding: 16px; }
.feat-icon { width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin-bottom: 8px; }
.green-icon { background: rgba(0,200,150,.1); }
.blue-icon { background: rgba(88,166,255,.1); }
.amber-icon { background: rgba(250,199,117,.1); }
.feat-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.feat-sub { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); padding: 32px 24px 24px; }
.footer-inner { display: grid;
  grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 24px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px;
  font-size: 11px; color: var(--muted); }
.footer-links a { color: var(--muted); }

/* Nav "Mais" — submenu em reflow no menu mobile (evita sobrepor CTAs abaixo) */
@media (max-width: 900px) {
  .lp-header.open .nav-more { position: static; width: 100%; }
  .lp-header.open .nav-more-dropdown {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    min-width: 0 !important;
    margin-top: 4px;
    z-index: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0 0 0 8px !important;
    gap: 8px !important;
  }
  .lp-header.open .nav-more-dropdown a {
    padding: 6px 0 !important;
    font-size: 13px !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-menu-btn { display: flex; }
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-grid-2 { grid-template-columns: 1fr; }
  .lp-app-cta { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: 1fr 1fr; }
  .calc-results { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .lp-hero { padding: 24px 24px 40px; }
  .lp-badge { margin-bottom: 8px; }
  .lp-hero-sub { line-height: 1.4; margin-bottom: 12px; }
  .lp-search-wrap { margin-bottom: 8px; }
  .lp-search-bar { padding: 8px 14px; }
  .lp-search-hints {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 11px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lp-search-hints::-webkit-scrollbar { display: none; }
  .hint-label { flex-shrink: 0; }
  .lp-search-hints a { flex-shrink: 0; white-space: nowrap; }
  .lp-hero h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .lp-kpis { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 20px; }
  .lp-hero h1 { margin-bottom: 10px; }
  .lp-hero-btns { flex-direction: column; gap: 8px; }
  .app-features-grid { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}

/* ===== LIGHT MODE — Pedra Quente ===== */
[data-theme="light"] {
  /* Redefinir variáveis root para tema claro */
  --bg: #F8FAFC;
  --bg2: #ffffff;
  --bg3: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text2: #334155;
  --muted: #475569; /* slate-600: ~7,2:1 sobre #F8FAFC */
  --accent: #00C896;
  --lp-bg: #F8FAFC;
  --lp-surface: #FFFFFF;
  --lp-card: #ffffff;
  --lp-border: #E2E8F0;
  --lp-text: #0F172A;
  --lp-muted: #475569;
  --lp-accent: #00C896;
}
[data-theme="light"] body {
  background: #F8FAFC !important;
  color: #0F172A !important;
}
/* Nav */
[data-theme="light"] .lp-nav,
[data-theme="light"] nav,
[data-theme="light"] header {
  background: #FFFFFF !important;
  border-bottom-color: #E2E8F0 !important;
}
[data-theme="light"] .lp-nav a,
[data-theme="light"] nav a { color: #475569 !important; }
[data-theme="light"] .lp-nav a:hover,
[data-theme="light"] nav a:hover { color: #0F172A !important; }
[data-theme="light"] .text-green { color: #047857 !important; }
/* Sem regra geral para card, section, h1–h4 e p: até 25/10/2026 havia, com !important,
   e ela deixava texto escuro nos blocos escuros da home. Cada bloco define a sua cor. */
/* Manter acento verde */
[data-theme="light"] .accent,
[data-theme="light"] [class*="accent"] { color: #00C896 !important; }
/* Toggle tema — visível no fundo claro */
[data-theme="light"] #lp-theme-btn {
  border-color: rgba(15, 23, 42, 0.28) !important;
  color: #0F172A !important;
}

/* Seções que usam hardcoded ou gradiente dark */
[data-theme="light"] .lp-app-cta {
  background: linear-gradient(135deg, #e8f5f0, #f0f8f4) !important;
  border-color: #b8ddd0 !important;
}
[data-theme="light"] .feat-card {
  background: #ffffff !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .feat-card h3,
[data-theme="light"] .feat-card p { color: #0F172A !important; }

/* Tabela comparativa */
[data-theme="light"] .lp-comparison-table-wrap {
  background: #ffffff !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .lp-comparison-table thead th {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .lp-comparison-table td,
[data-theme="light"] .lp-comparison-table th {
  border-color: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Blog placeholders */
[data-theme="light"] .blog-img-placeholder {
  background: #E2E8F0 !important;
}

/* Footer */
[data-theme="light"] .lp-footer {
  border-top-color: #E2E8F0 !important;
}
[data-theme="light"] .lp-footer,
[data-theme="light"] .footer-inner,
[data-theme="light"] .footer-bottom { color: #475569 !important; }
[data-theme="light"] .lp-footer a { color: #475569 !important; }
[data-theme="light"] .lp-footer a:hover { color: #0F172A !important; }

/* Feature Grid */
.lp-features-grid { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
.lp-features-grid__header { text-align: center; margin-bottom: 40px; }
.lp-features-grid__header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.lp-section-tag { display: inline-block; border: 1px solid var(--green); color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; text-transform: uppercase; }
.lp-features-grid__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.lp-feat-icon { font-size: 22px; margin-bottom: 14px; color: var(--green); }
.lp-feat-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.lp-feat-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Migration */
.lp-migration { padding: 60px 24px; }
.lp-migration__inner { max-width: 1200px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.lp-migration__left h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1.3; }
.lp-migration__stats { display: flex; flex-direction: column; gap: 16px; }
.lp-migration__stat { display: flex; flex-direction: column; }
.lp-migration__stat-val { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1; }
.lp-migration__stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lp-migration__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.lp-migration__before { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.lp-migration__arrow { color: var(--green); font-size: 16px; font-weight: 700; }
.lp-migration__after { font-size: 13px; color: var(--green); font-weight: 600; }

/* Light mode overrides para novas seções */
[data-theme="light"] .lp-section-tag {
  border-color: #00c896 !important;
  color: #047857 !important;
}
[data-theme="light"] .lp-feat-card { background: #ffffff; border-color: #E2E8F0; }
[data-theme="light"] .lp-feat-card p { color: #475569 !important; }
[data-theme="light"] .lp-migration__inner { background: #ffffff; border-color: #E2E8F0; }
[data-theme="light"] .lp-migration__row { background: #F1F5F9; border-color: #E2E8F0; }
[data-theme="light"] .lp-migration__before { color: #475569; }

/* Responsivo */
@media (max-width: 900px) {
  .lp-features-grid__cards { grid-template-columns: repeat(2, 1fr); }
  .lp-migration__inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}
@media (max-width: 600px) {
  .lp-features-grid__cards { grid-template-columns: 1fr; }
  .lp-migration__row { grid-template-columns: 1fr; gap: 4px; }
  .lp-migration__arrow { display: none; }
}

/* Disclaimer da CVM no rodapé (regra 99 do CONTEXT.md). Texto longo por
   exigência regulatória — fica pequeno e discreto, mas legível nos dois temas. */
.lp-cvm-disclaimer {
  margin: 0 0 12px;
  max-width: 90ch;
  font-size: 11px;
  line-height: 1.65;
  /* --dim (#484f58, grafite antigo) dá 2,28:1 sobre o fundo escuro. É texto exigido por
     regulação: tem que ser legível, não decorativo. --muted dá 6,15:1. */
  color: var(--muted);
}

/* Cards de ranking, ferramenta e conteúdo: o .lp-card existente é uma <div>;
   aqui ele vira link, então precisa perder o sublinhado e ganhar estado de foco. */
a.lp-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.lp-card:hover { border-color: var(--green); transform: translateY(-1px); }
a.lp-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Logo no tema claro. O logo-gold (#D4AF37) dá 2:1 sobre o cabeçalho claro —
   praticamente some. O logo-ink é a MESMA arte em tinta escura (#1c1917),
   ~15:1. Trocado por `content` para não mexer na marcação: são 98 arquivos
   estáticos mais o SSR e o blog, e onde o navegador não suportar `content`
   o logo simplesmente continua o de hoje. */
[data-theme="light"] img[src$="/brand/logo-gold.png"] {
  content: url("/brand/logo-ink.png");
}

/* ===========================================================================
   Home v2 — a composição aprovada no canvas.
   Tudo em token (--bg/--bg2/--text/--muted/--border/--green), porque o
   landing.css já define os dois temas: escuro no :root, claro no
   [data-theme="light"]. Assim o desenho claro é o tema claro e o escuro sai
   de graça, sem uma segunda folha.
   =========================================================================== */
:root { --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; --accent-ink: #6ee7b7; }
[data-theme="light"] { --accent-ink: #00563a; }

.v2-eyebrow { display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.v2-h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14; font-weight: 700; letter-spacing: -.018em; text-wrap: balance; }

/* Carteira */
.v2-carteira-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.v2-carteira-txt > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 16px 0; }
.v2-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; padding: 0; }
.v2-list li { font-size: 14px; line-height: 1.6; color: var(--muted); }
.v2-list strong { color: var(--text); font-weight: 600; }
.v2-shot img { display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--border); }
.v2-shot figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5;
  color: var(--muted); font-style: italic; }

/* CTA final */
.v2-cta { display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; padding-top: 56px; padding-bottom: 56px;
  border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .v2-carteira-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Home (16/10/2026) — o que fica abaixo da dobra. A faixa de índices e o hero
   estão no CSS crítico do index.html (e em critical.css), regra 33. */
.hm-sec { padding: 40px 0; }
.hm-sec-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hm-sec-head .hm-link { margin-top: 0; }
.hm-h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15;
  font-weight: 700; letter-spacing: -.015em; }
.hm-ferr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.hm-ferr a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); text-decoration: none; transition: border-color .15s; }
.hm-ferr a:hover { border-color: var(--green); }
.hm-ferr a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hm-ferr strong { color: var(--text); font-size: 14px; font-weight: 700; }
.hm-ferr span { color: var(--muted); font-size: 13px; }
.hm-conta { background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 56px 0; }
.hm-conta-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hm-conta-cta span { color: var(--muted); font-size: 13px; }
.hm-planos { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; color: var(--muted); }
.hm-planos strong { color: var(--text); }
.hm-planos .hm-link { margin-top: 0; }
[data-theme="light"] .hm-conta { background: #F1F5F9; }
[data-theme="light"] .hm-ferr a { background: #FFFFFF; }
/* "Hoje no IBOV" divide a linha com os três rankings que o nginx encaixa por SSI. */
.hm-mercado { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 14px; align-items: stretch; }
.hm-mercado-rk { min-width: 0; }
.hm-mercado .rk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 100%; }
/* Os cartões esticam até a altura do "Hoje no IBOV"; as linhas se distribuem nessa altura em vez
   de deixar um vão entre a lista e o "Ver ranking". */
.hm-mercado .rk-card .rk-list { display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 1100px) {
  .hm-ferr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-mercado { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .hm-mercado .rk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .hm-sec { padding: 28px 0; }
  .hm-conta { padding: 40px 0; }
}
@media (max-width: 560px) { .hm-ferr { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------------
   Acentos sobre o fundo claro. O verde (#00C896) e o azul (#58a6ff) da marca foram
   escolhidos para fundo escuro; sobre o fundo claro dão ~2:1. O caso
   mais grave era o BOTÃO PRINCIPAL, que pinta o texto com var(--bg): quase branco
   sobre verde, 1,91:1 — o rótulo do CTA da home era quase invisível no tema
   claro. Mesma solução que o ssr-layout já usa no .period-btn.active: tinta
   verde-escura por cima do verde.
   --------------------------------------------------------------------------- */
[data-theme="light"] .btn-primary { color: #04231b; }              /* 7,69:1 */
[data-theme="light"] .lp-user-avatar { color: #04231b; }           /* inicial do logado, mesmo caso */
[data-theme="light"] .btn-outline { color: #00563a; border-color: rgba(0, 86, 58, .45); }
[data-theme="light"] .btn-blue { color: #0b4a8f; border-color: rgba(11, 74, 143, .3); }
[data-theme="light"] .lp-search-hints a,
[data-theme="light"] .lp-cookie-consent__text a { color: #0b4a8f; }
[data-theme="light"] .card-link,
[data-theme="light"] .text-green { color: #00563a; }

/* Rankings de hoje (29/09/2026): bloco que o nginx encaixa por SSI a partir de
   /rankings/_home. Sem SSI (ou com a API fora), fica a grade de reserva de sempre. */
.rk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-card.rk-card { display: flex; flex-direction: column; min-width: 0; }
.rk-card .rk-list { list-style: none; margin: 12px 0; padding: 0; flex: 1; }
.rk-card .rk-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0;
  border-top: 1px solid var(--border); font-size: 13px; }
.rk-card .rk-list li:first-child { border-top: 0; }
.rk-card .rk-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.rk-card .rk-list a:hover { color: var(--green); }
.rk-card .rk-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.rk-card .rk-up { color: var(--green); }
.rk-card .rk-down { color: var(--red); }
[data-theme="light"] .rk-card .rk-up { color: #047857; }
[data-theme="light"] .rk-card .rk-down { color: #B91C1C; }
@media (max-width: 1100px) { .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rk-grid { grid-template-columns: 1fr; } }

/* Café Nobre trocou o vermelho do escuro (#F87171); o claro mantém o de antes. */
[data-theme="light"] { --red: #FF4D4D; --border2: #30363d; --dim: #484f58; }
[data-theme="light"] .lp-search-bar svg circle,
[data-theme="light"] .lp-search-bar svg path { stroke: #484f58; }
[data-theme="light"] #lp-search-dropdown { background: #161b22; border-color: #30363d; }
