/* =====================================================================
   PEO — Fase 5: Valores Organizacionais
   Paleta neutra + tela de paywall
   ===================================================================== */

/* ========= Content cards (padrão das outras fases) ========= */
.peo-content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-fast);
}
.peo-content-card:hover { box-shadow: var(--shadow); }
.peo-content-card.featured { border-left: 3px solid var(--text-primary); }
.peo-content-card.secondary {
    background: var(--bg-surface-alt);
    border-left: 3px solid var(--text-muted);
}

.peo-content-card h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}
.peo-content-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}
.peo-content-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}
.peo-content-card p strong { color: var(--text-primary); font-weight: 600; }

.peo-hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* ========= Flash messages ========= */
.peo-flash {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
}
.peo-flash i { font-size: 1rem; }
.peo-flash.sucesso {
    background: var(--color-success-soft, #ecfdf5);
    border-color: var(--color-success, #10b981);
    color: #065f46;
}
.peo-flash.sucesso i { color: var(--color-success, #10b981); }
.peo-flash.erro {
    background: #fef2f2;
    border-color: var(--color-danger, #dc2626);
    color: #7f1d1d;
}
.peo-flash.erro i { color: var(--color-danger, #dc2626); }

/* ========= Exemplos de Valores (grid) ========= */
.peo-valores-exemplos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1.25rem;
}
@media (max-width: 640px) { .peo-valores-exemplos { grid-template-columns: 1fr; } }

.peo-valor-exemplo {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
}
.peo-valor-exemplo strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
}
.peo-valor-exemplo span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ========= Dependências (tabela neutra) ========= */
.peo-dep-tabela {
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
}
.peo-dep-row {
    display: grid;
    grid-template-columns: 1fr 120px 3fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.peo-dep-row:last-child { border-bottom: none; }
.peo-dep-row.head {
    background: var(--bg-surface-alt);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.peo-dep-row i { color: var(--text-muted); margin-right: 0.4rem; }
.peo-dep-row > span:first-child { color: var(--text-primary); font-weight: 600; }
.peo-dep-row > span:last-child { color: var(--text-secondary); line-height: 1.55; }
.peo-dep-sim {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-success-soft, #ecfdf5);
    color: #065f46;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}
@media (max-width: 640px) {
    .peo-dep-row { grid-template-columns: 1fr; }
}

.peo-dica-rodape {
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--color-info, #0ea5e9);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.peo-dica-rodape i {
    color: var(--color-info, #0ea5e9);
    margin-right: 0.5rem;
}
.peo-dica-rodape strong { color: var(--text-primary); }

/* ========= Quiz CTA ========= */
.peo-quiz-cta {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.peo-quiz-cta .icone-circulo {
    width: 56px;
    height: 56px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}
.peo-quiz-cta h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}
.peo-quiz-cta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 auto 1.25rem;
    max-width: 620px;
    line-height: 1.55;
}
.peo-quiz-cta button {
    background: var(--text-primary);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--t-fast);
}
.peo-quiz-cta button:hover { background: #000; }

/* ========= Aviso do assessor ========= */
.peo-assessor-aviso {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.peo-assessor-aviso h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.peo-assessor-aviso h3 i { color: var(--text-muted); margin-right: 0.4rem; }
.peo-assessor-aviso p {
    margin: 0 0 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}
.peo-assessor-aviso p:last-child { margin-bottom: 0; }
.peo-assessor-aviso strong { color: var(--text-primary); font-weight: 600; }

/* ========= Formulário ========= */
.peo-form-valores {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.peo-form-valores h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.peo-form-valores label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.peo-form-valores textarea {
    width: 100%;
    min-height: 220px;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius);
    resize: vertical;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.peo-form-valores textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.peo-form-valores .form-help {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.peo-form-valores .acoes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.peo-form-valores .btn-rascunho,
.peo-form-valores .btn-concluir {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.peo-form-valores .btn-rascunho {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color-strong);
}
.peo-form-valores .btn-rascunho:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.peo-form-valores .btn-concluir {
    background: var(--text-primary);
    color: #fff;
    border: 1px solid var(--text-primary);
}
.peo-form-valores .btn-concluir:hover { background: #000; border-color: #000; }

.peo-form-valores .status-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    color: var(--text-muted);
}
.peo-form-valores .status-pill.concluida {
    background: var(--color-success-soft, #ecfdf5);
    color: #065f46;
    border-color: var(--color-success, #10b981);
}

/* ========= Paywall (sem assinatura) ========= */
.peo-paywall {
    max-width: 760px;
    margin: 2rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.peo-paywall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-muted), var(--text-primary));
}
.peo-paywall-icone {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--text-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.peo-paywall-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.peo-paywall h1 {
    margin: 0 0 1rem;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.15;
}
.peo-paywall-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 2rem;
}
.peo-paywall-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
    max-width: 520px;
    margin: 0 auto 2rem;
}
.peo-paywall-feature {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1.1rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.peo-paywall-feature > i {
    color: var(--color-success, #10b981);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.peo-paywall-feature strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.peo-paywall-feature span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.peo-paywall-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.peo-paywall-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.peo-paywall-footnote {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 540px;
    margin: 0 auto;
}
.peo-paywall-footnote i {
    color: var(--text-muted);
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

@media (max-width: 640px) {
    .peo-paywall { padding: 2rem 1.5rem; }
    .peo-paywall h1 { font-size: 1.5rem; }
    .peo-paywall-lead { font-size: 0.92rem; }
}

/* ============================================================
   CAMPO DA FASE — somente leitura (2026-07-27)
   O conteúdo é construído pelo Assessor, que conhece as fases
   anteriores e mantém o formato que os extratores leem.
   ============================================================ */
textarea[readonly] {
    background: var(--bg-muted, #f8fafc);
    cursor: default;
    color: var(--text-secondary, #475569);
}
.peo-campo-assessor {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin: 8px 0 0;
    padding: 10px 13px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm, 6px);
    font-size: .85rem;
    line-height: 1.6;
    color: #1e40af;
}
.peo-campo-assessor i { color: #2563eb; margin-top: 3px; }
.peo-campo-assessor strong { color: #1e3a8a; }
