/* ── FAQ Page ───────────────────────────────── */

.faq-role-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 244, 251, 0.72));
    border-top: 1px solid rgba(217, 227, 239, 0.7);
    border-bottom: 1px solid rgba(217, 227, 239, 0.7);
    padding: 1.2rem 0 1.1rem;
}

.faq-role-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.faq-role-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.faq-role-toggle {
    display: flex;
    gap: 0.4rem;
}

.faq-role-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 1.4rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.3;
}

.faq-role-btn:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
    background: rgba(31, 91, 138, 0.06);
}

.faq-role-btn.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.faq-role-sub {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.75;
}

.faq-role-btn.is-active .faq-role-sub {
    opacity: 0.9;
}

.faq-role-note {
    max-width: 620px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    min-height: 2.8em;
}

.faq-role-note p {
    margin: 0;
}

.faq-role-note strong {
    color: var(--text);
}

.faq-content {
    width: min(820px, calc(100% - 2rem));
    margin: 1.5rem auto 3rem;
}

.faq-group {
    margin-bottom: 2.2rem;
}

.faq-category {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 1.2vw + 0.8rem, 1.6rem);
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--line);
    color: var(--brand-strong);
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    margin-bottom: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(16, 33, 51, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--text);
    user-select: none;
    -webkit-user-select: none;
    list-style: none;
}

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

.faq-question:hover {
    background: rgba(31, 91, 138, 0.04);
}

.faq-mark {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-mark {
    transform: rotate(45deg);
    background: var(--brand);
    color: #ffffff;
}

.faq-q-text {
    flex: 1;
}

.faq-answer {
    padding: 0 2rem 1rem 3.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--text);
    font-weight: 600;
}

.faq-modes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.faq-modes div {
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent);
    opacity: 0.9;
}

@media (max-width: 640px) {
    .faq-answer {
        padding-left: 1.2rem;
        padding-right: 1rem;
    }

    .faq-question {
        font-size: 0.92rem;
        padding: 0.7rem 0.8rem;
    }

    .faq-role-btn {
        padding: 0.4rem 1rem;
        font-size: 0.82rem;
    }

    .faq-content {
        margin-top: 1rem;
    }
}

