/* === VARIÁVEIS === */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --accent: #0EA5E9;
  --bg: #FAFAF9;
  --bg-alt: #EFF6FF;
  --text: #1C1917;
  --text-muted: #78716C;
  --border: #E7E5E4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.12);
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

/* === UTILITÁRIOS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: none;
  padding: 0;
  border-radius: 0;
}
.section-badge::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #f0f4ff;
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* === FADE-IN (ativado pela Task 13) ===
   O elemento só começa escondido quando js/animacoes.js JÁ CONFIRMOU que vai
   revelá-lo, marcando <html class="anima-ligado">.

   Antes o `opacity: 0` era incondicional, e isso é uma bomba: bastava o script
   não carregar (404, erro de JS numa linha acima, bloqueio de CSP) para a
   página inteira ficar em branco, conteúdo presente no HTML, invisível na
   tela. Página em branco é muito pior do que página sem animação. */
.anima-ligado .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anima-ligado .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.95);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.navbar__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}

.navbar__logo-dot {
  color: var(--primary);
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--text);
}

.navbar__actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.2s;
}

.navbar__hamburger:hover {
  background: var(--bg-alt);
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile a {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.navbar__mobile a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

@media (min-width: 1024px) {
  .navbar__links,
  .navbar__actions {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }
}

/* === NAVBAR DROPDOWN === */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: color 0.2s;
}

.navbar__dropdown-trigger:hover {
  color: var(--text);
}

.navbar__dropdown-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.navbar__dropdown.open .navbar__dropdown-arrow {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 260px;
  z-index: 200;
}

.navbar__dropdown.open .navbar__dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.18s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.15s;
  font-size: 14px;
}

.navbar__dropdown-item:hover {
  background: var(--bg-alt);
}

.navbar__dropdown-item i {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.navbar__dropdown-item strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}

.navbar__dropdown-item small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

/* Mobile dropdown */
.navbar__mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.navbar__mobile-dropdown-trigger:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.navbar__mobile-dropdown-trigger[aria-expanded="true"] .navbar__dropdown-arrow {
  transform: rotate(180deg);
}

.navbar__mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  gap: 2px;
  margin-bottom: 4px;
}

.navbar__mobile-dropdown-menu.open {
  display: flex;
}

.navbar__mobile-dropdown-menu a {
  font-size: 14px !important;
  color: var(--text-muted);
}

/* === HERO === */
.hero {
  padding: 72px 0 60px;
  background: var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__seals {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.seal-dot {
  color: var(--border);
}

/* Mockup */
.hero__mockup {
  display: flex;
  justify-content: center;
}

.mockup-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #F4F4F4;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.mockup-bar__title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.mockup-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F9FAFB;
}

.mockup-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.mockup-card--alert {
  border-color: #FEE2E2;
}

.mockup-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mockup-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mockup-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.mockup-icon--alert {
  color: #EF4444;
}

.mockup-card__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.mockup-card__sub {
  font-size: 11px;
  color: #22C55E;
  font-weight: 600;
  margin-bottom: 10px;
}

.mockup-chart {
  width: 100%;
  height: 36px;
}

.mockup-agenda {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.agenda-time {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 36px;
}

.agenda-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.agenda-badge {
  background: #DCFCE7;
  color: #16A34A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.agenda-badge--pending {
  background: #FEF3C7;
  color: #D97706;
}

.mockup-stock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text);
}

.stock-badge {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* === PROVA SOCIAL === */
.social-proof {
  background: var(--bg-alt);
  padding: 40px 0;
  text-align: center;
}

.social-proof__text {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.social-proof__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.social-proof__logos span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.3px;
}

/* === MÓDULOS === */
.modules {
  background: var(--bg);
}

.modules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Painéis: ocultos por padrão, visíveis com .active */
.modules-panel {
  display: none;
}

.modules-panel.active {
  display: block;
  animation: panelFadeIn 0.35s ease forwards;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.module-card {
  background: #fff;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.module-card i {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.module-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === FUNCIONALIDADES === */
.features {
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === COMO FUNCIONA === */
.how-it-works {
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 72px;
  font-weight: 800;
  color: var(--bg-alt);
  position: absolute;
  top: -8px;
  right: 16px;
  line-height: 1;
  user-select: none;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-icon i {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Linha pontilhada conectando os passos */
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 58px;
    left: calc(33.33% + 14px);
    right: calc(33.33% + 14px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--primary) 0px,
      var(--primary) 6px,
      transparent 6px,
      transparent 14px
    );
  }
}

/* === PREÇOS === */
.pricing {
  background: var(--bg-alt);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.toggle-switch.on {
  background: var(--primary);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.on .toggle-thumb {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}

.plan-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.plan-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-value {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.plan-features li i {
  width: 18px;
  height: 18px;
  color: #22C55E;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === DEPOIMENTOS === */
.testimonials {
  background: var(--bg-alt);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 72px;
  font-weight: 800;
  color: var(--bg-alt);
  line-height: 0.8;
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

.testimonial-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font);
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === FAQ === */
.faq {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question[aria-expanded="true"] {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === CTA FINAL === */
.cta-final {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-final__inner {
  max-width: 640px;
}

.cta-final__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-final__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-final__seals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  background: #1C1917;
  color: #A8A29E;
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 14px;
  color: #78716C;
  line-height: 1.6;
  max-width: 220px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: #A8A29E;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid #292524;
  padding: 20px 0;
  font-size: 13px;
  color: #57534E;
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .footer__links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === RESPONSIVIDADE FINAL === */
@media (max-width: 639px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .mockup-window {
    max-width: 100%;
  }

  .tab-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .cta-final__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-final__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .testimonials {
    padding: 56px 0;
  }
}

/* ============================================================
   TEMA ESCURO, variáveis usadas pela página de login
   ============================================================ */
:root {
  --surface:     #ffffff;
  --surface-alt: #F8F8F7;
}

[data-theme="dark"] {
  --primary:      #3B82F6;
  --primary-dark: #2563EB;
  --bg:           #0F1115;
  --bg-alt:       #1A1F2B;
  --text:         #F5F5F4;
  --text-muted:   #A1A1AA;
  --border:       #2A2E37;
  --surface:      #161B26;
  --surface-alt:  #1E2433;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 40px rgba(0,0,0,0.6);
}

/* ============================================================
   TELA DE LOGIN, compartilhada por todos os sistemas Nuclyoo
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); position: relative; padding: 20px;
  overflow: hidden;
}
/* Detalhe decorativo, círculos azuis suaves */
.login-page::before {
  content: '';
  position: fixed; top: -180px; right: -180px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.10) 0%, transparent 70%);
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: fixed; bottom: -140px; left: -140px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Botão de tema (canto) */
.login-theme-btn {
  position: fixed; top: 16px; right: 16px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s; box-shadow: var(--shadow);
}
.login-theme-btn:hover { color: var(--text); background: var(--bg-alt); }
.login-theme-btn i { width: 16px; height: 16px; display: flex; }

/* Cartão central */
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 40px 36px 36px; position: relative; z-index: 1;
}

/* Logo */
.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px; justify-content: center;
}
.login-logo__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.login-logo__icon i { width: 20px; height: 20px; display: flex; }
.login-logo__text   { line-height: 1.2; }
.login-logo__name   { font-size: 16px; font-weight: 700; color: var(--text); }
.login-logo__sub    { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: .3px; }

/* Títulos */
.login-title { font-size: 22px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 4px; }
.login-sub   { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 28px; line-height: 1.5; }

/* Campos com ícone */
.login-field        { margin-bottom: 16px; }
.login-field label  { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.login-input-wrap   { position: relative; }
.login-input-wrap .field-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); width: 16px; height: 16px; pointer-events: none; display: flex;
}
.login-input-wrap input {
  width: 100%; padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.login-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.login-input-wrap input.input--error { border-color: #EF4444; }
.login-input-wrap input.input--error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.login-input-wrap input::placeholder { color: var(--text-muted); }

/* Botão mostrar/ocultar senha */
.toggle-senha {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; padding: 4px;
  display: flex; align-items: center; background: none; transition: color .12s;
}
.toggle-senha:hover { color: var(--text); }
.toggle-senha i { width: 16px; height: 16px; display: flex; }

/* Erro inline */
.field-error {
  font-size: 12px; color: #EF4444; margin-top: 5px;
  display: flex; align-items: center; gap: 4px; min-height: 18px;
}
.field-error i { width: 12px; height: 12px; flex-shrink: 0; }

/* Linha lembrar + esqueci */
.login-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 20px; gap: 8px;
}
.login-checkbox {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-muted); cursor: pointer; user-select: none;
}
.login-checkbox input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer;
}
.login-forgot {
  font-size: 13px; color: var(--primary); font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity .12s;
}
.login-forgot:hover { opacity: .75; }

/* Alerta de erro geral */
.login-alert {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13px; color: #DC2626; display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.login-alert i { width: 16px; height: 16px; flex-shrink: 0; }

/* Botão principal */
.btn-login {
  width: 100%; padding: 12px; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, opacity .15s; margin-top: 4px;
}
.btn-login:hover:not(:disabled) { background: var(--primary-dark); }
.btn-login:disabled { opacity: .65; cursor: not-allowed; }
.btn-login .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: login-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

/* Voltar */
.login-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  margin-bottom: 20px; transition: color .12s;
}
.login-back:hover { color: var(--text); }
.login-back i { width: 14px; height: 14px; display: flex; }

/* Confirmação de recuperação */
.recuperacao-ok {
  background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--radius-sm); padding: 14px; text-align: center;
  color: #15803D; font-size: 14px; line-height: 1.6; display: none;
}
.recuperacao-ok i { display: block; width: 28px; height: 28px; margin: 0 auto 8px; }
.recuperacao-ok strong { display: block; font-size: 15px; margin-bottom: 6px; }
.recuperacao-ok p { margin: 0 0 8px; }
.recuperacao-ok p:last-of-type { margin-bottom: 0; }
.recuperacao-ok b { font-weight: 600; word-break: break-word; }
.recuperacao-ok-dica { font-size: 13px; color: var(--text-muted); }
/* O endereço do remetente não quebra: partido no hífen vira "no-" numa linha e
   "reply@nuclyoo.com" na outra, e quem procura na caixa de spam não reconhece. */
.recuperacao-ok-dica b { white-space: nowrap; }
.recuperacao-ok-acao {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--primary); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}

/* Força da senha
   A barra é decoração do número: quem lê com leitor de tela recebe a mesma
   informação pelo texto ao lado ("Faltam 2 requisitos") e pela lista de regras,
   por isso ela não precisa de rótulo próprio. */
.senha-forca {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.senha-barra {
  flex: 1; height: 5px; border-radius: 999px;
  background: var(--border); overflow: hidden;
}
/* scaleX em vez de width: animar largura obriga o navegador a recalcular
   layout a cada tecla digitada. transform roda na composição e não mexe no
   fluxo da página. */
.senha-barra span {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: #DC2626; transform: scaleX(0); transform-origin: left center;
  transition: transform .18s ease, background-color .18s ease;
}
.senha-nivel { font-size: 12px; font-weight: 600; color: #DC2626; white-space: nowrap; }

.senha-forca[data-nivel="media"] .senha-barra span { background: #D97706; }
.senha-forca[data-nivel="media"] .senha-nivel      { color: #D97706; }
.senha-forca[data-nivel="forte"] .senha-barra span { background: #16A34A; }
.senha-forca[data-nivel="forte"] .senha-nivel      { color: #16A34A; }

/* Lista de requisitos */
.senha-regras {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; gap: 6px;
}
.senha-regras li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 1.4; color: var(--text-muted);
  transition: color .12s;
}
.senha-regras li i { width: 15px; height: 15px; flex: 0 0 15px; display: flex; opacity: .5; }
.senha-regras li.ok      { color: #15803D; }
.senha-regras li.ok i    { opacity: 1; }

/* Responsivo */
@media (max-width: 480px) {
  .login-card  { padding: 28px 20px 24px; }
  .login-title { font-size: 20px; }
}

/* ── Checkbox custom (Nuclyooo), check animado, cor primária ───────────── */
input[type="checkbox"]:not(.toggle-switch) {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 5px;
  background: var(--card, #fff);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"]:not(.toggle-switch):hover:not(:disabled) {
  border-color: var(--primary);
}
input[type="checkbox"]:not(.toggle-switch):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent);
}
input[type="checkbox"]:not(.toggle-switch):checked {
  background: var(--primary);
  border-color: var(--primary);
}
input[type="checkbox"]:not(.toggle-switch):checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg) scale(0);
  animation: cbCheckPop .18s ease forwards;
}
@keyframes cbCheckPop {
  to { transform: translate(-50%, -55%) rotate(45deg) scale(1); }
}
input[type="checkbox"]:not(.toggle-switch):disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ── Mega-menu "Soluções" (categorias à esquerda + grade à direita) ───────── */
.navbar__dropdown-menu.mega__menu {
  /* Largo demais para ancorar no botão (sairia da tela): fixa e centraliza na viewport. */
  position: fixed;
  top: 78px;            /* altura da navbar (64px) + respiro */
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100vw - 40px));
  min-width: 0;
  padding: 0;
  /* NÃO definir `display` aqui: quando fechado precisa herdar o `display:none` da base.
     O grid só é aplicado quando aberto (regra abaixo), senão o menu fica sempre visível. */
  grid-template-columns: 268px 1fr;
  overflow: hidden;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
/* Aberto: vence o `display:block` do dropdown padrão e restaura o grid de 2 colunas. */
.navbar__dropdown.open .navbar__dropdown-menu.mega__menu { display: grid; }
.mega__cats { background: #f8fafc; border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mega__cat {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 14px; border: 0; border-radius: 12px; background: #eef2f7;
  color: var(--text); font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; cursor: pointer; text-align: left;
  transition: background .18s ease, color .18s ease;
}
.mega__cat span { flex: 1; }
.mega__cat i { width: 18px; height: 18px; flex-shrink: 0; }
.mega__cat .mega__cat-arrow { width: 16px; height: 16px; opacity: .5; }
.mega__cat:hover { background: #e2e8f0; }
.mega__cat.is-active { background: var(--primary); color: #fff; }
.mega__cat.is-active i { color: #fff; }
.mega__catrodape { margin-top: auto; padding-top: 10px; }
.mega__panels { padding: 26px 28px; }
.mega__panel { display: none; }
/* Animação PRÓPRIA (só fade + leve subida). NÃO usar dropdownFadeIn: aquela tem
   translateX(-50%) pra centralizar o MENU inteiro, e no painel isso o jogava pro lado. */
.mega__panel.is-active { display: block; animation: megaPanelIn .18s ease; }
@keyframes megaPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.mega__head i { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.mega__head h4 { margin: 0 0 2px; font-size: 22px; font-weight: 800; color: var(--text); }
.mega__head p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
.mega__grid a { display: block; }
.mega__grid strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.mega__grid a:hover strong { color: var(--primary); }
.mega__grid span { display: block; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px;
  font-size: 14px; font-weight: 700; color: var(--primary); }
.mega__all i { width: 16px; height: 16px; }
@media (max-width: 1024px) {
  .navbar__dropdown-menu.mega__menu { grid-template-columns: 1fr; }
  .mega__cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .mega__cat { white-space: nowrap; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Logo em imagem (navbar clara / footer escuro) ───────────────────────── */
.navbar__logo img { height: 42px; width: auto; display: block; }
.footer__logo img { height: 38px; width: auto; display: block; }
/* No tema escuro a logo de texto escuro sumiria: mostra a versão branca.
   Duas imagens alternadas por display (compatível com todos os navegadores). */
.login-logo .logo-dark { display: none; }
:root[data-theme="dark"] .login-logo .logo-light { display: none; }
:root[data-theme="dark"] .login-logo .logo-dark { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOVIMENTO
   Adicionado junto com js/animacoes.js. A ordem aqui não é acidental: o
   respeito a prefers-reduced-motion vem PRIMEIRO, porque tudo abaixo depende
   dele para ser aceitável.
   ═══════════════════════════════════════════════════════════════════════════ */

/* O site já animava (fade-in, hover, mega menu) sem nunca consultar esta
   preferência. Para quem tem distúrbio vestibular, elemento deslizando na tela
   provoca enjoo de verdade, não é questão de gosto. Aqui o conteúdo continua
   aparecendo; só para de se mexer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* Entrada mais curta e com desaceleração no fim. O ease padrão freia tarde e
   o elemento parece chegar arrastando; 20px de deslocamento em 0,5s é lento o
   bastante para a pessoa perceber que esperou. */
.fade-in {
  transform: translateY(14px);
  transition: opacity .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--atraso, 0ms);
}

/* Cards sobem de leve ao passar o mouse. Um card que não reage ao ponteiro
   parece imagem; o deslocamento diz "isto aqui é clicável". 3px é o teto: mais
   que isso e a grade inteira parece tremer quando o mouse a atravessa. */
.module-card, .feature-card, .step-card, .testimonial-card {
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .2s ease;
  will-change: transform;
}
.module-card:hover, .feature-card:hover, .step-card:hover, .testimonial-card:hover {
  transform: translateY(-3px);
}

/* ── Brilho que atravessa o botão principal ──────────────────────────────────
   Ideia vista no catálogo do 21st.dev ("slide glow button"), reescrita em CSS
   puro: os componentes de lá são React + Tailwind e este site não é nenhum
   dos dois.

   Só no CTA principal. O efeito funciona porque é raro: aplicado a todo botão,
   vira ruído e deixa de apontar para onde a pessoa deve clicar. */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* O "border beam" (anel de luz girando no plano em destaque) foi REMOVIDO.
   Em vez de um risco fino contornando a borda, saiu um cone azul atravessando o
   card por cima do texto: o `isolation: isolate` cria contexto de empilhamento,
   entao o `z-index: -1` do pseudo-elemento ficava preso DENTRO do card em vez de
   ir para tras dele. O efeito correto exige mascarar so a faixa da borda
   (mask-composite), e nao vale a complexidade: o card ja se destaca pela borda
   azul, pela sombra e pelo selo "Mais escolhido". */
@media (prefers-reduced-motion: reduce) {
  .plan-card--featured::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT DE ATENDIMENTO

   z-index alto e canto inferior direito, a posição que todo mundo já procura.
   Fica ACIMA do banner de cookies só depois que o banner sai: enquanto o
   consentimento está na tela, ele é o que precisa ser respondido primeiro.
   ═══════════════════════════════════════════════════════════════════════════ */
.nchat { position: fixed; right: 20px; bottom: 20px; z-index: 900;
         display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
         font-family: inherit; }

/* O atributo `hidden` vale `display: none` pela folha padrão do navegador, que
   perde para QUALQUER regra de classe com display. Como o painel, o convite e o
   selo são `display: flex`, marcar hidden não escondia nada: o chat nascia
   aberto e o botão de fechar não fechava. Uma linha resolve os quatro casos, e
   ela precisa do !important justamente para ganhar dessas regras. */
.nchat [hidden], .nchat__painel[hidden], .nchat__convite[hidden] { display: none !important; }

.nchat__bolha {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: #2563EB; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .6);
  transition: transform .18s ease, background .18s ease; position: relative;
}
.nchat__bolha:hover { background: #1D4ED8; transform: translateY(-2px); }
.nchat__bolha:focus-visible { outline: 3px solid #93C5FD; outline-offset: 3px; }

/* Contador de resposta nova. Número, não bolinha: "2" diz mais que um ponto. */
.nchat__selo {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.nchat__convite { display: flex; align-items: center; gap: 8px; }
.nchat__convite-txt {
  background: #fff; color: #1F2937; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .3);
}
.nchat__convite-x {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #6B7280; font-size: 13px; line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .3);
}

.nchat__painel {
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .35);
}
.nchat__topo {
  background: #2563EB; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-size: 15px;
}
.nchat__marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* O selo é quadrado e azul, do mesmo azul do cabeçalho: sem o quadrinho
   branco por trás, ele sumiria dentro da barra. */
.nchat__logo {
  width: 26px; height: 26px; display: block; border-radius: 7px;
  background: #fff; padding: 2px; box-sizing: border-box; object-fit: contain;
}

/* Saudação de boas-vindas, no estilo de mensagem do atendimento. */
.nchat__saudacao { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.nchat__avatar { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; object-fit: contain; }
.nchat__saudacao-lado { min-width: 0; }
.nchat__saudacao-txt {
  background: #F3F4F6; border-radius: 13px; border-top-left-radius: 4px;
  padding: 10px 13px; font-size: 14px; line-height: 1.45; color: #111827;
  display: flex; flex-direction: column; gap: 2px;
}

/* Data e hora. Cinza e pequena de propósito: é referência, não conteúdo, e
   compete com a mensagem se tiver o mesmo peso. */
.nchat__hora { font-size: 11px; color: #9CA3AF; margin-top: 4px; }
.nchat__pilha { display: flex; flex-direction: column; max-width: 82%; }
.nchat__m--visitante .nchat__pilha { align-items: flex-end; }
.nchat__x { background: none; border: 0; color: #fff; font-size: 15px; cursor: pointer; padding: 4px; }

.nchat__corpo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.nchat__intro { font-size: 13.5px; color: #4B5563; margin: 0 0 4px; line-height: 1.5; }
.nchat__rot { font-size: 11.5px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: .4px; }

.nchat__assuntos { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.nchat__assunto {
  text-align: left; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid #E5E7EB; background: #fff; font-size: 13.5px; color: #374151;
}
.nchat__assunto:hover { border-color: #93C5FD; }
.nchat__assunto--on { border-color: #2563EB; background: #EFF6FF; color: #1D4ED8; font-weight: 600; }

.nchat__campo {
  width: 100%; padding: 9px 11px; border: 1px solid #E5E7EB; border-radius: 9px;
  font-size: 14px; font-family: inherit; color: #111827; background: #fff;
}
.nchat__campo:focus { outline: none; border-color: #2563EB; }
.nchat__texto { resize: vertical; min-height: 68px; }
.nchat__erro { color: #B91C1C; font-size: 13px; margin: 2px 0 0; }

.nchat__rodape { padding: 12px 14px; border-top: 1px solid #F3F4F6; display: flex; gap: 8px; align-items: flex-end; }
.nchat__enviar {
  width: 100%; padding: 11px; border: 0; border-radius: 9px; cursor: pointer;
  background: #2563EB; color: #fff; font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.nchat__enviar:disabled { opacity: .6; cursor: default; }
.nchat__resposta { flex: 1; resize: none; }
.nchat__mandar {
  width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 9px; cursor: pointer;
  background: #2563EB; color: #fff; font-size: 15px;
}

.nchat__aviso { font-size: 12.5px; color: #6B7280; background: #F9FAFB;
                padding: 8px 11px; border-radius: 8px; line-height: 1.45; }
.nchat__aviso--vivo { background: #ECFDF5; color: #047857; }
.nchat__aviso--fim  { background: #FEF2F2; color: #B91C1C; }

.nchat__msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.nchat__m { display: flex; }
.nchat__m--visitante { justify-content: flex-end; }
.nchat__bolhaMsg {
  padding: 9px 12px; border-radius: 13px; font-size: 14px; line-height: 1.45;
  /* A mensagem vem de texto livre: sem estas duas, uma palavra gigante sem
     espaço estoura a largura do painel e cria rolagem lateral. */
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.nchat__m--visitante .nchat__bolhaMsg { background: #2563EB; color: #fff; border-bottom-right-radius: 4px; }
.nchat__m--agente    .nchat__bolhaMsg { background: #F3F4F6; color: #111827; border-bottom-left-radius: 4px; }
.nchat__m--sistema   { justify-content: center; }
.nchat__m--sistema .nchat__bolhaMsg { background: none; color: #9CA3AF; font-size: 12.5px; font-style: italic; }

/* No celular o painel ocupa a tela: 360px numa tela de 360px deixaria margem
   de 1px de cada lado e o teclado cobriria metade da conversa. */
@media (max-width: 480px) {
  .nchat { right: 12px; bottom: 12px; left: 12px; align-items: flex-end; }
  .nchat__painel { width: 100%; height: calc(100vh - 110px); }
}

@media (prefers-reduced-motion: reduce) {
  .nchat__bolha { transition: none; }
  .nchat__bolha:hover { transform: none; }
}

/* Link que na verdade é botão: precisa desabilitar durante a contagem do
   "Reenviar em Ns", e só <button> tem :disabled de verdade. Um <span> com
   pointer-events:none ficaria clicável pelo teclado. */
.login-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.login-linkbtn:hover:not(:disabled) { text-decoration: underline; }
.login-linkbtn:disabled { color: var(--text-muted); cursor: default; }
