/* Lead ADV - folha de estilo das paginas de venda das ferramentas gratuitas.
   Serve /calculadora-trabalhista e /organizador-de-documentos: as duas usam a
   mesma estrutura de heroi, modal de cadastro, FAQ e fecho.
   Paleta e escala herdadas do design system do site; classes com prefixo
   .lpc- para nao colidir com ferramentas-gratuitas.css nem com o painel.
   Mexer aqui muda as DUAS paginas. */

.lpc {
    --lpc-forest-950: #062a23;
    --lpc-forest-900: #0b382f;
    --lpc-forest-800: #135044;
    --lpc-forest-700: #176b59;
    --lpc-orange: #ff6b16;
    --lpc-orange-600: #e8570a;
    --lpc-paper: #f6f9f7;
    --lpc-white: #ffffff;
    --lpc-ink: #10221e;
    --lpc-muted: #60716c;
    --lpc-line: #dbe5e1;
    --lpc-line-dark: rgba(255, 255, 255, .16);
    --lpc-dim: rgba(233, 244, 240, .74);
    --lpc-gutter: clamp(20px, 5vw, 72px);
    --lpc-max: 1200px;

    margin: 0;
    background: var(--lpc-paper);
    color: var(--lpc-ink);
    /* leadadv-fonts.css impoe Rawline com !important; esta pilha e o que
       segura a pagina se aquele arquivo nao carregar. */
    font-family: "Rawline", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

.lpc *,
.lpc *::before,
.lpc *::after { box-sizing: border-box; }

.lpc img { display: block; max-width: 100%; height: auto; }
.lpc a { color: inherit; }

.lpc :focus-visible {
    outline: 3px solid var(--lpc-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.lpc-skip {
    position: fixed;
    top: -120px;
    left: 18px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--lpc-white);
    color: var(--lpc-forest-900);
    font-weight: 700;
    text-decoration: none;
    transition: top .18s ease;
}
.lpc-skip:focus { top: 16px; }

/* ---------- Botoes ---------- */

.lpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    letter-spacing: -.005em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.lpc-btn--primary {
    background: var(--lpc-orange);
    color: #fff;
    box-shadow: 0 10px 26px rgba(232, 87, 10, .26);
}
.lpc-btn--primary:hover { background: var(--lpc-orange-600); }

.lpc-btn--ghost {
    border-color: var(--lpc-line-dark);
    color: #fff;
}
.lpc-btn--ghost:hover { border-color: rgba(255, 255, 255, .45); }

.lpc-btn--lg {
    min-height: 56px;
    padding: 16px 30px;
    font-size: 1.0625rem;
}

.lpc-btn--bloco { width: 100%; }

/* ---------- Cabecalho ---------- */

.lpc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--lpc-gutter);
    background: var(--lpc-forest-950);
    border-bottom: 1px solid var(--lpc-line-dark);
}

.lpc-logo { display: block; width: 132px; flex: none; }
.lpc-logo img { width: 100%; height: auto; }

.lpc-header .lpc-btn { min-height: 42px; padding: 9px 16px; font-size: .9375rem; }

/* ---------- Heroi ---------- */

.lpc-hero {
    padding: clamp(36px, 7vw, 76px) var(--lpc-gutter) clamp(44px, 8vw, 92px);
    background: var(--lpc-forest-950);
    color: #fff;
}

.lpc-hero-grid {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    max-width: var(--lpc-max);
    margin: 0 auto;
}

.lpc-hero h1 {
    margin: 0 0 18px;
    max-width: 19ch;
    text-wrap: balance;
    font-size: clamp(2.125rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.028em;
}

.lpc-answer {
    margin: 0 0 28px;
    max-width: 58ch;
    font-size: clamp(1.0625rem, 2.1vw, 1.1875rem);
    line-height: 1.62;
    color: var(--lpc-dim);
}

.lpc-verbas {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    max-width: 56ch;
    border-top: 1px solid var(--lpc-line-dark);
}

.lpc-verbas li {
    position: relative;
    padding: 11px 0 11px 26px;
    border-bottom: 1px solid var(--lpc-line-dark);
    font-size: .9688rem;
    color: rgba(240, 249, 246, .9);
}

.lpc-verbas li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 2px;
    width: 9px;
    height: 2px;
    background: var(--lpc-orange);
}

.lpc-cta { display: grid; gap: 12px; justify-items: start; }

.lpc-cta-note {
    margin: 0;
    max-width: 42ch;
    font-size: .875rem;
    color: var(--lpc-dim);
}

/* ---------- Folha de calculo ---------- */

.lpc-folha {
    margin: 0;
    padding: 22px clamp(18px, 3.4vw, 28px) 24px;
    border-radius: 14px;
    background: var(--lpc-white);
    color: var(--lpc-ink);
    box-shadow: 0 30px 70px rgba(2, 20, 16, .42);
    font-variant-numeric: tabular-nums;
}

.lpc-folha-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--lpc-forest-950);
}

.lpc-folha-head span {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.012em;
}

.lpc-folha-head em {
    flex: none;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--lpc-paper);
    color: var(--lpc-muted);
    font-size: .75rem;
    font-style: normal;
    font-weight: 600;
}

.lpc-folha-dados {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 16px 0 18px;
}

.lpc-folha-dados div { min-width: 0; }
.lpc-folha-dados dt { font-size: .75rem; color: var(--lpc-muted); }
.lpc-folha-dados dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 600; }

.lpc-folha-linhas { margin: 0; padding: 0; list-style: none; }

.lpc-folha-linhas li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lpc-line);
    font-size: .9375rem;
}

.lpc-folha-linhas li span { min-width: 0; }
.lpc-folha-linhas li small { display: block; font-size: .75rem; color: var(--lpc-muted); }
.lpc-folha-linhas li b { flex: none; font-weight: 600; }

.lpc-folha-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 2px solid var(--lpc-forest-950);
}

.lpc-folha-total span { font-size: .9375rem; font-weight: 600; }

.lpc-folha-total b {
    flex: none;
    color: var(--lpc-orange-600);
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.lpc-folha-nota {
    margin: 14px 0 0;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--lpc-muted);
}

/* Variante do organizador: cada linha e um PDF gerado, com o numero do
   arquivo na frente e uma linha de transbordo explicando o que passou
   inteiro para o PDF seguinte. */

.lpc-folha-linhas--pdf li span {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lpc-folha-linhas--pdf i {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--lpc-forest-950);
    color: #fff;
    font-size: .75rem;
    font-style: normal;
    font-weight: 700;
}

/* Precisa de "li" no seletor: .lpc-folha-linhas li ja define display:flex e
   tem especificidade maior que a classe sozinha, o que jogava o <b> para a
   direita como se fosse a coluna de tamanho. */
.lpc-folha-linhas li.lpc-folha-transbordo {
    display: block;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid var(--lpc-line);
    background: rgba(255, 107, 22, .05);
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--lpc-muted);
}

.lpc-folha-linhas li.lpc-folha-transbordo b {
    flex: initial;
    color: var(--lpc-orange-600);
    font-weight: 700;
}

.lpc-folha-fecho {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 2px solid var(--lpc-forest-950);
    font-size: .9375rem;
    font-weight: 600;
}

.lpc-folha-fecho svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--lpc-forest-700);
}

/* ---------- Pagina das duas ferramentas (/ferramentas-gratuitas) ---------- */

.lpf-painel {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.lpf-painel li {
    padding: 14px 0;
    border-bottom: 1px solid var(--lpc-line);
}

.lpf-painel li:first-child { padding-top: 4px; }

.lpf-painel strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    letter-spacing: -.012em;
}

.lpf-painel span {
    display: block;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--lpc-muted);
}

.lpf-titulo-secao { margin-bottom: 28px; }

.lpf-grade {
    display: grid;
    gap: 18px;
}

.lpf-cartao {
    padding: 26px 24px 24px;
    border: 1px solid var(--lpc-line);
    border-radius: 14px;
    background: var(--lpc-white);
}

.lpf-cartao h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.018em;
}

.lpf-cartao > p {
    margin: 0 0 18px;
    font-size: .9375rem;
    color: var(--lpc-muted);
}

.lpf-cartao ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--lpc-line);
}

.lpf-cartao ul li {
    position: relative;
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid var(--lpc-line);
    font-size: .9063rem;
    line-height: 1.5;
}

.lpf-cartao ul li::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 0;
    width: 9px;
    height: 2px;
    background: var(--lpc-orange);
}

.lpf-link {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--lpc-forest-800);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lpf-link:hover { color: var(--lpc-orange-600); }

/* ---------- Corpo ---------- */

.lpc-corpo {
    max-width: var(--lpc-max);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 88px) var(--lpc-gutter) clamp(56px, 9vw, 96px);
}

.lpc-corpo h2 {
    margin: 0 0 24px;
    max-width: 24ch;
    font-size: clamp(1.5rem, 3.6vw, 2.125rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.022em;
}

.lpc-passos-lista {
    counter-reset: lpc-passo;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--lpc-line);
}

.lpc-passos-lista li {
    counter-increment: lpc-passo;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--lpc-line);
}

.lpc-passos-lista li::before {
    content: counter(lpc-passo);
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lpc-forest-950);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
}

.lpc-passos-lista h3 {
    margin: 3px 0 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.012em;
}

.lpc-passos-lista p {
    margin: 4px 0 0;
    max-width: 62ch;
    font-size: .9375rem;
    color: var(--lpc-muted);
}

/* ---------- FAQ ---------- */

.lpc-faq { margin-top: clamp(48px, 8vw, 84px); }

.lpc-faq-lista { border-top: 1px solid var(--lpc-line); }

.lpc-faq details { border-bottom: 1px solid var(--lpc-line); }

.lpc-faq summary {
    position: relative;
    padding: 18px 44px 18px 0;
    font-size: 1.0313rem;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    list-style: none;
}

.lpc-faq summary::-webkit-details-marker { display: none; }

.lpc-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 11px;
    height: 11px;
    margin-top: -7px;
    border-right: 2px solid var(--lpc-forest-800);
    border-bottom: 2px solid var(--lpc-forest-800);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.lpc-faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.lpc-faq details p {
    margin: 0 0 20px;
    max-width: 74ch;
    font-size: .9375rem;
    color: var(--lpc-muted);
}

/* ---------- Fecho ---------- */

.lpc-fecho {
    margin-top: clamp(48px, 8vw, 84px);
    padding: clamp(28px, 5vw, 48px);
    border-radius: 16px;
    background: var(--lpc-forest-900);
    color: #fff;
}

.lpc-fecho h2 { margin: 0 0 12px; }

.lpc-fecho p {
    margin: 0 0 24px;
    max-width: 58ch;
    color: var(--lpc-dim);
}

.lpc-fecho a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rodape ---------- */

.lpc-footer {
    /* A folga extra embaixo e o espaco da barra fixa do celular, que cobre os
       ultimos ~66px da tela. Acima de 720px a barra some e a folga tambem. */
    padding: 28px var(--lpc-gutter) calc(96px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--lpc-line);
    background: var(--lpc-white);
}

.lpc-footer p {
    margin: 0 auto 14px;
    max-width: var(--lpc-max);
    font-size: .8125rem;
    color: var(--lpc-muted);
}

.lpc-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    max-width: var(--lpc-max);
    margin: 0 auto;
}

.lpc-footer nav a {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lpc-forest-800);
    text-decoration: none;
}
.lpc-footer nav a:hover { text-decoration: underline; }

/* ---------- Barra fixa no celular ---------- */

.lpc-barra {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--lpc-line);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
}

.lpc-barra[hidden] { display: none; }
.lpc-barra .lpc-btn { width: 100%; }

/* ---------- Modal ---------- */

.lpc-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.lpc-modal[hidden] { display: none; }

.lpc-modal-fundo {
    position: absolute;
    inset: 0;
    background: rgba(4, 22, 18, .68);
    animation: lpc-fundo .2s ease both;
}

.lpc-modal-caixa {
    position: relative;
    width: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: var(--lpc-white);
    animation: lpc-sobe .26s cubic-bezier(.22, .68, .36, 1) both;
}

@keyframes lpc-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpc-sobe { from { transform: translateY(22px); opacity: .4; } to { transform: none; opacity: 1; } }

.lpc-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--lpc-line);
    border-radius: 50%;
    background: var(--lpc-white);
    color: var(--lpc-forest-900);
    cursor: pointer;
}
.lpc-modal-x:hover { background: var(--lpc-paper); }

.lpc-modal-caixa h2 {
    margin: 0 0 6px;
    padding-right: 44px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.lpc-form-lead {
    margin: 0 0 22px;
    font-size: .9375rem;
    color: var(--lpc-muted);
}

.lpc-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lpc-campo { display: block; margin-bottom: 14px; }

.lpc-campo > span {
    display: block;
    margin-bottom: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lpc-forest-900);
}

.lpc-campo input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--lpc-line);
    border-radius: 10px;
    background: var(--lpc-white);
    color: var(--lpc-ink);
    font: inherit;
    font-size: 1rem;
}

.lpc-campo input:focus {
    border-color: var(--lpc-forest-700);
    outline: 2px solid rgba(23, 107, 89, .22);
    outline-offset: 0;
}

.lpc-campo input[aria-invalid="true"] { border-color: #c0362c; }

.lpc-campo-par { display: grid; gap: 0; }

.lpc-areas { margin: 8px 0 18px; padding: 0; border: 0; }

.lpc-areas legend {
    padding: 0;
    margin-bottom: 9px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lpc-forest-900);
}

.lpc-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lpc-areas-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--lpc-line);
    border-radius: 10px;
    font-size: .9063rem;
    cursor: pointer;
    transition: border-color .14s ease, background-color .14s ease;
}

.lpc-areas-grid label:hover { border-color: var(--lpc-forest-700); }

.lpc-areas-grid input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--lpc-forest-800);
    margin: 0;
}

.lpc-areas-grid label:has(input:checked) {
    border-color: var(--lpc-forest-800);
    background: rgba(19, 80, 68, .06);
    font-weight: 600;
}

.lpc-erro {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #98271d;
    font-size: .875rem;
    font-weight: 500;
}
.lpc-erro[hidden] { display: none; }

.lpc-form-nota {
    margin: 14px 0 0;
    font-size: .75rem;
    line-height: 1.55;
    color: var(--lpc-muted);
}
.lpc-form-nota a { color: var(--lpc-forest-800); }

.lpc-btn[data-lpc-enviar][aria-busy="true"] { opacity: .72; cursor: progress; }

/* ---------- Estado de sucesso ---------- */

.lpc-pronto { text-align: left; }
.lpc-pronto[hidden] { display: none; }

.lpc-pronto-icone {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    color: var(--lpc-forest-700);
}
.lpc-pronto-icone svg { width: 100%; height: 100%; }

.lpc-pronto p { margin: 0 0 22px; max-width: 46ch; color: var(--lpc-muted); }
.lpc-pronto p b { color: var(--lpc-ink); word-break: break-word; }

/* ---------- Telas maiores ---------- */

@media (min-width: 560px) {
    .lpc-campo-par { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .lpc-areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lpc-folha-dados { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
    .lpc-modal { align-items: center; padding: 28px 20px; }
    .lpc-modal-caixa {
        max-width: 560px;
        max-height: calc(100dvh - 56px);
        padding: 34px 36px 32px;
        border-radius: 18px;
        animation-name: lpc-entra;
    }
    @keyframes lpc-entra { from { transform: translateY(12px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
    .lpc-barra { display: none; }
    .lpc-logo { width: 150px; }
    .lpc-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

@media (min-width: 720px) {
    .lpf-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 960px) {
    .lpc-hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        align-items: start;
    }
    .lpc-folha { position: sticky; top: 28px; }
    .lpc-passos-lista {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        border-bottom: 1px solid var(--lpc-line);
    }
    .lpc-passos-lista li {
        border-bottom: 0;
        padding: 26px 26px 26px 0;
    }
    .lpc-passos-lista li + li {
        padding-left: 26px;
        border-left: 1px solid var(--lpc-line);
    }
    .lpc-fecho {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 36px;
    }
    .lpc-fecho h2 { grid-column: 1; margin-bottom: 10px; }
    .lpc-fecho p { grid-column: 1; margin-bottom: 0; }
    .lpc-fecho .lpc-btn { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
    .lpc *,
    .lpc-modal-fundo,
    .lpc-modal-caixa {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .lpc { scroll-behavior: auto; }
}
