/* Anunciô — CSS das páginas redesenhadas (home + listing /l/<slug>) */
/* Não interfere com style.css legado (termos.html, politica.html, 404.php). */

:root {
  --purple:        #7010E0;
  --purple-dark:   #5B21B6;
  --purple-darker: #4C1D95;
  --purple-50:     #FAF5FF;
  --purple-100:    #EDE9FE;
  --ink:           #0B1530;
  --ink-2:         #1F2937;
  --muted:         #6B7280;
  --line:          #E5E7EB;
  --card:          #FFFFFF;
  --bg:            #F9FAFB;
}

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

body.home-v2,
body.listing-v2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ─── NAV (compartilhada) ─────────────────────────────────────────── */
.nav-v2 {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--purple);
  letter-spacing: -0.2px;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--purple-dark); }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: inline-block; }
}

/* ─── HERO HOME ───────────────────────────────────────────────────── */
.hero-v2 {
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  padding: 56px 20px 32px;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-text h1 .accent {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.55;
}
.stores-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.store-badge {
  display: inline-block;
  transition: transform 0.15s, opacity 0.15s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 52px; width: auto; }
.store-badge.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.qr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.qr-row .qr-box {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qr-row .qr-box canvas,
.qr-row .qr-box img { width: 100%; height: 100%; }
.qr-row .qr-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.qr-row .qr-text strong { color: var(--ink-2); font-weight: 700; display: block; margin-bottom: 2px; }

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Glow roxo difuso atrás do mockup — dá profundidade sem distrair */
.hero-image::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(ellipse at center, rgba(112, 16, 224, 0.28) 0%, rgba(112, 16, 224, 0.10) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-image img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 40px 80px rgba(112, 16, 224, 0.28))
          drop-shadow(0 10px 24px rgba(15, 23, 42, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-image img:hover {
  transform: translateY(-6px) scale(1.01);
}

@media (max-width: 860px) {
  .hero-v2 { padding: 36px 20px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text h1 { font-size: 36px; }
  .hero-text .lead { font-size: 16px; }
  .store-badge img { height: 48px; }
  .qr-row { display: none; } /* Em mobile esconde QR — usuário já está no celular */
}

/* ─── BANNER CATEGORIAS ───────────────────────────────────────────── */
.banner-cats {
  padding: 40px 20px 60px;
}
.banner-cats-inner {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(112, 16, 224, 0.15);
}
.banner-cats-inner img {
  width: 100%;
  display: block;
}

/* ─── SEÇÃO "COMO FUNCIONA" ──────────────────────────────────────── */
.passos-section {
  padding: 60px 20px;
  background: #fff;
}
.passos-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  background: var(--purple-100);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.passos-image {
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .section-h2 { font-size: 28px; }
  .section-lead { font-size: 15px; }
}

/* ─── SEÇÃO "POR QUE USAR" ───────────────────────────────────────── */
.beneficios {
  padding: 60px 20px;
  background: var(--bg);
}
.beneficios-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.bene-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 22px 26px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s;
  overflow: hidden;
}
/* Linha gradient roxa no topo — aparece no hover */
.bene-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bene-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(112, 16, 224, 0.14),
              0 8px 16px rgba(15, 23, 42, 0.06);
  border-color: transparent;
}
.bene-card:hover::before {
  transform: scaleX(1);
}
.bene-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 12px 24px rgba(112, 16, 224, 0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bene-card:hover .bene-icon {
  transform: scale(1.08) rotate(-3deg);
}
.bene-icon svg {
  width: 28px;
  height: 28px;
}
.bene-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.bene-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .beneficios-grid { grid-template-columns: 1fr; }
}

/* ─── SEÇÃO "BOTÃO FINAL" ────────────────────────────────────────── */
.cta-final {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  text-align: center;
  color: #fff;
}
.cta-final h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.cta-final p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 28px;
}
.cta-final .stores-row { justify-content: center; }
@media (max-width: 640px) { .cta-final h2 { font-size: 28px; } }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer-v2 {
  background: #0B1530;
  color: #94A3B8;
  padding: 40px 20px 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-brand h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.footer-brand p { line-height: 1.55; }
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: #94A3B8;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #1E293B;
  text-align: center;
  font-size: 12px;
  color: #64748B;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── LISTING PAGE /l/<slug> ─────────────────────────────────────── */
.listing-v2 { background: #fff; }

.listing-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.gallery-v2 {
  border-radius: 16px;
  overflow: hidden;
  background: #F9FAFB;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.gallery-v2 img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.gallery-v2 img:last-child { border-bottom: none; }
.gallery-empty-v2 {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.tipo-badge-v2 {
  display: inline-block;
  background: var(--purple-100);
  color: var(--purple);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.listing-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.listing-price {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.listing-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.listing-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 18px 0;
  white-space: pre-wrap;
}
.listing-seller {
  font-size: 13.5px;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

/* CTA box "Baixe o app" — destaque grande na página /l/<slug> */
.install-cta-v2 {
  margin-top: 28px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(112, 16, 224, 0.25);
}
.install-cta-v2 .cta-phone {
  width: 100%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
}
.install-cta-v2 h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.install-cta-v2 p {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 18px;
  line-height: 1.5;
}
.install-cta-v2 .stores-row { margin-bottom: 16px; }
.install-cta-v2 .btn-open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.install-cta-v2 .btn-open-app:hover { background: rgba(255, 255, 255, 0.28); }
.install-cta-v2 .qr-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-top: 14px;
}
.install-cta-v2 .qr-block .qr-box {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.install-cta-v2 .qr-block .qr-box canvas,
.install-cta-v2 .qr-block .qr-box img { width: 100%; height: 100%; }
.install-cta-v2 .qr-block .qr-text { font-size: 12.5px; line-height: 1.4; opacity: 0.9; }
.install-cta-v2 .qr-block .qr-text strong { display: block; color: #fff; opacity: 1; margin-bottom: 2px; font-size: 13px; }
.install-cta-v2 .install-hint {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 12px;
  text-align: left;
}

@media (max-width: 720px) {
  .install-cta-v2 {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
    text-align: center;
  }
  .install-cta-v2 .cta-phone {
    max-width: 200px;
    margin: 0 auto;
  }
  .install-cta-v2 .stores-row { justify-content: center; }
  .install-cta-v2 .qr-block { display: none; } /* Em mobile esconde QR */
  .install-cta-v2 .install-hint { text-align: center; }
}

/* Esconde o bloco antigo de actions (caso CSS antigo carregue junto) */
.listing .actions { display: none !important; }
