/* ═══════════════════════════════════════════════════════════════
   B20Mail — Landing page (redesign)
   Escopo próprio (prefixo .lp-*) para não afetar as demais páginas.
   Identidade: preto puro + verde da marca (ícone M-em-círculo),
   tagline "Envie com confiança.", movimento em cada seção.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --lp-green-1: #22F58F;   /* verde vivo do topo do ícone   */
    --lp-green-2: #00C270;   /* verde do painel               */
    --lp-green-3: #00A85F;   /* verde profundo da base        */
    --lp-grad: linear-gradient(135deg, var(--lp-green-1) 0%, var(--lp-green-3) 100%);
    --lp-ink: #05070A;       /* preto mais fundo que o canvas  */
    --lp-surface: #0F141A;
    --lp-surface-2: #141B23;
    --lp-line: rgba(255, 255, 255, 0.08);
    --lp-line-green: rgba(34, 245, 143, 0.28);
    --lp-glow: rgba(0, 221, 128, 0.35);
}

/* Fundo dedicado da landing: preto sólido + aura verde suave.
   Sobrepõe o .bg-fixed global (banner) só nesta página. */
body.lp-body { background: var(--lp-ink); }
body.lp-body .bg-fixed { background: var(--lp-ink); }
body.lp-body .bg-fixed::after {
    background:
        radial-gradient(60vw 60vh at 50% -10%, rgba(0, 221, 128, 0.14), transparent 60%),
        radial-gradient(50vw 50vh at 85% 20%, rgba(0, 194, 112, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(5,7,10,0) 0%, rgba(5,7,10,0.7) 90%);
}

.lp { position: relative; z-index: 1; overflow: hidden; }
.lp section { position: relative; }

/* ─── Utilitários da landing ─────────────────────────────── */
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--lp-green-1);
    padding: 7px 14px; border-radius: 100px;
    background: rgba(34, 245, 143, 0.08);
    border: 1px solid var(--lp-line-green);
}
.lp-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--lp-green-1); box-shadow: 0 0 10px var(--lp-green-1);
    animation: lp-pulse 2s infinite;
}
.lp-grad-text {
    background: var(--lp-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.lp-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 20px 0 16px; }
.lp-section-head p { font-size: 1.12rem; color: var(--text-muted); }

/* ═══ HERO ══════════════════════════════════════════════════ */
.lp-hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 140px 24px 90px;
}
.lp-hero-badge { margin-bottom: 34px; animation: lp-fade-down 0.8s ease both; }

/* Ícone da marca com aura viva */
.lp-hero-mark { position: relative; width: 132px; height: 132px; margin: 0 auto 40px; }
.lp-hero-mark img { width: 100%; height: 100%; position: relative; z-index: 2;
    filter: drop-shadow(0 0 26px var(--lp-glow)); animation: lp-float 6s ease-in-out infinite; }
.lp-hero-mark::before {   /* halo pulsante */
    content: ''; position: absolute; inset: -34%; border-radius: 50%; z-index: 1;
    background: radial-gradient(circle, var(--lp-glow) 0%, transparent 68%);
    animation: lp-breathe 4s ease-in-out infinite;
}
.lp-hero-mark::after {    /* anel orbitando */
    content: ''; position: absolute; inset: -14px; border-radius: 50%; z-index: 0;
    border: 1px dashed var(--lp-line-green); animation: lp-spin 22s linear infinite;
}

.lp-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; max-width: 15ch;
    margin: 0 auto 26px;
}
.lp-hero h1 .lp-word { display: inline-block; }
.lp-hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-muted);
    max-width: 620px; margin: 0 auto 40px;
}
.lp-hero-cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lp-hero-cta .btn-primary { font-size: 16px; padding: 16px 34px; }
.lp-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 16px 28px; border-radius: 10px; text-decoration: none; line-height: 1.6;
    color: var(--text-main); font-weight: 600; font-size: 16px;
    border: 1px solid var(--lp-line); background: rgba(255,255,255,0.02);
    transition: border-color .25s, background .25s, transform .25s;
}
.lp-btn-ghost svg { flex: 0 0 auto; width: 18px; height: 18px; }
.lp-btn-ghost:hover { border-color: var(--lp-line-green); background: rgba(34,245,143,0.05); transform: translateY(-2px); }

/* Tira de micro-provas sob o CTA */
.lp-hero-proof {
    display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
    margin-top: 46px; color: var(--text-muted); font-size: 0.9rem;
}
.lp-hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-proof svg { width: 16px; height: 16px; color: var(--lp-green-1); }

.lp-scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 2px solid var(--lp-line); border-radius: 14px;
    opacity: .6;
}
.lp-scroll-hint::before {
    content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; border-radius: 2px; background: var(--lp-green-1);
    animation: lp-scroll 1.8s ease-in-out infinite;
}

/* ═══ FAIXA DE CAPACIDADES (trust strip) ═══════════════════ */
.lp-strip { border-block: 1px solid var(--lp-line); background: rgba(255,255,255,0.015); }
.lp-strip-inner {
    display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
    padding: 26px 24px; max-width: 1160px; margin: 0 auto;
}
.lp-strip-item {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; color: #cbd5e1; font-size: 0.95rem;
}
.lp-strip-item svg { width: 20px; height: 20px; color: var(--lp-green-1); flex: 0 0 auto; }

/* ═══ SEÇÕES GENÉRICAS ═════════════════════════════════════ */
.lp-block { padding: 110px 0; }
.lp-block--tint { background: var(--lp-surface); border-block: 1px solid var(--lp-line); }

/* ── PROBLEMA (por que isso importa) ─────────────────────── */
.lp-pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.lp-pain {
    padding: 26px; border-radius: 14px; border: 1px solid var(--lp-line);
    background: var(--lp-surface-2);
}
.lp-pain-ico {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 90, 90, 0.1); color: #ff6b6b; margin-bottom: 16px;
}
.lp-pain-ico svg { width: 22px; height: 22px; }
.lp-pain h3 { font-size: 1.1rem; margin-bottom: 8px; }
.lp-pain p { font-size: 0.98rem; }

/* ── O QUE FAZ (features) ────────────────────────────────── */
.lp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lp-feat {
    position: relative; padding: 32px; border-radius: 16px; overflow: hidden;
    background: var(--lp-surface-2); border: 1px solid var(--lp-line);
    transition: transform .3s ease, border-color .3s ease;
}
.lp-feat::before {   /* brilho verde que segue o topo no hover */
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
    background: radial-gradient(120% 60% at 50% 0%, rgba(34,245,143,0.10), transparent 70%);
}
.lp-feat:hover { transform: translateY(-6px); border-color: var(--lp-line-green); }
.lp-feat:hover::before { opacity: 1; }
.lp-feat-ico {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    background: rgba(34,245,143,0.1); border: 1px solid var(--lp-line-green);
    color: var(--lp-green-1); margin-bottom: 20px; position: relative; z-index: 1;
}
.lp-feat-ico svg { width: 26px; height: 26px; }
.lp-feat h3 { font-size: 1.22rem; margin-bottom: 10px; position: relative; z-index: 1; }
.lp-feat p { font-size: 1rem; position: relative; z-index: 1; }

/* ── COMO FUNCIONA (pipeline animado) ────────────────────── */
.lp-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.lp-flow::before {   /* trilho de conexão */
    content: ''; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px;
    background: var(--lp-line);
}
.lp-flow-line {      /* trilho verde que "desenha" no scroll */
    position: absolute; top: 46px; left: 12%; height: 2px; width: 0;
    background: var(--lp-grad); box-shadow: 0 0 12px var(--lp-glow); z-index: 1;
}
.lp-step { text-align: center; position: relative; z-index: 2; }
.lp-step-node {
    width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--lp-surface-2);
    border: 2px solid var(--lp-line); color: var(--text-muted);
    transition: border-color .4s, color .4s, box-shadow .4s, transform .4s;
}
.lp-step-node svg { width: 36px; height: 36px; }
.lp-step-num {
    position: absolute; top: 0; right: calc(50% - 58px);
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #000; background: var(--lp-grad);
}
.lp-step.is-on .lp-step-node {
    border-color: var(--lp-green-1); color: var(--lp-green-1);
    box-shadow: 0 0 0 6px rgba(34,245,143,0.08), 0 0 30px var(--lp-glow);
    transform: translateY(-4px);
}
.lp-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lp-step p { font-size: 0.98rem; }

/* ── POR QUE B20 (diferenciais) ──────────────────────────── */
.lp-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.lp-why {
    padding: 32px 30px; border-radius: 16px;
    background: var(--lp-surface-2); border: 1px solid var(--lp-line);
    transition: border-color .3s, transform .3s;
}
.lp-why:hover { border-color: var(--lp-line-green); transform: translateY(-4px); }
.lp-why-ico {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
    background: var(--lp-grad); color: #05070A; margin-bottom: 20px;
}
.lp-why-ico svg { width: 26px; height: 26px; }
.lp-why h3 { font-size: 1.18rem; margin-bottom: 10px; }
.lp-why p { font-size: 1rem; line-height: 1.65; }

/* ── SEÇÃO MARCA (watermark M, estilo do brand sheet) ────── */
.lp-brand {
    padding: 120px 0; text-align: center; position: relative; overflow: hidden;
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(0,221,128,0.06), transparent 70%),
        var(--lp-ink);
    border-block: 1px solid var(--lp-line);
}
.lp-brand-mark {
    position: absolute; right: -80px; bottom: -80px; width: 460px; height: 460px;
    opacity: 0.06; pointer-events: none; z-index: 0;
}
.lp-brand-mark img { width: 100%; height: 100%; }
.lp-brand-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.lp-brand-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.lp-brand-inner p { font-size: 1.15rem; margin-bottom: 36px; }

/* ── DEV (código) — layout dedicado da landing ───────────── */
.lp-dev { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.lp-dev-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 16px; }
.lp-dev-copy > p { font-size: 1.1rem; margin-bottom: 24px; }
.lp-dev-list { list-style: none; display: grid; gap: 14px; }
.lp-dev-list li { display: flex; gap: 12px; align-items: flex-start; color: #cbd5e1; font-size: 1rem; }
.lp-dev-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--lp-green-1); margin-top: 3px; }
.lp-dev-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.lp-code {
    background: #0a0e12; border: 1px solid var(--lp-line); border-radius: 14px;
    overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); will-change: transform;
}
.lp-code-head {
    display: flex; align-items: center; gap: 8px; padding: 14px 18px;
    background: #0d1217; border-bottom: 1px solid var(--lp-line);
}
.lp-dot { width: 12px; height: 12px; border-radius: 50%; }
.lp-dot.r { background: #ff5f57; } .lp-dot.y { background: #febc2e; } .lp-dot.g { background: #28c840; }
.lp-code-path { color: #6b7684; font-size: 12px; margin-left: 10px; font-family: 'JetBrains Mono', monospace; }
.lp-code pre { margin: 0; padding: 24px; overflow-x: auto; }
.lp-code code { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.8; color: #c9d1d9; }
.c-key { color: #7ee2b8; } .c-str { color: #a5d6ff; } .c-punct { color: #6b7684; }

/* ── CTA FINAL ───────────────────────────────────────────── */
.lp-final {
    padding: 130px 24px; text-align: center; position: relative;
    background: radial-gradient(70% 120% at 50% 100%, rgba(0,221,128,0.10), transparent 65%);
}
.lp-final-mark { width: 76px; height: 76px; margin: 0 auto 28px; filter: drop-shadow(0 0 22px var(--lp-glow)); }
.lp-final h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 18px; }
.lp-final p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 38px; }
.lp-final .btn-primary { font-size: 17px; padding: 18px 40px; }
.lp-final-tag { margin-top: 26px; font-size: 0.95rem; color: var(--text-muted); }
.lp-final-tag b { color: var(--lp-green-1); font-weight: 700; }

/* ═══ CABEÇALHO DE SUB-PÁGINA (não é 100vh) ════════════════ */
.lp-page-top { padding: 150px 0 10px; text-align: center; }
.lp-page-top .lp-eyebrow { margin-bottom: 22px; }
.lp-page-top h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.lp-page-top p { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ═══ PLANOS (página /precos) ══════════════════════════════ */
.lp-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
.lp-plan {
    display: flex; flex-direction: column; padding: 36px 30px; border-radius: 18px;
    background: var(--lp-surface-2); border: 1px solid var(--lp-line);
    transition: transform .3s, border-color .3s;
}
.lp-plan:hover { transform: translateY(-6px); border-color: var(--lp-line-green); }
.lp-plan.is-featured {
    border-color: var(--lp-line-green); position: relative;
    box-shadow: 0 0 0 1px var(--lp-line-green), 0 30px 70px rgba(0,0,0,.45);
}
.lp-plan.is-featured::before {
    content: "Mais popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--lp-grad); color: #05070A; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.lp-plan-name { font-size: 1.22rem; font-weight: 800; margin-bottom: 6px; }
.lp-plan-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 22px; min-height: 42px; }
.lp-plan-price { font-size: 2.3rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -.02em; }
.lp-plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.lp-plan-features { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.lp-plan-features li { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; font-size: .97rem; }
.lp-plan-features svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--lp-green-1); margin-top: 3px; }
.lp-plan-btn { display: block; text-align: center; padding: 14px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: transform .25s, box-shadow .25s, border-color .25s; }
.lp-plan-btn.primary { background: var(--lp-grad); color: #05070A; }
.lp-plan-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--lp-glow); }
.lp-plan-btn.secondary { background: transparent; border: 1px solid var(--lp-line); color: var(--text-main); }
.lp-plan-btn.secondary:hover { border-color: var(--lp-line-green); }
.lp-note { text-align: center; max-width: 640px; margin: 48px auto 0; color: var(--text-muted); }
.lp-note a { color: var(--lp-green-1); text-decoration: none; }

/* code block em largura cheia (página dev) */
.lp-code--full { max-width: 720px; margin: 0 auto; }
.lp-inline-code { font-family: 'JetBrains Mono', monospace; font-size: .9em; color: var(--lp-green-1); background: rgba(34,245,143,.08); padding: 2px 7px; border-radius: 5px; }

/* ═══ CHARME "TERMINAL": cantos marcados (do login/registro) ══ */
/* Brackets em L verdes nos cantos — mesma linguagem das telas de acesso. */
.lp-corners { position: relative; }
.lp-corners::before, .lp-corners::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    border-color: var(--lp-green-1); border-style: solid; z-index: 3; pointer-events: none;
}
.lp-corners::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.lp-corners::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Cards "Por que" ganham os mesmos cantos marcados */
.lp-why { position: relative; }
.lp-why::before, .lp-why::after {
    content: ''; position: absolute; width: 13px; height: 13px;
    border-color: var(--lp-green-1); border-style: solid; opacity: .5; transition: opacity .3s;
}
.lp-why::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.lp-why::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.lp-why:hover::before, .lp-why:hover::after { opacity: 1; }

/* Cantos mais retos (menos arredondados) para ecoar as telas de acesso */
.lp-feat, .lp-pain, .lp-plan { border-radius: 8px; }
.lp-why { border-radius: 6px; }
.lp-code { border-radius: 3px; }
.lp-feat-ico { border-radius: 9px; }

/* ═══ ANIMAÇÕES ════════════════════════════════════════════ */
@keyframes lp-pulse   { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lp-breathe { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes lp-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lp-spin    { to { transform: rotate(360deg); } }
@keyframes lp-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes lp-scroll  { 0% { top: 7px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* Estado inicial dos elementos que o GSAP revela (evita flash) */
.lp-reveal { opacity: 0; }

/* ═══ RESPONSIVO ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .lp-dev { grid-template-columns: 1fr; gap: 40px; }
    .lp-flow { grid-template-columns: 1fr; gap: 40px; }
    .lp-flow::before, .lp-flow-line { display: none; }
    .lp-step-num { right: calc(50% - 58px); }
}
@media (max-width: 600px) {
    .lp-block { padding: 80px 0; }
    .lp-hero { padding: 120px 20px 70px; }
    .lp-hero-proof { gap: 14px 20px; }
}

/* Acessibilidade: respeita quem pede menos movimento */
@media (prefers-reduced-motion: reduce) {
    .lp-hero-mark img, .lp-hero-mark::before, .lp-hero-mark::after,
    .lp-eyebrow::before, .lp-scroll-hint::before { animation: none !important; }
    .lp-reveal { opacity: 1 !important; }
}
