/* ============================================================
   CAPTURA DE LEADS — landing /vip/{slug} e página de obrigado.
   Porte de css/landing.css da plataforma atual sobre os tokens do
   projeto (tokens.css): dark por padrão, light via [data-theme="light"].
   Carregado no bloco standalone_styles de pages/captura/_base.twig.
   ============================================================ */

/* — Tokens próprios da landing (cores de conversão; superfícies vêm do tema) — */
.lp {
    --lp-cta: #22c55e;
    --lp-cta-2: #16a34a;
    --lp-cta-rgb: 34, 197, 94;
    --lp-wpp: #25d366;
    --lp-wpp-2: #128c4e;
    --lp-wpp-rgb: 37, 211, 102;
    --lp-hero-grad: linear-gradient(135deg, #040508 0%, #0b0d18 55%, #0d1124 100%);
    --lp-hero-overlay: rgba(0, 0, 0, .55);
    --lp-hero-glow: rgba(var(--lp-cta-rgb), .08);
    --lp-footer-bg: #06070d;
    --lp-footer-copy: rgba(255, 255, 255, .8);
    --lp-footer-text: rgba(255, 255, 255, .38);
    --lp-footer-link: rgba(255, 255, 255, .6);
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}
[data-theme="light"] .lp {
    --lp-hero-grad: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    --lp-hero-overlay: rgba(0, 0, 0, .4);
    --lp-footer-bg: #1a1a2e;
    --lp-footer-copy: rgba(255, 255, 255, .85);
    --lp-footer-text: rgba(255, 255, 255, .5);
    --lp-footer-link: rgba(255, 255, 255, .7);
}

/* O conteúdo ocupa toda a altura da tela: rodapé sempre no fim */
.lp-page .standalone__main { display: flex; flex-direction: column; }

/* ── Hero ───────────────────────────────────────────────────── */
.lp-hero { position: relative; width: 100%; background: var(--lp-hero-grad); overflow: hidden; }
.lp-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 70% 50%, var(--lp-hero-glow) 0%, transparent 65%);
}
/* com imagem de fundo (o texto fica sempre claro sobre o overlay escuro) */
.lp-hero--bg { background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 280px; }
.lp-hero--bg::after { content: ''; position: absolute; inset: 0; background: var(--lp-hero-overlay); }
.lp-hero__inner {
    position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center;
    padding: clamp(2.25rem, 6vw, 3.25rem) var(--sp-4) clamp(1.75rem, 5vw, 2.75rem);
}
.lp-hero__logo {
    display: block; margin: 0 auto 1.25rem; width: auto; height: auto; max-height: 110px; max-width: min(260px, 70%);
    object-fit: contain; border-radius: var(--r-sm); filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .45));
}
.lp-hero__headline {
    font-size: clamp(1.25rem, 3.2vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
    color: #fff; margin: 0 0 .75rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.lp-hero__sub { font-size: clamp(.9rem, 2.2vw, 1rem); color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* sem imagem: segue as superfícies do tema */
.lp-hero--plain { background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.lp-hero--plain::before { display: none; }
.lp-hero--plain .lp-hero__inner { padding: 2rem var(--sp-4) 1.5rem; }
.lp-hero--plain .lp-hero__headline { color: var(--text); text-shadow: none; }
.lp-hero--plain .lp-hero__sub { color: var(--text-muted); }
.lp-hero--plain .lp-hero__logo { filter: none; }
.lp-hero--compact .lp-hero__inner { padding: 1.5rem var(--sp-4) 1rem; }
.lp-hero--compact .lp-hero__logo { margin-bottom: 0; max-height: 90px; }

/* ── Formulário ─────────────────────────────────────────────── */
.lp-form-section { flex: 1; padding: clamp(1.5rem, 5vw, 2.5rem) var(--sp-4) 1.5rem; }
.lp-card {
    max-width: 560px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
    box-shadow: var(--shadow-xl); padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.125rem, 4vw, 2rem);
}
[data-theme="light"] .lp-card { box-shadow: 0 12px 48px rgba(16, 24, 40, .1), 0 2px 6px rgba(16, 24, 40, .05); }
.lp-form .field { margin-bottom: var(--sp-5); }
.lp-form .input { padding-top: .9rem; padding-bottom: .9rem; }
.lp-form .input-wrap .input { padding-right: 1rem; }

/* campo-armadilha: fora da tela, invisível para pessoas */
.lp-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* CTA (verde de conversão, como na plataforma atual) */
.lp-cta {
    margin-top: .25rem; padding: 1rem 1.5rem; white-space: normal;
    font-size: var(--fs-base); font-weight: 700; letter-spacing: .01em; color: #fff;
    background: linear-gradient(135deg, var(--lp-cta) 0%, var(--lp-cta-2) 100%);
    box-shadow: 0 6px 24px rgba(var(--lp-cta-rgb), .38); border-radius: var(--r-lg);
}
.lp-cta::after {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-fast);
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent);
}
.lp-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(var(--lp-cta-rgb), .5); color: #fff; }
.lp-cta:hover::after { opacity: 1; }
.lp-cta:focus-visible { outline: 3px solid rgba(var(--lp-cta-rgb), .45); outline-offset: 2px; }
.lp-cta .btn__text i { font-size: .85em; }

.lp-trust { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--text-soft); }
.lp-trust i { color: var(--lp-cta); }

/* ── Página de obrigado ─────────────────────────────────────── */
.lp-obrigado { flex: 1; padding: clamp(1.75rem, 5vw, 2.75rem) var(--sp-4) 1.5rem; }
.lp-obrigado__wrap { max-width: 680px; margin: 0 auto; }
.lp-obrigado__head { text-align: center; margin-bottom: 2rem; }
.lp-obrigado__title { font-size: clamp(1.2rem, 3.2vw, 1.5rem); font-weight: 800; color: var(--text); margin: 0 0 .5rem; }
.lp-obrigado__sub { font-size: var(--fs-md); color: var(--text-muted); margin: 0; }

.lp-actions { display: flex; flex-direction: column; gap: 1rem; }
.lp-action {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); padding: 2rem 1.75rem; text-align: center;
    animation-delay: calc(var(--i, 0) * 90ms);
}
.lp-action__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.lp-action__icon--wpp { background: rgba(var(--lp-wpp-rgb), .12); color: var(--lp-wpp); }
.lp-action__icon--dl { background: var(--primary-soft); color: var(--primary-text); }
.lp-action__title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); margin: 0 0 .5rem; }
.lp-action__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 1.35rem; line-height: 1.6; }

.lp-btn { padding: .85rem 1.75rem; font-size: var(--fs-base); font-weight: 700; color: #fff; border-radius: var(--r-full); white-space: normal; }
.lp-btn:hover { transform: translateY(-2px); color: #fff; }
.lp-btn--wpp { background: linear-gradient(135deg, var(--lp-wpp), var(--lp-wpp-2)); box-shadow: 0 6px 20px rgba(var(--lp-wpp-rgb), .35); }
.lp-btn--wpp:hover { box-shadow: 0 10px 28px rgba(var(--lp-wpp-rgb), .48); }
.lp-btn--dl { background: var(--gradient-primary); box-shadow: 0 6px 20px rgba(var(--primary-rgb), .35); }
.lp-btn--dl:hover { box-shadow: 0 10px 28px rgba(var(--primary-rgb), .48); }
.lp-btn__meta { font-weight: 500; opacity: .85; }

/* sem grupos/anexos: só a confirmação */
.lp-success {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg); padding: 2.75rem 1.75rem; text-align: center;
}
.lp-success__icon {
    width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.25rem;
    font-size: 2.1rem; color: var(--lp-cta); background: rgba(var(--lp-cta-rgb), .12);
    box-shadow: 0 0 0 10px rgba(var(--lp-cta-rgb), .06);
}
.lp-success__progress { max-width: 400px; margin: 1.25rem auto; }
.lp-success__progress .progress { height: 10px; }
[data-theme="light"] .lp-success__progress .progress { background: var(--surface-3); }
.lp-success__label { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin: .5rem 0 0; }
.lp-success__text { color: var(--text-muted); max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ── Rodapé (disclaimer + suporte) ──────────────────────────── */
.lp-footer {
    margin-top: auto; background: var(--lp-footer-bg); color: var(--lp-footer-text);
    padding: 2rem var(--sp-4); font-size: var(--fs-xs); line-height: 1.75; text-align: center;
}
.lp-footer a { color: var(--lp-footer-link); word-break: break-all; }
.lp-footer a:hover { color: #fff; }
.lp-footer__copy { font-weight: 600; color: var(--lp-footer-copy); margin: 0 0 .85rem; font-size: var(--fs-sm); }
.lp-footer__disclaimer { max-width: 700px; margin: 0 auto; }
.lp-footer__disclaimer p { margin: 0; }
.lp-footer__disclaimer p + p { margin-top: .5rem; }
.lp-footer__suporte { margin-top: .65rem !important; }

/* ── Responsivo / preferências ──────────────────────────────── */
@media (max-width: 520px) {
    .lp-hero--bg { min-height: 220px; }
    .lp-hero__logo { max-height: 84px; max-width: min(220px, 70%); }
    .lp-action { padding: 1.5rem 1.125rem; }
    .lp-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-cta, .lp-btn { transition: none; }
    .lp-cta:hover:not(:disabled), .lp-btn:hover { transform: none; }
    .lp-action { animation-delay: 0s; }
}
@media print {
    .lp-footer, .toast-stack { display: none !important; }
    .lp-hero { background: none !important; color: #000; }
    .lp-hero__headline, .lp-hero__sub { color: #000; text-shadow: none; }
}
