/* Vascular · conceito PAINEL: dashboard técnico, módulos com borda fina, alternando ink e creme. */

/* ---------- Topbar e marca (a home define isso em sections.css, que esta página não carrega) ---------- */
.brand { font-weight: 700; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.pg-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--panel-line);
  padding: 22px 0 14px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.pg-topbar .brand { color: var(--paper); display: inline-flex; align-items: center; min-height: 44px; }
.pg-topbar__mid { font-family: var(--f-mono); font-size: 11px; color: var(--muted-dark); }
.pg-topbar__cta { color: var(--accent-dark); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.pg-topbar__cta:hover { color: var(--paper); }
@media (max-width: 760px) { .pg-topbar__mid { display: none; } }

/* ---------- Utilitários do painel ---------- */
.vasc-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-dark); margin-right: 10px; flex: none;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, .18);
}
.js-motion .vasc-dot { animation: vasc-pulse 1.8s ease-in-out infinite; }
@keyframes vasc-pulse { 50% { opacity: .35; } }

/* ---------- HERO (tela do painel) ---------- */
.vasc-hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(243, 238, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 230, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: var(--paper);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.vasc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 104px);
}
.vasc-status {
  display: block;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 26px;
}
.vasc-h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 5.4vw, 86px);
  line-height: .96; letter-spacing: -.025em;
  text-wrap: balance;
}
.vasc-h1 em { font-style: italic; color: var(--accent-dark); }
.vasc-hero__sub {
  margin-top: 26px; max-width: 54ch;
  font-size: clamp(17px, 1vw + 11px, 20px); line-height: 1.5; color: #D9D1C5;
}
.vasc-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 36px; }
.vasc-hero__fine { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }

/* Tela */
.vasc-screen {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vasc-screen__bar,
.vasc-journey__head,
.vasc-log__bar,
.vasc-check__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 18px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--muted-dark);
}
.vasc-live { display: inline-flex; align-items: center; color: var(--paper); }
.vasc-status .vasc-dot { vertical-align: 1px; }

.vasc-funnel { padding: 22px 18px 6px; display: grid; gap: 18px; }
.vasc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.vasc-bar__label { font-weight: 600; font-size: 15px; color: var(--paper); }
.vasc-bar__note { font-family: var(--f-mono); font-size: 11px; color: var(--muted-dark); text-align: right; }
.vasc-bar__track {
  grid-column: 1 / -1; grid-row: 2;
  height: 26px; border: 1px solid var(--panel-line); border-radius: 4px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(243, 238, 230, .06) calc(10% - 1px) 10%);
  padding: 3px;
}
.vasc-bar__track i {
  display: block; height: 100%; width: var(--w); border-radius: 2px;
  background: var(--paper);
  transform-origin: left center;
}
.vasc-bar--hot .vasc-bar__track i { background: var(--accent-dark); }
.vasc-bar--hot .vasc-bar__label { color: var(--accent-dark); }
.vasc-screen__note { padding: 12px 18px 18px; font-size: 12px; color: var(--muted-dark); }

.vasc-kpis { border-top: 1px solid var(--panel-line); }
.vasc-kpis__head { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); padding: 12px 18px 0; }
.vasc-kpis__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vasc-kpis__grid div { padding: 10px 18px 18px; border-right: 1px solid var(--panel-line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.vasc-kpis__grid div:last-child { border-right: 0; }
.vasc-kpis__grid dt { font-size: 12px; line-height: 1.3; color: var(--muted-dark); }
.vasc-kpis__grid dd { font-family: var(--f-display); font-size: clamp(30px, 2.6vw, 42px); line-height: 1; color: var(--paper); letter-spacing: -.01em; }

/* Faixa de canais */
.vasc-channels {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--panel-line);
  padding-top: 18px;
  display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap;
}
.vasc-channels__head { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.vasc-channels__list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.vasc-channels__list li {
  font-family: var(--f-mono); font-size: 12px; color: #D9D1C5;
  border: 1px solid var(--panel-line); border-radius: 999px; padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.vasc-channels__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dark); }

@media (max-width: 960px) {
  .vasc-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .vasc-kpis__grid { grid-template-columns: 1fr; }
  .vasc-kpis__grid div { border-right: 0; border-bottom: 1px solid var(--panel-line); flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 12px 18px; }
  .vasc-kpis__grid div:last-child { border-bottom: 0; }
  .vasc-bar__note { grid-column: 1 / -1; grid-row: 3; text-align: left; }
}

/* ---------- DORES (log de ocorrências, creme) ---------- */
.vasc-log { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.vasc-log__bar { color: var(--muted); border-bottom-color: var(--ink); background: var(--paper-2); }
.vasc-log__row {
  display: grid;
  grid-template-columns: 88px 150px minmax(0, 1fr);
  gap: 16px 28px; align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid rgba(20, 18, 16, .18);
}
.vasc-log__row:last-child { border-bottom: 0; }
.vasc-log__code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-text); font-weight: 700; }
.vasc-log__tag {
  justify-self: start;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 999px; padding: 3px 10px; color: var(--ink);
}
.vasc-log__body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
.vasc-log__body p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 760px) {
  .vasc-log__row { grid-template-columns: auto minmax(0, 1fr); }
  .vasc-log__body { grid-column: 1 / -1; }
}

/* ---------- MÉTODO (escuro) ---------- */
.vasc-method { background: var(--ink); color: var(--paper); }
.vasc-method .lead { color: #D9D1C5; }
.vasc-method .h2 em { color: var(--accent-dark); }
.vasc-method__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.vasc-method__top .section__head { margin-bottom: 0; }

.vasc-journey { border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.vasc-journey__chart {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  height: 250px; padding: 22px 18px 0;
  background-image: linear-gradient(rgba(243, 238, 230, .06) 1px, transparent 1px);
  background-size: 100% 25%;
  background-origin: content-box;
}
.vasc-journey__line {
  position: absolute; left: 18px; right: 18px; top: 22px;
  width: calc(100% - 36px); height: calc(100% - 22px - 70px);
  color: var(--accent-dark); pointer-events: none; overflow: visible;
}
.vasc-col { display: grid; grid-template-rows: minmax(0, 1fr) 34px 36px; justify-items: center; padding: 0 10px; min-width: 0; }
.vasc-col__bar {
  align-self: end; width: min(64px, 70%);
  height: var(--h);
  background: var(--paper); border-radius: 3px 3px 0 0;
  transform-origin: center bottom;
}
.vasc-col--hot .vasc-col__bar { background: var(--accent-dark); }
.vasc-col__label { padding-top: 10px; line-height: 1.3; font-weight: 600; font-size: 14px; text-align: center; }
.vasc-col__mod { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); padding-top: 4px; }
.vasc-col { border-top: 0; }
.vasc-journey__chart::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 70px; border-top: 1px solid var(--panel-line); }
.vasc-journey figcaption { border-top: 1px solid var(--panel-line); padding: 14px 18px; font-size: 13px; color: var(--muted-dark); }

.vasc-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.vasc-mod { padding: clamp(22px, 2.4vw, 32px); border-right: 1px solid var(--panel-line); display: flex; flex-direction: column; gap: 16px; background: var(--panel); }
.vasc-mod:last-child { border-right: 0; }
.vasc-mod__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--panel-line);
}
.vasc-mod__num { color: var(--accent-dark); font-weight: 700; }
.vasc-mod__state { display: inline-flex; align-items: center; color: var(--muted-dark); }
.vasc-mod__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 3.6vw, 56px); line-height: 1; letter-spacing: -.02em; }
.vasc-mod p { color: #D9D1C5; font-size: 16px; }

.vasc-angles { border-top: 1px solid var(--panel-line); margin-top: auto; }
.vasc-angles li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--panel-line); }
.vasc-angles b { font-weight: 600; font-size: 15px; }
.vasc-angles span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-dark); }

.vasc-chat { margin-top: auto; border: 1px solid var(--panel-line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; background: var(--ink); }
.vasc-mod .vasc-chat__msg { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; max-width: 92%; }
.vasc-mod .vasc-chat__msg--in { background: var(--ink-2); color: var(--paper); border-bottom-left-radius: 2px; }
.vasc-mod .vasc-chat__msg--out { background: var(--paper); color: var(--ink); justify-self: end; border-bottom-right-radius: 2px; }
.vasc-mod .vasc-chat__done { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent-dark); }

.vasc-crm { margin-top: auto; border: 1px solid var(--panel-line); border-radius: 8px; overflow: hidden; }
.vasc-crm__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--panel-line); align-items: center; font-size: 14px; }
.vasc-crm__row:last-child { border-bottom: 0; }
.vasc-crm__row--head { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); background: var(--ink); }
.vasc-pips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.vasc-pips i { width: 14px; height: 8px; border-radius: 2px; border: 1px solid var(--muted-dark); }
.vasc-pips[data-step="1"] i:nth-child(-n+1),
.vasc-pips[data-step="2"] i:nth-child(-n+2),
.vasc-pips[data-step="3"] i:nth-child(-n+3),
.vasc-pips[data-step="4"] i:nth-child(-n+4) { background: var(--paper); border-color: var(--paper); }
.vasc-pips[data-step="4"] i { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.vasc-pips em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--muted-dark); width: 100%; margin-top: 4px; }

@media (max-width: 1080px) {
  .vasc-mods { grid-template-columns: 1fr; }
  .vasc-mod { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .vasc-mod:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .vasc-method__top { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .vasc-col__label { font-size: 13px; }
  .vasc-col { padding: 0 4px; }
}

/* ---------- CFM (creme 2) ---------- */
.vasc-cfm { background: var(--paper-2); }
.vasc-cfm__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.vasc-cfm .section__head { margin-bottom: 0; }
.vasc-check { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.vasc-check__bar { color: var(--muted); border-bottom-color: var(--ink); }
.vasc-check__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px; border-bottom: 1px solid rgba(20, 18, 16, .18);
}
.vasc-check__list li:last-child { border-bottom: 0; }
.vasc-check__k { font-weight: 600; line-height: 1.35; }
.vasc-check__v {
  flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 4px; background: var(--ink); color: var(--paper);
}
.vasc-check__v--off { background: transparent; color: var(--accent-text); border: 1px solid var(--accent-text); }
@media (max-width: 860px) { .vasc-cfm__grid { grid-template-columns: 1fr; } }

/* ---------- PROVA (escuro) ---------- */
.vasc-proof { background: var(--ink); color: var(--paper); }
.vasc-proof .lead { color: #D9D1C5; }
.vasc-proof .h2 em { color: var(--accent-dark); }
.vasc-proof__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel-line); gap: 1px; grid-auto-flow: row dense;
}
.vasc-tile { background: var(--panel); padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 170px; min-width: 0; }
.vasc-tile--big { grid-column: span 2; }
.vasc-tile--roi { grid-column: span 2; }
.vasc-tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; min-height: 0; }
.vasc-tile__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.vasc-tile__value { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4vw, 60px); line-height: 1; letter-spacing: -.02em; color: var(--paper); overflow-wrap: anywhere; }
.vasc-tile--big .vasc-tile__value { font-size: clamp(44px, 6vw, 96px); color: var(--accent-dark); }
.vasc-roi { display: grid; gap: 12px; }
.vasc-roi li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.vasc-roi b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; }
.vasc-roi span { height: 14px; border: 1px solid var(--panel-line); border-radius: 3px; padding: 2px; }
.vasc-roi i { display: block; height: 100%; width: var(--w); background: var(--accent-dark); border-radius: 1px; transform-origin: left center; }
.vasc-proof__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 28px; }
.vasc-proof__foot p { font-size: 14px; color: var(--muted-dark); max-width: 60ch; }
.vasc-proof .link-arrow { color: var(--paper); display: inline-flex; align-items: center; min-height: 44px; gap: 6px; padding-bottom: 0; }
.vasc-proof .link-arrow:hover { color: var(--accent-dark); }
@media (max-width: 1000px) {
  .vasc-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vasc-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vasc-tile__value { font-size: 34px; }
  .vasc-tile--wide { flex-direction: column; align-items: flex-start; }
  .vasc-tile--big, .vasc-tile--roi, .vasc-tile--wide { grid-column: 1 / -1; }
  .vasc-tile { min-height: 0; }
}

/* ---------- Animações próprias (só com motion ativo) ---------- */
.js-motion .vasc-bar__track i,
.js-motion .vasc-roi i { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js-motion .vasc-col__bar { transform: scaleY(0); transition: transform 1s var(--ease); }
.js-motion .vasc-journey__line { opacity: 0; transition: opacity .8s ease .9s; }
.js-motion .is-on .vasc-bar__track i,
.js-motion .is-on .vasc-roi i { transform: scaleX(1); }
.js-motion .is-on .vasc-col__bar { transform: scaleY(1); }
.js-motion .is-on .vasc-journey__line { opacity: 1; }
.js-motion .vasc-bar:nth-child(2) i, .js-motion .vasc-roi li:nth-child(2) i, .js-motion .vasc-col:nth-of-type(2) .vasc-col__bar { transition-delay: .15s; }
.js-motion .vasc-bar:nth-child(3) i, .js-motion .vasc-roi li:nth-child(3) i, .js-motion .vasc-col:nth-of-type(3) .vasc-col__bar { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .vasc-dot { animation: none !important; }
  .vasc-bar__track i, .vasc-roi i, .vasc-col__bar { transform: none !important; transition: none !important; }
}
