/* Ecossistema PreçoAI — componentes novos, camada sobre styles.css */

.eco-wrap { width: min(calc(100% - 40px), var(--content-width)); margin-inline: auto; }
.eco-section { padding: 96px 0; }
.eco-section.tight { padding: 64px 0; }

.eco-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid rgba(89,212,0,.28); border-radius: 999px;
  background: rgba(89,212,0,.08); color: #d7ffc2; font-size: .84rem; font-weight: 600;
}
.eco-h1 { margin: 22px 0 0; font-size: clamp(2.5rem, 5.6vw, 4.9rem); line-height: 1.03; letter-spacing: -.055em; }
.eco-h2 { margin: 18px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.045em; }
.eco-lead { margin: 22px 0 0; max-width: 620px; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.eco-center { text-align: center; }
.eco-center .eco-lead { margin-inline: auto; }
.hl { color: var(--accent-strong); }

/* Hero */
.eco-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eco-hero .hero-actions { margin-top: 32px; }
.eco-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .94rem; }
.eco-trust span::before { content: "✓"; color: var(--accent-strong); font-weight: 800; margin-right: 8px; }

/* Hub diagram (home) */
.hub { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: var(--shadow); }
.hub-core { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-md);
  background: var(--accent-soft); border: 1px solid rgba(89,212,0,.3); }
.hub-core img { width: 46px; height: 46px; border-radius: 12px; }
.hub-core strong { display: block; } .hub-core span { color: var(--muted); font-size: .88rem; }
.hub-grid { display: grid; gap: 12px; margin-top: 14px; }
.hub-node { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: rgba(255,255,255,.04); }
.hub-node b { display: block; font-size: .98rem; } .hub-node small { color: var(--muted); }
.hub-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-strong); }
.hub-ico svg, .eco-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-leads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lead-pill { padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); }
.lead-pill::before { content: "● "; color: var(--accent-strong); }

/* Faixa de diferenciais */
.eco-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eco-strip div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.eco-strip b { display: block; font-size: 1.02rem; } .eco-strip span { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Cartões dos 3 pilares (clicáveis) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pillar { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(89,212,0,.45); box-shadow: 0 30px 70px rgba(89,212,0,.12); }
.pillar-num { color: var(--accent-strong); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.pillar h3 { margin: 10px 0 0; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.15; }
.pillar p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.pillar ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pillar li { color: #dfe6dc; font-size: .95rem; } .pillar li::before { content: "✓"; color: var(--accent-strong); font-weight: 800; margin-right: 9px; }
.pillar .more { margin-top: auto; padding-top: 24px; color: var(--accent-strong); font-weight: 700; }
.pillar-art { height: 150px; margin-bottom: 20px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(89,212,0,.22), transparent 60%), rgba(255,255,255,.03); padding: 14px; overflow: hidden; }

/* Mockups genéricos */
.mock { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(8,13,8,.9); padding: 18px; box-shadow: var(--shadow); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .85rem; }
.mock-head b { color: var(--text); }
.chip { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); }
.chip.on { background: var(--accent-soft); border-color: rgba(89,212,0,.4); color: #d7ffc2; }
.chip.warn { background: rgba(255,184,0,.12); border-color: rgba(255,184,0,.4); color: #ffd666; }
.chip.down { background: rgba(255,92,92,.12); border-color: rgba(255,92,92,.4); color: #ff9b9b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prod { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.prod i { display: grid; place-items: center; height: 56px; border-radius: 10px; font-size: 1.7rem; font-style: normal; background: rgba(255,255,255,.05); }
.prod b { display: block; margin-top: 9px; font-size: .84rem; } .prod span { color: var(--accent-strong); font-weight: 800; font-size: .9rem; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(89,212,0,.3); font-size: .9rem; }
.mock-bar .btn-mini { padding: 8px 14px; border-radius: 999px; background: #59d400; color: #071007; font-weight: 800; font-size: .82rem; }

/* Inbox CRM */
.inbox { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.inbox-list { display: grid; gap: 8px; align-content: start; }
.inbox-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); font-size: .84rem; }
.inbox-item.active { border-color: rgba(89,212,0,.45); background: var(--accent-soft); }
.inbox-item b { display: flex; justify-content: space-between; gap: 8px; } .inbox-item small { color: var(--muted); }
.ch { font-size: .68rem; padding: 2px 7px; border-radius: 999px; font-weight: 800; }
.ch.wa { background: rgba(37,211,102,.18); color: #7dffae; } .ch.ig { background: rgba(225,48,108,.18); color: #ff9bc0; } .ch.fb { background: rgba(24,119,242,.2); color: #9cc4ff; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.5; margin-bottom: 9px; }
.msg.in { background: rgba(255,255,255,.07); } .msg.ai { background: var(--accent-soft); border: 1px solid rgba(89,212,0,.3); margin-left: auto; }
.msg small { display: block; margin-bottom: 4px; color: var(--accent-strong); font-weight: 800; font-size: .7rem; letter-spacing: .06em; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.funnel b { display: block; font-size: 1.5rem; } .funnel span { color: var(--muted); font-size: .8rem; }

/* Gráfico de preço */
.pricechart { width: 100%; height: auto; display: block; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpis div { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.kpis b { display: block; font-size: 1.15rem; } .kpis span { color: var(--muted); font-size: .76rem; }
.up { color: var(--accent-strong); } .dn { color: #ff9b9b; }

/* Post generator */
.post { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #0f1a0f; }
.post-img { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(135deg, #1e5c32, #0c2415); text-align: center; padding: 20px; }
.post-img strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; } .post-img em { font-style: normal; color: #7af212; font-weight: 800; font-size: 2.2rem; display: block; margin: 6px 0; }
.post-foot { display: flex; justify-content: space-between; padding: 10px 14px; font-size: .78rem; color: var(--muted); }

/* Grades de recursos / passos */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.feat h3 { margin: 14px 0 0; font-size: 1.08rem; } .feat p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; font-size: .95rem; }
.eco-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); color: var(--accent-strong); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.step h3 { margin: 10px 0 0; font-size: 1.05rem; } .step p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; font-size: .93rem; }

/* Split (texto + mockup) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { color: #dfe6dc; line-height: 1.55; } .checks li::before { content: "✓"; color: var(--accent-strong); font-weight: 800; margin-right: 10px; }
.checks b { color: var(--text); }

/* Conexão entre módulos */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; margin-top: 44px; }
.flow-node { flex: 1 1 150px; max-width: 200px; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.flow-node b { display: block; font-size: .95rem; } .flow-node small { color: var(--muted); line-height: 1.4; display: block; margin-top: 6px; }
.flow-node.a { border-color: rgba(89,212,0,.4); background: var(--accent-soft); }
.flow-arrow { align-self: center; color: var(--accent-strong); font-weight: 800; }

/* Comparativo */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.vs > div { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-soft); }
.vs .win { border-color: rgba(89,212,0,.45); background: linear-gradient(180deg, rgba(89,212,0,.14), rgba(255,255,255,.02)); }
.vs h3 { margin: 0 0 14px; font-size: 1.2rem; } .vs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; color: #dfe6dc; }
.vs li::before { content: "✕"; color: #ff9b9b; margin-right: 10px; font-weight: 800; } .vs .win li::before { content: "✓"; color: var(--accent-strong); }

/* Vídeo */
.video-box { position: relative; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-box video, .video-box img { width: 100%; display: block; }
.video-ph { display: grid; place-items: center; aspect-ratio: 16/9; text-align: center; padding: 24px; color: var(--muted);
  background: radial-gradient(circle at 50% 40%, rgba(89,212,0,.2), transparent 60%), #0a110a; }
.video-ph .play { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-strong); color: #071007; font-size: 1.6rem; }
.ph-tag { display: inline-block; margin-top: 10px; padding: 4px 10px; border: 1px dashed rgba(255,255,255,.25); border-radius: 999px; font-size: .72rem; color: var(--muted); }

.phone-shot { max-width: 360px; margin-inline: auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* CTA final, rodapé, WhatsApp flutuante */
.eco-cta { text-align: center; padding: 64px 28px; border: 1px solid rgba(89,212,0,.3); border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(89,212,0,.22), transparent 60%), var(--surface-soft); }
.eco-cta h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.08; }
.eco-cta p { margin: 16px auto 28px; max-width: 560px; color: var(--muted); line-height: 1.7; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; background: #25d366; color: #052e16; font-weight: 800; box-shadow: 0 14px 40px rgba(37,211,102,.35); }
.wa-float:hover { transform: translateY(-2px); }

/* Dúvidas */
.faq { display: grid; gap: 12px; margin-top: 40px; max-width: 860px; margin-inline: auto; }
.faq details { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; } .faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.7; }

.crumb { display: inline-block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; } .crumb:hover { color: var(--text); }
.nav-links a.current { color: var(--accent-strong); font-weight: 700; }

@media (max-width: 980px) {
  .eco-hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > :first-child { order: 0; }
  .pillars, .feat-grid { grid-template-columns: 1fr; }
  .eco-strip, .steps { grid-template-columns: repeat(2, 1fr); }
  .vs { grid-template-columns: 1fr; }
  .eco-section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .eco-strip, .steps, .funnel { grid-template-columns: 1fr 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .topbar-cta { display: none; }
  .wa-float span { display: none; } .wa-float { padding: 15px; }
}

/* Prints reais do produto */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #0a110a; box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }

/* Formulário de demonstração */
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.demo-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.demo-form input, .demo-form select { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
.demo-form input:focus, .demo-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo-form select option { color: #111; }
.demo-form button { grid-column: 1 / -1; }
.step.nonum::before { content: "✓"; }
@media (max-width: 980px) { .feat-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .demo-form { grid-template-columns: 1fr; } .feat-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; } }

.form-thanks { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(89,212,0,.3); line-height: 1.6; }

/* Prints nos heros e cards, com leitura no celular */
.shot-bar span { margin-left: 8px; color: var(--muted); font-size: .76rem; font-weight: 600; }
a.shot { display: block; transition: transform .2s ease, border-color .2s ease; }
a.shot:hover { transform: translateY(-4px); border-color: rgba(89,212,0,.45); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage .shot-main { grid-column: 1 / -1; }
.pillar-art { padding: 0; }
.pillar-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot img { background: #fff; }

@media (max-width: 640px) {
  .shot:not(.shot-main):not(a) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shot:not(a) img { min-width: 760px; }
  .shot:not(a)::after { content: "Arraste para ver a tela completa →"; display: block; padding: 8px 16px; color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); position: sticky; left: 0; }
  .collage { grid-template-columns: 1fr; }
  .pillar-art { height: 170px; }
}

/* Evita que prints largos estiquem as colunas do grid no celular */
.eco-hero > *, .split > *, .collage > *, .pillars > * { min-width: 0; }
.steps > *, .eco-strip > *, .funnel > *, .feat-grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .steps, .eco-strip { grid-template-columns: 1fr; } }

/* ===== Sequência padrão: texto centralizado em cima, imagem grande embaixo ===== */
.eco-hero { grid-template-columns: 1fr; gap: 44px; text-align: center; padding: 64px 0 24px; }
.eco-hero .hero-actions, .eco-trust, .hub-leads { justify-content: center; }
.eco-hero .eco-h1 { max-width: 980px; margin-inline: auto; }
.eco-lead { margin-inline: auto; max-width: 720px; }
.crumb { display: inline-block; }

.split { text-align: center; }
.split:has(.eco-h2) { grid-template-columns: 1fr; gap: 40px; }
.split.rev > :first-child { order: 0; }
.split:has(.eco-h2) > :first-child { max-width: 820px; margin-inline: auto; }
.split:has(.eco-h2) > :last-child { width: 100%; }

.checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
.split:has(.eco-h2) .inbox-list { grid-template-columns: repeat(2, 1fr); text-align: left; }
.inbox-item, .feat, .step, .pillar, .vs > div, .faq details, .demo-form, .flow-node { text-align: left; }
.flow-node { text-align: center; }
.eco-cta[style*="text-align:left"] { text-align: center !important; }
.eco-cta[style*="text-align:left"] p { margin-inline: auto !important; }

@media (max-width: 640px) {
  .split:has(.eco-h2) .inbox-list { grid-template-columns: 1fr; }
  .eco-hero { padding-top: 40px; }
  .eco-h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .eco-hero .hero-actions .button { width: 100%; }
}

/* Catálogo: papel no ecossistema */
.base-node { display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 16px 24px; text-align: left;
  border: 1px solid var(--accent-strong); border-radius: var(--radius-lg); background: var(--accent-soft); box-shadow: 0 18px 44px rgba(89,212,0,.14); }
.base-node b { display: block; font-size: 1.05rem; } .base-node small { color: var(--muted); }
.base-arrow { text-align: center; color: var(--accent-strong); font-size: 1.7rem; font-weight: 800; line-height: 1; margin: 14px 0; }
.feat-link { display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.feat-link:hover { transform: translateY(-4px); border-color: rgba(89,212,0,.45); }
.feat-tag { margin-top: 14px; color: var(--accent-strong); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feat-link h3 { margin-top: 6px; }
.feat-link .more { margin-top: auto; padding-top: 14px; color: var(--accent-strong); font-weight: 700; font-size: .92rem; }
@media (max-width: 760px) { .steps[style*="repeat(3"] { grid-template-columns: 1fr !important; } }
.eco-hero .eco-h1, .eco-h2 { text-wrap: balance; }
