:root {
  --sidebar-bg: #15233f;
  --sidebar-bg-hover: #1f3354;
  --sidebar-active: #2a4470;
  --sidebar-text: #aab6cf;
  --sidebar-text-active: #ffffff;
  --accent: #3b5bdb;
  --page-bg: #f4f5f7;
  --card-bg: #ffffff;
  --text-dark: #1a1f2e;
  --text-muted: #8a92a6;
  --border: #eceef2;
  --c-discovery: #f06548;
  --c-qualified: #f5b942;
  --c-conversation: #2d2b55;
  --c-negotiation: #74c69d;
  --c-closedwon: #9b51a8;
  --c-instagram: #1c7da3;
  --c-won: #1c7da3;
  --c-lost: #c0392b;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 76px;
  --navbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.material-symbols-outlined svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  height: 100dvh; /* acompanha o viewport ao recolher a barra do navegador no mobile. 06/09/2026 */
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  transition: width .25s ease;
  z-index: 30;
  overflow: hidden;
}
.sidebar-top {
  padding: 18px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hamburger {
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.hamburger svg { width: 18px; height: 18px; }
.hamburger:hover { background: var(--sidebar-bg-hover); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 2px;
}
.brand-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img { height: 36px; max-width: 100%; object-fit: contain; }
.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  transition: opacity .15s, max-width .25s ease;
}

.nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #2a3a5c; border-radius: 6px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--sidebar-text);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background .15s, color .15s, gap .25s ease;
}
.nav-item svg { width: 20px; min-width: 20px; height: 20px; }
.nav-item:hover { background: var(--sidebar-bg-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-text-active); }

.nav-label { transition: opacity .15s, max-width .25s ease; max-width: 160px; overflow: hidden; }

.nav-group-toggle .chevron-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s, max-width .25s ease, opacity .15s;
}
.nav-group-toggle .chevron-btn:hover { background: rgba(255,255,255,.08); }

.nav-group-toggle .chevron {
  max-width: 20px;
  overflow: hidden;
  transition: transform .2s;
}
.nav-group.open .nav-group-toggle .chevron { transform: rotate(90deg); }

.nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px;
  padding-left: 18px;
}
.nav-group.open .nav-sub { display: flex; }
.nav-sub .nav-item {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 400;
}
.nav-sub .nav-item::before {
  content: "";
  width: 6px; height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #4a5d80;
}

.sidebar-bottom {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #243453;
}

/* collapsed state — só no desktop; abaixo de 880px a sidebar vira gaveta e ignora .collapsed. 12/09/2026 */
@media (min-width: 881px) {
  .sidebar.collapsed { width: var(--sidebar-w-collapsed); }
  .sidebar.collapsed .brand-name,
  .sidebar.collapsed .nav-label { opacity: 0; pointer-events: none; max-width: 0; }
  .sidebar.collapsed .chevron-btn { opacity: 0; pointer-events: none; max-width: 0; min-width: 0; width: 0; padding: 0; }
  .sidebar.collapsed .nav-item { justify-content: flex-start; gap: 0; padding: 11px 14px; }
  .sidebar.collapsed .nav-sub { display: none !important; }
  .sidebar.collapsed .nav-group .nav-sub { padding-left: 0; }
  .sidebar.collapsed .brand { justify-content: center; padding-left: 0; }
  .sidebar.collapsed ~ .main { margin-left: var(--sidebar-w-collapsed); }
}

/* ---------- MAIN ---------- */
.main {
  margin-left: var(--sidebar-w);
  transition: margin-left .25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- SIDEBAR MOBILE: gaveta sobreposta (off-canvas) 12/09/2026 ---------- */
/* Hambúrguer dos headers (partials/menu-btn.html) e X da sidebar só existem no mobile. */
.gx-menu-btn,
.sidebar-close,
.sidebar-backdrop,
.gx-topbar { display: none; }

@media (max-width: 880px) {
  /* Sidebar fica fora da tela (não ocupa coluna); visibility tira do tab/leitor de tela enquanto fechada. */
  .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    z-index: 9010;
  }
  body.sidebar-open .sidebar {
    transform: none;
    visibility: visible;
    transition: transform .25s ease;
  }

  /* No mobile o topo da sidebar só tem o X, alinhado à direita. */
  .sidebar-top { flex-direction: row; justify-content: flex-end; }
  #toggleBtn { display: none; }
  .sidebar-close { display: flex; }
  .sidebar-close:hover { color: #fff; }

  /* Máscara escura sobre o conteúdo; abaixo da sidebar, acima de tudo dos apps. */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(21, 35, 63, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 9000;
  }
  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease;
  }
  /* Trava a rolagem da página enquanto o menu está aberto. */
  body.sidebar-open { overflow: hidden; }

  /* Conteúdo ocupa a largura toda; nada empurra. */
  .main { margin-left: 0; }

  /* Hambúrguer nos headers: herda a cor do toolbar (temas do Dash.io) e segue o tamanho do .hamburger. */
  .gx-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background .15s;
  }
  .gx-menu-btn svg { width: 20px; height: 20px; }
  .gx-menu-btn:hover { background: rgba(127, 127, 127, .15); }

  /* Barra das páginas institucionais (Home, Produtos, Sobre), que não têm header próprio. */
  .gx-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 16px 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .gx-topbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
  }
  .gx-topbar__brand img { height: 24px; display: block; }
}

/* ---------- NAVBAR ---------- */
.navbar {
  height: var(--navbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar h1 { font-size: 22px; font-weight: 700; }
.user-menu { position: relative; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #e6e9ef;
  display: block;
  padding: 0;
}
.avatar svg,
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
}
.avatar img { object-fit: cover; }

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
  min-width: 230px;
  z-index: 1000;
  overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.user-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e6e9ef;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar-sm svg,
.user-avatar-sm img {
  width: 100%;
  height: 100%;
  display: block;
}
.user-avatar-sm img { object-fit: cover; }
.user-dd-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.user-dd-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.user-dropdown-divider { border-top: 1px solid var(--border); }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background .12s;
}
.user-dropdown-item:hover { background: var(--page-bg); }
.user-dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.user-dropdown-item--danger { color: #c0392b; }
.user-dropdown-item--danger:hover { background: #fff5f5; }
.user-dropdown-item--danger svg { color: #c0392b; }

.content {
  flex: 1;
  padding: 28px 32px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px;
}

/* ---------- HOME PAGE ---------- */
.home-page {
  width: 100%;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
}

.home-hero__content,
.home-hero__visual,
.home-metrics article,
.home-section,
.home-flow {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-hero__content {
  padding: 34px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.home-hero h1 {
  max-width: 720px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.home-hero p {
  max-width: 680px;
  color: #4d5568;
  font-size: 16px;
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}

.home-button svg {
  width: 17px;
  height: 17px;
}

.home-button:hover {
  border-color: #d6dcff;
  background: #f6f8ff;
  color: var(--accent);
  transform: translateY(-1px);
}

.home-button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.home-button--primary:hover {
  background: #2f49b0;
  border-color: #2f49b0;
  color: #fff;
}

.home-hero__visual {
  min-height: 360px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(59,91,219,.08), rgba(116,198,157,.14)),
    #fff;
}

.home-window {
  width: min(100%, 420px);
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(21,35,63,.13);
  overflow: hidden;
}

.home-window__top {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  background: #f9fafc;
}

.home-window__top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d0df;
}

.home-window__top span:nth-child(1) { background: #f06548; }
.home-window__top span:nth-child(2) { background: #f5b942; }
.home-window__top span:nth-child(3) { background: #74c69d; }

.home-window__body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.home-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: #f7f8fb;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-chart span {
  display: block;
  min-height: 28px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #3b5bdb, #1c7da3);
}

.home-chart span:nth-child(2),
.home-chart span:nth-child(4) {
  background: linear-gradient(180deg, #74c69d, #1c7da3);
}

.home-tasks {
  display: grid;
  gap: 10px;
}

.home-tasks span {
  height: 14px;
  border-radius: 8px;
  background: #e9edf5;
}

.home-tasks span:nth-child(1) { width: 88%; }
.home-tasks span:nth-child(2) { width: 68%; background: #eef1ff; }
.home-tasks span:nth-child(3) { width: 78%; background: #e9f7ef; }

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.home-metrics article {
  padding: 20px;
}

.home-metrics span,
.home-product span,
.home-flow__grid span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.home-metrics strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.home-metrics p,
.home-flow__grid p {
  color: #5b6475;
  font-size: 14px;
  line-height: 1.55;
}

.home-section,
.home-flow {
  padding: 24px;
  margin-bottom: 24px;
}

.home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section__header h2 {
  font-size: 24px;
  line-height: 1.2;
}

.home-section__header a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-section__header a:hover {
  text-decoration: underline;
}

.home-products,
.home-flow__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-product {
  min-height: 178px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: #fafbfe;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.home-product:hover {
  border-color: #d6dcff;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21,35,63,.08);
  transform: translateY(-2px);
}

.home-product--disabled {
  color: #6c7486;
  background: #f9fafc;
}

.home-product--disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.home-product--disabled .home-product__icon {
  background: #eef0f4;
  color: #7b8497;
}

.home-product__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eef1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-product__icon svg {
  width: 25px;
  height: 25px;
}

.home-product h3,
.home-flow__grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.home-product p {
  color: #5b6475;
  font-size: 14px;
  line-height: 1.55;
}

.home-flow__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-flow__grid article {
  min-height: 156px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfe;
  padding: 20px;
}

/* ---------- PRODUCTS PAGE ---------- */
.products-page {
  max-width: 1120px;
}

.products-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.products-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.products-intro h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.products-intro p {
  max-width: 720px;
  color: #4d5568;
  font-size: 15px;
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.product-card--active:hover {
  border-color: #d6dcff;
  box-shadow: 0 14px 34px rgba(21,35,63,.1);
  transform: translateY(-2px);
}

.product-card--disabled {
  color: #6c7486;
  background: #f9fafc;
}

.product-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eef1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card--disabled .product-card__icon {
  background: #eef0f4;
  color: #7b8497;
}

.product-card__icon svg {
  width: 24px;
  height: 24px;
}

.product-card__body {
  flex: 1;
}

.product-card__status {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.product-card--disabled .product-card__status {
  color: #7b8497;
}

.product-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-card p {
  color: #5b6475;
  font-size: 14px;
  line-height: 1.55;
}

.product-card__action {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--accent);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.product-card--disabled .product-card__action {
  color: #7b8497;
  background: #f4f5f7;
}

/* tabs */
.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.tab-list { display: flex; gap: 28px; }
.tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}
.tab.active { color: var(--accent); border-color: var(--accent); }
.range-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.grid-2 > div:first-child { border-right: 1px solid var(--border); padding-right: 40px; }
.grid-2 > div:last-child { padding-left: 40px; }

.section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.big-num { font-size: 44px; font-weight: 700; line-height: 1; }
.big-num-label { font-size: 14px; color: var(--text-muted); margin-left: 8px; }

.funnel-bar {
  display: flex;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
  margin: 18px 0 22px;
}
.funnel-bar span { display: block; height: 100%; }

.funnel-table { width: 100%; border-collapse: collapse; }
.funnel-table td { padding: 9px 0; font-size: 14px; vertical-align: middle; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 12px; }
.funnel-table .label { font-weight: 500; }
.funnel-table .num { text-align: right; padding-right: 24px; color: var(--text-dark); }
.funnel-table .val { text-align: right; padding-right: 24px; color: var(--text-dark); }
.funnel-table .days { text-align: right; color: var(--text-muted); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 30px; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.legend-row .name { font-weight: 500; min-width: 78px; }
.legend-row .money { color: var(--text-dark); min-width: 56px; }
.legend-row .pct { color: var(--text-muted); }

.seg-toggle { display: flex; gap: 10px; margin-top: 26px; justify-content: flex-end; }
.seg-toggle button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.seg-toggle button.active { background: #eef1ff; color: var(--accent); border-color: #d7deff; font-weight: 600; }

.block { padding: 30px 0 8px; border-bottom: 1px solid var(--border); }
.block:last-child { border-bottom: none; }

.stat-inline { display: flex; gap: 48px; margin: 10px 0 24px; }
.stat-inline .v { font-size: 38px; font-weight: 700; }
.stat-inline .l { font-size: 13px; color: var(--text-muted); }

.chart-legend { display: flex; gap: 10px; margin-top: 18px; }
.chart-legend span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-legend i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }

.grid-2-plain { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 30px; }
.grid-2-plain > div:first-child { border-right: 1px solid var(--border); padding-right: 40px; }
.grid-2-plain > div:last-child { padding-left: 40px; }
.pct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 4px; }
.pct-item .p { font-size: 34px; font-weight: 700; }
.pct-item .d { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 4px; }
.other-item .p { font-size: 34px; font-weight: 700; }
.other-item .d { font-size: 13px; color: var(--text-muted); margin-top: 6px; max-width: 120px; }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer .ver {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 25px;
  display: block;
}

/* ---------- CONTACTS PAGE ---------- */
.contacts-toolbar {
  margin-bottom: 24px;
}
.contacts-search-wrap {
  position: relative;
  max-width: 400px;
}
.contacts-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.contacts-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contacts-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,91,219,.1);
}
.contacts-search-wrap input::placeholder { color: var(--text-muted); }

.contacts-section {
  margin-bottom: 24px;
}
.contacts-section-header {
  background: var(--sidebar-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 10px 10px 0 0;
}
.contacts-grid {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.contact-card:last-child { border-bottom: none; }
.contact-card:hover { background: #f8f9fc; }

.contact-avatar {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sidebar-active);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .04em;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.contact-role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
  font-style: italic;
}
.contact-role-area { color: var(--text-muted); font-style: normal; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
}
a.contact-detail { color: var(--accent); }
a.contact-detail:hover { text-decoration: underline; }
.contact-detail svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contacts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.contacts-empty svg { width: 36px; height: 36px; }

/* ---------- ABOUT PAGE ---------- */
.about-page {
  width: 100%;
}

.about-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
}

.about-profile--story {
  align-items: start;
}

.about-profile--story h2 {
  font-size: 30px;
}

.about-profile__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #e6e9ef;
  border: 6px solid #fff;
  box-shadow: 0 10px 28px rgba(21,35,63,.16);
}

.about-profile__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-profile__eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-profile h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.about-profile__summary {
  color: #4d5568;
  font-size: 15.5px;
  line-height: 1.7;
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.about-contact a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafbfe;
  font-size: 13.5px;
  overflow-wrap: anywhere; /* URL longa nao alarga o card no mobile. 30/08/2026 */
}

.about-contact a:hover { border-color: #d6dcff; background: #f4f6ff; }
.about-contact span { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 24px;
}

.about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.about-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.about-panel--wide {
  grid-row: span 4;
}

.about-story-grid .about-panel--wide {
  grid-column: 1 / -1;
  grid-row: auto;
}

.about-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.about-panel__header h3 {
  font-size: 18px;
  font-weight: 700;
}

.about-panel--text p {
  color: #4d5568;
  font-size: 14.5px;
  line-height: 1.7;
}

.about-panel--text p + p {
  margin-top: 12px;
}

.about-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-mini-list span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfe;
  color: #4d5568;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
}

.about-products {
  margin-top: 4px;
}

.about-section-heading {
  margin-bottom: 18px;
}

.about-section-heading h3 {
  font-size: 24px;
  line-height: 1.25;
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
}

.timeline-item__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  box-shadow: 0 0 0 5px #eef1ff;
}

.timeline-item__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.timeline-item h4,
.about-list h4 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-item p,
.about-list p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 3px;
}

.timeline-item__top span,
.about-list span {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-item ul {
  padding-left: 18px;
  color: #4d5568;
  font-size: 14px;
  line-height: 1.6;
}

.timeline-item li + li { margin-top: 6px; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-list--compact { gap: 16px; }

.skill-groups {
  display: grid;
  gap: 14px;
}

.skill-groups div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fafbfe;
}

.skill-groups span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.skill-groups p {
  color: #4d5568;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .home-hero,
  .home-metrics,
  .home-products,
  .home-flow__grid { grid-template-columns: 1fr; }
  .home-hero__content,
  .home-hero__visual { min-height: 0; }
  .home-hero h1 { font-size: 34px; }
  .grid-2, .grid-2-plain { grid-template-columns: 1fr; }
  .grid-2 > div:first-child, .grid-2-plain > div:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
  .grid-2 > div:last-child, .grid-2-plain > div:last-child { padding-left: 0; }
  .other-grid { grid-template-columns: 1fr; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .about-profile { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .about-profile__body { width: 100%; min-width: 0; }
  .about-contact { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-story-grid,
  .about-card-grid { grid-template-columns: 1fr; }
  .about-story-grid .about-panel--wide { grid-column: auto; }
  .about-panel--wide { grid-row: auto; }
  .timeline-item__top { flex-direction: column; gap: 6px; }
  .timeline-item__top span { white-space: normal; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .content { padding: 20px 18px; }
  .home-hero__content,
  .home-hero__visual,
  .home-section,
  .home-flow { padding: 20px; }
  .home-hero h1 { font-size: 28px; }
  .home-hero p { font-size: 15px; }
  .home-actions,
  .home-section__header { align-items: stretch; flex-direction: column; }
  .home-button { width: 100%; }
  .home-product { grid-template-columns: 1fr; min-height: 0; }
  .home-window__body { padding: 18px; }
  .home-chart { height: 120px; padding: 14px; gap: 8px; }
  .about-profile,
  .about-panel { border-radius: 12px; padding: 20px; }
  .about-profile__photo { width: 140px; height: 140px; }
  .about-profile h2 { font-size: 25px; }
  .about-contact { width: 100%; }
  .about-contact a { width: 100%; min-width: 0; }
  .products-intro h2 { font-size: 25px; }
  .product-card { min-height: 0; padding: 20px; }
}

/* Botão "?" do tour guiado: mesmo estilo nos 3 produtos, ao lado do título. 25/08/2026 */
.gx-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.gx-tour-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gx-tour-btn .material-symbols-outlined {
  font-size: 16px;
  width: 1em;
  height: 1em;
}

/* ---------- BANNER DE INSTALACAO DO PWA (so na Home) 06/09/2026 ---------- */
.pwa-banner {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: var(--sidebar-bg);
  color: #fff;
  border-top: 1px solid var(--sidebar-active);
  box-shadow: 0 -8px 24px rgba(21, 35, 63, .18);
  transition: left .25s ease;
}
@media (min-width: 881px) {
  .sidebar.collapsed ~ .main .pwa-banner { left: var(--sidebar-w-collapsed); }
}
/* Mobile: sidebar é gaveta, banner ocupa a largura toda. 12/09/2026 */
@media (max-width: 880px) {
  .pwa-banner { left: 0; }
}
.pwa-banner[hidden] { display: none; }
/* Evita que o banner fixo cubra o rodape. */
body:has(.pwa-banner:not([hidden])) .footer { padding-bottom: 96px; }

.pwa-banner__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}
.pwa-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pwa-banner__text strong { font-size: 14px; font-weight: 600; }
.pwa-banner__msg { font-size: 13px; color: var(--sidebar-text); }

/* O JS escolhe a mensagem: prompt nativo (Chromium) ou instrucao do iOS. */
.pwa-banner__msg--prompt,
.pwa-banner__msg--ios { display: none; }
.pwa-banner[data-mode="prompt"] .pwa-banner__msg--prompt { display: inline; }
.pwa-banner[data-mode="ios"] .pwa-banner__msg--ios { display: inline; }
.pwa-banner[data-mode="ios"] .pwa-banner__install { display: none; }

.pwa-banner__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pwa-banner__install {
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-banner__install:hover { background: #2f4bc0; }
.pwa-banner__close {
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
}
.pwa-banner__close svg { width: 18px; height: 18px; }
.pwa-banner__close:hover { background: var(--sidebar-bg-hover); color: #fff; }

@media (max-width: 560px) {
  .pwa-banner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .pwa-banner__text { flex: 1 1 auto; }
  .pwa-banner__text strong { font-size: 13px; }
  .pwa-banner__msg { font-size: 12px; }
  .pwa-banner__actions { flex: 0 0 auto; }
  .pwa-banner__install { padding: 9px 16px; }
}
