/* =========================================================
   EGX · LPs Pizzarias — estilos compartilhados (mobile-first)
   ========================================================= */
:root {
  --bg: #0e0f13;
  --bg-2: #15171e;
  --surface: #1b1e27;
  --surface-2: #232733;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f3ef;
  --muted: #a8a7ad;
  --red: #a8812f;
  --orange: #d4af55;
  --yellow: #f2d58a;
  --grad: linear-gradient(100deg, #b8913f 0%, #f2d58a 55%, #d4af55 100%); /* dourado da logo */
  --cta: linear-gradient(100deg, #e63b2e 0%, #ff7a1a 100%); /* CTAs continuam quentes */
  --on-gold: #1c1607;
  --dash: #161a26; /* fundo do print do Meta, para os recortes ficarem contínuos */
  --radius: 18px;
  --wrap: 560px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: center;
  padding: 18px 20px 0;
}
.logo { width: auto; height: 36px; }

/* ---------- Seções ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--orange);
}

.section-title {
  margin-top: 12px;
  font-size: clamp(1.75rem, 7.4vw, 2.4rem);
  font-weight: 800;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}
.lead strong { color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--cta);
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(255, 106, 26, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(255, 106, 26, 0.6), 0 0 0 0 rgba(255, 106, 26, 0.45); }
  50% { box-shadow: 0 10px 30px -8px rgba(255, 106, 26, 0.6), 0 0 0 10px rgba(255, 106, 26, 0); }
}

.cta-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Prova (print do Meta) ---------- */
.proof {
  position: relative;
  margin-top: 26px;
  padding: 14px;
  border-radius: 22px;
  background: var(--dash);
  border: 1px solid rgba(212, 175, 85, 0.35);
  box-shadow: 0 0 0 6px rgba(212, 175, 85, 0.06), 0 24px 60px -20px rgba(212, 175, 85, 0.45);
}
.proof-head { width: 150px; margin: 0 0 8px 2px; }
.proof-cards { display: grid; gap: 10px; }
.proof-cards img { width: 100%; border-radius: 14px; }
.proof-full { display: none; border-radius: 14px; }
.proof-tag {
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proof-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.proof-caption strong { color: var(--text); }

/* ---------- Cards / passos ---------- */
.steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
.step {
  position: relative;
  padding: 20px 20px 20px 72px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: var(--on-gold);
  font-weight: 900;
  font-size: 18px;
}
.step h3 { font-size: 1.12rem; font-weight: 800; }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Comparativo ---------- */
.compare { display: grid; gap: 12px; margin-top: 28px; }
.compare-col {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.compare-col.good {
  background: linear-gradient(180deg, rgba(212, 175, 85, 0.12), rgba(168, 129, 47, 0.04)), var(--surface);
  border-color: rgba(212, 175, 85, 0.45);
}
.compare-col h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--muted); }
.compare-col.good li { color: var(--text); }
.compare-col li::before {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.compare-col.bad li::before { content: "✕"; background: rgba(255, 255, 255, 0.08); color: #8d8b92; }
.compare-col.good li::before { content: "✓"; background: var(--grad); color: var(--on-gold); }

/* ---------- Lista de checks ---------- */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}
.checks li::before {
  content: "✓";
  flex: none;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-gold);
  font-size: 13px;
  font-weight: 900;
}

/* ---------- CTA final ---------- */
.final {
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 106, 26, 0.18), transparent 60%),
    var(--bg);
}
.final .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
.final .btn { margin-top: 28px; }

/* ---------- Rodapé ---------- */
.footer {
  padding: 32px 0 120px;
  text-align: center;
  font-size: 0.82rem;
  color: #6f6e75;
  border-top: 1px solid var(--line);
}

/* ---------- CTA fixo (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(14, 15, 19, 0), rgba(14, 15, 19, 0.92) 30%);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.sticky-cta.show { transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn { max-width: calc(var(--wrap) - 40px); margin: 0 auto; display: flex; min-height: 56px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pulse { animation: none; }
}

/* =========================================================
   Formulário do CRM (modal / bottom sheet)
   ========================================================= */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(6, 6, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lead-modal.open { opacity: 1; visibility: visible; }

.lead-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 100dvh;
  min-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.lead-modal.open .lead-sheet { transform: none; }

.lead-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.lead-close {
  appearance: none;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.lead-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.lead-body { margin-top: 18px; flex: 1; color: var(--text); }
.lead-body [data-egx-form] { display: block; min-height: 120px; }

body.modal-open { overflow: hidden; }

/* =========================================================
   Desktop / tablet
   ========================================================= */
@media (min-width: 720px) {
  :root { --wrap: 680px; }
  section { padding: 80px 0; }
  .compare { grid-template-columns: 1fr 1fr; }
  .btn { width: auto; min-width: 340px; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 40px; }

  .lead-modal { align-items: center; padding: 24px; }
  .lead-sheet { min-height: 0; max-height: 92vh; border-radius: 24px; border-bottom: 1px solid var(--line); }
}

@media (min-width: 1000px) {
  :root { --wrap: 960px; }
  .proof-cards, .proof-head { display: none; }
  .proof-full { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 72px 20px 22px; }
}
