/* ==========================================
   MEI Controla - Landing Page Estática
   Cores: Verde #2E7D32 → Azul #1565C0
   Fonts: Sora (headings), DM Sans (body), Fraunces italic (hero accent)
   ========================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #1976D2;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-check: #22c55e;
  --red: #f87171;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  line-height: 1.6;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

img, svg {
  display: inline-block;
  vertical-align: middle;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  line-height: 1.2;
}

/* ---------- Skip Link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 0.5rem;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--slate-200);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(21, 101, 192, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--primary);
  background: rgba(21, 101, 192, 0.04);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--slate-100);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.9375rem 2.25rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Focus-visible: keyboard navigation highlight */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  color: var(--slate-700);
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
}
.mobile-menu-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.12;
}

/* Hero urgency number badge */
.hero-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero-urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.text-gradient {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 500px;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Dashboard Mockup */
.hero-illustration {
  display: flex;
  justify-content: center;
}

.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

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

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}
.mockup-dots span:first-child { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:last-child { background: #22c55e; }

.mockup-title {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.mockup-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-stat {
  background: var(--slate-50);
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}
.mockup-stat--green { border-color: var(--green-light); }
.mockup-stat--blue { border-color: var(--primary); }

.mockup-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.mockup-stat-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.125rem;
}

.mockup-bar {
  margin-top: 0.5rem;
  height: 6px;
  background: var(--slate-200);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-light), var(--primary));
  border-radius: 3px;
  transition: width 1s ease;
}

.mockup-stat-percent {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
}

.mockup-chart {
  padding: 0.5rem 0 0;
}
.mockup-chart svg {
  width: 100%;
  height: 60px;
}

/* ---------- Problem Section ---------- */
.problem {
  background: #1f427a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(96, 165, 250, 0.28) 0%, transparent 65%);
  color: var(--white);
  padding: 5rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Wave: hero → problem */
.problem::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cpath fill='%23f8fafc' d='M0,0 L1440,0 L1440,28 Q1080,56 720,28 Q360,0 0,28 Z'/%3E%3C/svg%3E") no-repeat top center;
  background-size: cover;
  pointer-events: none;
  z-index: 2;
}

/* Wave: problem → news */
.problem::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cpath fill='%23254b8e' d='M0,56 L1440,56 L1440,28 Q1080,0 720,28 Q360,56 0,28 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
  z-index: 2;
}

.problem-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.28);
  color: #fde68a;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.60);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.problem h2 {
  font-size: 2.25rem;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.25;
}

.text-red {
  color: #fde047;
}

/* Gradient text for h2 main phrases on dark sections */
.text-sky {
  background: linear-gradient(135deg, #bae6fd 0%, #f0f9ff 55%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-subtitle {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
}

.problem-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
  border-color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.problem-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  color: #a5b4fc;
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.problem-card p {
  margin-top: 0.625rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- News Carousel ---------- */
.news {
  background: #254b8e;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(96, 165, 250, 0.24) 0%, transparent 65%);
  color: var(--white);
  padding: 4rem 0 5rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Wave: news → features */
.news::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cpath fill='%23ffffff' d='M0,56 L1440,56 L1440,28 Q1080,56 720,28 Q360,0 0,28 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
  z-index: 2;
}

.news h2 {
  font-size: 2.25rem;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.25;
}

.news .problem-subtitle {
  margin-bottom: 2.5rem;
}

.news-track {
  overflow: hidden;
  padding: 0.5rem 0;
}

.news-slide {
  display: flex;
  gap: 1.25rem;
  animation: news-scroll 60s linear infinite;
  width: max-content;
  will-change: transform;
}

.news-track:hover .news-slide {
  animation-play-state: paused;
}

@keyframes news-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-card {
  min-width: 280px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid transparent;
  border-image: linear-gradient(135deg, #93c5fd, #a5b4fc) 1;
  border-radius: 0 0 18px 18px;
  padding: 1.25rem 1.125rem;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.news-ic {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  color: #a5b4fc;
  margin-bottom: 0.875rem;
}

.news-stat {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.news-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.news-src {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.875rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .news h2 {
    font-size: 1.5rem;
  }

  .news-card {
    min-width: 260px;
    max-width: 260px;
  }
}

/* ---------- Features ---------- */
.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
}

.section-header p {
  margin-top: 1rem;
  color: var(--slate-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900);
}

.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--slate-50);
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.pricing-value {
  margin-top: 1rem;
}

.price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
}

.period {
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.pricing-annual {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.pricing-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-features li.excluded {
  color: var(--slate-400);
}

.pricing-card .btn {
  margin-top: 1.5rem;
}

.promo-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.price-original {
  display: block;
  font-size: 0.9375rem;
  color: var(--slate-400);
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.2;
}

.pricing-period-note {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--slate-400);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.cta p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer ul a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.2s;
}
.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  text-align: center;
  font-size: 0.8125rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

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

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .dashboard-mockup {
    max-width: 360px;
  }

  .problem h2 {
    font-size: 1.5rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Comparison Table ---------- */
.comparison {
  padding: 5rem 0;
  background: var(--slate-50);
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 700px;
}

.comparison-table thead th {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  border-bottom: 2px solid var(--slate-200);
  background: var(--white);
  white-space: nowrap;
}

.comparison-table thead th.feature-col {
  text-align: left;
  width: 36%;
}

.comparison-table thead th.highlight-col {
  background: linear-gradient(135deg, #E3F2FD 0%, #E8F5E9 100%);
  color: var(--primary-dark);
}

.col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.col-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.15s;
}

.comparison-table tbody tr:hover {
  background: var(--slate-50);
}

.comparison-table tbody tr:hover td.highlight-col {
  background: #D0EAFD;
}

.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.comparison-table td.feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--slate-800);
}

.comparison-table td.feature-label-sub {
  font-size: 0.75rem;
  color: var(--slate-500);
  display: block;
  font-weight: 400;
}

.comparison-table td.highlight-col {
  background: linear-gradient(135deg, #EBF5FB 0%, #EDF7ED 100%);
}

/* Check / X / Soon icons */
.cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.cmp-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
}

.soon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #FEF3C7;
  color: #92400E;
  padding: 0.2rem 0.45rem;
  border-radius: 99px;
  border: 1px solid #FDE68A;
}

/* Price row in tfoot */
.comparison-table tfoot td {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--white);
  border-top: 2px solid var(--slate-200);
  color: var(--slate-800);
}

.comparison-table tfoot td.feature-col {
  text-align: left;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tfoot td.highlight-col {
  background: linear-gradient(135deg, #E3F2FD 0%, #E8F5E9 100%);
  color: var(--primary-dark);
  font-size: 1rem;
}

.comparison-table tfoot td span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--slate-500);
}

.comparison-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

@media (max-width: 768px) {
  .comparison-table thead th,
  .comparison-table tbody td,
  .comparison-table tfoot td {
    padding: 0.65rem 0.6rem;
    font-size: 0.8rem;
  }
  .comparison-table thead th.feature-col,
  .comparison-table tbody td.feature-col {
    width: 32%;
  }
}

/* ---------- Footer links: keyboard focus underline ---------- */
.footer ul a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Hero: "Ainda não tenho MEI" button ---------- */
@keyframes float-btn {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes shimmer-btn {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,101,192,0), 0 4px 15px rgba(21,101,192,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(21,101,192,0.08), 0 4px 20px rgba(21,101,192,0.4); }
}

.btn-abrir-mei {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgba(21,101,192,0.06) 0%,
    rgba(21,101,192,0.14) 40%,
    rgba(255,255,255,0.4) 50%,
    rgba(21,101,192,0.14) 60%,
    rgba(21,101,192,0.06) 100%);
  background-size: 200% auto;
  color: var(--primary);
  border: 2px solid rgba(21,101,192,0.35);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation:
    float-btn 3s ease-in-out infinite,
    shimmer-btn 4s linear infinite,
    glow-pulse 3s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn-abrir-mei svg {
  transition: transform 0.25s ease;
}
.btn-abrir-mei:hover {
  animation: none;
  transform: translateY(-3px) scale(1.03);
  background: rgba(21,101,192,0.1);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(21,101,192,0.3);
}
.btn-abrir-mei:hover svg {
  transform: translateY(3px);
}
.btn-abrir-mei:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Nav: Abrir MEI highlight ---------- */
.nav-abrir-mei {
  color: var(--primary) !important;
  font-weight: 600;
  background: rgba(21, 101, 192, 0.08);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 101, 192, 0.2);
  transition: all 0.2s ease;
}
.nav-abrir-mei:hover {
  background: rgba(21, 101, 192, 0.15) !important;
  border-color: rgba(21, 101, 192, 0.4);
}

/* ---------- Open MEI Section ---------- */
.open-mei {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  position: relative;
  overflow: hidden;
}
.open-mei::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 0%);
}
.open-mei::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.open-mei-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.open-mei-badge {
  display: inline-block;
  background: rgba(21, 101, 192, 0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.open-mei-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.open-mei-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.open-mei-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.open-mei-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--slate-700);
}

.open-mei-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.open-mei-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.open-mei-hint {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Steps card column */
.open-mei-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.open-mei-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow);
}
.open-mei-step--highlight {
  border-color: rgba(46, 125, 50, 0.3);
  background: rgba(46, 125, 50, 0.04);
}

.open-mei-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.open-mei-step-num--green {
  background: var(--green);
}

.open-mei-step strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--slate-800);
  margin-bottom: 0.2rem;
}
.open-mei-step p {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.open-mei-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.open-mei-stat {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.open-mei-stat-value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.open-mei-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .open-mei-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .open-mei-content h2 {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  .open-mei {
    padding: 4rem 0;
  }
  .open-mei-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .open-mei-stat-value {
    font-size: 1.125rem;
  }
}

/* ---------- Reduced Motion ---------- */
@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;
  }
}
