/* Mapa da operação: fontes → base Nekt → onde o trabalho acontece, com prévia animada de cada saída. */
.flowmap { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 clamp(40px, 6vw, 78px); padding: 26px 26px 64px; border: 1px solid var(--rule); border-radius: 20px; background: radial-gradient(circle at 1px 1px, rgba(26,26,25,.07) 1px, transparent 0) 0 0 / 18px 18px, #fcfcfb; overflow: hidden; }
.fm-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fm-col { position: relative; z-index: 1; display: flex; flex-direction: column; }
.fm-head { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); margin-bottom: 14px; }
.fm-head b { color: var(--brand); margin-right: 4px; }
.fm-srcs { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; }
.fm-src { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 11px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; box-shadow: 0 1px 0 rgba(0,0,0,.03); transition: border-color .3s, box-shadow .3s; }
.fm-src .ic { color: var(--ink-3); flex: none; }
.fm-src.is-ping { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-pale); }
.fm-src.is-target { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); }
.fm-col-core { justify-content: flex-start; }
.fm-core { position: relative; display: flex; flex-direction: column; gap: 8px; margin: auto 0; padding: 30px 14px 14px; border-radius: 18px; background: var(--brand-deep); color: #fff; box-shadow: 0 24px 50px -28px rgba(9,85,68,.7); }
.fm-core::before { content: ""; position: absolute; inset: -7px; border-radius: 24px; border: 1.5px solid var(--brand-mint); opacity: 0; animation: fmPulse 3.2s ease-out infinite; }
.fm-core-tag { position: absolute; top: 10px; left: 14px; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #e1f96c; }
.fm-core-tag i { width: 7px; height: 7px; border-radius: 50%; background: #e1f96c; box-shadow: 0 0 0 0 rgba(225,249,108,.6); animation: fmBlink 1.8s ease-in-out infinite; }
.fm-layer { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.fm-layer .ic { color: #e1f96c; flex: none; }
.fm-layer b { display: block; font-size: 13px; font-weight: 600; }
.fm-layer span { display: block; font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 1px; }
.fm-outs { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-between; }
.fm-out { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 11px; align-items: center; width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s, opacity .25s; }
.fm-out:hover { border-color: var(--c); }
.fm-out:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.fm-out-ic { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--p); color: var(--c); }
.fm-out-t { color: var(--ink); font-family: var(--font-brand); font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.fm-out-w { color: var(--ink-3); font-size: 11.5px; line-height: 1.35; }
.fm-out-no { font-family: var(--font-mono); color: var(--c); font-size: 10px; margin-right: 6px; }
.fm-out-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); }
.flowmap.has-active .fm-out:not(.is-active) { opacity: .62; }
.fm-out.is-active { opacity: 1; border-color: var(--c); box-shadow: 0 14px 30px -22px var(--c), 0 0 0 3px var(--p); transform: translateX(4px); }
.fm-out.is-active .fm-out-bar { animation: fmProgress var(--dur, 6s) linear forwards; }
.flowmap.is-paused .fm-out.is-active .fm-out-bar, .flowmap.is-manual .fm-out.is-active .fm-out-bar { animation-play-state: paused; }
.flowmap.is-manual .fm-out.is-active .fm-out-bar { width: 100%; animation: none; }
.fm-loop-label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px dashed var(--rule-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-4); white-space: nowrap; transition: color .3s, border-color .3s, background .3s; }
.fm-loop-label.is-on { color: #c37519; border-color: #c37519; background: #fbf2df; }
.fm-wire { fill: none; stroke: var(--rule); stroke-width: 1.5; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.fm-wire.is-on { stroke: var(--c); stroke-width: 2.2; stroke-dasharray: 7 6; animation: fmDash .9s linear infinite; }
.fm-wire.is-dim { opacity: .55; }
.fm-wire-loop { stroke-dasharray: 3 6; }
.fm-dot { transition: opacity .3s; }

.fm-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 48px); align-items: center; margin-top: 14px; padding: 28px; border: 1px solid var(--rule); border-radius: 20px; background: linear-gradient(135deg, var(--p, #f6f6f4) 0%, #fff 62%); transition: background .4s; }
.fm-info-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.fm-info-top b { color: var(--c); }
.fm-info-top span { color: var(--ink-4); }
.fm-info h3 { margin-top: 12px; color: var(--ink); font-family: var(--font-brand); font-size: clamp(24px, 2.8vw, 30px); font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.fm-info > p { margin-top: 10px; color: var(--ink-3); font-size: 14px; line-height: 1.6; max-width: 52ch; }
.fm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.fm-facts div { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 18%, var(--rule)); }
.fm-facts b { display: block; margin-bottom: 4px; color: var(--c); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.fm-facts span { color: var(--ink-2); font-size: 12.5px; line-height: 1.42; }
.fm-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; }
.fm-links a { color: var(--ink-3); }
.fm-links a:first-child { color: #fff; background: var(--c); padding: 8px 13px; border-radius: 999px; font-weight: 600; }
.fm-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fm-info > * { animation: fmUp .5s cubic-bezier(.2,.7,.2,1) both; }
.fm-info > :nth-child(2) { animation-delay: .05s; } .fm-info > :nth-child(3) { animation-delay: .1s; } .fm-info > :nth-child(4) { animation-delay: .15s; } .fm-info > :nth-child(5) { animation-delay: .2s; }

/* Prévias */
.mk { position: relative; min-height: 262px; border-radius: 16px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); overflow: hidden; font-size: 12.5px; color: var(--ink-2); animation: fmUp .55s cubic-bezier(.2,.7,.2,1) both; }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: #fafaf9; font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); letter-spacing: .04em; }
.mk-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.mk-bar span { margin-left: 6px; }
.mk-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-in { opacity: 0; animation: fmUp .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.mk-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; }
.mk-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.mk-ai { align-self: flex-start; background: #f3f3f1; border-bottom-left-radius: 4px; }
.mk-tool { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--c); color: var(--c); font-family: var(--font-mono); font-size: 10.5px; }
.mk-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--p); border-top-color: var(--c); animation: fmSpin .8s linear infinite; }
.mk-hbars { display: grid; gap: 5px; margin-top: 8px; }
.mk-hbars div { display: grid; grid-template-columns: 62px 1fr 34px; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-3); }
.mk-hbars em { height: 7px; border-radius: 4px; background: var(--c); transform-origin: left; transform: scaleX(0); animation: fmGrow .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); font-style: normal; }
.mk-hbars b { font-weight: 600; color: var(--ink-2); text-align: right; }
.mk-src { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); margin-top: 8px; }
.mk-notif { border: 1px solid var(--rule); border-left: 3px solid var(--c); border-radius: 10px; padding: 11px 13px; background: #fff; box-shadow: 0 12px 26px -22px rgba(0,0,0,.6); }
.mk-notif-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mk-av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-deep); color: #e1f96c; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.mk-notif-h b { color: var(--ink); font-size: 12.5px; }
.mk-notif-h span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.mk-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #f0efed; font-size: 12px; }
.mk-row b { font-weight: 600; color: var(--ink); }
.mk-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--p); color: var(--c); font-size: 10.5px; font-weight: 600; }
.mk-btns { display: flex; gap: 8px; margin-top: 8px; }
.mk-btn { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--rule); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.mk-btn.is-main { background: var(--c); border-color: var(--c); color: #fff; }
.mk-ring { position: absolute; top: 14px; right: 16px; color: var(--c); animation: fmRing 1.6s ease-in-out .3s 2; transform-origin: 50% 10%; }
.mk-doc h4 { color: var(--ink); font-family: var(--font-brand); font-size: 16px; letter-spacing: -.02em; }
.mk-doc small { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.mk-vbars { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding: 8px 4px 0; border-bottom: 1px solid var(--rule); }
.mk-vbars em { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: color-mix(in srgb, var(--c) 32%, #fff); transform-origin: bottom; transform: scaleY(0); animation: fmGrowY .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.mk-vbars em:last-child { background: var(--c); }
.mk-line { height: 7px; border-radius: 4px; background: #efeeec; }
.mk-type { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--c); width: 0; animation: fmType 2.2s steps(46) forwards, fmCaret .7s step-end infinite; animation-delay: var(--d, 0s), 0s; max-width: max-content; }
.mk-app { display: grid; grid-template-columns: 54px 1fr; min-height: 220px; }
.mk-side { background: #f6f6f4; border-right: 1px solid var(--rule); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.mk-side i { height: 8px; border-radius: 4px; background: var(--rule); }
.mk-side i:first-child { background: var(--c); }
.mk-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-tile { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--rule); }
.mk-tile small { display: block; font-size: 10px; color: var(--ink-4); }
.mk-tile b { display: block; margin-top: 2px; color: var(--ink); font-family: var(--font-brand); font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-spark { width: 100%; height: 70px; }
.mk-spark path { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: fmDraw 1.6s ease-out .3s forwards; }
.mk-spark .area { fill: var(--p); stroke: none; opacity: 0; animation: fmFade .8s ease-out 1.2s forwards; }
.mk-filters { display: flex; gap: 6px; }
.mk-crm-h { display: flex; align-items: center; gap: 10px; }
.mk-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #f0efed; font-family: var(--font-brand); font-weight: 700; color: var(--ink-2); }
.mk-crm-h b { display: block; color: var(--ink); font-size: 14px; }
.mk-crm-h span { font-size: 11px; color: var(--ink-4); }
.mk-field { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.mk-field > span { color: var(--ink-4); font-size: 11px; }
.mk-field.is-new { background: var(--p); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); opacity: 0; animation: fmFlash 1.2s ease-out forwards; animation-delay: var(--d, 0s); }
.mk-field.is-new b { color: var(--c); }
.mk-score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-brand); font-size: 18px; font-weight: 700; color: var(--c); }
.mk-sync { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--c); }
.mk-sync svg { animation: fmSpin 1.6s linear infinite; }

@keyframes fmPulse { 0% { opacity: .9; transform: scale(.97); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes fmBlink { 50% { box-shadow: 0 0 0 5px rgba(225,249,108,0); opacity: .5; } }
@keyframes fmProgress { to { width: 100%; } }
@keyframes fmDash { to { stroke-dashoffset: -13; } }
@keyframes fmUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fmSpin { to { transform: rotate(360deg); } }
@keyframes fmGrow { to { transform: scaleX(1); } }
@keyframes fmGrowY { to { transform: scaleY(1); } }
@keyframes fmType { to { width: 100%; } }
@keyframes fmCaret { 50% { border-color: transparent; } }
@keyframes fmDraw { to { stroke-dashoffset: 0; } }
@keyframes fmFade { to { opacity: .55; } }
@keyframes fmRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes fmFlash { 0% { opacity: 0; transform: translateX(-6px); } 30% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px var(--c), 0 0 0 4px var(--p); } 100% { opacity: 1; } }

@media (max-width: 860px) {
  .flowmap { grid-template-columns: 1fr; gap: 26px; padding: 20px 16px 22px; }
  .fm-wires, .fm-loop-label { display: none; }
  .fm-srcs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .fm-src { padding: 6px 10px; font-size: 12px; }
  .fm-col + .fm-col::before { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 18px; background: repeating-linear-gradient(to bottom, var(--brand) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation: fmFall .6s linear infinite; }
  .fm-out.is-active { transform: none; }
  .fm-stage { grid-template-columns: 1fr; padding: 20px 16px; }
}
@media (max-width: 520px) { .fm-facts { grid-template-columns: 1fr; } .mk-tiles { grid-template-columns: 1fr 1fr; } .mk-tile:last-child { display: none; } .mk-field { grid-template-columns: 92px 1fr; } }
@keyframes fmFall { to { background-position: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  .flowmap *, .fm-stage *, .flowmap *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .mk-type { width: auto; border-right: 0; }
}
.mk-tool .mk-spin { animation: fmSpin .8s linear 2, fmDone .01s linear 1.8s forwards; }
@keyframes fmDone { to { border-color: var(--c); background: var(--c); } }

/* Página /casos: chips de objetivo, faixa de indústrias, intro do mapa e cartões. */
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: border-color .15s, transform .15s; }
.cx-chip .ic { color: var(--brand); }
.cx-chip em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.cx-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.cx-kicker { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
.cx-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 999px; background: var(--brand); }
.ind-strip { margin-top: 30px; }
.ind-strip-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: center; padding: 24px 26px; border: 1px solid var(--brand-mint); border-radius: 20px; background: linear-gradient(120deg, var(--brand-pale), #fff); }
.ind-strip h2 { font-family: var(--font-brand); font-size: 24px; letter-spacing: -.02em; margin: 8px 0 6px; color: var(--ink); }
.ind-strip p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.ind-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ind-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); color: var(--ink); font-size: 14px; font-weight: 500; }
.ind-chip svg { color: var(--brand); }
.ind-chip:hover { border-color: var(--brand); }
.ind-all { background: var(--ink); color: #fff; border-color: var(--ink); }
.cx-map { margin-top: 56px; }
.cx-map-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .72fr); gap: 48px; align-items: end; margin-bottom: 22px; }
.cx-map-intro h2 { margin-top: 13px; max-width: 18ch; font-family: var(--font-brand); font-size: clamp(28px, 3.5vw, 40px); line-height: 1.06; letter-spacing: -.04em; color: var(--ink); }
.cx-map-intro p { color: var(--ink-3); font-size: 14.5px; line-height: 1.6; max-width: 46ch; }
.cx-pick-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin: 2px 0 6px; }
.cx-picks .v3-pick .v3-ai { margin-bottom: 12px; }
.cx-obj { scroll-margin-top: 80px; }
.cx-obj:last-of-type { padding-bottom: 60px; }
.cx-n { font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-4); margin-left: 6px; vertical-align: middle; }
.cx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.cx-meta .ic { color: var(--brand); }
.cx-meta > i { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-2); }
.cx-meta .v3-sig { margin-right: 1px; }
.cx-card .v3-rs { margin-top: 2px; }
@media (max-width: 760px) { .ind-strip-in, .cx-map-intro { grid-template-columns: 1fr; gap: 14px; } }
.cx-hot { display: inline-flex !important; align-items: center; gap: 4px; margin: 0 0 0 auto !important; padding: 2px 8px; border-radius: 999px; background: var(--brand-pale); color: var(--brand) !important; font: 500 10.5px var(--font-mono) !important; letter-spacing: .02em; text-transform: none; white-space: nowrap; flex: none; }
.cx-hot .ic { color: var(--brand) !important; }
.cx-pick-k { display: flex; align-items: center; gap: 8px; }
.cx-meta { width: 100%; }
