/* BlackFlow CRM — ajustes de marca V2 */
.brand {
  width: 230px;
  padding: 5px 0;
}

.brand img,
.site-footer img {
  display: block;
  object-fit: contain;
}

.main-nav {
  gap: 3px;
}

.main-nav a {
  white-space: nowrap;
}

.nav-login {
  color: #86efac !important;
  border: 1px solid rgba(134, 239, 172, 0.3);
}

.nav-download {
  opacity: 0.72;
  position: relative;
}

.nav-download::after {
  content: "em breve";
  color: #86efac;
  margin-left: 5px;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#planos .plan-card > .button:focus-visible {
  outline: 3px solid #86efac;
  outline-offset: 3px;
}

.visual-core > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform: none;
}

.visual-core small {
  display: none !important;
}

.connected-core > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.system-core {
  width: 255px;
  height: 130px;
  padding: 24px;
}

.system-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel img,
.channel-core img,
.event-icon img {
  width: 58%;
  height: 58%;
  display: block;
  object-fit: contain;
}

.channel-core img {
  width: 100%;
  height: 100%;
  border-radius: 22%;
  position: relative;
  z-index: 2;
}

.channel-core::before,
.channel-core::after {
  content: none !important;
  display: none !important;
}

.event--lead .event-icon {
  background: #07100b url("/brand/app-background-1024-opaque.png") center/cover no-repeat;
  border: 1px solid rgba(134, 239, 172, 0.3);
  box-shadow: 0 8px 20px rgba(7, 16, 11, 0.42);
}

.event--lead .event-icon img {
  width: 68%;
  height: 68%;
  opacity: 1;
}

.hero-micro-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-micro-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 7px;
  color: #f7f9f8;
  background: rgba(7, 16, 11, 0.66);
  border: 1px solid rgba(134, 239, 172, 0.12);
  border-radius: 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(7, 16, 11, 0.2);
}

.hero-micro-node > i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: #86efac;
  background: rgba(134, 239, 172, 0.09);
  border-radius: 7px;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
}

.hero-micro-node small,
.hero-micro-node b {
  display: block;
  white-space: nowrap;
}

.hero-micro-node small {
  color: #a8b3ac;
  font-size: 0.43rem;
  line-height: 1.2;
}

.hero-micro-node b {
  margin-top: 1px;
  font-size: 0.52rem;
  font-weight: 650;
}

.hero-micro-node--social { left: 7%; top: 45%; }
.hero-micro-node--email { right: 17%; top: 8%; }
.hero-micro-node--data { right: 6%; top: 54%; }

.avatar.avatar--joao {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  background: #07100b;
  border: 1px solid rgba(134, 239, 172, 0.35);
  box-shadow: 0 5px 14px rgba(22, 163, 74, 0.18);
}

.avatar.avatar--joao img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.preview-dashboard.has-revenue {
  grid-template-columns: 0.72fr 0.72fr 0.85fr 1.45fr;
}

.metric--revenue b {
  color: #07100b;
  white-space: nowrap;
}

.preview-dashboard .chart {
  position: relative;
  padding-top: 24px;
  overflow: visible;
}

.preview-dashboard .chart > i {
  position: relative;
}

.preview-dashboard .chart > i[data-value]::before {
  content: attr(data-value);
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  color: #667069;
  font-size: 0.43rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.preview-dashboard .chart > i:nth-child(1) { height: 22%; background: #d8eee0; }
.preview-dashboard .chart > i:nth-child(2) { height: 30%; background: #d8eee0; }
.preview-dashboard .chart > i:nth-child(3) { height: 38%; background: #c8e8d4; }
.preview-dashboard .chart > i:nth-child(4) { height: 46%; background: #86efac; }
.preview-dashboard .chart > i:nth-child(5) { height: 55%; background: #22c55e; }
.preview-dashboard .chart > i:nth-child(6) { height: 66%; background: #16a34a; }
.preview-dashboard .chart > i:nth-child(7) { height: 78%; background: #0f7a38; }
.preview-dashboard .chart > i:nth-child(8) { height: 92%; background: #07100b; }

.form-automation-flow {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-form .form-flow-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #16a34a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 !important;
  font-size: 0.41rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.preview-form .form-flow-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.preview-form .form-flow-step {
  color: #667069;
  background: none;
  border: 0;
  border-radius: 0;
  min-height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.42rem;
  font-weight: 650;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}

.preview-form .form-flow-step i {
  background: #22c55e;
  border: 0;
  border-radius: 50%;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  padding: 0;
  display: block;
  font-style: normal;
}

.preview-form .form-flow-step:not(:last-child)::after {
  content: "";
  width: 12px;
  height: 1px;
  margin-left: 3px;
  background: rgba(22, 163, 74, 0.3);
}

.preview-form .form-flow-arrow { display: none; }

html.has-plan-modal,
html.has-plan-modal body {
  overflow: hidden;
}

.plan-form-modal {
  width: min(680px, calc(100vw - 24px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  color: #101713;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.plan-form-modal[open] {
  display: flex;
  flex-direction: column;
}

.plan-form-modal::backdrop {
  background: rgba(4, 9, 5, 0.78);
  backdrop-filter: blur(8px);
}

.plan-form-shell {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - 24px);
  background: #f7f9f8;
  border: 1px solid rgba(134, 239, 172, 0.22);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

.plan-form-header {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 15px 18px 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #f7f9f8;
  background: #07100b;
}

.plan-form-header small,
.plan-form-header strong {
  display: block;
}

.plan-form-header small {
  color: #86efac;
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-form-header strong {
  font-size: 1.08rem;
}

.plan-form-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #f7f9f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.plan-form-close:hover,
.plan-form-close:focus-visible {
  color: #07100b;
  background: #86efac;
  outline: none;
}

.plan-form-frame {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 110px);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.plan-form-frame iframe,
.plan-form-frame .ep-iFrameContainer,
.plan-form-frame .ep-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.plan-form-frame iframe {
  z-index: 2;
  height: 1680px;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff;
  overflow: hidden;
}

.plan-form-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #667069;
  font-size: 0.78rem;
}

.plan-form-modal.is-loaded .plan-form-loading {
  display: none;
}

.footer-instagram {
  color: #86efac !important;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px 72px;
}

.footer-brand {
  flex: 0 1 280px;
}

.footer-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px 36px;
  flex: 1 1 560px;
  max-width: 620px;
}

.footer-main nav,
.footer-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start;
  gap: 12px !important;
  min-width: 0;
}

.footer-col-title {
  color: #fff;
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-company {
  max-width: 330px !important;
  color: #ffffff5c !important;
  margin-top: 16px !important;
  font-size: 0.68rem !important;
  line-height: 1.65;
}

.footer-list a,
.footer-legal-inline a {
  color: #a8b3ac;
  font-size: 0.78rem;
  white-space: nowrap;
}

.footer-list a:hover,
.footer-legal-inline a:hover {
  color: #86efac;
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-inline a {
  color: #ffffff8a;
  font-size: 0.68rem;
}

.legal-page {
  background: #07100b;
}

.legal-page main {
  overflow: visible;
}

.legal-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.16), transparent 28%),
    #07100b;
  padding: 158px 0 72px;
}

.legal-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: #a8b3ac;
  font-size: 0.78rem;
}

.legal-content {
  padding: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 72px;
  align-items: start;
  padding: 72px 0 110px;
}

.legal-article {
  max-width: 760px;
}

.legal-article h2,
.legal-article h3 {
  margin: 42px 0 14px;
  letter-spacing: -0.03em;
}

.legal-article h2 {
  font-size: 1.18rem;
}

.legal-article h3 {
  color: #176b3a;
  font-size: 0.98rem;
}

.legal-article p,
.legal-article li {
  color: #3d4741;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-article p {
  margin: 0 0 16px;
}

.legal-article ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-article li + li {
  margin-top: 6px;
}

.legal-article hr {
  border: 0;
  border-top: 1px solid #dce3de;
  margin: 34px 0;
}

.legal-article a {
  color: #176b3a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: #16a34a;
}

.legal-sidebar {
  display: grid;
  gap: 28px;
  position: sticky;
  top: 104px;
}

.legal-toc,
.legal-related {
  display: grid;
  gap: 10px;
}

.legal-toc a,
.legal-related-link {
  color: #667069;
  font-size: 0.74rem;
  line-height: 1.4;
}

.legal-toc a:hover,
.legal-related-link:hover,
.legal-related-link.is-current {
  color: #176b3a;
}

.legal-related-link.is-current {
  font-weight: 700;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 52px 0 80px;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }

  .legal-toc {
    display: none;
  }

  .legal-hero {
    padding: 132px 0 52px;
  }
}

@media (max-width: 860px) {
  .footer-main {
    flex-direction: column;
  }

  .footer-lists {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer-lists {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

.hero-footer {
  position: relative;
  inset: auto;
  margin-top: 34px;
  padding-bottom: 30px;
}

.institutional::before {
  content: "";
  position: absolute;
  width: min(720px, 58vw);
  aspect-ratio: 1;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  background: url("/brand/blackflow-symbol.png") center/contain no-repeat;
  opacity: 0.045;
  filter: blur(7px);
  pointer-events: none;
}

.institutional > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
  }
  .brand { width: 190px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    background: rgba(7, 16, 11, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a {
    padding: 14px 15px;
    font-size: 0.86rem;
  }
  .main-nav .nav-cta,
  .main-nav .nav-login {
    text-align: center;
  }
  .main-nav .nav-cta { margin-top: 5px; }
  .form-automation-flow { align-items: flex-start; flex-direction: column; gap: 6px; }
  .preview-form .form-flow-steps { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 860px) {
  .brand { width: 190px; }
  .main-nav { gap: 5px; }
  .main-nav a { font-size: 0.86rem; }
  .nav-download::after { font-size: 0.58rem; }
  .hero-footer { margin-top: 24px; padding-bottom: 24px; }
  .system-core { width: 205px; height: 108px; padding: 19px; }
  .preview-dashboard.has-revenue { grid-template-columns: 1fr 1fr; }
  .preview-dashboard.has-revenue .chart { grid-column: 1 / -1; min-height: 140px; }
  .hero-micro-node--email { right: 8%; }
}

@media (max-width: 560px) {
  .brand { width: 168px; }
  .visual-core > img { width: 54px; height: 54px; }
  .connected-core > img { width: 50px; height: 50px; }
  .hero-footer { align-items: flex-start; gap: 18px; }
  .avatar.avatar--joao { width: 34px; height: 34px; flex-basis: 34px; }
  .hero-micro-node { gap: 5px; padding: 5px 7px 5px 5px; }
  .hero-micro-node > i { width: 19px; height: 19px; flex-basis: 19px; }
  .hero-micro-node small { display: none; }
  .hero-micro-node b { font-size: 0.46rem; }
  .hero-micro-node--email { top: 18%; right: 4%; }
  .hero-micro-node--social { top: 36%; left: 3%; }
  .hero-micro-node--data { top: 52%; right: 3%; }
  .preview-dashboard .chart > i[data-value]::before { font-size: 0.39rem; }
  .plan-form-modal {
    width: calc(100vw - 12px);
    height: fit-content;
    max-height: calc(100dvh - 12px);
  }
  .plan-form-shell {
    border-radius: 18px;
    max-height: calc(100dvh - 12px);
  }
  .plan-form-header { min-height: 68px; padding: 11px 12px 11px 16px; }
  .plan-form-header strong { font-size: 0.96rem; }
  .plan-form-close { width: 40px; height: 40px; flex-basis: 40px; }
  .plan-form-frame { min-height: 0; max-height: calc(100dvh - 88px); }
}

/* V4: responsive automation flows, built on the V3 visual system. */
.preview-automation {
  width: 100%;
  min-height: 180px;
  margin-top: 38px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 0;
  overflow: visible;
}

.preview-automation .flow-node {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  white-space: normal;
  line-height: 1.25;
}

.preview-automation .flow-node > span {
  width: 30px;
  height: 30px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #86efac;
  background: rgba(134, 239, 172, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.18);
  border-radius: 9px;
  font-size: 0;
}

.preview-automation .flow-node > span::before {
  font-size: 0.82rem;
  line-height: 1;
}

.preview-automation .flow-node:nth-child(1) > span::before { content: "+"; }
.preview-automation .flow-node:nth-child(3) > span::before { content: "✓"; }
.preview-automation .flow-node:nth-child(5) > span::before { content: "◇"; }
.preview-automation .flow-node:nth-child(7) > span::before { content: "↗"; }

.preview-automation .flow-node--active > span {
  color: #07100b;
  background: #22c55e;
  border-color: #22c55e;
  animation: activeFlowNode 3s ease-in-out infinite;
}

.preview-automation .flow-line {
  position: relative;
  width: 100%;
  min-width: 10px;
}

.preview-automation .flow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid rgba(134, 239, 172, 0.55);
  border-right: 1px solid rgba(134, 239, 172, 0.55);
  transform: translateY(-50%) rotate(45deg);
}

@keyframes activeFlowNode {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.08); }
}

.preview-form {
  min-width: 0;
  min-height: 250px;
}

.preview-form .form-automation-flow {
  margin-top: 12px;
  padding-top: 12px;
  display: block;
}

.preview-form .form-flow-label {
  margin-bottom: 10px !important;
  display: block;
  font-size: 0.46rem !important;
}

.preview-form .form-flow-steps {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.preview-form .form-flow-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: #667069;
  font-size: 0.46rem;
  line-height: 1.2;
  white-space: normal;
}

.preview-form .form-flow-step i {
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  border: 0;
  border-radius: 6px;
  font-size: 0;
}

.preview-form .form-flow-step i::before {
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.preview-form .form-flow-step:nth-child(1) i::before { content: "+"; }
.preview-form .form-flow-step:nth-child(2) i::before { content: "↻"; }
.preview-form .form-flow-step:nth-child(3) i::before { content: "@"; }

.preview-form .form-flow-step:not(:last-child)::after {
  content: none;
}

.preview-form .form-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(100% - 4px);
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.2), #22c55e, rgba(22, 163, 74, 0.2));
  background-size: 200% 100%;
  animation: postFormFlow 2.8s ease-in-out infinite;
}

.preview-form .form-flow-step {
  position: relative;
}

@keyframes postFormFlow {
  0%, 100% { background-position: 100% 0; opacity: 0.4; }
  50% { background-position: 0 0; opacity: 1; }
}

@media (max-width: 640px) {
  .feature-card--dark {
    min-height: auto;
  }

  .preview-automation {
    min-height: 0;
    margin-top: 32px;
    padding-bottom: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .preview-automation .flow-line {
    display: none;
  }

  .preview-automation .flow-node {
    min-height: 70px;
    padding: 12px;
    font-size: 0.62rem;
  }

  .preview-form {
    min-height: 270px;
  }

  .preview-form .form-flow-steps {
    gap: 7px;
  }

  .preview-form .form-flow-step {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    text-align: center;
    font-size: 0.44rem;
  }

  .preview-form .form-flow-step:not(:last-child)::before {
    top: 10px;
    left: calc(100% - 5px);
    width: 10px;
  }
}

@media (max-width: 340px) {
  .preview-automation {
    grid-template-columns: 1fr;
  }

  .preview-automation .flow-node {
    min-height: 56px;
  }

  .preview-form .form-flow-steps {
    grid-template-columns: 1fr;
  }

  .preview-form .form-flow-step {
    grid-template-columns: 20px minmax(0, 1fr);
    justify-items: initial;
    text-align: left;
  }

  .preview-form .form-flow-step:not(:last-child)::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-automation .flow-node--active > span,
  .preview-automation .flow-line i,
  .preview-form .form-flow-step:not(:last-child)::before {
    animation: none;
  }
}
