/* ============================================================================
   LANDING PAGE — styles.css
   CSS enxuto, sem framework. Variáveis de tema no :root para fácil customização.
   Paleta sóbria (navy/slate) + 1 cor de destaque (verde) para CTAs.
   ============================================================================ */

/* ---------- Variáveis de tema — TEMA ESCURO (troque as cores pela marca) ----------
   Hierarquia de profundidade (do mais escuro ao mais claro):
   --ink (rodapé) < --bg (página) < --bg-alt (seção alt) < --surface (cards).
   O hero é ainda mais escuro (#060d16) para a aurora brilhar.
   Texto e fundo agora são tokens SEPARADOS (--heading/--text vs --bg/--surface). */
:root {
  /* Fundos escuros */
  --ink:        #070f18;   /* fundo mais profundo (rodapé) */
  --ink-2:      #0c1c2e;   /* navy secundário */
  --bg:         #0c1825;   /* fundo da página */
  --bg-alt:     #0f1d2b;   /* fundo de seções alternadas */
  --surface:    #132433;   /* fundo dos cards (elevado) */
  --line:       #213548;   /* bordas e divisores (sutis no escuro) */

  /* Textos (claros sobre o escuro) */
  --heading:    #f1f6fb;   /* títulos e textos fortes */
  --text:       #c3d2e0;   /* texto de corpo */
  --slate:      #aebccc;   /* texto de apoio */
  --muted:      #8298ad;   /* texto auxiliar */

  /* Destaque */
  --accent:     #0fae74;   /* COR DE DESTAQUE (CTAs) */
  --accent-2:   #0c8e5f;   /* hover do destaque */
  --accent-soft:rgba(15,174,116,.15); /* tinte suave do destaque */
  --white:      #ffffff;   /* branco real (texto sobre o verde) */

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, .55);
  --maxw:       1140px;
  --font:       'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--heading); margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Acessibilidade: classe para esconder visualmente mantendo p/ leitores de tela */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-mini { margin-top: 64px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin-bottom: .6em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04140d; box-shadow: 0 8px 20px rgba(15,157,107,.35); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--heading); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,16,26,.7);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
/* Header sólido ao rolar (classe adicionada via JS) */
.site-header.scrolled { box-shadow: var(--shadow); border-color: var(--line); background: rgba(8,16,26,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--heading); }
.brand-mark { display: block; flex-shrink: 0; }
.brand-name strong { color: var(--accent); }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 600; color: var(--slate); font-size: .96rem; }
.nav a:hover { color: var(--accent); }

/* ---------- Hero (escuro, com "aurora") ----------
   Fundo: gradiente estático com a vibe de aurora (custo zero). No desktop capaz,
   o canvas WebGL é desenhado por cima; no mobile fica só este gradiente. */
.hero {
  position: relative;
  overflow: hidden;            /* recorta a aurora dentro do hero */
  background:
    radial-gradient(62% 55% at 80% 12%, rgba(52,224,143,.20), transparent 60%),
    radial-gradient(55% 50% at 16% 88%, rgba(56,189,248,.13), transparent 62%),
    radial-gradient(80% 65% at 52% 42%, rgba(124,92,246,.10), transparent 72%),
    #060d16;
  padding: 120px 0 110px;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}
/* Canvas do shader: preenche o hero, atrás de tudo */
.aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
/* Camada de escurecimento para garantir contraste/legibilidade do texto */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side at 50% 42%, rgba(6,13,22,.15), rgba(6,13,22,.78));
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .3em; color: #ffffff; font-weight: 300; letter-spacing: -0.02em; }
/* Texto com gradiente (substitui o antigo .accent verde sólido) */
.gradient-text {
  background: linear-gradient(90deg, #34e0a1 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: 1.2rem; color: #c5d6e6; max-width: 54ch; margin-left: auto; margin-right: auto; }
.lede strong { color: #ffffff; font-weight: 700; }
.hero .eyebrow { color: #5eead4; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-actions.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: #9fb3c6; font-weight: 600; font-size: .95rem; }
.hero-proof.center { justify-content: center; }
.hero-proof li { white-space: nowrap; }

/* Botão "glass" (vidro fosco) para o CTA secundário sobre o fundo escuro */
.btn-glass {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45); color: #ffffff; }

/* Flutuar suave do bloco de texto (keyframes "float" definidos no fim do arquivo) */
.float-animation { animation: float 6s ease-in-out infinite; }

/* ---------- Cards / grids ---------- */
.cards { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--slate); margin: 0; }

.pain-ico, .feat-ico { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feature .feat-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 12px; font-size: 1.5rem;
}

/* ---------- Posicionamento: de/para (como é hoje x com a gente) ---------- */
.compare-section {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(15,174,116,.10), transparent 60%),
    var(--bg);
}
/* Grade de duas colunas: cada par "de → para" ocupa uma linha alinhada */
.depara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 980px; margin: 0 auto; }
/* No desktop o wrapper do par não gera caixa: os cards entram direto na grade (lado a lado) */
.dp-pair { display: contents; }
.depara-th { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; padding: 0 4px 4px; }
.depara-th-from { color: var(--muted); }
.depara-th-to { color: var(--accent); }
.dp { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 16px 18px; font-size: .97rem; line-height: 1.45; }
.dp p { margin: 0; }
.dp-ico { font-size: 1.2rem; line-height: 1.15; flex-shrink: 0; }
/* "De" — situação atual, apagada */
.dp-from { background: rgba(255,255,255,.02); border: 1px solid var(--line); color: var(--slate); }
/* "Para" — resultado, destacado no verde da marca, com check */
.dp-to { background: var(--accent-soft); border: 1px solid rgba(15,174,116,.4); color: var(--text); }
.dp-to::before { content: "\2713"; color: var(--accent); font-weight: 800; font-size: 1.15rem; line-height: 1.15; flex-shrink: 0; }
.dp-to strong { color: var(--heading); }

/* ---------- Mensuração: painéis fac-símiles (SVG/CSS, anonimizados) ---------- */
.measure-section { border-top: 1px solid var(--line); }
.measure-inner { max-width: 1000px; }
/* "Frame" de tela que envolve o carrossel */
.dash-frame {
  max-width: 920px; margin: 8px auto 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
}
.dash-bar { display: flex; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.dash-bar span { width: 11px; height: 11px; border-radius: 50%; background: #4a5d70; }

/* Carrossel: trilho que desliza; cada slide ocupa 100% */
.dash-carousel { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.dash-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.dash-slide { min-width: 100%; height: 100%; overflow: hidden; }
.dash-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform 2.4s ease-out; }
/* Leve zoom no slide ativo (Ken Burns) */
.dash-slide.is-active img { transform: scale(1.05); }

/* Indicadores (dots) gerados via JS */
.dash-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 8px; justify-content: center; }
.dash-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.dash-dot.is-active { width: 22px; background: var(--accent); }

.dash-cap { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }

/* ---------- Como funciona (passos) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #05231a; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--slate); font-size: .95rem; }

/* ---------- Planos ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan-name { font-size: 1.3rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--heading); margin: 6px 0 2px; }
.plan-price small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.plan-price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan-tag { color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.plan-list { margin: 8px 0 22px; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--slate); font-size: .98rem; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan-list li strong { color: var(--heading); }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--accent); box-shadow: 0 24px 60px rgba(15,157,107,.18); transform: translateY(-8px); }
.plan-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #04140d; font-weight: 800; font-size: .82rem;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}

/* Apenas 2 planos: grade centralizada e mais estreita */
.plans-2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 8px; margin-bottom: 0; }

/* Nota de recorrência/extra dentro do card do plano (domínio, gestão de Ads) */
.plan-extra {
  font-size: .86rem; color: var(--muted); line-height: 1.45;
  background: rgba(255,255,255,.03); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px;
}
.plan-extra strong { color: var(--heading); }

.anchor-note {
  text-align: center; margin: 40px auto 0; max-width: 640px;
  background: var(--accent-soft); border: 1px solid rgba(15,174,116,.32); color: var(--heading);
  padding: 18px 24px; border-radius: var(--radius); font-size: 1.05rem;
}

/* ---------- Portfólio / depoimentos ---------- */
.shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.shot-img {
  aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; color: var(--muted);
  background: repeating-linear-gradient(45deg, #16273a, #16273a 12px, #1b2f44 12px, #1b2f44 24px);
  font-weight: 600; font-size: .95rem;
}
.shot figcaption { padding: 14px 18px 10px; font-weight: 700; color: var(--heading); font-size: .95rem; }
/* Depoimento dentro do card, abaixo da legenda do projeto */
.shot-quote { margin: 0; margin-top: auto; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.shot-quote p { font-style: italic; color: var(--text); font-size: .9rem; line-height: 1.45; margin: 0 0 8px; }
.shot-quote cite { display: block; font-style: normal; font-weight: 700; color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--heading); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--slate); padding-bottom: 16px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, #0b2a22 0%, #0d2034 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-final p { color: #c5d6e6; font-size: 1.15rem; }
.cta-inner { max-width: 720px; margin: 0 auto; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #c5d6e6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { color: #fff; }
.footer-tag { color: #8da9c4; margin-top: 10px; max-width: 30ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-wa svg { color: #25D366; flex-shrink: 0; } /* ícone do WhatsApp em verde (currentColor) */
.footer-name { color: #8da9c4; font-size: .9rem; margin-top: -4px; }
.footer-nav a, .footer-contact a { color: #c5d6e6; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom { padding-top: 22px; font-size: .88rem; color: #8da9c4; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
/* Pulso COMPOSTO (transform/opacity, sem jank): anel verde que expande atrás do botão */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Animação reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Float suave (usado no bloco de texto do hero) ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

/* ============================================================================
   RESPONSIVO
   ============================================================================ */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; } /* simplifica header no mobile; CTA permanece */
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }

  /* de/para no mobile: compacto — problema riscado/apagado, seta na divisa, solução em destaque */
  .depara { grid-template-columns: 1fr; gap: 14px; }
  .depara-th { display: none; } /* cabeçalhos de coluna não fazem sentido empilhados */
  .dp-pair { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
  .dp-pair .dp { border: none; border-radius: 0; padding: 13px 16px; }
  .dp-pair .dp p { font-size: .92rem; }
  /* HOJE (problema): X vermelho à esquerda (espelha o ✓ verde) + ícone temático no canto */
  .dp-pair .dp-from { position: relative; color: var(--muted); background: transparent; padding-bottom: 22px; padding-right: 42px; }
  .dp-pair .dp-from::before { content: "\2715"; color: #ef6a6c; font-weight: 800; font-size: 1.15rem; line-height: 1.15; flex-shrink: 0; }
  .dp-pair .dp-from .dp-ico { position: absolute; top: 11px; right: 13px; font-size: 1.05rem; line-height: 1; opacity: .85; }
  /* seta de transição, centralizada na divisa */
  .dp-pair .dp-from::after {
    content: "\2193"; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
    width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #04130d;
    display: grid; place-items: center; font-size: .78rem; font-weight: 800; z-index: 2;
  }
  /* COM A GENTE (solução): em destaque */
  .dp-pair .dp-to { background: var(--accent-soft); padding-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

/* ---------- Respeita usuários que preferem menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-animation { animation: none; }
  .dash-track, .dash-slide img, .dash-dot { transition: none; }
  .dash-slide.is-active img { transform: none; }
  .wa-float::before { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
