/* ==========================================================================
   ORAC — componentes exclusivos da página /tki-orac/
   Depende de finance.css (tokens, botões, cards, seções, header, footer).
   ========================================================================== */

:root {
  --orac-purple:      #7c3aed;
  --orac-purple-soft: #f3eeff;
  --orac-purple-line: #e3d6ff;
  --orac-amber:       #f59e0b;
  --orac-amber-soft:  #fff4e0;
  --orac-green-soft:  #e7f8ee;
  --orac-blue-2:      #d8e2fb;
  --orac-red-soft:    #fdecec;
}

/* ---------- HERO ---------- */
.hero--orac { padding-bottom: 96px; }
@media (max-width: 720px) { .hero--orac { padding-bottom: 64px; } }
.orac-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.orac-brand img { height: 68px; width: auto; }
@media (max-width: 600px) { .orac-brand img { height: 52px; } }
.hero--orac .display { max-width: 16ch; }

.orac-seals { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 0; padding: 0; }
.orac-seals li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(11, 18, 32, .05);
}
.orac-seals svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.orac-seals li.is-ia svg { color: var(--orac-purple); }
@media (max-width: 560px) { .orac-seals li { width: 100%; max-width: 340px; justify-content: center; } }

/* ---------- MOCKUP DO SISTEMA (funil + conversa) ---------- */
.orac-app-wrap { position: relative; max-width: 1100px; margin: 62px auto 0; text-align: left; }
.orac-app {
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 46px 100px -34px rgba(0, 64, 240, .3), 0 14px 34px -14px rgba(11, 18, 32, .14);
}
.orac-app .pf-bar .u::before { content: "🔒 "; }
.orac-app__body { display: grid; grid-template-columns: 58px 1fr 296px; min-height: 428px; }

.orac-side { background: #0d1526; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.orac-side__logo { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 10px; }
.orac-side span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #6b7a95; }
.orac-side span.is-on { background: rgba(99, 102, 241, .28); color: #fff; }
.orac-side svg { width: 17px; height: 17px; }
.orac-side__me { margin-top: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* funil kanban */
.kb { padding: 16px; background: var(--bg-2); border-right: 1px solid var(--line); overflow: hidden; min-width: 0; }
.kb__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kb__title { font-size: 13px; font-weight: 700; color: var(--ink); }
.kb__title small { font-weight: 500; color: var(--ink-3); margin-left: 6px; font-size: 11.5px; }
.kb__health { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #15803d; background: var(--orac-green-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.kb__health::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.kb__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kb__col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 318px; min-width: 0; }
.kb__col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.kb__col-head b { font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb__col-head small { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--ink-3); flex-shrink: 0; }
.kb__mrr { font-size: 10px; color: var(--accent); font-weight: 600; margin: 3px 0 9px; font-family: "JetBrains Mono", monospace; }
.kb-card {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .04);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s ease, border-color .3s ease, box-shadow .3s ease;
}
.kb-card b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-card small { display: block; font-size: 10px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.kb-temp { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kb-temp--frio { background: #60a5fa; }
.kb-temp--morno { background: var(--orac-amber); }
.kb-temp--quente { background: #ef4444; }
.kb-tag { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); letter-spacing: .03em; white-space: nowrap; }
.kb-owner { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.kb-owner--2 { background: #7c3aed; }
.kb-owner--3 { background: #0f766e; }
.kb-card.is-entering { animation: kbIn .5s cubic-bezier(.2,.7,.3,1); }
.kb-card.is-leaving { opacity: 0; transform: translateX(26px); }
.kb-card.is-new { border-color: rgba(0, 64, 240, .5); box-shadow: 0 0 0 3px rgba(0, 64, 240, .12); }
@keyframes kbIn { from { opacity: 0; transform: translateX(-26px); } }

/* conversa dentro do sistema */
.oc { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.oc__head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.oc__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.oc__head b { font-size: 12.5px; display: block; color: var(--ink); }
.oc__head small { font-size: 10.5px; color: var(--ink-3); display: block; }
.oc__status { margin-left: auto; font-size: 9.5px; font-weight: 700; color: #15803d; background: var(--orac-green-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.oc__body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 7px; background: #f4f6fb; }
.oc__msg { max-width: 88%; padding: 8px 10px; border-radius: 11px; font-size: 11.5px; line-height: 1.45; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.oc__msg--out { align-self: flex-end; background: #e2ecff; border-color: #cbdbff; }
.oc__msg--bot { border-left: 3px solid var(--orac-purple); }
.oc__msg .who { display: block; font-size: 9.5px; font-weight: 700; margin-bottom: 2px; color: var(--orac-purple); }
.oc__msg .who--v { color: var(--accent); }
.oc__msg time { display: block; font-size: 9px; color: var(--ink-4); margin-top: 3px; text-align: right; }
.oc__msg--audio { display: flex; align-items: center; gap: 8px; }
.oc__msg--audio i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.oc__msg--audio i svg { width: 10px; height: 10px; }
.oc__msg--audio .wave { flex: 1; height: 14px; background: repeating-linear-gradient(90deg, var(--ink-4) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.35) 60%); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.35) 60%); border-radius: 3px; }
.oc__transc { font-size: 10px; color: var(--ink-3); font-style: italic; margin-top: 4px; display: block; }
.oc__sys { align-self: center; font-size: 9.5px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; text-align: center; }
.oc__ai { margin: 0 12px 12px; padding: 9px 11px; border-radius: 10px; background: var(--orac-purple-soft); border: 1px solid var(--orac-purple-line); font-size: 10.5px; line-height: 1.45; color: #5b21b6; display: flex; gap: 8px; align-items: flex-start; }
.oc__ai svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.oc__ai b { color: #4c1d95; }

/* chips flutuantes */
.orac-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 11px 15px; text-align: left;
  box-shadow: 0 18px 44px -12px rgba(11, 18, 32, .22);
  animation: chipFloat 6s ease-in-out infinite;
}
.orac-chip .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.orac-chip .ic svg { width: 17px; height: 17px; }
.orac-chip .ic.green { background: var(--orac-green-soft); color: var(--green); }
.orac-chip .ic.purple { background: var(--orac-purple-soft); color: var(--orac-purple); }
.orac-chip .ic.amber { background: var(--orac-amber-soft); color: #b45309; }
.orac-chip b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.orac-chip small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.orac-chip--1 { top: -24px; left: 36px; }
.orac-chip--2 { bottom: -26px; left: 36px; animation-delay: -3.1s; }
.orac-chip--3 { bottom: -26px; right: 36px; animation-delay: -1.6s; }
@media (max-width: 900px) {
  .orac-chip { display: none; }
  .orac-app__body { grid-template-columns: 1fr; }
  .orac-side { display: none; }
  .kb { border-right: 0; border-bottom: 1px solid var(--line); }
  .oc__body { min-height: 260px; }
}
@media (max-width: 600px) {
  .kb__cols { grid-template-columns: 1fr 1fr; }
  .kb__col:nth-child(3) { display: none; }
  .kb__col { min-height: 250px; }
}

/* ---------- PROVA: RODA NA TKI ---------- */
.proof-band {
  display: grid; grid-template-columns: 148px 1fr; gap: 34px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 34px 40px;
  border: 1px solid var(--orac-blue-2); border-radius: 22px;
  background: linear-gradient(120deg, var(--accent-soft), #fff 70%);
}
.proof-band__logo { width: 148px; height: auto; }
.proof-band picture { display: block; }
.proof-band__eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 10px; }
.proof-band h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 10px; }
.proof-band p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.proof-band p b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .proof-band { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; gap: 20px; }
  .proof-band__logo { margin: 0 auto; width: 120px; }
}

/* ---------- ANTES × DEPOIS: rótulos ---------- */
.compare .col h3 { display: flex; align-items: center; gap: 9px; }
.compare .col h3 .lbl { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--bg-3); color: var(--ink-3); }
.compare .col.win h3 .lbl { background: var(--accent); color: #fff; }

/* ---------- MÓDULOS (abas) ---------- */
.mod-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 36px; padding: 0; list-style: none; }
.mod-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mod-tab svg { width: 16px; height: 16px; }
.mod-tab:hover { border-color: rgba(0, 64, 240, .4); color: var(--ink); transform: translateY(-1px); }
.mod-tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 10px 24px -10px rgba(0, 64, 240, .55); }
.mod-tab .n { font-family: "JetBrains Mono", monospace; font-size: 10.5px; opacity: .7; }
.mod-panel__title { text-align: center; font-size: 20px; font-weight: 600; margin: 0 0 22px; letter-spacing: -0.01em; }
.js .mod-panel__title { display: none; }
.js .mod-panel:not(.is-active) { display: none; }
.mod-panel + .mod-panel { margin-top: 56px; }
.js .mod-panel + .mod-panel { margin-top: 0; }
.mod-panel.is-active { animation: panelIn .4s cubic-bezier(.2,.7,.3,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mod-grid { grid-template-columns: 1fr; } }
.card--mod { padding: 22px 22px 24px; }
.card--mod .ico { width: 36px; height: 36px; margin-bottom: 14px; }
.card--mod h3 { font-size: 15.5px; margin-bottom: 6px; }
.card--mod p { font-size: 13.5px; line-height: 1.58; }
.card--mod .flag--ia { color: var(--orac-purple); background: var(--orac-purple-soft); border-color: var(--orac-purple-line); }
.card--mod.is-ia .ico { background: var(--orac-purple-soft); color: var(--orac-purple); }
.card--mod.is-ia:hover .ico { box-shadow: 0 8px 18px rgba(124, 58, 237, .25); }
.mod-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--ink-3); }
.mod-note b { color: var(--ink-2); font-weight: 600; }

/* ---------- WHATSAPP: telefone com conversa ---------- */
.wa-stage { display: flex; justify-content: center; }
.wa-phone { width: 340px; max-width: 100%; border-radius: 40px; background: #0d1526; padding: 11px; box-shadow: 0 46px 90px -34px rgba(11, 18, 32, .5), inset 0 0 0 1.5px #1e2b47; }
.wa-screen { background: #efeae2; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; height: 600px; position: relative; }
.wa-screen::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(11, 18, 32, .08) 1px, transparent 0); background-size: 18px 18px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 26px 14px 12px; background: #075e54; color: #fff; position: relative; }
.wa-head .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0040f0, #7c3aed); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wa-head b { font-size: 14px; display: block; letter-spacing: -0.01em; }
.wa-head small { font-size: 11px; opacity: .82; display: block; margin-top: 1px; }
.wa-head .dots { margin-left: auto; display: flex; gap: 3px; opacity: .85; }
.wa-head .dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.wa-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; position: relative; }
.wa-msg {
  max-width: 84%; padding: 8px 11px 6px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: #111b21;
  background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); position: relative;
  animation: waIn .38s cubic-bezier(.2,.7,.3,1);
}
.wa-msg--out { align-self: flex-end; background: #d9fdd3; }
.wa-msg .who { display: block; font-size: 10px; font-weight: 700; margin-bottom: 2px; color: var(--orac-purple); }
.wa-msg .who--v { color: var(--accent); }
.wa-msg time { display: block; font-size: 9.5px; color: #667781; text-align: right; margin-top: 3px; }
.wa-sys { align-self: center; max-width: 92%; font-size: 10.5px; color: #54656f; background: #fff8e1; border: 1px solid #f0dca0; padding: 5px 11px; border-radius: 8px; text-align: center; animation: waIn .38s cubic-bezier(.2,.7,.3,1); line-height: 1.4; }
.wa-sys--ok { background: var(--orac-green-soft); border-color: #bfe8cf; color: #166534; }
.wa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; background: #fff; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: waIn .3s ease; }
.wa-typing--out { align-self: flex-end; background: #d9fdd3; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: waDot 1.1s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .18s; }
.wa-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes waDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.wa-foot { padding: 8px 10px 12px; display: flex; gap: 8px; align-items: center; background: #f0f2f5; position: relative; }
.wa-foot span { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 12px; color: #8696a0; }
.wa-foot i { width: 36px; height: 36px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.wa-foot i svg { width: 16px; height: 16px; }
.wa-badge {
  position: absolute; top: 14px; right: -14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(11, 18, 32, .25); animation: chipFloat 6s ease-in-out infinite;
}
.wa-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.wa-stage { position: relative; }
@media (max-width: 480px) { .wa-screen { height: 540px; } .wa-badge { right: 0; top: -12px; } }

/* ---------- BOROS (seção escura) ---------- */
.dark .card.card--ia .ico { background: rgba(124, 58, 237, .2); border: 1px solid rgba(167, 139, 250, .32); color: #c4b5fd; }
.dark .card.card--ia .sub { color: #c4b5fd; }
.dark .eyebrow--ia { color: #c4b5fd; }
.boros-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin-bottom: 18px; }
@media (max-width: 900px) { .boros-hero { grid-template-columns: 1fr; gap: 30px; } }
.boros-hero > * { min-width: 0; }
.boros-hero .sec-head { text-align: left; margin: 0; max-width: none; }
.boros-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 0; padding: 0; }
.boros-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: #b9c8e2; line-height: 1.5; }
.boros-list li b { color: #fff; font-weight: 600; }
.boros-list svg { width: 17px; height: 17px; color: #c4b5fd; flex-shrink: 0; margin-top: 2px; }
.boros-tip {
  background: #101a2e; border: 1px solid #263553; border-radius: 18px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(124, 58, 237, .45);
}
.boros-tip::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, #7c3aed, #4d8dff); }
.boros-tip__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.boros-tip__av { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #4d8dff); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.boros-tip__av svg { width: 17px; height: 17px; }
.boros-tip__head b { display: block; font-size: 13.5px; color: #fff; }
.boros-tip__head small { display: block; font-size: 11px; color: #8fa1be; margin-top: 1px; }
.boros-tip__time { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8fa1be; }
.boros-tip p { font-size: 13.5px; color: #dbe4f5; line-height: 1.55; margin: 0 0 12px; }
.boros-tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.boros-tip li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #b9c8e2; line-height: 1.45; padding: 9px 11px; border-radius: 9px; background: #0b1220; border: 1px solid #1c2942; }
.boros-tip li .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.boros-tip li .dot.amber { background: var(--orac-amber); }
.boros-tip li .dot.red { background: #ef4444; }
.boros-tip li .dot.green { background: #22c55e; }
.boros-tip li b { color: #fff; font-weight: 600; }
.boros-tip__foot { margin-top: 12px; font-size: 11px; color: #66738a; display: flex; align-items: center; gap: 6px; }
.boros-tip__foot svg { width: 13px; height: 13px; color: #c4b5fd; }

/* ---------- AUTOMAÇÕES: desenho do fluxo ---------- */
.flow-wrap { max-width: 1060px; margin: 0 auto; padding: 26px 26px 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 64, 240, .25); }
.flow-wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(11, 18, 32, .07) 1px, transparent 0); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
.flow-wrap > * { position: relative; }
.flow-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 -26px 30px; padding: 0 26px 18px; border-bottom: 1px solid var(--line); }
.flow-bar__name { display: flex; align-items: center; gap: 11px; }
.flow-bar__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--orac-amber-soft); color: #b45309; display: grid; place-items: center; flex-shrink: 0; }
.flow-bar__ico svg { width: 16px; height: 16px; }
.flow-bar__name b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.flow-bar__name small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.flow-bar__name small span { font-family: "JetBrains Mono", monospace; font-size: 11px; }
.flow-live { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; position: relative; flex-shrink: 0; }
.flow-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #16a34a; opacity: 0; animation: flowLive 2s ease-out infinite; }
@keyframes flowLive { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.flow-sim { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--orac-green-soft); border: 1px solid #bfe8cf; font-size: 11.5px; font-weight: 600; color: #166534; transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.flow-sim svg { width: 14px; height: 14px; }
.flow-sim__spin { display: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(0, 64, 240, .25); border-top-color: var(--accent); animation: flowSpin .8s linear infinite; }
@keyframes flowSpin { to { transform: rotate(360deg); } }
.flow-sim.is-running { background: var(--accent-soft); border-color: #cbdbff; color: var(--accent); }
.flow-sim.is-running .flow-sim__ok { display: none; }
.flow-sim.is-running .flow-sim__spin { display: block; }

.flow__stage { position: relative; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-svg .edge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.flow-svg .edge-lit { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.3,0,.2,1), opacity .35s ease; opacity: 1; }
.flow-svg .edge-lit.is-off { transition: opacity .35s ease; opacity: 0; }
.flow-svg .port { fill: #fff; stroke: var(--line-2); stroke-width: 2; transition: stroke .3s ease, fill .3s ease; }
.flow-svg .port.is-lit { stroke: var(--accent); fill: var(--accent-soft); }
.flow-svg .dot { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 6px rgba(0, 64, 240, .7)); }
.flow-svg .dot.is-on { opacity: 1; }
.flow-svg .dot-halo { fill: rgba(0, 64, 240, .18); opacity: 0; }
.flow-svg .dot-halo.is-on { opacity: 1; }

.flow__row { display: flex; align-items: stretch; justify-content: center; gap: 30px; }
.flow-node {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; max-width: 200px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px 14px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .04);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), background-color .3s ease;
}
.flow-node__n { position: absolute; top: 11px; right: 12px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--ink-4); letter-spacing: .04em; transition: color .3s ease; }
.flow-node__kind { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; }
.flow-node__kind svg { width: 11px; height: 11px; }
.flow-node--trigger .flow-node__kind { background: var(--orac-amber-soft); color: #b45309; }
.flow-node--action .flow-node__kind { background: var(--accent-soft); color: var(--accent); }
.flow-node--ai .flow-node__kind { background: var(--orac-purple-soft); color: var(--orac-purple); }
.flow-node--wait .flow-node__kind { background: var(--bg-3); color: var(--ink-3); }
.flow-node--cond .flow-node__kind { background: var(--orac-green-soft); color: #15803d; }
.flow-node b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.flow-node small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.flow-node__status {
  display: flex; align-items: center; gap: 5px; min-height: 18px; margin-top: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--ink-4);
  opacity: 0; transform: translateY(3px); transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
.flow-node__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.flow-node.is-active .flow-node__status, .flow-node.is-done .flow-node__status { opacity: 1; transform: none; }
.flow-node.is-active .flow-node__status { color: var(--accent); }
.flow-node.is-active .flow-node__status::after { content: attr(data-run); }
.flow-node.is-active .flow-node__status::before { animation: flowBlink .9s ease-in-out infinite; }
@keyframes flowBlink { 50% { opacity: .25; } }
.flow-node.is-done .flow-node__status { color: #15803d; }
.flow-node.is-done .flow-node__status::after { content: attr(data-done); }
.flow-node.is-done .flow-node__status::before { background: #16a34a; }
.flow-node.is-active { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(0, 64, 240, .12), 0 18px 36px -14px rgba(0, 64, 240, .45); }
.flow-node.is-active .flow-node__n { color: var(--accent); }
.flow-node.is-active::after { content: ""; position: absolute; inset: -1px; border-radius: 14px; border: 1.5px solid var(--accent); opacity: 0; animation: flowRing 1.4s ease-out infinite; pointer-events: none; }
@keyframes flowRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.08); opacity: 0; } }
.flow-node.is-done { border-color: #bfe8cf; background: linear-gradient(180deg, #fbfefc, #fff 60%); }
.flow-node.is-skipped { opacity: .45; }
.flow__branch { display: flex; justify-content: flex-end; gap: 22px; margin-top: 54px; }
.flow__branch .flow-node { max-width: 240px; }
.flow-node__branch { position: absolute; top: -11px; left: 14px; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.flow-node__branch.is-yes { background: var(--orac-green-soft); color: #15803d; border: 1px solid #bfe8cf; }
.flow-node__branch.is-no { background: var(--orac-red-soft); color: #dc2626; border: 1px solid #f7c8c8; }
@media (max-width: 900px) {
  .flow-wrap { padding: 22px 18px 24px; }
  .flow-bar { margin: 0 -18px 26px; padding: 0 18px 16px; }
  .flow__row { flex-direction: column; align-items: center; gap: 26px; }
  .flow-node { width: 100%; max-width: 340px; flex: none; }
  .flow__branch { flex-direction: column; align-items: center; gap: 26px; margin-top: 26px; }
  .flow__branch .flow-node { max-width: 340px; }
}
.flow-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1060px; margin: 22px auto 0; }
@media (max-width: 820px) { .flow-lists { grid-template-columns: 1fr; } }
.flow-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.flow-list h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.flow-list h3 .k { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.flow-list--trig h3 .k { background: var(--orac-amber-soft); color: #b45309; }
.flow-list--act h3 .k { background: var(--accent-soft); color: var(--accent); }
.flow-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.flow-list li { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.flow-list li.ia { color: var(--orac-purple); border-color: var(--orac-purple-line); background: var(--orac-purple-soft); }

/* ---------- NÍVEIS DE ACESSO ---------- */
.role { padding-top: 24px; }
.role__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.role__badge svg { width: 13px; height: 13px; }
.role--gestor .role__badge { background: var(--accent-soft); color: var(--accent); }
.role--vendedor .role__badge { background: var(--orac-green-soft); color: #15803d; }
.role--marketing .role__badge { background: var(--orac-purple-soft); color: var(--orac-purple); }
.role--financeiro .role__badge { background: var(--orac-amber-soft); color: #b45309; }
.role ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.role li { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.role li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230040f0' d='M6.5 10.5L4 8l-1 1 3.5 3.5L14 5l-1-1z'/%3E%3C/svg%3E") center / 11px no-repeat; }
.role li.no { color: var(--ink-3); }
.role li.no::before { background: var(--orac-red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23dc2626' stroke-width='2' stroke-linecap='round' d='M4.5 4.5l7 7M11.5 4.5l-7 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.role-note { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.role-note svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.role-note b { color: var(--ink); font-weight: 600; }

/* ---------- IMPLANTAÇÃO ---------- */
.impl-big { text-align: center; margin: 36px 0 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; }
.impl-big .grad { font-weight: 800; }

/* ---------- RODAPÉ: assinatura do produto ---------- */
.foot-product { display: flex; align-items: center; gap: 14px; padding: 24px 0 0; border-top: 1px solid #1a2540; margin-top: 4px; }
.foot-product img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px #1e2b47; }
.foot-product span { font-size: 13px; color: #8fa1be; }
.foot-product span b { color: #fff; font-weight: 600; }

/* ---------- MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  .kb-card, .wa-msg, .wa-sys, .wa-typing, .orac-chip, .wa-badge, .mod-panel.is-active { animation: none !important; }
}
