/* ============================================================
   FiscalScan landing page — v1.0
   Single file CSS, mobile-first, sem framework.
   Paleta consistente com o app (indigo #4f46e5 como primária).
   ============================================================ */

/* ===== Reset essencial ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; }
p { margin: 0; }

/* ===== Tokens ===== */
:root {
  /* Cores primárias — alinhadas com app FiscalScan */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;

  /* Acentos */
  --accent: #6366f1;
  --accent-2: #8b5cf6;

  /* Neutros */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --ink: #0a0e1a;

  /* WhatsApp brand */
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;

  /* Espaçamentos baseados em 4px */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  /* Container max width */
  --container: 1200px;
  --container-narrow: 920px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-6);
  padding-right: var(--s-6);
}

/* ===== Reveal animations (acionado via IntersectionObserver no JS) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Helpers ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 11px 20px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: var(--r-lg);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 16px -6px rgba(79, 70, 229, 0.6);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 24px -8px rgba(79, 70, 229, 0.7);
}

.btn-secondary {
  background: white;
  color: var(--gray-800);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: white;
  box-shadow: 0 6px 16px -6px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.6);
}

.btn-email {
  background: white;
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.btn-email:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-links a {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gray-900); }
.nav-actions { display: flex; gap: var(--s-3); }
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px;
  color: var(--gray-700);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 70%);
}
/* Grão sutil para dar textura — evita "AI generic gradient" */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.03;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  max-width: var(--container-narrow);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 6px 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--s-6);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--gray-900);
  margin-bottom: var(--s-6);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--gray-600);
  max-width: 60ch;
  margin: 0 auto var(--s-10);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-16);
}

.hero-trust {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--s-8);
  flex-wrap: wrap;
  padding-top: var(--s-8);
  border-top: 1px solid var(--gray-200);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  max-width: 220px;
}
.trust-item strong {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 14px;
}
.trust-item span {
  color: var(--gray-500);
  font-size: 13px;
}
.trust-divider {
  width: 1px;
  background: var(--gray-200);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}
.section-light { background: white; }
.section-dark {
  background: var(--ink);
  color: #d1d5db;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 70% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 20% 100%, rgba(139, 92, 246, 0.10) 0%, transparent 60%);
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--s-16);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.eyebrow-light {
  color: #c7d2fe;
}
.section-head-dark .eyebrow { color: #a5b4fc; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: var(--s-4);
}
.section-head-dark .section-title { color: white; }
.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--gray-600);
  max-width: 56ch;
  margin: 0 auto;
}
.section-head-dark .section-lead { color: #9ca3af; }

/* ===== Problema ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
}
.problem-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.problem-card:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}
.problem-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-4);
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--gray-900);
}
.problem-card p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Como funciona — steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.step-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4);
}
.step-body h3 {
  color: white;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.step-body p {
  color: #9ca3af;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===== Funcionalidades ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.feature {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: var(--s-5);
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--s-3);
}
.feature p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Vídeo ===== */
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  padding: 8px;
  box-shadow: var(--shadow-xl);
}
.video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--r-2xl) - 8px);
  overflow: hidden;
  background: var(--ink);
}
.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Benefícios ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
}
.benefit {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.benefit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-2) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.benefit:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.benefit:hover::before { opacity: 1; }
.benefit-stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--s-5);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.benefit h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--s-3);
}
.benefit p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== CTA Final ===== */
.cta-final {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: white;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 20% 0%, rgba(139, 92, 246, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(79, 70, 229, 0.20) 0%, transparent 60%);
}
.cta-inner {
  text-align: center;
  max-width: 720px;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--s-5);
  color: white;
}
.cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: #c7d2fe;
  margin-bottom: var(--s-10);
  line-height: 1.55;
}
.cta-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.cta-foot {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Footer ===== */
.footer {
  background: #050810;
  color: #9ca3af;
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-12);
  padding-bottom: 48px;
}
.brand-light {
  color: white;
}
.footer-tag {
  margin-top: var(--s-3);
  font-size: 14px;
  color: #6b7280;
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s-4);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}
.footer-bottom small {
  color: #6b7280;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: inline-flex; }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: var(--s-4);
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open a {
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r);
    font-size: 15px;
  }
  .nav-links.is-open a:hover {
    background: var(--gray-50);
  }

  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0; }
  .cta-final { padding: 80px 0; }

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

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: var(--s-5);
  }
  .trust-divider { display: none; }
  .trust-item {
    text-align: center;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }

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

/* ===== Foco visível para acessibilidade ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
