/* ═══════════════════════════════════════════════════════════
   MERCADO MIND — Gestor ML
   Simplified Funnel · Organic Design
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Premium Colors - Less "SaaS", More "Sales" */
  --accent: hsl(217, 100%, 60%);
  --accent-rgb: 51, 122, 255;
  --accent-light: hsl(217, 100%, 75%);
  --accent-dark: hsl(217, 100%, 45%);

  --bg: #0a0c10;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-4xl: clamp(2rem, 8vw, 3.5rem);
  --text-2xl: clamp(1.5rem, 5vw, 2.25rem);
  --text-lg: 1.25rem;
  --text-base: 1.125rem;

  --r-lg: 20px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  overflow: hidden;
  position: fixed;
  inset: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── PROGRESS BAR ────────────────────────── */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

/* ── HEADER & NAVIGATION ──────────────────── */
.funnel-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.logo__name strong {
  color: var(--accent);
  transition: color 0.4s ease;
}

/* --- THEME ADAPTATION --- */
body[data-theme="light"] .logo__name {
  color: #000;
}

body[data-theme="light"] .nav-btn--secondary {
  color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .nav-btn--secondary:hover {
  color: #000;
}

body[data-theme="light"] .progress-bar-container {
  background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .progress-bar-fill {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* VOLTAR LINK - Now at the Top */
.nav-btn--secondary {
  pointer-events: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn--secondary:hover {
  color: var(--text-primary);
}

.nav-btn--secondary:disabled {
  opacity: 0;
  visibility: hidden;
}

/* ── MAIN SLIDES ─────────────────────────── */
.funnel-main {
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 80px;
  /* Space for the top header */
  padding-bottom: 140px;
  /* Space for the bottom button */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: translateY(20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.slide--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slide__content {
  max-width: 640px;
  width: 100%;
  text-align: center;
  margin: auto;
  /* Centering fix for flex + overflow */
}

/* ── TYPOGRAPHY ──────────────────────────── */
.slide__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.slide__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.slide__body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── LISTS ───────────────────────────────── */
.slide__list,
.method-list-funnel,
.value-list-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px auto;
  width: fit-content;
  text-align: left;
}

.slide__list li,
.method-list-funnel li,
.value-list-funnel li {
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.icon--red {
  color: #ff4d4d;
}

.slide--ml .icon {
  color: #0050aa;
}

.slide__logo-ml {
  max-width: 140px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.slide--ml {
  background: #FFE600;
  color: #000;
}

.slide--ml .slide__title,
.slide--ml .slide__body,
.slide--ml .slide__eyebrow {
  color: #000;
}

.slide--ml strong,
.slide--ml em {
  color: #0050aa !important;
}

.slide--ml .slide__list li {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-color: rgba(0, 0, 0, 0.05);
  color: #000;
}


.slide--ocean {
  background-size: cover;
  background-position: center;
}

.slide--final {
  background: radial-gradient(circle at center, #1a1e26 0%, #0a0c10 100%);
}

/* ── REFINED BUTTONS ─────────────────────── */
.funnel-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.nav-btn--primary {
  pointer-events: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 48px;
  height: 64px;
  border-radius: var(--r-full);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.nav-btn--primary:active {
  transform: translateY(0);
}

/* ── COMPONENTS ──────────────────────────── */
.highlight-funnel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 32px 0;
}

.phone-frame-funnel {
  width: 240px;
  aspect-ratio: 9/19;
  background: #000;
  border: 8px solid #1a1e26;
  border-radius: 32px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* ── SPLIT LAYOUT (Video Side by Side) ────── */
.slide__content--split {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.split__text {
  flex: 1.2;
}

.split__video {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .slide__content--split {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .split__text {
    text-align: center;
  }

  .split__text .slide__title,
  .split__text .slide__body,
  .split__text p {
    text-align: center !important;
  }

  .phone-frame-funnel {
    width: 180px;
  }
}

/* ── COMPARISON TABLE ────────────────────── */
.comparison-table {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
}

.table-header,
.table-row,
.table-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-align: left;
  font-size: 0.9rem;
}

.table-header {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  /* More readable than muted */
  text-transform: uppercase;
}

.table-row:last-child {
  border-bottom: none;
}

.table-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 2px solid var(--border);
  font-weight: 700;
}

.col-main {
  font-weight: 500;
  color: var(--text-base);
}

.col-price {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

.col-here {
  font-weight: 800;
  text-align: right;
  color: var(--accent);
}

.table-footer .col-price {
  font-size: 1.1rem;
  color: #ff4d4d !important;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
}

@media (max-width: 480px) {

  .table-header,
  .table-row,
  .table-footer {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
}

/* --- Table End --- */


.incluso {
  color: #4ade80;
}

@media (max-width: 480px) {

  .table-header,
  .table-row,
  .table-footer {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .table-header {
    font-size: 0.65rem;
  }
}

.price-anchor-funnel .amount {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.price-table-funnel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.price-table__row {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.price-table__total {
  background: var(--accent);
  padding: 24px;
  font-weight: 800;
  text-align: center;
}

/* ── PRICING SLIDE ───────────────────────── */
.price-header {
  margin-bottom: 24px;
}

.price-original {
  display: block;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 4px;
}

.price-prep {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
}

.price-anchor-funnel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
}

.price-anchor-funnel .currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 1rem;
}

.price-anchor-funnel .amount {
  font-size: 6.5rem;
  font-weight: 950;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-glow {
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6), 0 0 60px rgba(var(--accent-rgb), 0.3);
}

.price-savings {
  display: inline-block;
  background: rgba(0, 230, 118, 0.1);
  color: #00e676;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.price-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 12px;
}

.price-perception {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 40px auto;
  max-width: 440px;
  line-height: 1.3;
}

.urgency-text {
  font-size: 0.9rem;
  font-weight: 900;
  color: #ff4d4d;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-rgb), 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: 440px;
  cursor: pointer;
  border: none;
}

.btn-checkout:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--accent-rgb), 0.5);
  filter: brightness(1.2);
}

.btn-checkout:active {
  transform: translateY(-2px) scale(0.98);
}

.microcopy {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.microcopy strong {
  color: #fff;
}

/* ── REFINDED SECTIONS ───────────────────── */

/* Theory Box (Slide 11) */
.theory-box {
  background: rgba(var(--accent-rgb), 0.05);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: 4px 12px 12px 4px;
  margin: 32px 0;
  text-align: left;
}

.highlight-quote {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #fff;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.8;
}

/* Video Frame adjustments (Slide 12) */
.phone-frame-funnel {
  margin: 0 auto;
  max-width: 280px;
  aspect-ratio: 9/19.5;
  background: #000;
  border: 12px solid #1a1a1b;
  border-radius: 44px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.5), inset 0 -2px 20px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.proof-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Oceano Azul (Slide 13) */
.slide--ocean {
  background-size: cover;
  background-position: center;
  transition: background 0.6s var(--ease);
}

.slide__content--ocean {
  background: rgba(10, 12, 16, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  max-width: 520px !important;
}

.opportunity-highlight {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.25;
  margin: 24px 0;
  text-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}

.mini-tag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: fit-content;
  margin: 24px auto;
}

.mini-tag-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ── HELPERS ─────────────────────────────── */
.c-red {
  color: #ff4d4d;
}

.c-green {
  color: #00e676;
}

@media (max-width: 480px) {
  .slide__content--ocean {
    padding: 24px 16px;
    width: 90%;
  }
}

.c-yellow {
  color: #facc15;
}

/* ── ANIMATIONS ──────────────────────────── */
.slide--active .slide__content>* {
  animation: slideFade 0.8s var(--ease) both;
}

.slide--active .slide__title {
  animation-delay: 0.1s;
}

.slide--active .slide__body {
  animation-delay: 0.2s;
}

.slide--active .slide__list,
.slide--active .highlight-funnel {
  animation-delay: 0.3s;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .slide__title {
    font-size: 1.75rem;
  }

  .funnel-nav {
    padding: 24px;
  }

  .nav-btn--primary {
    width: 100%;
    padding: 0;
  }
}