/* =====================================================================
   Coopix SaaS — Estilos das páginas públicas (landing, /ativar, termos, privacidade)
   ===================================================================== */

body.public-layout {
    background: linear-gradient(135deg, #F8F7FF 0%, #EEF0FF 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / nav superior */
.public-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.public-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #695CFE 0%, #4338CA 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.public-brand-text {
    font-weight: 600;
    color: #1E1B4B;
    font-size: 18px;
}
.public-nav-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
}
.public-nav-link:hover {
    color: var(--brand-primary);
}

/* Main content */
.public-main {
    flex: 1;
    padding: 40px 16px;
}

/* Footer */
.public-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
}
.public-footer a:hover { color: var(--brand-primary) !important; }

/* =====================================================================
   WIZARD DE ATIVAÇÃO
   ===================================================================== */

.ativar-container {
    max-width: 640px;
    margin: 0 auto;
}

/* Stepper */
.ativar-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
}
.ativar-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ativar-stepper .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all .3s;
}
.ativar-stepper .step.active .step-num {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(105, 92, 254, .2);
}
.ativar-stepper .step.completed .step-num {
    background: #10B981;
    color: #fff;
}
.ativar-stepper .step-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ativar-stepper .step.active .step-label {
    color: var(--brand-primary);
    font-weight: 600;
}
.ativar-stepper .step-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: #E5E7EB;
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background .3s;
}
.ativar-stepper .step-line.active {
    background: #10B981;
}

/* Card do wizard */
.ativar-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(30, 27, 75, .08);
    border: 1px solid rgba(105, 92, 254, .08);
}
.ativar-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E1B4B;
    margin: 0 0 6px;
}
.ativar-card .subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Input do código em destaque */
.codigo-input {
    font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    background: #F8F7FF;
    border: 2px solid #E8E8E8;
    height: 56px;
    border-radius: 12px;
}
.codigo-input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(105, 92, 254, .12);
}

/* Botões */
.ativar-card .btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 10px;
}
.ativar-card .btn-primary:hover:not(:disabled) {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}
.ativar-card .btn-primary:disabled {
    opacity: .5;
}
.ativar-card .btn-outline-secondary {
    border-color: var(--border);
    color: #555;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
}

/* Form elements */
.ativar-card .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.ativar-card .form-control,
.ativar-card .form-select {
    font-size: 14px;
    height: 42px;
    border-radius: 8px;
    border-color: #E8E8E8;
}
.ativar-card .form-control:focus,
.ativar-card .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(105, 92, 254, .12);
}
.ativar-card .form-text {
    font-size: 11.5px;
    color: #6c757d;
}

/* Preview da proposta */
.proposta-preview {
    background: linear-gradient(135deg, #F0EFFF 0%, #FAFAFF 100%);
    border: 1px solid rgba(105, 92, 254, .15);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}
.proposta-nome {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 4px;
}
.proposta-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}
.preview-item .preview-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}
.preview-item .preview-value {
    font-size: 15px;
    font-weight: 600;
    color: #1E1B4B;
}
.modulos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modulo-chip {
    background: #fff;
    border: 1px solid rgba(105, 92, 254, .2);
    color: var(--brand-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* Tela de sucesso */
.ativar-sucesso {
    text-align: center;
    padding: 56px 36px;
}
.ativar-sucesso .sucesso-icon {
    font-size: 72px;
    color: #10B981;
    margin-bottom: 20px;
    animation: successPop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.ativar-sucesso h2 { color: #10B981 !important; }

/* Responsivo */
@media (max-width: 768px) {
    .ativar-card { padding: 24px 20px; }
    .ativar-stepper { padding: 0; }
    .ativar-stepper .step-label { font-size: 10px; }
    .ativar-stepper .step-line { max-width: 30px; }
    .public-main { padding: 24px 16px; }
}

/* =============================================================================
   ETAPA 26 — Landing Page (/, /contato)
   ============================================================================= */

[x-cloak] { display: none !important; }

.lp-section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-primary, #695CFE);
    background: rgba(105, 92, 254, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.lp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1E1B4B;
    margin-bottom: 8px;
}
.lp-section-lead {
    color: #6b7280;
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
}
.lp-accent { color: var(--brand-primary, #695CFE); }

.lp-btn-primary {
    background: var(--brand-primary, #695CFE);
    border-color: var(--brand-primary, #695CFE);
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(105, 92, 254, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(105, 92, 254, 0.45);
}
.lp-btn-secondary {
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 10px;
}
.lp-btn-outline-light {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border-width: 2px;
}

/* Hero */
.lp-hero {
    padding: 64px 0 72px;
    background:
        radial-gradient(ellipse at top right, rgba(105, 92, 254, 0.08), transparent 50%),
        linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}
.lp-hero-badge {
    display: inline-block;
    background: rgba(105, 92, 254, 0.08);
    color: var(--brand-primary, #695CFE);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lp-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1E1B4B;
    margin-bottom: 18px;
}
.lp-hero-lead {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.55;
    max-width: 540px;
    margin-bottom: 28px;
}
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.lp-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.lp-hero-proof > div { display: flex; flex-direction: column; }
.lp-hero-proof strong { font-size: 1.2rem; color: #1E1B4B; }
.lp-hero-proof small { font-size: 12px; color: #6b7280; }

/* Hero mock cards */
.lp-hero-visual { position: relative; height: 420px; }
.lp-card-mock {
    position: absolute;
    width: 260px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(30, 27, 75, 0.08);
    animation: lpFloat 6s ease-in-out infinite;
}
.lp-card-mock[style*="--d: 0"] { top: 10px;  right: 30px; animation-delay: 0s; }
.lp-card-mock[style*="--d: 1"] { top: 150px; right: 200px; animation-delay: 0.4s; }
.lp-card-mock[style*="--d: 2"] { top: 260px; right: 60px;  animation-delay: 0.8s; }
@keyframes lpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.lp-card-mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--brand-primary, #695CFE);
    margin-bottom: 10px;
}
.lp-card-mock-body small { color: #6b7280; font-size: 11px; }
.lp-mock-kpi {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E1B4B;
    font-family: monospace;
    margin-bottom: 8px;
}
.lp-mock-kpi small { font-size: 0.8rem; font-weight: 400; color: #6b7280; }
.lp-mock-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}
.lp-mock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary, #695CFE), #9b8dff);
    border-radius: 99px;
}

/* Segmentos */
.lp-segmentos { padding: 72px 0; background: #fafbff; }
.lp-segmento-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 24px 20px;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lp-segmento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.06);
    border-color: var(--brand-primary, #695CFE);
}
.lp-segmento-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(105, 92, 254, 0.1);
    color: var(--brand-primary, #695CFE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.lp-segmento-card h4 { font-size: 15px; font-weight: 600; color: #1E1B4B; margin-bottom: 6px; }
.lp-segmento-card p  { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }

/* Features */
.lp-recursos { padding: 80px 0; }
.lp-feature {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    transition: box-shadow .15s ease;
}
.lp-feature:hover { box-shadow: 0 12px 30px rgba(30, 27, 75, 0.06); }
.lp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary, #695CFE), #9b8dff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(105, 92, 254, 0.25);
}
.lp-feature h4 { font-size: 16px; font-weight: 600; color: #1E1B4B; margin-bottom: 8px; }
.lp-feature p  { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.55; }

/* Planos */
.lp-planos { padding: 80px 0; background: #fafbff; }
.lp-plano {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.lp-plano:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30, 27, 75, 0.08); }
.lp-plano-destaque {
    border: 2px solid var(--brand-primary, #695CFE);
    box-shadow: 0 16px 40px rgba(105, 92, 254, 0.15);
}
.lp-plano-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary, #695CFE);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 99px;
    letter-spacing: 0.04em;
}
.lp-plano-nome { font-size: 1.3rem; font-weight: 700; color: #1E1B4B; margin-bottom: 4px; }
.lp-plano-desc { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.lp-plano-preco { margin-bottom: 20px; }
.lp-plano-preco strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E1B4B;
    font-family: monospace;
}
.lp-plano-preco small { font-size: 14px; color: #6b7280; font-weight: 500; }
.lp-plano-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 13px;
}
.lp-plano-lista li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: #374151;
}
.lp-plano-lista li i {
    color: #10B981;
    font-size: 11px;
    margin-top: 5px;
}

/* FAQ */
.lp-faq { padding: 72px 0; }
.lp-faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.lp-faq-pergunta {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #1E1B4B;
    text-align: left;
    cursor: pointer;
}
.lp-faq-pergunta i { transition: transform .2s ease; color: var(--brand-primary, #695CFE); }
.lp-faq-pergunta i.rotated { transform: rotate(180deg); }
.lp-faq-resposta {
    padding: 0 20px 16px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

/* CTA Final */
.lp-cta {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--brand-primary, #695CFE) 0%, #4c3fd6 100%);
    color: #fff;
}
.lp-cta h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.lp-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin-bottom: 28px;
}
.lp-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-cta .lp-btn-primary {
    background: #fff;
    color: var(--brand-primary, #695CFE);
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.lp-cta .lp-btn-primary:hover { color: var(--brand-primary, #695CFE); }
.lp-cta .btn-outline-light { color: #fff; border-color: #fff; }
.lp-cta .btn-outline-light:hover { background: #fff; color: var(--brand-primary, #695CFE); }

/* Contato */
.lp-contato { padding: 64px 0; background: #fafbff; min-height: 70vh; }
.lp-contato-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(30, 27, 75, 0.06);
}
.lp-contato-canais { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.lp-contato-canal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
}
.lp-contato-canal i {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(105, 92, 254, 0.1);
    color: var(--brand-primary, #695CFE);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.lp-contato-canal strong { display: block; color: #1E1B4B; margin-bottom: 2px; }
.lp-contato-canal a { color: var(--brand-primary, #695CFE); text-decoration: none; }

/* Responsivo landing */
@media (max-width: 992px) {
    .lp-hero-title { font-size: 2.2rem; }
    .lp-hero       { padding: 48px 0 56px; }
    .lp-section-title { font-size: 1.6rem; }
    .lp-cta h2     { font-size: 1.5rem; }
}
