:root {
    --fundo: #f6f8fc; --cartao: #fff; --suave-fundo: #f8fafd; --texto: #0f172a; --suave: #5b687e; --borda: #e4e9f2;
    --azul: #1463ff; --azul-forte: #0b4fd6; --azul-claro: #eaf1ff; --link: #0b57e3; --noite: #071226;
    --sombra: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -8px rgba(15,23,42,.10);
}
@media (prefers-color-scheme: dark) {
    :root {
        --fundo: #090d16; --cartao: #111827; --suave-fundo: #0d1422; --texto: #e8edf6; --suave: #95a2b8; --borda: #222d41;
        --azul-claro: #14264d; --link: #7ba9ff; --sombra: none;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto); line-height: 1.6; -webkit-font-smoothing: antialiased;
       font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.largura { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.abertura { color: #fff; background:
    radial-gradient(700px 380px at 85% 10%, rgba(20,99,255,.45), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(56,189,248,.18), transparent 70%), var(--noite); }
.topo { border-bottom: 1px solid rgba(255,255,255,.09); }
.topo .largura { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.topo img { display: block; width: 136px; height: auto; }
.topo a { color: #fff; text-decoration: none; font-weight: 600; }
.topo .link-site { font-size: .85rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 18px; }
.grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.selo { display: inline-block; font-size: .78rem; font-weight: 600; color: #a9c6ff; border: 1px solid rgba(122,168,255,.35);
        background: rgba(20,99,255,.15); border-radius: 999px; padding: 5px 14px; margin-bottom: 20px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h1 em { font-style: normal; color: #6ea2ff; }
.chamada-texto { color: #b6c2d9; font-size: 1.05rem; margin: 18px 0 24px; max-width: 460px; }
.vantagens { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; color: #dce4f2; }
.vantagens li { display: flex; align-items: center; gap: 10px; }
.vantagens svg { color: #6ea2ff; }

.painel { background: var(--cartao); color: var(--texto); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.area { border: 1.5px dashed #b8c8e8; border-radius: 14px; background: var(--suave-fundo); padding: 22px 16px 16px; text-align: center; transition: .15s; }
@media (prefers-color-scheme: dark) { .area { border-color: #33425f; } }
.area:focus-within, .area.arrastando { border-color: var(--azul); }
.area.arrastando { background: var(--azul-claro); }
.icone { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--azul-claro); color: var(--azul); }
.icone svg { width: 24px; height: 24px; }
.area h2 { font-size: 1rem; margin: 10px 0 2px; }
.area p { margin: 0 0 12px; font-size: .85rem; color: var(--suave); }
.nome-arquivo:not(:empty) { margin: 10px 0 0; font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.nome-arquivo:empty { display: none; }
textarea { display: block; width: 100%; min-height: 96px; resize: vertical; margin-top: 14px; padding: 12px; text-align: left;
           border: 1px solid var(--borda); border-radius: 10px; outline: 0; background: var(--cartao); color: var(--texto);
           font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; }
textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(20,99,255,.18); }
.oculto { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.oculto:focus-visible + .botao { outline: 2px solid var(--azul); outline-offset: 2px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
         border-radius: 10px; padding: 12px 22px; font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
         text-decoration: none; background: var(--azul); color: #fff; transition: background .15s, transform .15s; }
.botao:hover { background: var(--azul-forte); transform: translateY(-1px); }
.botao.vazado { background: var(--cartao); color: var(--texto); border-color: var(--borda); }
.botao.vazado:hover { border-color: var(--azul); }
.botao.pequeno { padding: 8px 16px; font-size: .85rem; }
.botao.cheio { width: 100%; margin-top: 14px; padding: 15px; }
.botao:disabled { opacity: .65; cursor: wait; transform: none; }
.contador { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: .8rem; color: var(--suave); }
.barra { flex: 0 0 90px; height: 5px; border-radius: 9px; background: var(--borda); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--azul); }
.limite { text-align: center; padding: 24px 8px; }
.limite h2 { margin: 14px 0 6px; font-size: 1.25rem; }
.limite p { color: var(--suave); margin: 0 0 20px; }
.aviso { grid-column: 1 / -1; background: #fff4e5; color: #7a4a00; border: 1px solid #ffd591; border-radius: 12px; padding: 12px 16px; }

.secao { padding-top: 48px; padding-bottom: 8px; }
.titulo-secao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.titulo-secao h2 { font-size: 1.6rem; }
.colunas { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 18px; box-shadow: var(--sombra); }
.lateral { padding: 22px; }
.total { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--borda); }
.total strong { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--azul); }
.total span { font-weight: 600; line-height: 1.3; }
dl { margin: 0; }
dl div { padding-top: 14px; }
dt, .rotulo { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--suave); }
dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.principal { display: grid; gap: 16px; min-width: 0; }
.erro { padding: 28px; }
.etiqueta { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
            background: var(--azul-claro); color: var(--link); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.descricao { font-size: 1.1rem; font-weight: 600; }
.texto { overflow-wrap: anywhere; }
.texto p { margin: 8px 0; }
.texto ul, .texto ol { padding-left: 20px; }
.solucao { border-top: 1px solid var(--borda); margin-top: 20px; padding-top: 20px; }
.linha { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--borda); }
.linha:last-child { border-bottom: 0; }
.linha .icone { width: 38px; height: 38px; border-radius: 11px; }
.linha .icone svg { width: 18px; height: 18px; }
.linha .nome { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.linha .etiqueta { display: table; margin: 0 0 5px; padding: 2px 10px; font-size: .66rem; }
.linha a { font-size: .85rem; font-weight: 600; text-decoration: none; text-align: right; }
.convite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px;
           border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0b4fd6, #1463ff 55%, #2f8bff); }
.convite h3 { font-size: 1.15rem; }
.convite p { margin: 2px 0 0; color: #dbe7ff; font-size: .9rem; }
.convite .botao { background: #fff; color: #0b4fd6; }
.vazio { padding: 32px; text-align: center; }

.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: passo; }
.passos li { counter-increment: passo; padding: 22px; font-size: .9rem; color: var(--suave); }
.passos li::before { content: "0" counter(passo); display: block; font-size: 1.5rem; font-weight: 800; color: var(--azul); margin-bottom: 10px; }
.passos strong { color: var(--texto); }
footer { margin-top: 56px; border-top: 1px solid var(--borda); padding: 26px 0; font-size: .85rem; color: var(--suave); text-align: center; }

@media (max-width: 860px) {
    .grade { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 40px; }
    .colunas { grid-template-columns: minmax(0, 1fr); }
    .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .passos { grid-template-columns: minmax(0, 1fr); }
    .erro { padding: 22px 18px; }
    .painel { padding: 14px; }
    .convite .botao { width: 100%; }
    .linha { flex-wrap: wrap; row-gap: 4px; }
    .linha a { width: 100%; padding-left: 52px; text-align: left; }
}

.protegido { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print { .protegido { display: none !important; } }
.erro { position: relative; overflow: hidden; }
/* Intensidade da marca d'água: opacity */
.marca { position: absolute; inset: -40% -20%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
         gap: 48px 40px; transform: rotate(-25deg); opacity: .09; pointer-events: none; user-select: none;
         -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.marca img { display: block; width: 120px; height: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }