/*
 * LP Premium — skin para landing_pages.type = 'premium'.
 * CSS proprio (nao Tailwind), carregado so pelas paginas desse tipo
 * (templates/lp/premium.php). O conteudo (content_html, editado via
 * TinyMCE no admin) usa as classes abaixo diretamente nas tags permitidas
 * pelo sanitizador (section, div, span, p, h1-h4, ul, ol, li, a, img, etc).
 * Portado de docs/clientes-high-ticket-main (referencia Lovable/TanStack).
 */

/* templates/lp/*.php sao bare (sem layout.php) e nao carregam styles.css —
   sem isso, o modal com x-cloak fica visivel em tela cheia por um instante
   (ou pra sempre, se o Alpine demorar/falhar) antes do Alpine remover o
   atributo, ja que x-show por si so nao esconde nada antes do JS rodar. */
[x-cloak] {
  display: none !important;
}

:root {
  --lp-radius: 0.75rem;
  --lp-background: oklch(0.15 0.012 60);
  --lp-foreground: oklch(0.96 0.008 80);
  --lp-card: oklch(0.19 0.014 62);
  --lp-primary: oklch(0.84 0.09 84);
  --lp-primary-foreground: oklch(0.17 0.02 60);
  --lp-muted-foreground: oklch(0.72 0.018 76);
  --lp-destructive: oklch(0.6 0.19 25);
  --lp-border: oklch(0.32 0.02 66);
  --lp-gradient-gold: linear-gradient(100deg, oklch(0.9 0.08 88), oklch(0.76 0.13 68));
  --lp-gradient-veil: linear-gradient(
    to right,
    oklch(0.12 0.012 60 / 0.97),
    oklch(0.12 0.012 60 / 0.72) 55%,
    oklch(0.12 0.012 60 / 0.35)
  );
  --lp-shadow-gold: 0 18px 50px -18px oklch(0.84 0.09 84 / 0.45);
  --lp-font-display: "Fraunces", Georgia, serif;
  --lp-font-body: "DM Sans", system-ui, sans-serif;
}

.lp-premium {
  background: var(--lp-background);
  color: var(--lp-foreground);
  font-family: var(--lp-font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.lp-premium h1,
.lp-premium h2,
.lp-premium h3,
.lp-premium h4 {
  font-family: var(--lp-font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
}

.lp-premium a {
  color: inherit;
  text-decoration: none;
}

.lp-premium img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.lp-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lp-container-sm {
  max-width: 56rem;
}

.lp-container-lg {
  max-width: 80rem;
}

.lp-section {
  border-top: 1px solid var(--lp-border);
  padding: 6rem 0;
}

.lp-section:first-of-type {
  border-top: none;
}

.lp-center {
  text-align: center;
}

/* Texto/tipografia */

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lp-muted-foreground);
  margin-bottom: 1rem;
}

.lp-title {
  font-size: 2.25rem;
  line-height: 1.05;
}

.lp-title-lg {
  font-size: 3rem;
}

.lp-subtitle {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1rem;
  color: var(--lp-muted-foreground);
}

.text-gold {
  background: var(--lp-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.text-muted {
  color: var(--lp-muted-foreground);
}

/* Botao / CTA */

.cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lp-gradient-gold);
  box-shadow: var(--lp-shadow-gold);
  transition: transform 0.15s ease;
}

/* Especificidade maior que ".lp-premium a" (que forca color:inherit) —
   sem isso o texto do CTA herda a cor quase-branca do corpo da pagina e
   fica ilegivel sobre o fundo dourado claro do botao. */
.lp-premium a.cta-gold,
.cta-gold {
  color: var(--lp-primary-foreground);
}

.cta-gold:hover {
  transform: scale(1.03);
}

/* Badges do hero */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--lp-border);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
}

.badge-dot,
.badge-live::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--lp-destructive);
  display: inline-block;
}

/* .badge-live gera o ponto via ::before (em vez de um <span> vazio dentro
   do badge) porque o TinyMCE do admin remove tags inline vazias ao salvar o
   content_html — um <span class="badge-dot"></span> sem texto some sozinho
   na primeira edicao/salvamento da pagina no admin. */
.badge-live::before {
  content: "";
}

/* Hero */

.lp-hero {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--lp-background);
  background-size: cover;
  background-position: center;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lp-gradient-veil);
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  max-width: 42rem;
}

/* Cards / grids */

.lp-grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.lp-grid-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.lp-card {
  border: 1px solid var(--lp-border);
  background: var(--lp-card);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
}

.lp-card-accent {
  border-color: oklch(0.84 0.09 84 / 0.4);
}

.lp-card .eyebrow {
  margin-bottom: 0.25rem;
}

/* Checklist ("pra quem e") */

.lp-checklist {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--lp-border);
  background: var(--lp-border);
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .lp-checklist { grid-template-columns: repeat(2, 1fr); }
}

.lp-checklist li {
  background: var(--lp-card);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--lp-muted-foreground);
}

.lp-checklist li::before {
  content: "\2713";
  color: var(--lp-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Percurso / passos numerados */

.lp-steps {
  margin-top: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--lp-border);
  background: var(--lp-border);
  overflow: hidden;
  display: grid;
  gap: 1px;
  list-style: none;
  padding: 0;
}

.lp-steps li {
  background: var(--lp-card);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .lp-steps li { grid-template-columns: 4.5rem 1fr; }
}

.lp-step-number {
  font-family: var(--lp-font-display);
  font-size: 1.75rem;
  background: var(--lp-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-steps h3 {
  font-size: 1.15rem;
}

.lp-steps p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--lp-muted-foreground);
}

/* Comparativo (opcional) */

.lp-compare-no li,
.lp-compare-yes li {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  list-style: none;
}

.lp-compare-no {
  padding: 0;
  color: var(--lp-muted-foreground);
}

.lp-compare-yes {
  padding: 0;
}

.lp-compare-no li::before {
  content: "\2715";
  flex-shrink: 0;
}

.lp-compare-yes li::before {
  content: "\2713";
  color: var(--lp-primary);
  flex-shrink: 0;
}

/* Oferta final */

.lp-offer-box {
  margin-top: 4rem;
  border-radius: 1.5rem;
  border: 1px solid oklch(0.84 0.09 84 / 0.4);
  background: var(--lp-card);
  padding: 2.5rem;
  text-align: center;
}

.lp-offer-price {
  font-family: var(--lp-font-display);
  font-size: 3rem;
  background: var(--lp-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.5rem;
}

/* Popup de captura (CTA abre modal em vez de rolar a pagina) */

.lp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: oklch(0.1 0.01 60 / 0.75);
}

.lp-modal {
  position: relative;
  width: 100%;
  max-width: 28rem;
  border-radius: 1.25rem;
  border: 1px solid var(--lp-border);
  background: var(--lp-card);
  padding: 2rem;
}

.lp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--lp-muted-foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.lp-modal-close:hover {
  color: var(--lp-foreground);
}

/* Formulario de captura (system_form / modal) */

.lp-form {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 1.5rem auto 0;
}

.lp-input {
  border: 1px solid var(--lp-border);
  background: var(--lp-background);
  color: var(--lp-foreground);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  font-family: var(--lp-font-body);
  font-size: 0.95rem;
  outline: none;
}

.lp-input:focus {
  border-color: oklch(0.84 0.09 84 / 0.6);
}

.lp-input::placeholder {
  color: var(--lp-muted-foreground);
}

.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 2.5rem 0;
  font-size: 0.75rem;
  color: var(--lp-muted-foreground);
}

@media (min-width: 640px) {
  .lp-title { font-size: 3rem; }
  .lp-title-lg { font-size: 3.75rem; }
}
