:root {
    --sc-primary: #4f46e5;
    --sc-primary-dark: #3730a3;
    --sc-accent: #14b8a6;
    --sc-bg: #f7f8fb;
    --sc-text: #1f2333;
    --sc-muted: #6b7280;
    --sc-border: #e5e7eb;
    --sc-promotor: #16a34a;
    --sc-neutro: #d97706;
    --sc-detrator: #dc2626;
}

body {
    background-color: var(--sc-bg);
    color: var(--sc-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--sc-primary); }
a:hover { color: var(--sc-primary-dark); }

.navbar-sc {
    background: linear-gradient(90deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
}
.navbar-sc .navbar-brand, .navbar-sc .nav-link {
    color: #fff !important;
    font-weight: 500;
}
.navbar-sc .nav-link:hover { opacity: .85; }

.btn-primary {
    background-color: var(--sc-primary);
    border-color: var(--sc-primary);
}
.btn-primary:hover {
    background-color: var(--sc-primary-dark);
    border-color: var(--sc-primary-dark);
}
.btn-accent {
    background-color: var(--sc-accent);
    border-color: var(--sc-accent);
    color: #fff;
}
.btn-accent:hover { color: #fff; opacity: .9; }

.card-sc {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.stat-tile {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}
.stat-tile .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sc-primary-dark);
}
.stat-tile .stat-label {
    color: var(--sc-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.badge-promotor { background-color: var(--sc-promotor); }
.badge-neutro { background-color: var(--sc-neutro); }
.badge-detrator { background-color: var(--sc-detrator); }

.hero {
    background: radial-gradient(circle at top left, #eef2ff 0%, var(--sc-bg) 60%);
    padding: 5rem 0 4rem;
}

/* ================================================================== */
/* Landing page (index.php)                                           */
/* ================================================================== */
html { scroll-behavior: smooth; }

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 6rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(79,70,229,.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(20,184,166,.14) 0%, transparent 40%),
        var(--sc-bg);
}
.lp-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--sc-primary-dark);
    background: #eef2ff;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.lp-hero h1 {
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.lp-hero .lead {
    font-size: 1.15rem;
    max-width: 32rem;
}
.lp-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--sc-text);
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.lp-trust-badge i { color: var(--sc-accent); }

/* Cartão de destaque do hero — um único número, simples e elegante */
.lp-highlight {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px -18px rgba(79,70,229,.35);
    padding: 3rem 2rem;
    text-align: center;
}
.lp-highlight-value {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--sc-primary);
    line-height: 1;
}
.lp-highlight-label {
    font-weight: 700;
    color: var(--sc-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
    margin: .6rem 0 1rem;
}

.lp-section { padding: 4.5rem 0; }
.lp-section-title {
    font-weight: 800;
    letter-spacing: -.01em;
}

/* Selo de garantia / gratuidade */
.lp-guarantee {
    background: linear-gradient(120deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
    border-radius: 24px;
    color: #fff;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.lp-guarantee::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.14) 0%, transparent 55%);
}
.lp-guarantee-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}
.lp-guarantee h2 { font-weight: 800; }
.lp-guarantee p { opacity: .92; }

.lp-icon-tile {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #eef2ff;
    color: var(--sc-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.lp-step {
    position: relative;
    text-align: center;
    padding: 0 .5rem;
}
.lp-step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--sc-primary);
    color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px -4px rgba(79,70,229,.5);
}
.lp-step-line {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--sc-border) 0 8px, transparent 8px 14px);
    z-index: 0;
}
@media (max-width: 767px) {
    .lp-step-line { display: none; }
}

.lp-pricing-card {
    background: #fff;
    border: 2px solid var(--sc-primary);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 45px -15px rgba(79,70,229,.25);
}
.lp-pricing-price { font-size: 2.75rem; font-weight: 800; color: var(--sc-primary-dark); }
.lp-pricing-price small { font-size: 1rem; font-weight: 500; color: var(--sc-muted); }
.lp-pricing-list { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.lp-pricing-list li { padding: .4rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.lp-pricing-list i { color: var(--sc-accent); margin-top: .2rem; }

.lp-cta-banner {
    background: var(--sc-text);
    border-radius: 24px;
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
}
.lp-cta-banner h2 { font-weight: 800; }

.accordion-button:not(.collapsed) {
    color: var(--sc-primary-dark);
    background-color: #eef2ff;
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }

/* ================================================================== */
/* Manual de ajuda (manual.php)                                       */
/* ================================================================== */
.manual-index a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    color: var(--sc-text);
    transition: background .15s ease-in-out, color .15s ease-in-out;
}
.manual-index a:hover { background: #eef2ff; color: var(--sc-primary-dark); }
.manual-index i { color: var(--sc-primary); }

.manual-step {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}
.manual-step-marker {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.manual-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sc-primary);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(79,70,229,.5);
}
.manual-step-connector {
    flex: 1;
    width: 2px;
    min-height: 1.75rem;
    margin: 8px 0;
    background: repeating-linear-gradient(180deg, var(--sc-border) 0 6px, transparent 6px 11px);
}
.manual-step-content { flex: 1; min-width: 0; padding-top: .5rem; }
.manual-step-content h3 { font-weight: 700; margin-bottom: 1rem; font-size: 1.3rem; }
.manual-step:not(:last-child) { padding-bottom: 1rem; }

@media (max-width: 575px) {
    .manual-step { gap: .85rem; }
    .manual-step-icon { width: 40px; height: 40px; font-size: 1.05rem; }
}

.manual-type-card { border-top: 3px solid var(--sc-primary); }
.manual-type-card.accent { border-top-color: var(--sc-accent); }

.manual-faq .accordion-item {
    border: 1px solid var(--sc-border);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: .65rem;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.manual-faq .accordion-item:last-child { margin-bottom: 0; }

.footer-sc {
    color: var(--sc-muted);
    font-size: .875rem;
    padding: 2rem 0;
    border-top: 1px solid var(--sc-border);
}

/* -------------------------------------------------------------- */
/* Tela pública de resposta - foco total em ser rápida e amigável */
/* -------------------------------------------------------------- */
.responder-body {
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 40%);
    min-height: 100vh;
}
.responder-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31,35,51,.08);
    padding: 2rem 1.5rem;
}
.progress-sc {
    height: 6px;
    border-radius: 999px;
}
.escala-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 11), minmax(0, 1fr));
    gap: 6px;
}
.escala-btn {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 2px solid var(--sc-border);
    background: #fff;
    font-weight: 700;
    font-size: clamp(0.72rem, 3.6vw, 1.1rem);
    padding: 0;
    transition: all .12s ease-in-out;
}
.escala-btn:hover { border-color: var(--sc-primary); }
.escala-btn.selecionada {
    background: var(--sc-primary);
    border-color: var(--sc-primary);
    color: #fff;
    transform: scale(1.05);
}
.emoji-btn {
    font-size: 2.1rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: .35rem .5rem;
    transition: all .12s ease-in-out;
}
.emoji-btn.selecionada {
    border-color: var(--sc-primary);
    background: #eef2ff;
    transform: scale(1.12);
}
.opcao-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .85rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--sc-border);
    background: #fff;
    margin-bottom: .6rem;
    font-weight: 500;
}
.opcao-btn.selecionada {
    border-color: var(--sc-primary);
    background: #eef2ff;
}
.star-btn {
    font-size: 2.4rem;
    background: none;
    border: none;
    color: var(--sc-border);
    line-height: 1;
}
.star-btn.ativa { color: #f59e0b; }

@media (max-width: 420px) {
    .responder-card { padding: 1.5rem 1rem; border-radius: 14px; }
}