/* =====================================================================
   Datamatix: página do sistema CadBoi (gestão para corretores de gado)
   Complementa style.css (mesma paleta, tipografia e componentes base)
   ===================================================================== */

.page-cb { --stop: #ff5d4d; --warn: #ffb547; }

/* ---------- revelação ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s var(--ease-back); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.cb-crumbs { margin-bottom: 18px; }
.cb-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 500; color: #0b3b1a; }
.cb-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; }
.cb-crumbs a { color: #0b3b1a; opacity: .7; transition: opacity .3s; }
.cb-crumbs a:hover { opacity: 1; }
.cb-hero .hero-text h1 { font-size: 60px; }
.cb-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: #000; padding: 6px 0; background: linear-gradient(#000, #000) 0 100% / 100% 2px no-repeat; transition: background-size .35s; }
.cb-link:hover { background-size: 0 2px; background-position: 100% 100%; }
.cb-link .ico { font-size: 18px; stroke-width: 2; }
.cb-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.cb-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #0b3b1a; }
.cb-proof .ico { font-size: 16px; stroke-width: 2.6; }


/* ---------- animações simbólicas (hero, solução, retomar) ---------- */
.cb-sym { position: relative; width: 100%; background: #000; color: #fff; border-radius: 30px; padding: 22px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.5); }
.cb-sym-head { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #a9a9b3; }
.cb-sym-head span { display: inline-flex; align-items: center; gap: 10px; }
.cb-sym-head .ico { font-size: 18px; color: var(--bgcolor); }
.cb-dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(var(--bgcolor), var(--main-color), var(--bgcolor)); animation: cbSpin 2.4s linear infinite; }
@keyframes cbSpin { to { transform: rotate(360deg); } }
@keyframes cbSig { to { stroke-dashoffset: -100; } }
@keyframes cbRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.cb-sym-cap { min-height: 76px; padding-top: 16px; border-top: 1px solid #1f1f23; font-size: 15px; line-height: 24px; color: #a9a9b3; transition: opacity .3s; }
.cb-sym-cap b { color: #fff; }
.cb-sym-cap.out { opacity: 0; }
.cb-sym ul li { position: absolute; top: var(--y); display: flex; align-items: center; gap: 7px; transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 7px 12px; border-radius: 99px; background: #111114; border: 1px solid #26262c; color: #d6d6dd; transition: background .4s, color .4s, border-color .4s; }
.cb-sym ul .ico { font-size: 15px; color: var(--bgcolor); transition: color .4s; }
.cb-sym ul li.on { background: var(--bgcolor); border-color: var(--bgcolor); color: #000; }
.cb-sym ul li.on .ico { color: #000; }
.cb-core { position: absolute; left: 50%; top: 50%; width: 17.7%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: 0 0 0 1px #2d2d34, 0 0 50px rgba(102,55,237,.45); }
.cb-core::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--bgcolor); border-right-color: var(--main-color); animation: cbSpin 3s linear infinite; }
.cb-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--main-color); animation: cbRing 2.2s ease-out infinite; }
.cb-core .ico { width: 42%; height: 42%; color: var(--bgcolor); stroke-width: 1.8; }
.cb-core b { font-size: 20px; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(135deg, var(--bgcolor), #a88bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero: vendedor, lote e comprador entram; comissões, receita e financeiro saem */
.cb-flow { max-width: 480px; }
.cb-flow-map, .cb-hub-map { position: relative; margin: 14px 0 6px; }
.cb-flow-map { aspect-ratio: 520 / 330; }
.cb-flow-map > svg, .cb-hub-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.cb-fl-l path, .cb-hub-l path { stroke: #26262c; stroke-width: 1.5; }
.cb-fl-s path, .cb-fl-o path, .cb-hub-s path { stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 12 120; stroke-dashoffset: 12; }
.cb-fl-s path { stroke: var(--bgcolor); animation: cbSig 2.2s linear infinite; }
.cb-fl-s path:nth-child(2) { animation-delay: .7s; } .cb-fl-s path:nth-child(3) { animation-delay: 1.4s; }
.cb-fl-o path { stroke: #a88bff; opacity: 0; }
.cb-fl-o path.on { opacity: 1; animation: cbSig 1.1s linear infinite; }
.cb-fl-in li { left: 0; }
.cb-fl-out li { right: 0; }
.cb-fl-out .ico { color: #a88bff; }

/* solução: módulos em volta do Centro de Comando */
.cb-hub-map { aspect-ratio: 520 / 350; }
.cb-hub-orbit { stroke: #26262c; stroke-width: 1; stroke-dasharray: 2 8; transform-origin: 260px 175px; animation: cbSpin 60s linear infinite; }
.cb-hub-s path { stroke: var(--bgcolor); opacity: 0; }
.cb-hub-s path.on { opacity: 1; animation: cbSig 1.1s linear infinite; }
.cb-hub .cb-hub-mods li { left: var(--x); transform: translate(-50%, -50%); }
.cb-hub .cb-hub-mods li.l { left: 0; transform: translateY(-50%); }
.cb-hub .cb-hub-mods li.r { left: auto; right: 0; transform: translateY(-50%); }
.cb-hub-core { width: 20%; }

/* retomar: radar de clientes parados */
.cb-rd-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 30px; align-items: center; margin-top: 18px; }
.cb-rd { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.cb-rd > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-rd circle { stroke: #2a2a31; stroke-width: .35; }
.cb-rd .z-crit { fill: rgba(255,93,77,.07); }
.cb-rd .z-warn { fill: rgba(255,181,71,.07); }
.cb-rd .z-ok { fill: #000; }
.cb-rd .cross { stroke: #1b1b1f; stroke-width: .3; }
.cb-rd text { fill: #8a8a94; font: 600 3.2px var(--font-body); text-anchor: middle; }
.cb-rd-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, rgba(84,250,128,.28) 360deg); animation: cbSpin 4s linear infinite; }
.cb-rd-dots i { --c: var(--warn); position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); animation: cbPing 4s linear infinite; animation-delay: calc(var(--a) * 4s / 360); transition: transform .4s var(--ease-back), background .4s; }
.cb-rd-dots i.crit { --c: var(--stop); }
@keyframes cbPing { 0% { box-shadow: 0 0 0 0 var(--c); } 25%, 100% { box-shadow: 0 0 0 9px transparent; } }
.cb-radar.s1 .cb-rd-dots i.crit { transform: scale(1.5); }
.cb-radar.s2 .cb-rd-dots .cb-target { --c: var(--bgcolor); transform: scale(1.7); }
.cb-rd-you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: #000; background: var(--bgcolor); border-radius: 99px; padding: 3px 8px; }
.cb-rd-legend { display: grid; gap: 8px; margin-bottom: 16px; }
.cb-radar .cb-rd-legend li { position: static; transform: none; justify-content: flex-start; gap: 10px; border-radius: 14px; padding: 9px 12px; font-size: 14px; }
.cb-rd-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cb-rd-legend .crit::before { background: var(--stop); }
.cb-rd-legend .warn::before { background: var(--warn); }
.cb-rd-legend small { margin-left: auto; font-size: 12px; font-weight: 500; color: #8a8a94; }
.cb-radar.s1 .cb-rd-legend .crit { border-color: rgba(255,93,77,.6); }
.cb-radar .cb-sym-cap { min-height: 100px; }
.cb-rd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cb-rd-acts span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: #111114; border: 1px solid #26262c; color: #d6d6dd; transition: background .4s, color .4s, border-color .4s; }
.cb-rd-acts .ico { font-size: 14px; color: var(--bgcolor); transition: color .4s; }
.cb-radar.s2 .cb-rd-acts span { background: var(--bgcolor); border-color: var(--bgcolor); color: #000; }
.cb-radar.s2 .cb-rd-acts .ico { color: #000; }

/* ---------- resumo ---------- */
.cb-summary { padding: 90px 0 70px; }
.cb-summary-grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.cb-kicker { font-size: 14px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--main-color); padding-top: 8px; line-height: 1.5; }
.cb-summary-grid p { font-size: 20px; line-height: 1.65; color: #222; letter-spacing: -.01em; }
.cb-summary-grid strong { color: #000; font-weight: 600; }
.cb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0 330px; }
.cb-tags li { border: 1px solid #d9d9e0; border-radius: 99px; padding: 8px 18px; font-size: 14px; font-weight: 500; transition: background .3s, border-color .3s; }
.cb-tags li:hover { background: var(--bgcolor); border-color: var(--bgcolor); }

/* ---------- o problema ---------- */
.cb-pain { background: #000; position: relative; overflow: hidden; }
.cb-pain::before { content: ""; position: absolute; right: -200px; top: 10%; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(255,93,77,.12), transparent); pointer-events: none; }
.cb-pain .container { position: relative; }
.cb-pain .heading h2 { color: #fff; font-size: 44px; }
.cb-pain .heading p { color: #a9a9b3; width: 100%; max-width: 530px; }
.cb-pain .heading > span { background: transparent; border: 1px solid var(--bgcolor); color: var(--bgcolor); }
.cb-pains { margin-top: 14px; max-width: 530px; display: grid; gap: 12px; }
.cb-pains li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 20px; background: #0d0d10; border: 1px solid #1c1c21; transition: border-color .35s, transform .35s var(--ease-back); }
.cb-pains li:hover { border-color: var(--bgcolor); transform: translateX(6px); }
.cb-pains i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #17171b; color: var(--bgcolor); font-size: 22px; }
.cb-pains h3 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 4px; }
.cb-pains p { color: #8f8f99; font-size: 14.5px; line-height: 23px; }
.cb-quote { margin-top: 90px; padding-top: 50px; border-top: 1px solid #1f1f24; font-size: 38px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; color: #6f6f78; max-width: 1000px; }
.cb-quote strong { color: #fff; font-weight: 600; }

/* caderno do corretor */
.cb-note { margin: 0 0 0 auto; max-width: 540px; background: #0d0d10; border: 1px solid #222228; border-radius: 30px; padding: 26px 26px 20px; color: #fff; }
.cb-n-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #a9a9b3; }
.cb-n-head span { display: inline-flex; align-items: center; gap: 10px; }
.cb-n-head .ico { font-size: 18px; color: var(--bgcolor); }
.cb-replay { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .3px; text-transform: none; font-weight: 600; color: #d6d6dd; background: #1b1b1f; border-radius: 99px; padding: 6px 12px; opacity: 0; pointer-events: none; transition: opacity .3s, background .3s, color .3s; }
.cb-replay:hover { background: var(--bgcolor); color: #000; }
.cb-note.done .cb-replay { opacity: 1; pointer-events: auto; }
.cb-paper { position: relative; margin: 20px 0 16px; padding: 14px 16px 12px 46px; border-radius: 16px; background: #f3ecdc repeating-linear-gradient(transparent 0 33px, #cdd8e6 33px 34px); background-position: 0 12px; color: #253a73; transform: rotate(-.6deg); box-shadow: 0 20px 40px -25px rgba(0,0,0,.8); }
.cb-paper::before { content: ""; position: absolute; left: 32px; top: 0; bottom: 0; width: 2px; background: #e7a3a3; }
.cb-paper p { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 34px; padding-bottom: 5px; font-size: 14px; font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.cb-paper p > span { white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 1s steps(26); }
.cb-paper em { flex: none; font-style: italic; font-weight: 700; font-size: 13px; color: #d23a2a; border: 2px solid #d23a2a; border-radius: 50%; padding: 0 8px; transform: rotate(-7deg) scale(1.5); opacity: 0; transition: opacity .25s, transform .35s var(--ease-back); }
.cb-note.w1 .l1 > span, .cb-note.w2 .l2 > span, .cb-note.w3 .l3 > span, .cb-note.w4 .l4 > span { clip-path: inset(0 0 0 0); }
.cb-note.s .cb-paper em { opacity: 1; transform: rotate(-7deg); }
.cb-note.s .l2 em { transition-delay: .15s; } .cb-note.s .l3 em { transition-delay: .3s; } .cb-note.s .l4 em { transition-delay: .45s; }
.cb-paper .cb-calc { justify-content: flex-start; gap: 8px; color: #253a73; opacity: 0; transition: opacity .4s; }
.cb-paper .cb-calc b { color: #d23a2a; font-size: 18px; }
.cb-note.calc .cb-calc { opacity: 1; }
.cb-note.calc .cb-calc b { display: inline-block; animation: cbShake .5s ease 2; }
@keyframes cbShake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.cb-n-qs { display: grid; gap: 8px; }
.cb-n-qs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #131316; font-size: 14px; color: #d6d6dd; opacity: .08; transform: translateY(-6px); transition: opacity .5s, transform .5s var(--ease-back); }
.cb-n-qs em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--stop); border: 1px solid rgba(255,93,77,.5); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.cb-note.q1 .q1, .cb-note.q2 .q1, .cb-note.q2 .q2, .cb-note.q3 .cb-n-qs li { opacity: 1; transform: none; }
.cb-note figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 12.5px; color: #8a8a94; }
.cb-n-final { color: #fff; font-weight: 600; opacity: 0; transition: opacity .6s; }
.cb-note.done .cb-n-final { opacity: 1; }

/* ---------- a solução: centro de comando ---------- */
.cb-solution { background: var(--soft); }
.cb-solution .heading h2 { font-size: 46px; }
.cb-solution .heading strong { color: #000; font-weight: 600; }
.cb-sol-punch { margin-top: 10px; padding: 22px 26px; border-left: 4px solid var(--bgcolor); background: #fff; border-radius: 0 20px 20px 0; font-weight: 600; color: #000; }
.cb-sol-punch span { color: var(--main-color); }

/* ---------- retomar negociações ---------- */
.cb-ret-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.cb-ret-points { display: grid; gap: 14px; }
.cb-ret-points li { background: var(--soft); border-radius: 22px; padding: 20px 24px; border-left: 4px solid var(--stop); }
.cb-ret-points li:nth-child(2) { border-left-color: var(--main-color); }
.cb-ret-points li:nth-child(3) { border-left-color: var(--bgcolor); }
.cb-ret-points b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.cb-ret-points p { font-size: 15px; line-height: 25px; }
.cb-ret-points strong { color: #000; }
.cb-ret-close { text-align: center; margin-top: 50px; font-size: 19px; color: #333; }
.cb-ret-close strong { color: #000; }

/* ---------- recursos ---------- */
.cb-features { background: var(--soft); }
.cb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cb-card { background: #fff; border-radius: 26px; padding: 30px 28px; transition: transform .4s var(--ease-back), box-shadow .4s; }
.cb-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -35px rgba(0,0,0,.4); }
.cb-card i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); font-size: 24px; margin-bottom: 20px; transition: background .3s; }
.cb-card:hover i { background: var(--bgcolor); }
.cb-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; padding-bottom: 8px; }
.cb-card p { font-size: 15px; line-height: 25px; }
.cb-card.is-key { background: #000; }
.cb-card.is-key i { background: var(--bgcolor); }
.cb-card.is-key h3 { color: #fff; }
.cb-card.is-key p { color: #b9b9c3; }
.cb-who { margin-top: 70px; }
.cb-who-title { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 26px; }
.cb-who ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cb-who li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 22px; }
.cb-who i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #000; color: var(--bgcolor); font-size: 22px; }
.cb-who span { font-size: 14.5px; line-height: 23px; color: #555; }
.cb-who b { display: block; color: #000; font-size: 16px; margin-bottom: 2px; }

/* ---------- responsivo ---------- */
@media (max-width: 1400px) {
  .cb-hero .hero-text h1 { font-size: 54px; }
}
@media (max-width: 1199px) {
  .cb-hero .hero-text h1 { font-size: 46px; }
  .cb-pain .heading h2, .cb-solution .heading h2 { font-size: 40px; }
  .cb-quote { font-size: 32px; }
  .cb-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-ret-grid { grid-template-columns: 1fr; }
  .cb-solution .row > * + * { margin-top: 40px; }
  .cb-solution .col-lg-5, .cb-solution .col-lg-7 { width: 100%; }
}
@media (max-width: 991px) {
  .cb-hero .hero-visual { justify-content: center; }
  .cb-flow { margin: 0 auto; }
  .cb-summary-grid { grid-template-columns: 1fr; gap: 16px; }
  .cb-tags { margin-left: 0; }
  .cb-pain .row > * + * { margin-top: 50px; }
  .cb-note { margin: 0 auto; }
  .cb-who ul { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cb-hero .hero-text h1 { font-size: 38px; }
  .cb-proof { flex-direction: column; gap: 8px; }
  .cb-summary { padding: 70px 0 50px; }
  .cb-summary-grid p { font-size: 17px; }
  .cb-pain .heading h2, .cb-solution .heading h2 { font-size: 30px; }
  .cb-note, .cb-sym { padding: 20px 14px; border-radius: 24px; }
  .cb-sym-head { font-size: 11px; }
  .cb-sym ul li { font-size: 10.5px; gap: 5px; padding: 5px 8px; }
  .cb-sym ul .ico { font-size: 12px; }
  .cb-core b { font-size: 13px; }
  .cb-sym-cap { font-size: 14px; line-height: 22px; min-height: 92px; }
  .cb-rd-body { grid-template-columns: 1fr; gap: 20px; }
  .cb-rd { width: 100%; max-width: 280px; margin: 0 auto; }
  .cb-radar .cb-rd-legend li { font-size: 13px; }
  .cb-paper { padding-left: 34px; }
  .cb-paper::before { left: 22px; }
  .cb-paper p { font-size: 11.5px; }
  .cb-paper em { font-size: 10.5px; padding: 0 5px; }
  .cb-n-qs li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cb-note figcaption { flex-direction: column; gap: 4px; }
  .cb-quote { font-size: 24px; margin-top: 60px; padding-top: 36px; }
  .cb-grid { grid-template-columns: 1fr; }
  .cb-who-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .cb-note * { transition-delay: 0s !important; }
  .cb-fl-s path, .cb-fl-o path, .cb-hub-s path, .cb-hub-orbit, .cb-core::before, .cb-core::after, .cb-rd-sweep, .cb-rd-dots i, .cb-dot { animation: none !important; }
}
