/* Cara Core PDV Desktop (Rust + Tauri) — components */
.card {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(14px, 3vw, 20px);
  box-shadow: var(--shadow-card);
}
.card h2 { margin: 0 0 8px; font-size: clamp(1.125rem, 3vw, 1.25rem); color: var(--brand); }
.card h3 { margin: 16px 0 8px; font-size: 15px; color: var(--brand); }
.card h3:first-of-type { margin-top: 0; }
.section-subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.card p, .card li { font-size: 14px; line-height: 1.6; }
.card ul, .card ol { padding-left: 20px; }

.card:has(table.trace) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}
.card:has(table.trace) .trace {
  margin: 0;
}

.exec-summary {
  background: linear-gradient(135deg, #eef4fb 0%, #f8fbff 100%);
  border: 1px solid #b8caf7;
}
.exec-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
}
.exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.exec-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.exec-kpi strong {
  display: block;
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 6px;
}
.exec-kpi span { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Início: par Local / Rede — 1 col mobile, 2 col ≥640 */
.hub-grid--intro {
  margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hub-grid--intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
/* Sumário de página: 9 cards = grade 3×3 */
.hub-grid--toc {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(14px, 3vw, 18px);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 44px;
  height: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .hub-card:hover {
    border-color: var(--brand-2);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }
}
.hub-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--brand); }
.hub-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hub-card .hub-tag {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; background: #fff; display: inline-block; }
.status-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-concluido { background: #e7f7ea; border-color: #9cd2a8; color: #1c6b31; }
.status-em-andamento { background: #fff6e5; border-color: #e7c27f; color: #8a5600; }
.status-validacao { background: #eaf1ff; border-color: #b8caf7; color: #1f4c9c; }
.status-nao-iniciado { background: #eef1f5; border-color: #ccd4df; color: #445264; }
.status-bloqueado { background: #fdecea; border-color: #e8b4b0; color: #8b1a1a; }

.diagram-caption {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--brand-2);
  background: #eef4fb;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.diagram-caption strong { color: var(--brand); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stack-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fafcfe;
}
.stack-item strong { display: block; color: var(--brand); font-size: 14px; margin-bottom: 6px; }
.stack-item span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.trace {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}
.trace th, .trace td {
  border: 1px solid var(--line);
  padding: clamp(8px, 2vw, 10px);
  text-align: left;
  vertical-align: top;
}
.trace th { background: #eef4fb; color: var(--brand); }

.slo-ok { color: #1c6b31; font-weight: 700; }
.slo-warn { color: #8a5600; font-weight: 700; }
.slo-pending { color: #445264; font-weight: 700; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.pillar h3 { margin: 0 0 8px; font-size: 14px; color: var(--brand); }
.pillar p, .pillar ul { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.brand-quote {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand-2);
  background: #eef4fb;
  font-size: 15px;
  font-style: italic;
  color: var(--brand);
}

.cta-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4fb 0%, #fff 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cta-box p { margin: 0; font-size: 14px; flex: 1; min-width: 200px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: var(--nav-link-min-h);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: var(--nav-link-min-h);
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  text-align: center;
}
.btn-secondary:hover { background: #eef4fb; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.download-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.download-quick-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.download-quick-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--brand);
}
.download-quick-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.download-quick-item--primary {
  border-color: #9dc6ef;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}
.download-quick-item:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.download-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  background: #fff;
}
.download-option-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #c5daf0;
  background: #eef4fb;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.download-option h3 { margin: 0 0 6px; font-size: 15px; }
.download-option p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.download-option a { width: 100%; box-sizing: border-box; }
/* download-grid: ver breakpoints 640 / 1024 acima */

.proof-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.proof-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.proof-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.proof-item-head strong { font-size: 14px; color: var(--ink); }
.proof-item-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.proof-item-date { display: block; margin-top: 8px; font-size: 11px; color: var(--muted-2, #6b7c8f); }

.er-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfeff;
  padding: 8px;
}
.er-diagram {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.eco-diagram-object {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-meta {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}
.ext-link { color: var(--brand-2); word-break: break-word; }

.notice {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.notice-info {
  background: #f0f7ff;
  border: 1px solid #c5daf0;
  color: var(--ink);
}
.notice-warn {
  background: #fffbf0;
  border: 1px solid #e8d4a8;
  color: var(--ink);
}
.notice strong { display: block; margin-bottom: 4px; font-size: 14px; }
.notice a { color: var(--brand-2); }

/* ——— Grids responsivos (mobile / tablet / desktop) ——— */

/* Tablet 640–1023 */
@media (min-width: 640px) and (max-width: 1023px) {
  .exec-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid--toc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid .demo-item:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: min(100%, 560px);
    justify-self: center;
    width: 100%;
  }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars-grid,
  .two-col { grid-template-columns: 1fr; }
}

/* Desktop ≥1024 */
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile ≤639 */
@media (max-width: 639px) {
  .exec-kpi-grid,
  .stack-grid,
  .stack-grid--3,
  .hub-grid,
  .hub-grid--toc,
  .benefit-grid,
  .demo-grid,
  .trust-grid,
  .download-grid,
  .download-quick-grid,
  .pillars-grid,
  .two-col { grid-template-columns: 1fr; }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-box p { min-width: 0; }
  .cta-box .btn-primary,
  .cta-box .btn-secondary {
    width: 100%;
  }

  .proof-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trace,
  .pricing-table {
    min-width: min(520px, 100%);
    font-size: 12px;
  }

  .trace th,
  .trace td {
    padding: 8px;
  }

  .exec-kpi strong {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .download-hero-cta {
    padding: clamp(16px, 4vw, 24px);
  }

  .download-hero-cta .btn-primary {
    width: 100%;
    box-sizing: border-box;
  }

  .trust-seal {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 6px 0;
    box-sizing: border-box;
  }

  .pilot-quote {
    padding: 14px;
    font-size: 13px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .demo-item figcaption {
    padding: 12px;
  }
}

@media (max-width: 980px) {
  .pillars-grid,
  .two-col { grid-template-columns: 1fr; }
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  font-size: 14px;
  padding: 14px 24px;
}
.hero-actions .btn-hero {
  font-size: 15px;
  padding: 16px 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Benefit cards */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.benefit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.benefit-card strong {
  display: block;
  color: var(--brand);
  font-size: 15px;
  margin-bottom: 6px;
}
.benefit-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.benefit-card--icon {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px 12px;
  align-items: start;
}
.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4fb;
  font-size: 20px;
  line-height: 1;
}

/* Home — fluxo linear para MEI / pequeno varejo */
.home-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.home-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fafcfe;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.home-jump a:hover {
  background: #eef4fb;
  border-color: #b8caf7;
}
.home-solves {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand-2);
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.55;
}
.free-banner {
  border: 2px solid #5cb87a;
  background: linear-gradient(135deg, #e8f7ee 0%, #fff 52%);
}
.free-banner__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #1c6b31;
}
.free-banner h2 {
  margin: 0 0 10px;
  color: var(--brand);
}
.free-banner__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
}
.free-banner__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.free-banner__list li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
}
.free-banner__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: #1c6b31;
}
.free-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
  counter-reset: home-step;
}
.home-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  background: #fff;
}
.home-step::before {
  counter-increment: home-step;
  content: counter(home-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.home-step strong {
  display: block;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 6px;
}
.home-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.compare-teaser {
  border: 2px solid #b8caf7;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
}
.compare-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.compare-teaser__col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.compare-teaser__col h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--brand);
}
.compare-teaser__col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.home-tech details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fafcfe;
}
.home-tech details + details {
  margin-top: 8px;
}
.home-tech summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  padding: 12px 0;
}
.home-tech .ti-body {
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.portal-footer--columns .footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  text-align: left;
  margin-bottom: 16px;
}
.portal-footer--columns .footer-col strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--brand);
  margin-bottom: 8px;
}
.portal-footer--columns .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-footer--columns .footer-col a {
  font-size: 13px;
}
.portal-footer--columns .footer-legal {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
}
.home-eco-diagram {
  margin: 12px 0 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 767px) {
  .home-steps,
  .compare-teaser__grid,
  .portal-footer--columns .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Capturas do PDV — caixa responsiva (mobile / tablet / desktop) */
.portal-shot {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: var(--screenshot-aspect);
  background: linear-gradient(180deg, #f4f8fc 0%, #e8f0fa 100%);
  overflow: hidden;
  contain: layout style;
}
.portal-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}
.portal-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
}

/* Demo gallery (screenshots reais) */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 14px);
  min-width: 0;
}
.demo-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
}
.demo-item .portal-shot {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.demo-item figcaption {
  flex: 1 1 auto;
  padding: clamp(10px, 2vw, 14px);
  font-size: clamp(12px, 1.8vw, 13px);
  color: var(--muted);
  line-height: 1.45;
}
.demo-item figcaption strong {
  display: block;
  color: var(--brand);
  font-size: clamp(13px, 2vw, 14px);
  margin-bottom: 4px;
}

/* Pricing table */
.pricing-table { min-width: 560px; }
.pricing-table .plan-name { font-weight: 700; color: var(--brand); }
.pricing-table .plan-highlight { background: #f0f7ff; }
.pricing-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Trust section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.trust-badge {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  text-align: center;
}
.trust-badge strong {
  display: block;
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 6px;
}
.trust-badge span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  margin: 4px 6px 4px 0;
}

/* Audience chips */
.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.audience-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}

/* Download hero CTA */
.download-hero-cta {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #0b3a66 0%, #14538e 100%);
  border-radius: var(--radius-card);
  color: #fff;
}
.download-hero-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}
.download-hero-cta p {
  margin: 0 0 16px;
  opacity: 0.92;
  font-size: 14px;
}
.download-hero-cta .btn-primary {
  background: #fff;
  color: var(--brand);
  font-size: 15px;
  padding: 16px 32px;
}
.download-hero-cta .btn-primary:hover {
  background: #eef4fb;
}
.download-hero-cta .hash-line {
  margin-top: 14px;
  font-size: 11px;
  opacity: 0.85;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

/* Demo tour (demonstracao.html) */
.demo-tour__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-tour__step {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.demo-tour__step--active,
.demo-tour__step[aria-selected="true"] {
  border-color: var(--brand-2);
  background: #eef4fb;
}
.demo-tour__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.demo-tour__label { font-size: 14px; font-weight: 600; color: var(--brand); }
.demo-tour__stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f8fbff;
}
.demo-tour__stage .portal-shot {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.demo-tour__caption {
  flex: 1 1 auto;
  padding: clamp(14px, 3vw, 20px);
  font-size: clamp(13px, 2vw, 14px);
  line-height: 1.5;
  color: var(--muted);
  background: #fff;
}
.demo-tour__caption strong {
  display: block;
  color: var(--brand);
  font-size: 16px;
  margin-bottom: 8px;
}
.demo-tour__caption p {
  margin: 0;
}
.demo-flow-list { margin: 0; padding-left: 20px; }
.demo-flow-list li { margin-bottom: 8px; }

/* Pilot trust (sem depoimentos inventados) */
.pilot-quote {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--brand-2);
  background: #f8fbff;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.pilot-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 639px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .demo-tour__step { flex: 1 1 100%; }

  .demo-tour__caption strong {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  #demo .demo-grid,
  .card#demo .demo-grid {
    gap: 16px;
  }
}

/* Paisagem em telefones estreitos — regra movida para layout.css */

/* —— Apresentação comercial (modalidades, hub) —— */
.cta-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.08);
  backdrop-filter: blur(8px);
}
.cta-sticky .btn-primary,
.cta-sticky .btn-secondary {
  font-size: 14px;
  padding: 10px 18px;
  min-height: 44px;
}
.cta-sticky__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
@media (max-width: 639px) {
  .cta-sticky {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-sticky__label {
    text-align: center;
    margin: 0 0 4px;
  }
  .cta-sticky .btn-primary,
  .cta-sticky .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

.tagline-hero {
  margin: 0 0 20px;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}
.tagline-hero em {
  font-style: normal;
  color: var(--brand-2);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.mode-card {
  border-radius: var(--radius-card);
  padding: clamp(16px, 3vw, 22px);
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.mode-card--local {
  border-color: #9cd2a8;
  background: linear-gradient(180deg, #f6fcf8 0%, #fff 48%);
}
.mode-card--rede {
  border-color: #b8caf7;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 48%);
}
.mode-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mode-card__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.mode-card__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--brand);
}
.mode-card__pitch {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.mode-card__for {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--brand-2);
}
.mode-benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-benefit-list li {
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}
.mode-benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #1c6b31;
}
.mode-card--rede .mode-benefit-list li::before {
  color: #1f4c9c;
}
.mode-card .cta-box {
  margin-top: auto;
  padding-top: 8px;
}

.journey-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
  counter-reset: journey;
}
.journey-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 14px 14px;
  background: #fff;
  text-align: center;
}
.journey-step::before {
  counter-increment: journey;
  content: counter(journey);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.journey-step strong {
  display: block;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 6px;
}
.journey-step span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.journey-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-2);
  z-index: 1;
}
@media (max-width: 767px) {
  .mode-grid,
  .journey-path {
    grid-template-columns: 1fr;
  }
  .journey-step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
  }
}

.data-vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.data-vault-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
  text-align: center;
}
.data-vault-item .dv-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}
.data-vault-item strong {
  display: block;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 6px;
}
.data-vault-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.credibility-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  background: #fff;
  text-align: center;
}
.credibility-item strong {
  display: block;
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 4px;
}
.credibility-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.seal-lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #b8caf7;
  background: #eaf1ff;
  font-size: 13px;
  font-weight: 700;
  color: #1f4c9c;
}

/* Diagrama do ecossistema — 4 camadas (rust-tauri.html #ecosistema) */
.eco-diagram {
  margin: 16px 0 0;
  padding: clamp(14px, 3vw, 22px);
  border: 2px dashed #b8caf7;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(11, 58, 102, 0.04) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(11, 58, 102, 0.04) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  overflow-x: auto;
}
.eco-diagram__title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-2);
}
.eco-diagram__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: min(100%, 680px);
  margin: 0 auto;
}
.eco-layer {
  display: grid;
  grid-template-columns: minmax(168px, 220px) 40px minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
  width: 100%;
}
.eco-layer__box {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 3px 3px 0 rgba(11, 58, 102, 0.07);
}
.eco-layer__box strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--brand);
  margin-bottom: 4px;
}
.eco-layer__box span {
  display: block;
  color: var(--brand-2);
  font-weight: 600;
}
.eco-layer--frontend .eco-layer__box {
  border-color: #7aa8e8;
  background: linear-gradient(180deg, #e8f1ff 0%, #f8fbff 100%);
}
.eco-layer--backend .eco-layer__box {
  border-color: #5cb87a;
  background: linear-gradient(180deg, #e5f7eb 0%, #f6fcf8 100%);
}
.eco-layer--persist .eco-layer__box {
  border-color: #d4a84a;
  background: linear-gradient(180deg, #fff4d6 0%, #fffbf0 100%);
}
.eco-layer--replica .eco-layer__box {
  border-color: #9a7fd4;
  background: linear-gradient(180deg, #ede6ff 0%, #f8f5ff 100%);
}
.eco-layer__arrow-h {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-2);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.eco-layer__arrow-h::before,
.eco-layer__arrow-h::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--brand-2);
  opacity: 0.45;
}
.eco-layer__arrow-h::before { margin-right: 4px; }
.eco-layer__arrow-h::after { margin-left: 4px; }
.eco-layer__benefit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.eco-layer__benefit em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
}
.eco-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 220px;
  padding: 4px 0;
  color: var(--brand-2);
}
.eco-connector__line {
  display: block;
  width: 2px;
  height: 18px;
  background: var(--brand-2);
  opacity: 0.55;
}
.eco-connector__chev {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.eco-diagram__legend {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.eco-diagram-static {
  margin-top: 14px;
  font-size: 13px;
}
.eco-diagram-static summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-2);
  padding: 8px 0;
}
.eco-diagram-static summary:hover {
  color: var(--brand);
}
.eco-diagram-static .er-diagram {
  margin-top: 10px;
}
@media print {
  .eco-diagram { display: none !important; }
  .eco-diagram-static {
    display: block !important;
  }
  .eco-diagram-static summary {
    display: none;
  }
}
@media (max-width: 639px) {
  .eco-layer {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .eco-layer__arrow-h {
    flex-direction: column;
    min-height: 32px;
    margin: 2px auto;
  }
  .eco-layer__arrow-h::before {
    width: 2px;
    height: 10px;
    flex: 0 0 auto;
    margin: 0 auto 2px;
  }
  .eco-layer__arrow-h::after {
    display: none;
  }
  .eco-layer__arrow-h span {
    font-size: 18px;
    line-height: 1;
  }
  .eco-connector {
    max-width: none;
  }
}
.arch-promise {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 2px solid #9cd2a8;
  background: linear-gradient(135deg, #f6fcf8 0%, #fff 55%);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink);
}
.arch-promise strong { color: var(--brand); }

.compare-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
.compare-matrix th,
.compare-matrix td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.compare-matrix thead th {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.compare-matrix thead th:first-child {
  background: #eef1f5;
  color: var(--ink);
  text-align: left;
}
.compare-matrix tbody th {
  background: #f8fbff;
  font-weight: 600;
  color: var(--brand);
  text-align: left;
  width: 32%;
}
.compare-matrix .cell-yes {
  text-align: center;
  color: #1c6b31;
  font-weight: 700;
}
.compare-matrix .cell-no {
  text-align: center;
  color: var(--muted);
}
.compare-matrix .cell-highlight {
  background: #f6fcf8;
}
.compare-matrix .cell-highlight-rede {
  background: #f4f8ff;
}

.ti-accordion {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.ti-accordion details {
  border-bottom: 1px solid var(--line);
}
.ti-accordion details:last-child {
  border-bottom: none;
}
.ti-accordion summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  cursor: pointer;
  background: #f8fbff;
  list-style: none;
}
.ti-accordion summary::-webkit-details-marker {
  display: none;
}
.ti-accordion summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}
.ti-accordion details[open] summary::after {
  content: "−";
}
.ti-accordion .ti-body {
  padding: 12px 16px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.ti-accordion .ti-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.ti-accordion .ti-body a {
  font-weight: 600;
}

.demo-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.demo-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.demo-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.demo-thumb span {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .demo-thumb:hover {
    border-color: var(--brand-2);
    box-shadow: var(--shadow-card-hover);
  }
}

@media (max-width: 900px) {
  .credibility-strip,
  .data-vault-grid,
  .demo-thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .credibility-strip,
  .data-vault-grid,
  .demo-thumb-row {
    grid-template-columns: 1fr;
  }
}
