/* ============================================================
   EncarteWeb — Landing Page Premium
   Inspirado em Stripe, Linear, Framer, Vercel
   Paleta: Azul #1565FF · Laranja #FF8A00 · Verde #27AE60
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --ew-blue: #1565FF;
  --ew-blue-dark: #0A3D91;
  --ew-blue-light: #e8f0ff;
  --ew-blue-glow: rgba(21, 101, 255, 0.15);
  --ew-orange: #FF8A00;
  --ew-orange-dark: #e07800;
  --ew-orange-glow: rgba(255, 138, 0, 0.2);
  --ew-green: #27AE60;
  --ew-green-light: #e6f7ee;
  --ew-gray-50: #F5F7FA;
  --ew-gray-100: #EDF0F5;
  --ew-gray-200: #D1D9E6;
  --ew-gray-300: #B0BEC5;
  --ew-gray-700: #2D3748;
  --ew-gray-900: #1A202C;
  --ew-white: #ffffff;
  --ew-font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --ew-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ew-radius: 16px;
  --ew-radius-sm: 10px;
  --ew-radius-xl: 24px;
  --ew-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --ew-shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --ew-shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --ew-shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
  --ew-glass: rgba(255,255,255,0.72);
  --ew-glass-border: rgba(255,255,255,0.3);
  --ew-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset for landing ── */
.landing-page {
  font-family: var(--ew-font-body);
  color: var(--ew-gray-700);
  background: var(--ew-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after { box-sizing: border-box; }

.landing-page h1, .landing-page h2, .landing-page h3, .landing-page h4, .landing-page h5 {
  font-family: var(--ew-font-display);
  color: var(--ew-gray-900);
  margin: 0;
  line-height: 1.15;
}

.landing-page p { line-height: 1.7; }

.landing-page a { color: var(--ew-blue); text-decoration: none; }
.landing-page a:hover { text-decoration: none; }

/* ── Container ── */
.ew-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ew-container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll Animations ── */
.ew-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.ew-reveal.ew-visible {
  opacity: 1;
  transform: translateY(0);
}
.ew-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ew-reveal-left.ew-visible { opacity: 1; transform: translateX(0); }

.ew-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ew-reveal-right.ew-visible { opacity: 1; transform: translateX(0); }

.ew-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ew-reveal-scale.ew-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .ew-reveal, .ew-reveal-left, .ew-reveal-right, .ew-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}

/* ── Eyebrow / Section Label ── */
.ew-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ew-blue);
  background: var(--ew-blue-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.ew-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--ew-gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ew-section-sub {
  font-size: 17px;
  color: var(--ew-gray-300);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===========================
   HEADER / NAVBAR
   =========================== */
.ew-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ew-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}

.ew-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.ew-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.ew-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-family: var(--ew-font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ew-gray-900);
  flex-shrink: 0;
}

.ew-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ew-blue), var(--ew-blue-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(21, 101, 255, 0.3);
}

.ew-logo span { color: var(--ew-blue); }

.ew-logo-img {
  height: auto;
  width: 140px;
  object-fit: contain;
}

.ew-logo-img-footer {
  width: 120px;
  filter: brightness(0) invert(1);
}

.ew-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.ew-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ew-gray-700);
  text-decoration: none !important;
  transition: color 0.2s;
  white-space: nowrap;
}

.ew-nav-link:hover { color: var(--ew-blue); }

.ew-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.ew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--ew-radius-sm);
  cursor: pointer;
  font-family: var(--ew-font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.ew-btn:active {
  transform: scale(0.96) translateY(0) !important;
  transition-duration: 0.08s !important;
}

.ew-btn-primary {
  background: var(--ew-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(21, 101, 255, 0.3);
}
.ew-btn-primary:hover {
  background: #0d55e0;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 101, 255, 0.4);
}

.ew-btn-cta {
  background: var(--ew-orange);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--ew-orange-glow);
}
.ew-btn-cta:hover {
  background: var(--ew-orange-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
}

.ew-btn-outline {
  background: transparent;
  color: var(--ew-gray-700) !important;
  border: 1.5px solid var(--ew-gray-200);
}
.ew-btn-outline:hover {
  border-color: var(--ew-blue);
  color: var(--ew-blue) !important;
  background: var(--ew-blue-light);
}


.ew-btn-ghost {
  background: transparent;
  color: var(--ew-gray-700);
  padding: 12px 16px;
}
.ew-btn-ghost:hover { color: var(--ew-blue); }

.ew-btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--ew-radius); }

/* Mobile menu toggle */
.ew-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ew-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ew-gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.ew-hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--ew-gray-50) 0%, var(--ew-white) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient orbs */
.ew-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(21,101,255,0.08) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}
.ew-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,138,0,0.06) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.ew-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ew-hero-content { max-width: 560px; }

.ew-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ew-blue-light);
  color: var(--ew-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  animation: ew-badge-pulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ew-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 101, 255, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(21, 101, 255, 0); }
}

.ew-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--ew-gray-900);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.ew-typewriter-wrapper {
  color: var(--ew-blue);
  font-weight: 700;
  display: inline-block;
  min-width: 4.8em;
  text-align: left;
}

.ew-typewriter-cursor {
  display: inline-block;
  color: var(--ew-orange);
  font-weight: 300;
  margin-left: 2px;
  animation: ew-cursor-blink 0.8s steps(1) infinite;
}

@keyframes ew-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* "sem depender de designer." nao se parte no meio. Quebrando ali sobrava
   "sem" no fim de uma linha e "depender de designer." na outra: o remate da
   frase, que e a promessa toda, chegava picado. Mesmo tratamento na tela dos
   temas, onde a frase se repete. */
.ew-hero-sub .sub-junto { white-space: nowrap; }

.ew-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 36px;
  max-width: 480px;
}

.ew-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ew-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ew-gray-100);
}

.ew-hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--ew-gray-900);
  font-family: var(--ew-font-display);
}

.ew-hero-stat span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* A imagem do topo: os três encartes em leque (site.css, .st-leque-topo). */
.ew-hero-visual {
  position: relative;
}

/* ===========================
   PRICING
   =========================== */
.ew-pricing {
  padding: 100px 0;
  background: var(--ew-gray-50);
}

.ew-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.ew-pricing-card {
  background: var(--ew-white);
  border: 1px solid var(--ew-gray-100);
  border-radius: var(--ew-radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--ew-transition);
  position: relative;
}

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

.ew-pricing-card.featured {
  border: 2px solid var(--ew-orange);
  box-shadow: 0 8px 40px var(--ew-orange-glow);
  transform: scale(1.04);
}

.ew-pricing-card.featured:hover { transform: scale(1.06); }

.ew-pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ew-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ew-pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ew-gray-900);
  margin-bottom: 8px;
}

.ew-pricing-desc {
  font-size: 14px;
  color: #64748B;   /* era #94a3b8: 2,6:1 no branco, abaixo do mínimo de leitura */
  margin: 0 0 24px;
}

.ew-pricing-price {
  font-size: 48px;
  font-weight: 900;
  color: var(--ew-gray-900);
  font-family: var(--ew-font-display);
  margin-bottom: 4px;
}

.ew-pricing-price span {
  font-size: 16px;
  font-weight: 600;
  color: #64748B;
}

/* Duas linhas sempre (total à vista + economia): o mensal, com uma só,
   desalinhava as listas dos três cartões. */
.ew-pricing-period {
  font-size: 14px;
  line-height: 1.5;
  min-height: 3em;
  color: #64748B;
  margin-bottom: 32px;
}
.ew-pricing-economia { display: block; color: #1B7A43; font-weight: 700; }

.ew-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.ew-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ew-gray-700);
  border-bottom: 1px solid var(--ew-gray-100);
}

.ew-pricing-features li:last-child { border-bottom: none; }

.ew-pricing-features li::before {
  content: '✓';
  color: var(--ew-green);
  font-weight: 900;
  font-size: 14px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .ew-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .ew-hero-content { max-width: 100%; margin: 0 auto; }
  .ew-hero-sub { margin: 0 auto 36px; }
  .ew-hero-actions { justify-content: center; }
  .ew-hero-stats { justify-content: center; }
  .ew-hero-visual { max-width: 600px; margin: 0 auto; }
  .ew-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 48px auto 0; }
  .ew-pricing-card.featured { transform: none; }
  .ew-pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .ew-nav { display: none; }
  .ew-menu-toggle { display: flex; }
  .ew-hero { padding: 120px 0 60px; }
  .ew-hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 480px) {
  .ew-hero-actions { flex-direction: column; width: 100%; }
  .ew-hero-actions .ew-btn { width: 100%; }
}
