/* ============================================================
   CPI Web Landing Page — style.css
   Pure CSS, no framework. 100% responsive.
   ============================================================ */

/* ── Variables ── */
:root {
  --white:      #ffffff;
  --bg:         #f4f8fd;
  --navy:       #0f2544;
  --ink:        #1c2b3d;
  --blue:       #2557d6;
  --blue-deep:  #173d94;
  --blue-light: #e7effc;
  --sky:        #5fa8ff;
  --line:       #e3ebf7;
  --muted:      #5b6b82;
  --green:      #1a9e6b;
  --green-bg:   #e5f6ef;
  --red:        #c9502f;
  --red-bg:     #fde8e4;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px -2px rgba(15,37,68,.1);
  --shadow:     0 10px 28px -10px rgba(15,37,68,.18);
  --shadow-lg:  0 24px 48px -18px rgba(15,37,68,.22);

  --transition: .2s ease;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-head:  'Sora', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,.brand { font-family: var(--font-head); }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Utilities ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-light); padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.15;
  margin: 14px 0 16px;
}
.section-head p { font-size: 17px; color: var(--muted); line-height: 1.65; }

.chat-page-wrap{
  height: calc(100vh - 68px);
  overflow: hidden;
}
.chat-main{
  min-height: 0;
}
#chatPanel{
  min-height: 0;
}
.chat-messages{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.chat-topbar{
  flex: 0 0 auto;
}
.chat-input-bar{
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 5;
}
@media (max-width: 768px){
  .chat-page-wrap{ height: calc(100vh - 60px); }
}
@media (max-width: 480px){
  .chat-page-wrap{ height: calc(100vh - 56px); }
}

/* ===== TOP NAV - DESKTOP ===== */
.admin-topnav {
  background: #fff;
  border-bottom: 1px solid var(--line, #e3ebf7);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.admin-me {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.admin-me-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy, #0f2544);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.admin-me-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #0f2544);
  line-height: 1.2;
}
.admin-me-role {
  font-size: 12px;
  color: var(--muted, #5b6b82);
  line-height: 1.2;
}

/* ===== CENTRALIZA OS BOTÕES ===== */
.admin-topnav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

/* ===== TABS ===== */
.admin-tab-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.admin-tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #5b6b82);
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.admin-tab-btn:hover {
  background: var(--bg, #f4f8fd);
  color: var(--navy, #0f2544);
}
.admin-tab-btn.active {
  background: var(--blue-light, #e7effc);
  color: var(--blue, #2557d6);
}
.admin-tab-badge {
  background: var(--red, #c9502f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  line-height: 1.5;
  margin-left: 4px;
}

/* ===== BOTÃO SAIR (desktop) - SEMPRE NO FINAL ===== */
.admin-logout-wrapper {
  margin-left: auto;
  flex-shrink: 0;
}
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red, #c9502f);
  background: var(--red-bg, #fde8e4);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.admin-logout-btn:hover {
  background: #fcd8d0;
  border-color: var(--red, #c9502f);
}
.admin-logout-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== BOTÃO TOGGLE MOBILE ===== */
.admin-nav-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 4px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.admin-nav-toggle:active { background: rgba(15,37,68,.06); }
.admin-nav-toggle span {
  display: block;
  height: 2.5px;
  width: 22px;
  background: var(--navy, #0f2544);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.admin-nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.admin-nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.admin-nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

body.admin-nav-open { overflow: hidden; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .admin-nav-toggle {
    display: flex !important;
  }

  .admin-topnav-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: 0 12px 40px rgba(15,37,68,.15);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    z-index: 999;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s;
    border-bottom: 2px solid var(--line, #e3ebf7);
  }
  .admin-topnav-actions.mobile-open {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
  }

  .admin-tab-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .admin-tab-btn {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line, #e3ebf7);
    border-radius: 0;
    font-size: 14px;
  }
  .admin-tab-btn.active {
    background: var(--blue-light, #e7effc);
  }

  /* Botão Sair no mobile - mesmo estilo das tabs */
  .admin-logout-wrapper {
    margin-left: 0;
    border-bottom: 1px solid var(--line, #e3ebf7);
  }
  .admin-logout-wrapper .admin-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--red, #c9502f);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
  }
  .admin-logout-wrapper .admin-logout-btn:hover {
    background: var(--red-bg, #fde8e4);
  }
  .admin-tab-btn:hover,
  .admin-logout-wrapper .admin-logout-btn:hover {
    background: rgba(15,37,68,.04);
  }
}

@media (max-width: 480px) {
  .admin-topnav {
    padding: 8px 16px;
  }
  .admin-me-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .admin-me-name {
    font-size: 13px;
  }
  .admin-me-role {
    font-size: 11px;
  }
  .admin-tab-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  .admin-logout-wrapper .admin-logout-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37,87,214,.5);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(37,87,214,.6); }
.btn-ghost {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.btn-white {
  background: #fff; color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--bg); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-full { width: 100%; }


/* ── HEADER ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-deep);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow); }

.nav-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--navy);
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(15,37,68,.4);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex; gap: 32px;
  font-size: 15px; font-weight: 500; color: var(--white);
}
.nav-links a { opacity: .7; transition: opacity var(--transition), color var(--transition); }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  padding: 96px 0 64px;
  background: radial-gradient(ellipse at 80% -20%, #dce9ff 0%, rgba(231,239,252,0) 50%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 48px;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800; color: var(--navy);
  letter-spacing: -.025em; line-height: 1.07;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead {
  font-size: 18px; line-height: 1.7; color: var(--muted);
  max-width: 500px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn { padding: 16px 30px; font-size: 16px; }
.hero-trust {
  margin-top: 40px; display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--muted);
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid #fff; margin-left: -9px;
  display: inline-block;
}
.trust-avatars span:first-child { margin-left: 0; }

/* Hero art */
.hero-art { position: relative; }
.hero-img-wrap {
  background: radial-gradient(circle at 42% 40%, #eef4fc 0%, var(--blue-light) 100%);
  border-radius: var(--radius-xl); padding: 32px; overflow: hidden;
}
.hero-img-wrap img { width: 100%; border-radius: var(--radius); }

.float-card {
  position: absolute; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  white-space: nowrap;
}
.float-card .fi { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card.card-a { top: 8%; left: -5%; animation: floaty 5s ease-in-out infinite; }
.float-card.card-b { bottom: 12%; right: -5%; animation: floaty 5s ease-in-out infinite 1.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero carousel — banner de largura total, com texto sobreposto */
.hero-carousel-section { position: relative; }
.hero-carousel {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 400px;
  max-height: 620px;
  overflow: hidden;
  background: var(--blue-light);
}
.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0,0,0);
}
.hero-carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.hero-carousel-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.hero-carousel-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,20,40,.62) 0%, rgba(9,20,40,.42) 45%, rgba(9,20,40,.66) 100%);
}
.hero-carousel-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 24px; max-width: 760px; margin: 0 auto;
}
.hero-carousel-content .eyebrow-on-dark {
  background: rgba(255,255,255,.14); color: #fff;
}
.hero-carousel-content .eyebrow-on-dark .dot { background: #fff; }
.hero-carousel-content h1 { color: #fff; }
.hero-carousel-content h1 em { color: #a9c6ff; }
.hero-carousel-content .lead { color: rgba(255,255,255,.88); margin-left: auto; margin-right: auto; }
.hero-carousel-content .hero-trust { color: rgba(255,255,255,.85); }
.hero-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3;
  display: flex; justify-content: center; gap: 9px;
}
.hero-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-carousel-dot.is-active { background: #fff; transform: scale(1.3); }

.hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.hero-carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-carousel-arrow.prev { left: 20px; }
.hero-carousel-arrow.next { right: 20px; }

@media (max-width: 600px) {
  .hero-carousel { height: 62vh; min-height: 380px; max-height: 520px; }
  .hero-carousel-content h1 { font-size: 30px; }
  .hero-carousel-content .lead { font-size: 15px; }
  .hero-carousel-arrow { width: 36px; height: 36px; }
  .hero-carousel-arrow.prev { left: 10px; }
  .hero-carousel-arrow.next { right: 10px; }
}

/* Hero subtext — texto que antes ficava sobreposto ao carrossel, agora abaixo dele */
.hero-subtext { padding: 48px 0 8px; }
.hero-subtext-wrap {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.hero-subtext .lead {
  font-size: 18px; line-height: 1.7; color: var(--muted);
  max-width: 100%; margin: 0 0 28px;
}
.hero-subtext .hero-actions { margin-bottom: 28px; }
.hero-subtext .hero-trust {
  margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
}

/* ── STRIP ── */
.strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.strip-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.strip-item span { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ── Seção Parceiros ── */
.partners-section {
  padding: 80px 0;
  background: var(--bg);
}
.partners-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  min-height: 140px;
}
.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.partner-item .partner-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.partner-item .partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.partner-item .partner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.partner-item .partner-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.partner-item .partner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 14px;
  border-radius: 999px;
  width: fit-content;
}
.partner-item .partner-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Seção Módulos - Cards ── */
.modules-section {
  padding: 80px 0;
  background: var(--bg);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.module-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
  position: relative;
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15,37,68,.12);
}
.module-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--blue-light);
  position: relative;
}
.module-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.module-card:hover .module-card-img img {
  transform: scale(1.03);
}
.module-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent 0%, rgba(15,37,68,0.85) 100%);
  color: #fff;
}
.module-card-overlay .module-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb3ff;
  background: rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.module-card-overlay h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #fff;
  line-height: 1.2;
}
.module-card-overlay p {
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
  color: #dce6f5;
}

/* ── Seção Sobre Nós ── */
.about-section {
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 20px;
  line-height: 1.2;
}
.about-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-content .about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.about-highlight-item svg {
  color: var(--blue);
  flex-shrink: 0;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Seção Contacto ── */
.contact-section {
  padding: 80px 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

/* ── PAIN / PROBLEM ── */
.pain { padding: 100px 0; }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pain-left h2 { font-size: clamp(26px,3vw,36px); font-weight: 800; color: var(--navy); margin: 16px 0 28px; line-height: 1.25; }
.pain-list { display: flex; flex-direction: column; gap: 16px; }
.pain-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; background: var(--bg); border-radius: var(--radius-sm);
  border-left: 3px solid #ffc5b5;
}
.pain-x {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--red-bg); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.pain-item p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.55; }
.pain-item strong { display: block; font-size: 15.5px; margin-bottom: 3px; color: var(--navy); }
.pain-right img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ── FEATURES ── */
.features { padding: 100px 0; background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feat-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.feat-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  margin-bottom: 14px;
}
.feat-badge.new { background: #e7f5f0; color: var(--green); }

/* ── HOW IT WORKS ── */
.how { padding: 100px 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.how-left h2 { font-size: clamp(26px,3vw,36px); font-weight: 800; color: var(--navy); margin: 16px 0 32px; line-height: 1.25; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 19px; top: 44px; bottom: -6px; width: 2px;
  background: var(--blue-light);
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; font-family: var(--font-head);
  z-index: 1;
}
.step-body { padding: 0 0 32px; }
.step-body h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; margin-top: 8px; }
.step-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.how-right img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ── ROLES ── */
.roles { padding: 100px 0; background: var(--bg); }
.roles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.role-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px;
}
.role-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.role-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.role-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.role-list { display: flex; flex-direction: column; gap: 10px; }
.role-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check-ic { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ── STATS ── */
.stats { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-card {
  text-align: center; padding: 36px 20px;
  background: var(--blue); border-radius: var(--radius);
  color: #fff;
}
.stat-card:nth-child(2) { background: var(--navy); }
.stat-card:nth-child(3) { background: var(--blue-deep); }
.stat-card:nth-child(4) { background: var(--blue); }
.stat-num {
  font-family: var(--font-head); font-size: 48px; font-weight: 800;
  line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 14px; opacity: .8; }

/* ── CTA BANNER ── */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 55%, var(--blue) 100%);
  border-radius: var(--radius-xl); padding: 72px 64px;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
  top: -180px; right: -120px; pointer-events: none;
}
.cta-box::after {
  content: ''; position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 70%);
  bottom: -100px; left: -60px; pointer-events: none;
}
.cta-content h2 { font-size: clamp(24px,3vw,38px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.cta-content p { font-size: 16px; color: #cfdcf5; line-height: 1.65; margin-bottom: 32px; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-img img { width: 100%; border-radius: var(--radius-lg); opacity: .9; }

/* ── FOOTER ── */
#site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 280px; margin: 16px 0 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-socials a:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ── FLOATING CHAT FAB ── */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 8px 28px -6px rgba(37,87,214,.6);
  font-weight: 600; font-size: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fab-pulse 3s ease-in-out infinite;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px -8px rgba(37,87,214,.7); color: #fff; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 28px -6px rgba(37,87,214,.6); }
  50% { box-shadow: 0 8px 40px -4px rgba(37,87,214,.9); }
}

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 60%, var(--blue) 100%);
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: clamp(30px,4vw,52px); font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: #cfdcf5; max-width: 580px; margin: 0 auto; line-height: 1.65; }

/* ── FUNCIONALIDADES PAGE ── */
.feat-detail { padding: 80px 0; }
.feat-detail:nth-child(even) { background: var(--bg); }
.feat-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat-detail-grid.reverse { direction: rtl; }
.feat-detail-grid.reverse > * { direction: ltr; }
.feat-detail-content h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; color: var(--navy); margin: 16px 0 16px; line-height: 1.25; }
.feat-detail-content p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.feat-detail-list { display: flex; flex-direction: column; gap: 12px; }
.feat-detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.feat-visual {
  background: var(--blue-light); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  padding: 32px; overflow: hidden;
}
.feat-visual img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.feat-visual-icon { opacity: .25; }

/* ── DEMO PAGE ── */
.screenshots { padding: 80px 0; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.screenshot-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.screenshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.screenshot-thumb {
  background: var(--blue-light); aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-info { padding: 16px 18px; }
.screenshot-info h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.screenshot-info p { font-size: 13px; color: var(--muted); }

.videos-section { padding: 80px 0; background: var(--bg); }
.video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.video-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.video-thumb {
  background: var(--navy); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.play-btn {
  position: absolute; width: 60px; height: 60px;
  background: rgba(255,255,255,.95); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform var(--transition);
}
.video-thumb:hover .play-btn { transform: scale(1.1); }
.video-info { padding: 20px 22px; }
.video-info h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.video-info p { font-size: 14px; color: var(--muted); }
.video-modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85); align-items: center; justify-content: center; }
.video-modal.open { display: flex; }
.video-modal-inner { width: 90%; max-width: 900px; position: relative; }
.video-modal-inner iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); }
.video-modal-close {
  position: absolute; top: -48px; right: 0;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: background var(--transition);
}
.video-modal-close:hover { background: rgba(255,255,255,.3); }

/* ── INFO SECTION (demo page) ── */
.system-info { padding: 80px 0; }
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
}
.info-card .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.info-card h3 { font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CONTACT PAGE ── */
.contact-wrap { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.contact-item-text h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contact-item-text p { font-size: 14px; color: var(--muted); }

/* ── FORMS ── */
.form-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: 15px; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,87,214,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success, .form-error {
  display: none; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.form-success { background: var(--green-bg); color: var(--green); border: 1px solid #b2e4cf; }
.form-error { background: var(--red-bg); color: var(--red); border: 1px solid #f5c2b2; }

/* ── CHAT PAGE ── */
.chat-page-wrap { min-height: calc(100vh - 68px); display: flex; align-items: stretch; }
.chat-sidebar {
  width: 300px; flex-shrink: 0; background: var(--navy); color: #fff;
  padding: 40px 28px; display: flex; flex-direction: column; gap: 24px;
}
.chat-sidebar .brand { color: #fff; }
.chat-sidebar .brand-mark img { opacity: .9; }
.chat-sidebar-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.chat-sidebar-sub { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }
.chat-sidebar-features { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.chat-sidebar-feat { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.8); }
.chat-sidebar-feat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }

.chat-main { flex: 1; display: flex; flex-direction: column; background: #fff; }
.chat-topbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-danger-ghost { color: var(--red); border-color: var(--red-bg); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.chat-load-older { display: flex; justify-content: center; padding: 4px 0 14px; }

.chat-msg.msg-failed .msg-bubble { border: 1.5px dashed var(--red); }

.chat-topbar {
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.agent-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0;
}
.agent-info .agent-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.agent-info .agent-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.agent-info .agent-status::before { content:''; width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.chat-msg { display: flex; gap: 10px; max-width: 78%; }
.chat-msg.support { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; font-size: 12px; font-weight: 700;
}
.msg-bubble {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.55;
}
.chat-msg.support .msg-bubble { background: var(--bg); color: var(--ink); border-radius: 4px 16px 16px 16px; }
.chat-msg.user .msg-bubble { background: var(--blue); color: #fff; border-radius: 16px 4px 16px 16px; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.chat-msg.support .msg-time { text-align: left; }

.chat-input-bar {
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-end;
}
.chat-input-bar textarea {
  flex: 1; padding: 12px 16px; font-family: var(--font-sans); font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  resize: none; outline: none; max-height: 120px; min-height: 48px;
  transition: border-color var(--transition);
}
.chat-input-bar textarea:focus { border-color: var(--blue); }
.chat-send-btn, .chat-attach-btn {
  height: 44px; border-radius: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 18px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chat-send-btn svg, .chat-attach-btn svg { display: block; flex-shrink: 0; }
.chat-send-btn {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 16px -6px rgba(37,87,214,.6);
  transition: transform var(--transition), background var(--transition);
}
.chat-send-btn:hover { background: var(--blue-deep); transform: scale(1.03); }
.chat-attach-btn {
  background: var(--bg); color: var(--muted); border: 1.5px solid var(--line);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chat-attach-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.chat-attach-btn.uploading { animation: pulse-attach 1s ease-in-out infinite; pointer-events: none; opacity: .6; }
@keyframes pulse-attach { 0%,100% { opacity:.4 } 50% { opacity:1 } }

/* ── Chat attachments (images / files) ── */
.msg-attachment-img {
  max-width: 260px; border-radius: 12px; display: block; cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(15,37,68,.3);
}
.msg-attachment-file {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,.16); min-width: 200px;
}
.chat-msg.support .msg-attachment-file { background: #fff; border: 1px solid var(--line); }
.msg-attachment-file .file-ico {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.msg-attachment-file .file-meta { min-width: 0; }
.msg-attachment-file .file-name {
  font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.chat-msg.user .msg-attachment-file .file-name { color: #fff; }
.chat-msg.support .msg-attachment-file .file-name { color: var(--navy); }
.msg-attachment-file .file-size { font-size: 11.5px; opacity: .75; }

/* Auth panels inside chat page */
.auth-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-card .auth-sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 600; }

/* ── MODAL / LIGHTBOX ── */
.modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(10,18,32,.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-inner {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; padding: 40px;
  position: relative; animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; border: none; font-size: 16px;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-inner h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.modal-inner p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* ── TABS ── */
.tab-bar { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 40px; width: fit-content; }
.tab-btn { padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; transition: background var(--transition), color var(--transition); }
.tab-btn.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }

/* ── ACCORDION ── */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--navy); background: #fff; transition: background var(--transition); }
.accordion-head:hover { background: var(--bg); }
.accordion-icon { font-size: 18px; transition: transform .3s; color: var(--blue); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-body-inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion.open .accordion-body { max-height: 400px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 40px auto 0; }
  .hero .lead { max-width: 100%; }
  .feat-grid, .roles-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .cta-img { display: none; }
  .feat-detail-grid { grid-template-columns: 1fr; }
  .feat-detail-grid.reverse { direction: ltr; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: repeat(2,1fr); }
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .partners-grid {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav-wrap { padding: 10px 20px; flex-wrap: wrap; height: auto; row-gap: 8px; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 12px 0;
    box-shadow: var(--shadow);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 6px; flex-wrap: nowrap; }
  .nav-actions .btn,
  .nav-actions .chat-link,
  .nav-actions .logout-btn,
  .nav-actions .entrar {
    display: inline-flex !important;
    align-items: center;
    padding: 7px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .nav-actions .btn svg { width: 14px; height: 14px; }
  .feat-grid, .roles-grid, .strip-grid, .info-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cta-box { padding: 40px 28px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-right { display: none; }
  .chat-sidebar { display: none; }
  .chat-fab { bottom: 20px; right: 16px; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .screenshots-grid, .video-grid { grid-template-columns: 1fr; }
  .tab-bar { width: 100%; overflow-x: auto; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .partner-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    min-height: auto;
    gap: 16px;
  }
  .partner-item .partner-logo {
    width: 80px;
    height: 80px;
  }
  .partner-item .partner-name {
    font-size: 18px;
  }
  .partner-item .partner-desc {
    font-size: 13px;
  }
  .partner-item .partner-tag {
    align-self: center;
  }
  .about-content .about-highlights {
    grid-template-columns: 1fr;
  }
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 40px auto 0;
  }
  .module-card-img {
    height: 180px;
  }
  .module-card-overlay {
    padding: 16px 16px 14px;
  }
  .module-card-overlay h3 {
    font-size: 15px;
  }
  .module-card-overlay p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .auth-card { padding: 28px 20px; }
  .modal-inner { padding: 28px 20px; }
  .partner-item {
    padding: 20px 16px;
  }
  .partner-item .partner-logo {
    width: 70px;
    height: 70px;
  }
  .partner-item .partner-name {
    font-size: 16px;
  }
  .partner-item .partner-desc {
    font-size: 12px;
  }
  .module-card-img {
    height: 160px;
  }
  .module-card-overlay {
    padding: 14px 14px 12px;
  }
  .module-card-overlay h3 {
    font-size: 14px;
  }
  .module-card-overlay p {
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════════════════
   LEGAL PAGES (privacidade, termos, rgpd, cookies)
══════════════════════════════════════════════════════ */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-intro {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-intro p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}
.legal-intro p + p { margin-top: 12px; }

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 0;
}

.legal-section h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}

.legal-section p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-section ul li {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}
.legal-section a:hover { text-decoration-color: var(--blue); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}
.legal-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:nth-child(even) td { background: var(--bg); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code {
  background: var(--blue-light);
  color: var(--blue-deep);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
}

@media (max-width: 640px) {
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 9px 12px; }
  .legal-section h2 { font-size: 19px; }
  .legal-intro { padding: 18px 20px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   ADMIN INBOX — WhatsApp-style two-pane conversation manager (admin.php)
───────────────────────────────────────────────────────────────────────── */
body.page-admin { background: #eef2f7; }
.admin-shell { height: 100vh; display: flex; flex-direction: column; }
.admin-wrap { flex: 1; display: flex; min-height: 0; }

/* Top nav (tabs + account) */
.admin-topnav {
  display: flex; align-items: center; gap: 24px; padding: 10px 20px;
  background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.admin-tab-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.admin-tab-btn {
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; border: none; background: none; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-tab-btn:hover { background: var(--bg); color: var(--navy); }
.admin-tab-btn.active { background: var(--blue-light); color: var(--blue); }
.admin-tab-badge {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; padding: 1px 7px; line-height: 1.5;
}

/* Panels (only one visible at a time) */
.admin-panel { display: none; flex: 1; min-height: 0; overflow: auto; }
.admin-panel.active { display: flex; flex-direction: column; }
#panel-conversas.admin-panel.active { display: flex; }
.admin-panel-inner { padding: 32px 36px; max-width: 1100px; width: 100%; margin: 0 auto; }
.admin-panel-title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 24px; margin-bottom: 6px; }
.admin-panel-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.admin-section-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 14px; }

/* Tables */
.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
  white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.admin-empty, .admin-table .admin-empty { text-align: center; color: var(--muted); }

/* Badges */
.admin-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.admin-badge-green { background: var(--green-bg); color: var(--green); }
.admin-badge-red { background: var(--red-bg); color: var(--red); }
.admin-badge-amber { background: #fdf2df; color: #a86a10; }
.admin-badge-blue { background: var(--blue-light); color: var(--blue); }
.admin-muted { color: var(--muted); font-size: 13px; }

/* Room list "assigned" tag */
.room-assigned { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.room-unassigned { color: var(--red); font-weight: 600; }

/* Denúncias / trocas cards */
.admin-actions-list { display: flex; flex-direction: column; gap: 14px; }
.admin-action-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.admin-action-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.admin-action-body { font-size: 14px; color: var(--ink); line-height: 1.7; }
.admin-action-reason { margin-top: 6px; background: var(--bg); padding: 10px 12px; border-radius: 8px; }
.admin-action-outcome { margin-top: 10px; font-size: 13.5px; color: var(--navy); }
.admin-action-actions { display: flex; gap: 10px; margin-top: 14px; }
.admin-radio-row { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--ink); }
.admin-radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ── Conversation list (left) ── */
.admin-rooms {
  width: 360px; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.admin-rooms-head {
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.admin-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-me-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.admin-me-name { font-weight: 700; font-size: 14.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.admin-me-role { font-size: 12px; color: var(--muted); }
.admin-logout-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.admin-logout-btn:hover { background: var(--red-bg); color: var(--red); }

/* Sidebar logout button (left vertical) - clearer filled design */
.chat-sidebar .sidebar-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #c96342; /* same hue as header Sair */
  color: #fff;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.chat-sidebar .sidebar-logout-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.chat-sidebar .sidebar-logout-btn:hover { background: #a84b31; transform: translateY(-1px); }

.admin-search { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-search input {
  width: 100%; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; outline: none; background: var(--bg); transition: border-color var(--transition);
}
.admin-search input:focus { border-color: var(--blue); background: #fff; }

.admin-room-list { flex: 1; overflow-y: auto; }
.admin-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

.room-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px;
  cursor: pointer; border-bottom: 1px solid var(--line); transition: background var(--transition);
  position: relative;
}
.room-item:hover { background: var(--bg); }
.room-item.active { background: var(--blue-light); }
.room-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.room-body { min-width: 0; flex: 1; }
.room-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.room-name { font-weight: 700; font-size: 14.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-time { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.room-preview-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 3px; }
.room-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item.has-unread .room-preview { color: var(--ink); font-weight: 600; }
.room-badge {
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 6px; flex-shrink: 0;
}
.room-company { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ── Active conversation (right) ── */
.admin-conversation { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f7fafd; }
.admin-conv-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--muted);
}
.admin-conv-empty svg { opacity: .3; }
.admin-conv-active { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.admin-conv-topbar { background: #fff; }
.admin-conv-topbar .agent-avatar { background: var(--blue); color: #fff; }

.room-search-hidden { display: none !important; }

@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; height: auto; min-height: 100vh; }
  .admin-rooms { width: 100%; max-height: 46vh; }
  .admin-conversation { min-height: 54vh; }
}
@media (max-width: 900px) {
  .admin-wrap.conv-open .admin-rooms { display: none; }
  .admin-wrap .admin-conversation { display: none; }
  .admin-wrap.conv-open .admin-conversation { display: flex; }
  .admin-wrap:not(.conv-open) .admin-conversation { display: none; }
}
.admin-back-btn { display: none; }
@media (max-width: 900px) {
  .admin-back-btn {
    display: flex; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg);
    align-items: center; justify-content: center; margin-right: 4px; cursor: pointer; color: var(--navy); flex-shrink: 0;
  }
}
/* ===== CORREÇÃO: MENU MOBILE COM CONTRASTE ===== */
@media (max-width: 768px) {
  /* Quando o menu mobile está aberto, fundo escuro e texto branco */
  .nav-links.mobile-open {
    background: var(--blue-deep) !important; /* #173d94 - mesma cor do header */
    border-bottom: 2px solid rgba(255,255,255,0.1);
  }

  .nav-links.mobile-open a {
    color: #ffffff !important;
    opacity: 0.85;
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a.active {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
  }

  .nav-links.mobile-open a.active::after {
    background: #ffffff;
  }

  /* Mantém os botões visíveis no mobile */
  .nav-actions .btn-ghost {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25) !important;
  }

  .nav-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.4) !important;
  }

  .nav-actions .logout-btn {
    color: #ff8a6b !important;
    border-color: #ff8a6b !important;
  }

  .nav-actions .logout-btn:hover {
    background: #ff8a6b;
    color: #ffffff !important;
  }

  .nav-actions .chat-link {
    color: #7ab7ff !important;
    border-color: #7ab7ff !important;
  }

  .nav-actions .chat-link:hover {
    background: #7ab7ff;
    color: #ffffff !important;
  }

  .nav-actions .entrar {
    background: var(--red);
    color: #ffffff !important;
  }
}