/* SalesApp Web — landing estática (HTML + CSS puro)
   Tokens e proporções replicados fielmente de salesflow-pro/src/styles.css
   (design system real do app) e do componente salesflow-pro/src/routes/index_landing.tsx.
   Valores OKLCH do app foram convertidos para hex conforme os próprios
   comentários do arquivo fonte. */
:root {
  /* Brand */
  --green: #16a34a; /* --primary */
  --green-dark: #166534; /* --primary-dark */
  --petrol: #0f172a; /* --foreground / --sidebar */
  --petrol-border: #1e293b; /* --sidebar-border (aprox.) */
  --petrol-muted: #94a3b8; /* --sidebar-muted (aprox.) */

  /* Surfaces */
  --bg: #f8fafc; /* --background */
  --card: #ffffff; /* --card */
  --card-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04); /* box-shadow do utilitário card-soft */
  --secondary-tint: #f5f8fb; /* aprox. de bg-secondary/50 sobre --background, ver nota no relatório */
  --border: #e2e8f0; /* --border */
  --text: #0f172a; /* --foreground */
  --muted: #64748b; /* --muted-foreground */
  --accent: #e8f7ee; /* aprox. de --accent (light green tint), ver nota no relatório */

  /* Radii (escala remapeada do app: --radius base = 12px) */
  --radius-btn: 12px; /* rounded-lg */
  --radius-card: 16px; /* rounded-xl / card-soft */
  --radius-2xl: 20px; /* rounded-2xl (painel de CTA final) */
  --radius-md: 10px; /* rounded-md (ícones da lista "no celular") */

  --max: 1152px; /* max-w-6xl */

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--petrol);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

/* Ícones inline (Lucide) — dimensionados via CSS, cor via currentColor */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-20 { width: 20px; height: 20px; }
.ic-primary { color: var(--green); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}
.brand .logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.site-header .brand { max-width: 200px; }
.site-nav {
  display: none;
  flex-shrink: 0;
}
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Buttons — variants/tamanhos replicados de components/shared/button.tsx */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.75rem; }
.btn-md { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 1rem; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(22, 163, 74, 0.2);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--secondary-tint); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--secondary-tint); color: var(--text); }

/* Variante só pro botão "Recusar" do banner de cookies: precisa do mesmo peso
   visual do "Aceitar" (.btn-primary), então também é sólida — nunca outline/ghost. */
.btn-consent-reject { background: var(--petrol); color: #fff; }
.btn-consent-reject:hover { background: var(--petrol-border); }

/* Banner de consentimento de cookies (LGPD) — ver consent.js */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  padding: 16px 0;
}
.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner__text { flex: 1 1 320px; margin: 0; font-size: 0.9375rem; color: var(--text); }
.cookie-banner__text a { color: var(--green); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex: 0 0 auto; }

@media (max-width: 640px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  top: -128px;
  right: -96px;
  width: 416px;
  height: 416px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  filter: blur(64px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  font-weight: 700;
}
h1 .hl { color: var(--green); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin: 20px 0 0; line-height: 1.625; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }

/* Visual do hero — foto lifestyle da VendeLeve, com halo de cor suave por trás
   e bordas levemente esmaecidas para não parecer uma imagem "colada" na página.
   A partir de 1024px a imagem "sangra" até a borda da viewport (ver media query). */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    radial-gradient(48% 55% at 26% 20%, rgba(22, 163, 74, 0.28), transparent 72%),
    radial-gradient(42% 48% at 82% 82%, rgba(22, 163, 74, 0.18), transparent 70%);
  filter: blur(36px);
  border-radius: 48px;
}
.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.28), 0 10px 22px -12px rgba(15, 23, 42, 0.12);
  mask-image: radial-gradient(120% 120% at 50% 42%, #000 84%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 42%, #000 84%, transparent 100%);
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 64px 0; }
.section-md { padding: 64px 0; }
.section-head { max-width: 42rem; }
.section-white { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint { background: var(--secondary-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint-top { background: var(--secondary-tint); border-top: 1px solid var(--border); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 2.2vw + 1.2rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  font-weight: 700;
}
h3 { font-family: var(--font-display); font-size: 1.125rem; margin: 16px 0 0; font-weight: 700; }
.section-intro { color: var(--muted); max-width: 40rem; margin: 12px 0 0; }

/* Stats (proof strip) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; padding: 32px 0; }
.stats dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0; }
.stats dd { margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 16px; margin-top: 40px; list-style: none; padding: 0; }
.grid-3 { grid-template-columns: 1fr; }
.grid-features { grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.625; margin: 8px 0 0; }
/* Nota: seletores de duas classes abaixo (.card .icon / .card .step-num) são
   propositais — precisam vencer ".card p" (0,1,1) na cascata, já que ".icon"
   e ".step-num" sozinhos (0,1,0) perderiam a guerra de especificidade e o
   texto/ícone renderizaria cinza (--muted) em vez da cor correta. */
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}
.card .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

/* Mobile highlight */
.split { display: grid; gap: 40px; align-items: center; padding: 64px 0; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-size: 0.9375rem; line-height: 1.5; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist .ico-box {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
}
.checklist span.txt { color: var(--text); }
.phone {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.phone .label { color: var(--muted); font-size: 0.75rem; font-weight: 500; margin: 0; }
.phone .total {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  line-height: 1.15;
}
.phone .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.phone .keys span {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 10px;
  min-height: 56px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  min-width: 0;
}
.phone .pay {
  margin: 20px 0 0;
  height: 48px;
  border-radius: var(--radius-card);
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Testimonial */
.quote .container { max-width: 48rem; padding-top: 56px; padding-bottom: 56px; }
blockquote { margin: 0; text-align: center; }
blockquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1.4vw + 1rem, 1.5rem); font-weight: 600; line-height: 1.625; margin: 0; }
blockquote footer { color: var(--muted); font-size: 0.875rem; margin-top: 20px; }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 40px; align-items: start; }
.plan { position: relative; }
.plan.featured { border-color: var(--green); box-shadow: var(--card-shadow), 0 0 0 2px rgba(22, 163, 74, 0.2); }
.plan .tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan .name { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.price { display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.price strong { color: var(--text); font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 0.875rem; margin-bottom: 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 0.875rem; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; }
.plan ul li .ic { margin-top: 2px; }
.plan .btn { width: 100%; margin-top: 24px; }

/* FAQ */
#duvidas .container { max-width: 48rem; padding-top: 64px; padding-bottom: 64px; }
#titulo-faq { text-align: center; font-size: 1.875rem; }
.faq { display: grid; gap: 12px; margin-top: 32px; }
details.card { padding: 20px; }
details.card summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: "+";
  display: inline-block;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
details.card[open] summary::after { transform: rotate(45deg); }
details.card p { margin-top: 12px; }

/* Final CTA */
.final-cta {
  background: var(--petrol);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.2);
  filter: blur(64px);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta p { color: var(--petrol-muted); max-width: 36rem; margin: 12px auto 0; }
.final-cta .cta-row { justify-content: center; margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer .container { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; text-align: center; }
.site-footer .brand { max-width: 180px; }
.site-footer .brand .logo { height: 36px; }
.site-footer p { font-size: 0.75rem; color: var(--muted); margin: 0; }

:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; border-radius: 6px; }

/* Sem menu hamburguer (página não usa JS): a navegação central fica oculta
   até o breakpoint md (768px), igual ao "hidden md:flex" do TSX. O botão
   "Entrar" fica sempre visível, igual ao Web — quem já tem conta precisa
   achar esse link em qualquer tamanho de tela. Pra caber marca + "Entrar" +
   "Teste grátis" + nav escondida num header de 320-360px, a marca e os dois
   botões encolhem um pouco nesse breakpoint (ver regras abaixo). */
@media (max-width: 1023px) {
  .section-tint .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .split-copy {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
  }
  .split-copy .section-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .checklist {
    margin: 28px auto 0;
    max-width: 22rem;
    text-align: left;
  }
}

@media (max-width: 639px) {
  .site-header .container { gap: 8px; }
  .site-header .brand { max-width: 112px; }
  .brand .logo { height: 28px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 0 10px; font-size: 0.6875rem; }
  .split { gap: 32px; padding: 48px 0 56px; }
  .section-tint .container {
    padding-left: 36px;
    padding-right: 36px;
  }
  .split-copy h2 {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .phone {
    max-width: 20rem;
    padding: 28px 20px 24px;
  }
  .phone .total { font-size: 2.5rem; }
  .phone .keys { gap: 12px; margin-top: 24px; }
  .phone .keys span {
    min-height: 64px;
    padding: 16px 12px;
  }
  .phone .pay { height: 52px; margin-top: 16px; }
}

@media (min-width: 640px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { flex-direction: row; text-align: left; }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
  .section-md { padding: 80px 0; }
  .split { padding: 80px 0; }
  #duvidas .container { padding-top: 80px; padding-bottom: 80px; }
  .hero .container { padding-top: 96px; padding-bottom: 96px; }
  .final-cta { padding: 56px; }
}

@media (min-width: 1024px) {
  .hero { min-height: 600px; }
  /* O texto continua alinhado ao mesmo container centralizado usado no resto do
     site (igual ao cabeçalho); só a imagem sangra até a borda da viewport.
     max-width sobe até 650px quando há espaço, mas encolhe em telas menores
     (ex.: 1024–1350px) para não sobrepor a imagem. */
  .hero-copy {
    max-width: min(
      650px,
      calc(100vw - min(50vw, 680px) - max(20px, calc((100vw - 1152px) / 2 + 20px)) - 40px)
    );
  }
  /* Imagem passa a "sangrar" até a borda direita da viewport, como um painel
     full-bleed, em vez do cartão flutuante usado em telas menores. */
  .hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(50vw, 680px);
  }
  .hero-visual::before { content: none; }
  .hero-visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 0 0 0 64px;
    box-shadow: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .split { grid-template-columns: 1fr 1fr; }
  .grid-features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
