/**
 * Ecossistema Cara Core — layout escaneável, cards padronizados, timeline (docs/ECOSISTEMA.md)
 */

/* Layout: índice lateral + conteúdo */
.eco-page-wrap {
  padding-top: 4.5rem;
}

.eco-toc-col {
  display: none;
}

@media (min-width: 992px) {
  .eco-toc-col {
    display: block;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 249, 250, 0.95);
  }

  .eco-toc {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 1.25rem 1rem 2rem;
  }
}

.eco-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.eco-toc a {
  display: block;
  font-size: 0.88rem;
  color: #495057;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  margin-bottom: 0.15rem;
}

.eco-toc a:hover {
  background: rgba(13, 110, 253, 0.06);
  color: #0d6efd;
}

.eco-toc-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #868e96;
  margin: 0.85rem 0 0.35rem 0.5rem;
}

.eco-toc-mobile {
  padding: 0.75rem 0 0;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .eco-toc-mobile {
    display: none;
  }
}

.eco-toc-mobile a {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #495057;
  text-decoration: none;
}

.eco-breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.eco-breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}

.eco-breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero */
#ecossistema.ecossistema-hero {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

#ecossistema .ecossistema-hero-inner {
  max-width: 820px;
}

#ecossistema .ecossistema-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
}

#ecossistema .ecossistema-philosophy {
  font-size: 1.05rem;
  line-height: 1.75;
}

.eco-hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #343a40;
}

/* Mapa visual simplificado */
.eco-map {
  background: linear-gradient(160deg, rgba(13, 110, 253, 0.04) 0%, rgba(255, 255, 255, 0.98) 45%);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  margin-bottom: 2rem;
}

.eco-map-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6c757d;
  margin-bottom: 1.25rem;
}

.eco-map-core {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 440px;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.1);
  border: 2px solid rgba(13, 110, 253, 0.25);
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a58ca;
}

.eco-map-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eco-map-node {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #495057;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.eco-map-node:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(13, 110, 253, 0.3);
  color: #0d6efd;
}

.eco-map-node--nucleo {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.2);
}

.eco-map-node--satelite {
  background: rgba(111, 66, 193, 0.06);
  border-color: rgba(111, 66, 193, 0.18);
}

.eco-map-node--garagem {
  background: rgba(253, 126, 20, 0.08);
  border-color: rgba(253, 126, 20, 0.25);
  color: #c35a0a;
}

.eco-map-node--gratuito {
  background: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.22);
  color: #146c43;
}

.eco-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: #6c757d;
}

.eco-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.eco-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.eco-map-legend .leg-prateleira { background: rgba(13, 110, 253, 0.35); }
.eco-map-legend .leg-educacao { background: rgba(111, 66, 193, 0.35); }
.eco-map-legend .leg-garagem { background: rgba(253, 126, 20, 0.45); }
.eco-map-legend .leg-gratuito { background: rgba(25, 135, 84, 0.4); }

/* Bunker exemplo */
.eco-bunker-callout {
  border-left: 4px solid #0d6efd;
  background: rgba(13, 110, 253, 0.05);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
}

.eco-bunker-callout strong {
  color: #0a58ca;
}

/* Para quem / Valores */
.eco-audience-card,
.eco-value-card {
  height: 100%;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.eco-audience-card h3,
.eco-value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eco-audience-card .bi,
.eco-value-card .bi {
  font-size: 1.35rem;
  color: #0d6efd;
  margin-bottom: 0.5rem;
  display: block;
}

.eco-value-card .bi {
  color: #198754;
}

/* Cards de produto padronizados */
.eco-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.eco-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.eco-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.eco-product-card--prateleira {
  border-top: 4px solid #0d6efd;
}

.eco-product-card--educacao {
  border-top: 4px solid #6f42c1;
}

.eco-product-card--gratuito {
  border-top: 4px solid #198754;
}

.eco-product-card--institucional {
  border-top: 4px solid #495057;
}

.eco-product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.eco-product-icon {
  font-size: 1.5rem;
  color: #0d6efd;
}

.eco-product-card--educacao .eco-product-icon { color: #6f42c1; }
.eco-product-card--gratuito .eco-product-icon { color: #198754; }

.eco-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.eco-status-done { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.eco-status-progress { background: rgba(255, 193, 7, 0.2); color: #856404; }
.eco-status-planned { background: rgba(108, 117, 125, 0.15); color: #495057; }
.eco-status-free { background: rgba(25, 135, 84, 0.15); color: #146c43; }

.eco-product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.eco-product-stack {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 0.65rem;
}

.eco-product-bullets {
  font-size: 0.85rem;
  color: #495057;
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.eco-product-bullets li {
  margin-bottom: 0.25rem;
}

.eco-product-meta {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 0.85rem;
}

.eco-product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.eco-section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.eco-section-badge--prateleira {
  background: rgba(13, 110, 253, 0.1);
  color: #0a58ca;
}

.eco-section-badge--garagem {
  background: rgba(253, 126, 20, 0.12);
  color: #c35a0a;
}

.eco-section-badge--pilares {
  background: rgba(111, 66, 193, 0.1);
  color: #5a32a3;
}

/* Garagem */
.eco-garagem-section {
  background: linear-gradient(180deg, rgba(253, 126, 20, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.eco-garagem-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fd7e14;
  margin-bottom: 0.5rem;
}

.eco-garagem-card {
  height: 100%;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(253, 126, 20, 0.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.eco-garagem-card:hover {
  box-shadow: 0 8px 24px rgba(253, 126, 20, 0.1);
}

.eco-garagem-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.eco-garagem-card-title-link {
  color: inherit;
  text-decoration: none;
}

.eco-garagem-card-title-link:hover {
  color: #fd7e14;
  text-decoration: underline;
}

.eco-garagem-card .eco-launch {
  font-size: 0.85rem;
  color: #198754;
  font-weight: 600;
  margin-top: 0.75rem;
  display: block;
}

/* Timeline roadmap */
.eco-timeline {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  padding: 1rem 0 1.5rem;
  margin-bottom: 1rem;
}

.eco-timeline-item {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 160px;
  text-align: center;
  position: relative;
  padding: 0 0.75rem;
}

.eco-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.eco-timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.eco-timeline-done .eco-timeline-dot {
  background: #198754;
  color: #fff;
}

.eco-timeline-progress .eco-timeline-dot {
  background: #ffc107;
  color: #212529;
}

.eco-timeline-future .eco-timeline-dot {
  background: #adb5bd;
  color: #fff;
}

.eco-timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.eco-timeline-date {
  font-size: 0.68rem;
  color: #6c757d;
}

.eco-roadmap-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 1rem;
  -webkit-user-select: none;
  user-select: none;
}

.eco-roadmap-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.eco-roadmap-table {
  font-size: 0.93rem;
}

.eco-roadmap-table thead th {
  background: rgba(13, 110, 253, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(13, 110, 253, 0.15);
  color: #495057;
}

.eco-roadmap-row-upcoming td {
  background: rgba(255, 193, 7, 0.06);
}

.eco-roadmap-row-future td {
  background: rgba(108, 117, 125, 0.05);
}

/* Tabela de Lojas Oficiais */
.eco-lojas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.eco-lojas-table th,
.eco-lojas-table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.eco-lojas-table thead th {
  background: #f8f9fa;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495057;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.eco-lojas-table .row-group-nucleo {
  background: rgba(13, 110, 253, 0.08);
  color: #0a58ca;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 2px solid rgba(13, 110, 253, 0.2);
}

.eco-lojas-table .row-group-brinco {
  background: #f8f9fa;
  color: #6c757d;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.eco-lojas-table tbody tr:hover td {
  background: rgba(13, 110, 253, 0.02);
}

.eco-badge-nucleo {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(13, 110, 253, 0.15);
  color: #0a58ca;
}

.eco-badge-brinco {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  background: #e9ecef;
  color: #6c757d;
}

/* Diagrama */
.ecossistema-section .diagram-container {
  max-width: 100%;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.ecossistema-section .mermaid {
  display: flex;
  justify-content: center;
}

.eco-cta-block {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.02) 100%);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.eco-cta-block .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
}

.eco-narrativa {
  font-size: 0.95rem;
  color: #495057;
  border-left: 3px solid rgba(13, 110, 253, 0.35);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.ecossistema-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.eco-main-col {
  padding-left: 1rem;
  padding-right: 1rem;
}

.eco-footer-note {
  max-width: 42rem;
}

@media (min-width: 992px) {
  .eco-main-col {
    padding-left: 2rem;
    padding-right: 2.5rem;
  }
}
