/* =============================================================================
   SITE INSTITUCIONAL (área Site) - landing pública. Escopado em .lp para não vazar para o sistema.
   Identidade: vermelho da marca (#d71920) + grafite do logo (#1f2937), igual às telas do sistema.
   ============================================================================= */

.lp {
    --lp-accent: #d71920;
    --lp-accent-dark: #b9121a;
    --lp-ink: #1f2937;
    --lp-ink-2: #111827;
    --lp-muted: #6b7280;
    --lp-border: #e5e7eb;
    --lp-soft: #f6f7f9;
    --lp-ok: #16a34a;
    --lp-radius: 16px;
    --lp-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    color: var(--lp-ink);
    scroll-behavior: smooth;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.lp a { text-decoration: none; }
.lp section { padding: 88px 0; }
.lp .lp-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-accent); margin-bottom: .6rem; }
.lp .lp-h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .8rem; }
.lp .lp-lead { font-size: 1.1rem; color: var(--lp-muted); max-width: 640px; }
.lp .lp-center { text-align: center; }
.lp .lp-center .lp-lead { margin-inline: auto; }

/* ---------- botões ---------- */
.lp .btn-lp {
    --b: var(--lp-accent); display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; border-radius: 999px;
    padding: .75rem 1.5rem; border: 2px solid var(--b); background: var(--b); color: #fff; transition: all .15s ease;
}
.lp .btn-lp:hover { background: var(--lp-accent-dark); border-color: var(--lp-accent-dark); color: #fff; transform: translateY(-1px); }
.lp .btn-lp.is-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lp .btn-lp.is-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lp .btn-lp.is-outline { background: transparent; color: var(--lp-accent); }
.lp .btn-lp.is-outline:hover { background: var(--lp-accent); color: #fff; }

/* ---------- navbar ---------- */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lp-border); }
.lp-nav .container { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.lp-nav img { height: 52px; }
.lp-nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.lp-nav-links a { color: var(--lp-ink); font-weight: 600; font-size: .95rem; }
.lp-nav-links a:hover { color: var(--lp-accent); }
.lp-nav .btn-lp { padding: .45rem 1.2rem; }
@media (max-width: 767px) { .lp-nav-links { display: none; } .lp-nav .btn-lp { margin-left: auto; } }

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px !important;
    background: radial-gradient(900px 500px at 85% 10%, rgba(215, 25, 32, .35), transparent 60%),
        linear-gradient(160deg, rgba(17, 24, 39, .88) 0%, rgba(31, 41, 55, .92) 100%),
        url('/img/site/hero-bg.jpg') center / cover no-repeat, #1f2937; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.2rem; }
.lp-hero h1 em { font-style: normal; color: #ff5a62; }
.lp-hero .lp-sub { font-size: 1.2rem; color: #cbd5e1; max-width: 560px; margin-bottom: 2rem; }
.lp-hero .lp-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.lp-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e2e8f0; }

/* ---------- janela de chat (mockup) ---------- */
.lp-chat { background: #fff; color: var(--lp-ink); border-radius: var(--lp-radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.lp-chat-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: var(--lp-soft); border-bottom: 1px solid var(--lp-border); font-weight: 700; font-size: .9rem; }
.lp-chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lp-ok); }
.lp-chat-head small { margin-left: auto; font-weight: 500; color: var(--lp-muted); }
.lp-chat-body { padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.lp-msg { max-width: 88%; padding: .6rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.4; }
.lp-msg.user { align-self: flex-end; background: var(--lp-accent); color: #fff; border-bottom-right-radius: 4px; }
.lp-msg.ai { align-self: flex-start; background: var(--lp-soft); border: 1px solid var(--lp-border); border-bottom-left-radius: 4px; }
.lp-msg.ai b { color: var(--lp-ink-2); }
.lp-msg .lp-file { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .2); padding: .15rem .55rem; border-radius: 8px; font-size: .8rem; margin-bottom: .2rem; }
.lp-msg ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.lp-chat.is-compact .lp-chat-body { padding: .8rem; }

/* ---------- fotos (geradas por IA, em /img/site) ---------- */
.lp-photo { min-height: 320px; height: 100%; border-radius: var(--lp-radius); background: var(--lp-soft) center / cover no-repeat; box-shadow: var(--lp-shadow); }
.lp-learn .lp-photo { background-color: rgba(255, 255, 255, .06); }

/* ---------- módulos ---------- */
.lp-modules { background: var(--lp-soft); }
.lp-card { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.6rem; height: 100%; box-shadow: var(--lp-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 24, 40, .14); }
.lp-card .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.5rem; color: var(--lp-accent); background: color-mix(in srgb, var(--lp-accent) 10%, #fff); margin-bottom: 1rem; }
.lp-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.lp-card p { color: var(--lp-muted); margin-bottom: .8rem; }
.lp-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--lp-accent); padding: .15rem .55rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.lp-ticks { list-style: none; padding: 0; margin: 0; }
.lp-ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.lp-ticks li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--lp-ok); }

/* ---------- blocos de módulo (texto + chat) ---------- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.lp-split.is-reverse .lp-split-text { order: 2; }
@media (max-width: 991px) { .lp-split { grid-template-columns: 1fr; gap: 2rem; } .lp-split.is-reverse .lp-split-text { order: 0; } }

/* ---------- aprenda conversando ---------- */
.lp-learn { background: var(--lp-ink-2); color: #fff; }
.lp-learn .lp-lead { color: #cbd5e1; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
@media (max-width: 767px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--lp-radius); padding: 1.5rem; }
.lp-step .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-accent); font-weight: 800; margin-bottom: .9rem; }
.lp-step h3 { font-size: 1.1rem; font-weight: 700; }
.lp-step p { color: #cbd5e1; margin: 0; }

/* ---------- controle e segurança ---------- */
.lp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
@media (max-width: 991px) { .lp-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .lp-trust-grid { grid-template-columns: 1fr; } }
.lp-trust { text-align: center; padding: 1rem; }
.lp-trust i { font-size: 2rem; color: var(--lp-accent); }
.lp-trust h4 { font-size: 1.05rem; font-weight: 700; margin: .6rem 0 .3rem; }
.lp-trust p { color: var(--lp-muted); font-size: .93rem; margin: 0; }

/* ---------- núcleo de manutenção ---------- */
.lp-core { background: var(--lp-soft); }
.lp-mini { display: flex; gap: .9rem; align-items: flex-start; }
.lp-mini i { font-size: 1.5rem; color: var(--lp-accent); flex: 0 0 auto; }
.lp-mini h4 { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.lp-mini p { color: var(--lp-muted); font-size: .92rem; margin: 0; }

/* ---------- contato ---------- */
.lp-contact .form-control { border-radius: 10px; padding: .65rem .9rem; }
.lp-contact .form-control:focus { border-color: var(--lp-accent); box-shadow: 0 0 0 .2rem rgba(215, 25, 32, .15); }
.lp-info { background: var(--lp-soft); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.8rem; height: 100%; }
.lp-info i { color: var(--lp-accent); width: 1.4rem; display: inline-block; }

/* ---------- páginas de módulo ---------- */
.lp-nav-links a.is-active { color: var(--lp-accent); }
.lp-dropdown { border-radius: 12px; border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow); padding: .4rem; }
.lp-dropdown .dropdown-item { border-radius: 8px; font-weight: 600; font-size: .93rem; }
.lp-dropdown .dropdown-item i { color: var(--lp-accent); margin-right: .4rem; }
.lp-hero.is-module { padding: 80px 0 88px !important; }
.lp-pain { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem; background: #fff; border: 1px solid var(--lp-border); border-left: 4px solid var(--lp-accent); border-radius: 12px; height: 100%; }
.lp-pain i { font-size: 1.4rem; color: var(--lp-accent); }
.lp-pain h4 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.lp-pain p { margin: 0; color: var(--lp-muted); font-size: .93rem; }
.lp-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: flow; }
@media (max-width: 991px) { .lp-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .lp-flow { grid-template-columns: 1fr; } }
.lp-flow > div { position: relative; background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.3rem; box-shadow: var(--lp-shadow); }
.lp-flow > div::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-accent); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.lp-flow h4 { font-size: 1.02rem; font-weight: 700; }
.lp-flow p { margin: 0; color: var(--lp-muted); font-size: .92rem; }
.lp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--lp-shadow); font-size: .93rem; }
.lp-table th { background: var(--lp-ink); color: #fff; text-align: left; padding: .6rem .9rem; font-weight: 600; }
.lp-table td { padding: .6rem .9rem; border-top: 1px solid var(--lp-border); }
.lp-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-table tr.total td { font-weight: 800; background: var(--lp-soft); }
.lp-table .neg { color: var(--lp-accent); }
.lp-faq .accordion-item { border: 1px solid var(--lp-border); border-radius: 12px !important; margin-bottom: .7rem; overflow: hidden; }
.lp-faq .accordion-button { font-weight: 700; }
.lp-faq .accordion-button:not(.collapsed) { color: var(--lp-accent); background: color-mix(in srgb, var(--lp-accent) 6%, #fff); box-shadow: none; }
.lp-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(215, 25, 32, .15); }
.lp-cta { background: linear-gradient(160deg, #111827, #1f2937); color: #fff; text-align: center; }
.lp-cta .lp-lead { color: #cbd5e1; }
.lp-crumbs { font-size: .85rem; color: #94a3b8; margin-bottom: 1rem; }
.lp-crumbs a { color: #cbd5e1; }

/* ---------- modularidade ---------- */
.lp-modular { display: flex; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--lp-border); border-left: 5px solid var(--lp-accent); border-radius: var(--lp-radius); padding: 1.3rem 1.6rem; box-shadow: var(--lp-shadow); }
.lp-modular > i { font-size: 2.2rem; color: var(--lp-accent); }
.lp-modular h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .2rem; }
.lp-modular p { margin: 0; color: var(--lp-muted); }
.lp-modular a { color: var(--lp-accent); font-weight: 600; }
.lp-featured { position: relative; background: linear-gradient(160deg, #111827, #1f2937); color: #fff; border-radius: var(--lp-radius); padding: 2rem; height: 100%; box-shadow: var(--lp-shadow); overflow: hidden; }
.lp-featured::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 25, 32, .45), transparent 70%); }
.lp-featured > * { position: relative; z-index: 1; }
.lp-featured .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.lp-featured .tags span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--lp-accent); }
.lp-featured .tags span.is-soft { background: rgba(255, 255, 255, .12); }
.lp-featured .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255, 255, 255, .1); margin-bottom: 1rem; }
.lp-featured h3 { font-size: 1.5rem; font-weight: 800; }
.lp-featured p { color: #cbd5e1; }
.lp-featured .lp-ticks li::before { color: #4ade80; }
.lp-featured .btn-lp { margin-top: .6rem; }
.lp-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.lp-pick > div { background: #fff; border: 1px solid var(--lp-border); border-radius: 14px; padding: 1.2rem; text-align: center; }
.lp-pick i { font-size: 1.6rem; color: var(--lp-accent); }
.lp-pick h4 { font-size: 1rem; font-weight: 700; margin: .5rem 0 .2rem; }
.lp-pick p { margin: 0; font-size: .9rem; color: var(--lp-muted); }
.lp-plus { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--lp-muted); font-weight: 800; }

/* ---------- rodapé e WhatsApp ---------- */
.lp-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.lp-footer { background: var(--lp-ink-2); color: #cbd5e1; padding: 2.2rem 0 !important; text-align: center; font-size: .92rem; }
.lp-footer a { color: #fff; }
.lp-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 28px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.lp-wa:hover { background: #128c7e; color: #fff; transform: scale(1.08); }

@media (max-width: 767px) { .lp section { padding: 60px 0; } .lp-hero { padding: 64px 0 72px !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lp-card, .lp .btn-lp, .lp-wa { transition: none; } }

/* ---------- vitrine com print do sistema (moldura de navegador) ---------- */
.lp-hero.is-showcase { padding: 72px 0 0 !important; }
.lp-showcase-text { text-align: center; max-width: 820px; margin: 0 auto 2.8rem; }
.lp-showcase-text .lp-sub { margin-inline: auto; }
.lp-showcase-text .lp-badges { justify-content: center; }
.lp-shot-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.lp-shot { background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); overflow: hidden; max-height: 470px; position: relative; }
.lp-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .9)); pointer-events: none; }
.lp-shot-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #eef0f3; border-bottom: 1px solid var(--lp-border); }
.lp-shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd0d8; }
.lp-shot-bar span:first-child { background: #ff6058; }
.lp-shot-bar span:nth-child(2) { background: #ffbd2e; }
.lp-shot-bar span:nth-child(3) { background: #28c93f; }
.lp-shot-bar em { margin-left: .8rem; font-style: normal; font-size: .78rem; color: var(--lp-muted); background: #fff; border-radius: 999px; padding: .15rem .8rem; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot-chat { position: absolute; right: -14px; bottom: 28px; width: 340px; z-index: 2; }
@media (max-width: 991px) { .lp-shot-chat { display: none; } .lp-shot { max-height: 320px; } }
@media (max-width: 575px) { .lp-shot-bar em { display: none; } .lp-shot { max-height: 220px; } }
.lp-shot.is-full { max-height: none; border-radius: 14px; box-shadow: var(--lp-shadow), 0 24px 60px rgba(16, 24, 40, .18); border: 1px solid var(--lp-border); }
.lp-shot.is-full::after { display: none; }
