/* Conectar Brain — extensão de legal.css (mesmo dark theme + nav do site) */

.conectar-page .legal-hero.cn-hero {
  text-align: center;
  padding-bottom: 1.5rem;
}

.conectar-page .legal-hero h1 em.cn-accent {
  font-style: normal;
  color: var(--accent);
}

.cn-hero-p {
  font-size: 15px;
  color: var(--light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.cn-hero-p strong {
  color: var(--white);
  font-weight: 600;
}

.cn-main {
  padding: 0 0 3rem;
}

.cn-benefits {
  font-size: 14px;
  color: var(--light);
  line-height: 1.65;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.35rem;
}

.cn-benefits strong {
  color: var(--white);
  font-weight: 600;
}

.cn-account-note {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.55;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.35rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: .5px solid rgba(91, 91, 255, .35);
  background: rgba(91, 91, 255, .08);
}

.cn-account-note strong {
  color: var(--white);
}

/* Nav CTA (igual index) */
.btn-cta-nav {
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-cta-nav:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 899px) {
  .btn-cta-nav { display: none; }
}

/* ── 4 botões topo ── */
.cn-paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 720px) {
  .cn-paths { grid-template-columns: repeat(2, 1fr); }
}

.cn-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1rem .65rem;
  border-radius: 14px;
  border: .5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: all .2s;
  min-height: 96px;
}

.cn-path:hover,
.cn-path.on {
  border-color: var(--accent);
  background: #161622;
  box-shadow: 0 0 0 3px var(--ad);
}

.cn-path img,
.cn-path .cn-path-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cn-path-ico {
  font-size: 26px;
  line-height: 1;
}

.cn-path-t {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.cn-path-s {
  font-size: 10px;
  color: var(--gray);
  line-height: 1.3;
}

/* ── Explicação método ── */
.cn-explain {
  margin-bottom: 1.35rem;
}

.cn-explain h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: .45rem;
  color: var(--white);
}

.cn-explain p {
  font-size: 13px;
  color: var(--light);
  line-height: 1.6;
  margin: 0 0 .5rem;
}

.cn-explain p strong {
  color: var(--white);
  font-weight: 600;
}

.cn-explain ol {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
  font-size: 13px;
  color: var(--light);
  line-height: 1.55;
}

.cn-explain ol li {
  margin-bottom: .35rem;
}

/* ── Tabela por IA ── */
.cn-table-section {
  margin-bottom: 1.75rem;
}

.cn-table-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: .35rem;
  color: var(--white);
  letter-spacing: -.2px;
}

.cn-table-lead {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: .85rem;
}

.cn-table-lead strong {
  color: var(--light);
  font-weight: 600;
}

.cn-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: .5px solid var(--border);
  background: var(--card);
}

.cn-matrix {
  margin: 0;
  font-size: 13px;
}

.cn-matrix th {
  padding: 10px 12px;
  background: #111;
}

.cn-matrix td {
  padding: 12px;
  font-size: 13px;
}

.cn-matrix tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.cn-ai-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.cn-ai-cell img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cn-ai-cell strong {
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
  display: block;
}

.cn-ai-cell span {
  font-size: 10px;
  color: #666;
}

.cn-steps-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 12px;
  line-height: 1.5;
}

.cn-steps-list li {
  margin-bottom: .25rem;
}

.cn-na {
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.cn-vis-mini {
  min-width: 140px;
  max-width: 200px;
}

/* Mobile: cards empilhados */
@media (max-width: 640px) {
  .cn-matrix thead { display: none; }
  .cn-matrix,
  .cn-matrix tbody,
  .cn-matrix tr,
  .cn-matrix td {
    display: block;
    width: 100%;
  }
  .cn-matrix tr {
    border-bottom: .5px solid var(--border);
    padding: .25rem 0;
  }
  .cn-matrix tr:last-child { border-bottom: none; }
  .cn-matrix td {
    padding: 8px 12px;
    border: none;
  }
  .cn-matrix td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }
  .cn-matrix td:first-child { padding-top: 12px; }
  .cn-matrix td:first-child::before { display: none; }
  .cn-th-vis { display: none; }
  .cn-vis-col::before { color: var(--green) !important; }
}

/* mock mini */
.mock-sm {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  font-size: 9px;
  background: #1a1a1a;
}

.mock-sm-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: #252525;
  border-bottom: 1px solid #333;
}

.mock-sm-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mock-sm-dot.r { background: #ff5f57; }
.mock-sm-dot.y { background: #febc2e; }
.mock-sm-dot.g { background: #28c840; }

.mock-sm-url {
  flex: 1;
  font-size: 8px;
  color: #777;
  font-family: ui-monospace, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-sm-body {
  padding: 6px 8px;
  color: #aaa;
  line-height: 1.35;
}

.mock-sm-hl {
  color: #aab4ff;
  font-weight: 600;
}

/* CTA (igual index #solucao-fluxo) */
.cn-action-block {
  text-align: center;
  padding: 1rem 0 .5rem;
}

.ext-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, var(--white) 0%, #e8e8ff 100%);
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 24px rgba(91, 91, 255, .25);
  border: .5px solid rgba(91, 91, 255, .3);
}

.ext-cta-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 91, 255, .35);
  text-decoration: none;
}

.cn-cta-note {
  font-size: 12px;
  color: #666;
  margin-top: .75rem;
  line-height: 1.45;
}

.cn-alt {
  font-size: 12px;
  color: #666;
  margin-top: .45rem;
}

.cn-alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cn-alt a:hover {
  text-decoration: underline;
}

#altDlWrap.hidden {
  display: none;
}

/* Footer wide (5 cols como index) */
.ft-grid-wide {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 899px) {
  .ft-grid-wide { grid-template-columns: 1fr; }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .ft-grid-wide { grid-template-columns: 1fr 1fr 1fr; }
}
