:root {
  --primary: #1F5F63;
  --primary-dark: #17484B;
  --positive: #00C853;
  --alert: #D32F2F;
  --bg-light: #F5F5F5;
  --text-dark: #2A2A2A;
  --text-muted: #777777;
  --white: #FFFFFF;
  
  --font-title: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow: hidden; /* Prevent default scrolling, handled by slides */
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  font-weight: 400;
}

/* UI Layout */
.app-header {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-indicator {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
}

.btn-download {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Presentation Container */
.presentation-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 60px 80px;
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.slide::-webkit-scrollbar {
  width: 8px;
}

.slide::-webkit-scrollbar-track {
  background: transparent;
}

.slide::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.4);
}

/* Navigation Footer */
.app-footer {
  height: 60px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
}

.btn-nav {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-nav:hover:not(:disabled) {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.thumb {
  width: 24px;
  height: 16px;
  background: #E0E0E0;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: transparent;
}

.thumb:hover {
  background: #BDBDBD;
  color: var(--text-dark);
}

.thumb.active {
  background: var(--primary);
  color: var(--white);
  width: 32px;
}

/* Slide Specific Styles */

/* Header helper */
.slide-header {
  margin-bottom: 40px;
}

.slide-title {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 10px;
}

.slide-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Slide 1: Capa */
.slide-capa {
  padding: 0;
  display: flex;
  flex-direction: row;
}

.capa-content {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
}

.capa-logo {
  font-size: 96px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.capa-tagline {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
  opacity: 0.9;
}

.capa-support {
  font-size: 18px;
  opacity: 0.7;
  max-width: 500px;
}

.capa-image {
  flex: 1;
  background-image: url('images/capa.jpg');
  background-size: cover;
  background-position: center;
}

/* Slide 2: Problema */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  flex: 1;
}

.card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card i {
  font-size: 32px;
  color: var(--primary);
}

.card h3 {
  font-size: 20px;
  color: var(--text-dark);
}

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

.slide-footer {
  margin-top: 30px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

/* Slide 3: Solucao */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pillar i {
  font-size: 48px;
  color: var(--primary);
  background: var(--bg-light);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Slide 4: Cliente Celular */
.slide-split {
  display: flex;
  gap: 60px;
  align-items: center;
  flex: 1;
}

.split-content {
  flex: 1.5;
}

.split-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E0E0E0;
  z-index: 1;
}

.journey-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 18%;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.journey-step i {
  font-size: 20px;
}

/* Slide 5: Pulso */
.lists-side {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.list-block {
  flex: 1;
}

.list-block h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.list-block ul {
  list-style: none;
}

.list-block li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.list-block li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--positive);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Slide 6: Fila + Chat */
.banner-top {
  height: 30%;
  background-image: url('images/slide-fila-chat-presentes.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 30px;
}

.features-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Slide 7: Resultados (Critico) */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  flex: 1;
  align-items: center;
}

.kpi-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kpi-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
}

.kpi-col h3 i {
  color: var(--positive);
}

.kpi-item {
  display: flex;
  flex-direction: column;
}

.kpi-number {
  font-size: 64px;
  font-weight: 800;
  color: var(--positive);
  font-family: var(--font-title);
  line-height: 1;
}

.kpi-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-top: 5px;
}

/* Slide 8: Delivery (Critico) */
.comparison-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
}

.comp-card {
  flex: 1;
  max-width: 400px;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}

.comp-card.negative {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.comp-card.positive {
  background: var(--white);
  color: var(--text-dark);
}

.comp-card i {
  font-size: 48px;
}

.comp-card.negative i { color: var(--alert); }
.comp-card.positive i { color: var(--positive); }

.comp-value {
  font-size: 32px;
  font-weight: 700;
}

.comp-arrow {
  font-size: 48px;
  color: var(--text-muted);
}

/* Slide 9: Equipe */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: var(--primary-dark);
  font-weight: 600;
  color: var(--white);
}

td i {
  font-size: 20px;
  color: var(--primary);
}

/* Slide 10: Tecnologia */
.tech-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tech-item i {
  font-size: 32px;
  color: var(--primary);
  min-width: 50px;
  text-align: center;
}

.tech-item strong {
  color: var(--text-dark);
  font-size: 17px;
}

.tech-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Slide 11: CTA (Critico) */
.slide-cta {
  background: linear-gradient(rgba(23, 72, 75, 0.8), rgba(23, 72, 75, 0.8)), url('images/slide-cta-salao.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-cta .slide-title {
  color: var(--white);
}

.timeline {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
}

.timeline-node {
  position: relative;
  text-align: center;
  width: 15%;
}

.node-num {
  width: 40px;
  height: 40px;
  background: var(--positive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px;
}

.cta-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-quote {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--positive);
}

.btn-cta {
  background: var(--positive);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,200,83,0.3);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  font-size: 14px;
}

.contact-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slide 12: FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--positive);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
}

.faq-item h4 {
  color: var(--positive);
  margin-bottom: 8px;
  font-size: 17px;
}

.faq-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .slide { padding: 40px; }
  .grid-2x2, .features-3, .kpis, .faq-grid { grid-template-columns: 1fr; }
  .slide-split { flex-direction: column; }
  .timeline { flex-wrap: wrap; }
  .timeline-node { width: 30%; margin-bottom: 20px; }
}

/* Print Styles — slide 16:9 com margem zero */
@page {
  size: 1280px 720px;
  margin: 0;
}

@media print {
  html, body {
    overflow: visible !important;
    height: auto !important;
    width: 1280px !important;
    background: var(--primary);
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-header, .app-footer {
    display: none !important;
  }

  .presentation-container {
    overflow: visible !important;
    height: auto !important;
  }

  .slides-wrapper {
    display: block !important;
    transform: none !important;
    height: auto !important;
  }

  .slide {
    width: 1280px !important;
    min-width: 1280px !important;
    max-width: 1280px !important;
    height: 720px !important;
    min-height: 720px !important;
    max-height: 720px !important;
    page-break-after: always;
    break-after: page;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    border: none !important;
    box-shadow: none !important;
    padding: 50px 70px !important;
    overflow: hidden !important;
  }

  .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .slide-capa {
    padding: 0 !important;
    flex-direction: row !important;
  }

  /* Reduzir levemente título/sub para garantir caber */
  .slide-title { font-size: 30px !important; }
  .slide-subtitle { font-size: 16px !important; }
  .slide-header { margin-bottom: 24px !important; }

  /* Evitar hovers/animações na renderização */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Garante cores fiéis */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
